best transition between method high and highlight

This commit is contained in:
Desmis 2015-10-13 17:07:17 +02:00
parent d669f2ff2e
commit 604020e1e2

View File

@ -263,8 +263,10 @@ void RawImageSource::MSR(float** luminance, float** originalLuminance, float **e
if (deh.retinexMethod == "highli" || deh.retinexMethod == "highliplus") {
moderetinex = 3;
}
float high = 0.6f*(float) deh.highl;//reduce sensibility
float aahi = 49.f/99.f;////reduce sensibility 50%
float bbhi = 1.f - aahi;
float high;
high = bbhi + aahi*(float) deh.highl;
retinex_scales( RetinexScales, scal, moderetinex, nei, high );
int H_L = height;