Preview does not match output when using BW with a* and b* toning with chromaticity -100 - issue2567
This commit is contained in:
@@ -1027,14 +1027,19 @@ IImage16* processImage (ProcessingJob* pjob, int& errorCode, ProgressListener* p
|
|||||||
|
|
||||||
// readyImg = ipf.lab2rgb16 (labView, cx, cy, cw, ch, params.icm.output, params.blackwhite.enabled);
|
// readyImg = ipf.lab2rgb16 (labView, cx, cy, cw, ch, params.icm.output, params.blackwhite.enabled);
|
||||||
bool bwonly = params.blackwhite.enabled && !params.colorToning.enabled ;
|
bool bwonly = params.blackwhite.enabled && !params.colorToning.enabled ;
|
||||||
|
if(autili || butili ) bwonly = false;
|
||||||
readyImg = ipf.lab2rgb16 (labView, cx, cy, cw, ch, params.icm.output, bwonly);
|
readyImg = ipf.lab2rgb16 (labView, cx, cy, cw, ch, params.icm.output, bwonly);
|
||||||
if (settings->verbose) printf("Output profile: \"%s\"\n", params.icm.output.c_str());
|
if (settings->verbose) printf("Output profile_: \"%s\"\n", params.icm.output.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
delete labView;
|
delete labView;
|
||||||
labView = NULL;
|
labView = NULL;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if(!autili && !butili ) {
|
||||||
if(params.blackwhite.enabled && !params.colorToning.enabled ) {//force BW r=g=b
|
if(params.blackwhite.enabled && !params.colorToning.enabled ) {//force BW r=g=b
|
||||||
|
if (settings->verbose) printf("Force BW\n");
|
||||||
for (int ccw=0;ccw<cw;ccw++) {
|
for (int ccw=0;ccw<cw;ccw++) {
|
||||||
for (int cch=0;cch<ch;cch++) {
|
for (int cch=0;cch<ch;cch++) {
|
||||||
readyImg->r(cch,ccw)=readyImg->g(cch,ccw);
|
readyImg->r(cch,ccw)=readyImg->g(cch,ccw);
|
||||||
@@ -1042,6 +1047,7 @@ IImage16* processImage (ProcessingJob* pjob, int& errorCode, ProgressListener* p
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (pl) pl->setProgress (0.70);
|
if (pl) pl->setProgress (0.70);
|
||||||
|
|
||||||
if (params.resize.enabled) {
|
if (params.resize.enabled) {
|
||||||
|
Reference in New Issue
Block a user