reverted last commit
This commit is contained in:
@@ -242,6 +242,20 @@ void ImProcCoordinator::updatePreviewImage (int todo, Crop* cropCall)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (params.retinex.enabled) {
|
||||||
|
bool dehacontlutili = false;
|
||||||
|
bool useHsl = false;
|
||||||
|
LUTf cdcurve (65536, 0);
|
||||||
|
|
||||||
|
imgsrc->retinexPrepareCurves(params.retinex, cdcurve, dehatransmissionCurve, dehacontlutili, useHsl, lhist16RETI, histLRETI);
|
||||||
|
float minCD, maxCD, mini, maxi, Tmean, Tsigma, Tmin, Tmax;
|
||||||
|
imgsrc->retinex( params.icm, params.retinex, params.toneCurve, cdcurve, dehatransmissionCurve, conversionBuffer, dehacontlutili, useHsl, minCD, maxCD, mini, maxi, Tmean, Tsigma, Tmin, Tmax, histLRETI);//enabled Retinex
|
||||||
|
|
||||||
|
if(dehaListener) {
|
||||||
|
dehaListener->minmaxChanged(maxCD, minCD, mini, maxi, Tmean, Tsigma, Tmin, Tmax);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Updating toneCurve.hrenabled if necessary
|
// Updating toneCurve.hrenabled if necessary
|
||||||
// It has to be done there, because the next 'if' statement will use the value computed here
|
// It has to be done there, because the next 'if' statement will use the value computed here
|
||||||
@@ -261,24 +275,7 @@ void ImProcCoordinator::updatePreviewImage (int todo, Crop* cropCall)
|
|||||||
MyMutex::MyLock initLock(minit); // Also used in crop window
|
MyMutex::MyLock initLock(minit); // Also used in crop window
|
||||||
|
|
||||||
imgsrc->HLRecovery_Global( params.toneCurve); // this handles Color HLRecovery
|
imgsrc->HLRecovery_Global( params.toneCurve); // this handles Color HLRecovery
|
||||||
}
|
|
||||||
|
|
||||||
if (params.retinex.enabled) {
|
|
||||||
bool dehacontlutili = false;
|
|
||||||
bool useHsl = false;
|
|
||||||
LUTf cdcurve (65536, 0);
|
|
||||||
|
|
||||||
imgsrc->retinexPrepareCurves(params.retinex, cdcurve, dehatransmissionCurve, dehacontlutili, useHsl, lhist16RETI, histLRETI);
|
|
||||||
float minCD, maxCD, mini, maxi, Tmean, Tsigma, Tmin, Tmax;
|
|
||||||
imgsrc->retinex( params.icm, params.retinex, params.toneCurve, cdcurve, dehatransmissionCurve, conversionBuffer, dehacontlutili, useHsl, minCD, maxCD, mini, maxi, Tmean, Tsigma, Tmin, Tmax, histLRETI);//enabled Retinex
|
|
||||||
|
|
||||||
if(dehaListener) {
|
|
||||||
dehaListener->minmaxChanged(maxCD, minCD, mini, maxi, Tmean, Tsigma, Tmin, Tmax);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (todo & (M_INIT | M_LINDENOISE)) {
|
|
||||||
MyMutex::MyLock initLock(minit); // Also used in crop window
|
|
||||||
|
|
||||||
if (settings->verbose) {
|
if (settings->verbose) {
|
||||||
printf ("Applying white balance, color correction & sRBG conversion...\n");
|
printf ("Applying white balance, color correction & sRBG conversion...\n");
|
||||||
|
@@ -116,8 +116,6 @@ IImage16* processImage (ProcessingJob* pjob, int& errorCode, ProgressListener* p
|
|||||||
pl->setProgress (0.30);
|
pl->setProgress (0.30);
|
||||||
}
|
}
|
||||||
|
|
||||||
imgsrc->HLRecovery_Global( params.toneCurve );
|
|
||||||
|
|
||||||
if(params.retinex.enabled) { //enabled Retinex
|
if(params.retinex.enabled) { //enabled Retinex
|
||||||
LUTf cdcurve (65536, 0);
|
LUTf cdcurve (65536, 0);
|
||||||
LUTu dummy;
|
LUTu dummy;
|
||||||
@@ -136,6 +134,9 @@ IImage16* processImage (ProcessingJob* pjob, int& errorCode, ProgressListener* p
|
|||||||
pl->setProgress (0.40);
|
pl->setProgress (0.40);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
imgsrc->HLRecovery_Global( params.toneCurve );
|
||||||
|
|
||||||
|
|
||||||
if (pl) {
|
if (pl) {
|
||||||
pl->setProgress (0.45);
|
pl->setProgress (0.45);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user