DeHaze bugfixes, optimizations and changed behaviour of strength slider

This commit is contained in:
heckflosse
2015-09-02 16:05:15 +02:00
parent 4fdbe89ebe
commit aab584fa53
8 changed files with 307 additions and 304 deletions

View File

@@ -115,14 +115,14 @@ IImage16* processImage (ProcessingJob* pjob, int& errorCode, ProgressListener* p
if (pl) {
pl->setProgress (0.30);
}
LUTf cdcurve (65536, 0);
bool dehacontlutili=false;
CurveFactory::curveDehaContL (dehacontlutili, params.dehaz.cdcurve, cdcurve, 1);
if(params.dehaz.dehazmet!="none")
imgsrc->dehaz( params.raw, params.icm, params.dehaz, cdcurve, dehacontlutili );//enabled Dehaze
if(params.dehaz.enabled) { //enabled Dehaze
LUTf cdcurve (65536, 0);
bool dehacontlutili=false;
CurveFactory::curveDehaContL (dehacontlutili, params.dehaz.cdcurve, cdcurve, 1);
imgsrc->dehaz( params.raw, params.icm, params.dehaz, cdcurve, dehacontlutili );
}
if (pl) {
pl->setProgress (0.40);