Calculate dual demosaic auto contrast threshold when saving file, #4866

This commit is contained in:
heckflosse 2018-10-23 21:03:23 +02:00
parent 392e00cd69
commit 4d46e618bb

View File

@ -209,8 +209,10 @@ private:
if (pl) {
pl->setProgress (0.20);
}
double contrastThresholdDummy;
imgsrc->demosaic (params.raw, false, contrastThresholdDummy);
bool autoContrast = imgsrc->getSensorType() == ST_BAYER ? params.raw.bayersensor.dualDemosaicAutoContrast : params.raw.xtranssensor.dualDemosaicAutoContrast;
double contrastThreshold = imgsrc->getSensorType() == ST_BAYER ? params.raw.bayersensor.dualDemosaicContrast : params.raw.xtranssensor.dualDemosaicContrast;
imgsrc->demosaic (params.raw, autoContrast, contrastThreshold);
if (pl) {