Full processing ignored custom raw border, #4642
This commit is contained in:
@@ -159,6 +159,13 @@ private:
|
|||||||
imgsrc = ii->getImageSource ();
|
imgsrc = ii->getImageSource ();
|
||||||
|
|
||||||
tr = getCoarseBitMask (params.coarse);
|
tr = getCoarseBitMask (params.coarse);
|
||||||
|
if(imgsrc->getSensorType() == ST_BAYER) {
|
||||||
|
if(params.raw.bayersensor.method!= RAWParams::BayerSensor::getMethodString(RAWParams::BayerSensor::Method::PIXELSHIFT)) {
|
||||||
|
imgsrc->setBorder(params.raw.bayersensor.border);
|
||||||
|
} else {
|
||||||
|
imgsrc->setBorder(4);
|
||||||
|
}
|
||||||
|
}
|
||||||
imgsrc->getFullSize (fw, fh, tr);
|
imgsrc->getFullSize (fw, fh, tr);
|
||||||
|
|
||||||
// check the crop params
|
// check the crop params
|
||||||
@@ -196,20 +203,12 @@ private:
|
|||||||
ipf_p.reset (new ImProcFunctions (¶ms, true));
|
ipf_p.reset (new ImProcFunctions (¶ms, true));
|
||||||
ImProcFunctions &ipf = * (ipf_p.get());
|
ImProcFunctions &ipf = * (ipf_p.get());
|
||||||
|
|
||||||
pp = PreviewProps (0, 0, fw, fh, 1);
|
|
||||||
imgsrc->setCurrentFrame (params.raw.bayersensor.imageNum);
|
imgsrc->setCurrentFrame (params.raw.bayersensor.imageNum);
|
||||||
imgsrc->preprocess ( params.raw, params.lensProf, params.coarse, params.dirpyrDenoise.enabled);
|
imgsrc->preprocess ( params.raw, params.lensProf, params.coarse, params.dirpyrDenoise.enabled);
|
||||||
|
|
||||||
if (pl) {
|
if (pl) {
|
||||||
pl->setProgress (0.20);
|
pl->setProgress (0.20);
|
||||||
}
|
}
|
||||||
if(imgsrc->getSensorType() == ST_BAYER) {
|
|
||||||
if(params.raw.bayersensor.method!= RAWParams::BayerSensor::getMethodString(RAWParams::BayerSensor::Method::PIXELSHIFT)) {
|
|
||||||
imgsrc->setBorder(params.raw.bayersensor.border);
|
|
||||||
} else {
|
|
||||||
imgsrc->setBorder(4);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
double contrastThresholdDummy;
|
double contrastThresholdDummy;
|
||||||
imgsrc->demosaic (params.raw, false, contrastThresholdDummy);
|
imgsrc->demosaic (params.raw, false, contrastThresholdDummy);
|
||||||
|
|
||||||
@@ -217,6 +216,7 @@ private:
|
|||||||
if (pl) {
|
if (pl) {
|
||||||
pl->setProgress (0.30);
|
pl->setProgress (0.30);
|
||||||
}
|
}
|
||||||
|
pp = PreviewProps (0, 0, fw, fh, 1);
|
||||||
|
|
||||||
if (params.retinex.enabled) { //enabled Retinex
|
if (params.retinex.enabled) { //enabled Retinex
|
||||||
LUTf cdcurve (65536, 0);
|
LUTf cdcurve (65536, 0);
|
||||||
|
Reference in New Issue
Block a user