Clean code and change sensitivity highlight threshold
This commit is contained in:
parent
eb96e11a43
commit
8fe6e7e8db
@ -365,7 +365,6 @@ void ImProcCoordinator::updatePreviewImage (int todo, Crop* cropCall)
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
imgsrc->convertColorSpace(orig_prev, params.icm, currWB);
|
imgsrc->convertColorSpace(orig_prev, params.icm, currWB);
|
||||||
// printf("improc color r=%f g=%f b=%f\n",orig_prev->r(50, 2300),orig_prev->g(50, 2300),orig_prev->b(50, 2300));
|
|
||||||
|
|
||||||
ipf.firstAnalysis (orig_prev, ¶ms, vhist16);
|
ipf.firstAnalysis (orig_prev, ¶ms, vhist16);
|
||||||
}
|
}
|
||||||
|
@ -241,7 +241,7 @@ void RawImageSource::MSR(float** luminance, float** originalLuminance, float **e
|
|||||||
moderetinex = 3;
|
moderetinex = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
float high = (float) deh.highl;
|
float high = 0.6f*(float) deh.highl;//reduce sensibility
|
||||||
retinex_scales( RetinexScales, scal, moderetinex, nei, high );
|
retinex_scales( RetinexScales, scal, moderetinex, nei, high );
|
||||||
|
|
||||||
int H_L = height;
|
int H_L = height;
|
||||||
|
@ -627,7 +627,6 @@ IImage16* processImage (ProcessingJob* pjob, int& errorCode, ProgressListener* p
|
|||||||
|
|
||||||
Imagefloat* baseImg = new Imagefloat (fw, fh);
|
Imagefloat* baseImg = new Imagefloat (fw, fh);
|
||||||
imgsrc->getImage (currWB, tr, baseImg, pp, params.toneCurve, params.icm, params.raw);
|
imgsrc->getImage (currWB, tr, baseImg, pp, params.toneCurve, params.icm, params.raw);
|
||||||
// printf("befo color R=%f G=%f B=%f\n",baseImg->r(50, 2300),baseImg->g(50, 2300),baseImg->b(50, 2300));
|
|
||||||
if (pl) {
|
if (pl) {
|
||||||
pl->setProgress (0.50);
|
pl->setProgress (0.50);
|
||||||
}
|
}
|
||||||
@ -717,7 +716,6 @@ IImage16* processImage (ProcessingJob* pjob, int& errorCode, ProgressListener* p
|
|||||||
delete [] Max_B_;
|
delete [] Max_B_;
|
||||||
|
|
||||||
imgsrc->convertColorSpace(baseImg, params.icm, currWB);
|
imgsrc->convertColorSpace(baseImg, params.icm, currWB);
|
||||||
// printf("after color R=%f G=%f B=%f\n",baseImg->r(50, 2300),baseImg->g(50, 2300),baseImg->b(50, 2300));
|
|
||||||
|
|
||||||
// perform first analysis
|
// perform first analysis
|
||||||
LUTu hist16 (65536);
|
LUTu hist16 (65536);
|
||||||
@ -817,7 +815,6 @@ IImage16* processImage (ProcessingJob* pjob, int& errorCode, ProgressListener* p
|
|||||||
float moyS = 0.f;
|
float moyS = 0.f;
|
||||||
float eqty = 0.f;
|
float eqty = 0.f;
|
||||||
ipf.moyeqt (baseImg, moyS, eqty);//return image : mean saturation and standard dev of saturation
|
ipf.moyeqt (baseImg, moyS, eqty);//return image : mean saturation and standard dev of saturation
|
||||||
//printf("moy=%f ET=%f\n", moyS,eqty);
|
|
||||||
float satp = ((moyS + 1.5f * eqty) - 0.3f) / 0.7f; //1.5 sigma ==> 93% pixels with high saturation -0.3 / 0.7 convert to Hombre scale
|
float satp = ((moyS + 1.5f * eqty) - 0.3f) / 0.7f; //1.5 sigma ==> 93% pixels with high saturation -0.3 / 0.7 convert to Hombre scale
|
||||||
|
|
||||||
if(satp >= 0.92f) {
|
if(satp >= 0.92f) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user