Clean code and change sensitivity highlight threshold

This commit is contained in:
Desmis
2015-10-06 08:20:50 +02:00
parent eb96e11a43
commit 8fe6e7e8db
3 changed files with 2 additions and 6 deletions

View File

@@ -241,7 +241,7 @@ void RawImageSource::MSR(float** luminance, float** originalLuminance, float **e
moderetinex = 3;
}
float high = (float) deh.highl;
float high = 0.6f*(float) deh.highl;//reduce sensibility
retinex_scales( RetinexScales, scal, moderetinex, nei, high );
int H_L = height;
@@ -318,7 +318,7 @@ void RawImageSource::MSR(float** luminance, float** originalLuminance, float **e
}
} else {
for (; j < W_L; j++) {
luminance[i][j] += pond * xlogf(LIM(src[i][j] / out[i][j], ilimD, limD));
luminance[i][j] += pond * xlogf(LIM(src[i][j] / out[i][j], ilimD, limD));
}
}
}