Remove buggy (unpredictable) automatic setting of HL reconstruction when using Auto levels, fixes #4249

This commit is contained in:
heckflosse
2018-01-16 22:34:29 +01:00
parent c139744647
commit f644d41ff2
4 changed files with 1 additions and 47 deletions

View File

@@ -357,22 +357,6 @@ bool ToneCurveParams::operator !=(const ToneCurveParams& other) const
return !(*this == other);
}
bool ToneCurveParams::HLReconstructionNecessary(const LUTu& histRedRaw, const LUTu& histGreenRaw, const LUTu& histBlueRaw)
{
if (options.rtSettings.verbose) {
printf("histRedRaw[ 0]=%07d, histGreenRaw[ 0]=%07d, histBlueRaw[ 0]=%07d\nhistRedRaw[255]=%07d, histGreenRaw[255]=%07d, histBlueRaw[255]=%07d\n",
histRedRaw[0], histGreenRaw[0], histBlueRaw[0], histRedRaw[255], histGreenRaw[255], histBlueRaw[255]);
}
return
histRedRaw[255] > 50
|| histGreenRaw[255] > 50
|| histBlueRaw[255] > 50
|| histRedRaw[0] > 50
|| histGreenRaw[0] > 50
|| histBlueRaw[0] > 50;
}
RetinexParams::RetinexParams() :
enabled(false),
cdcurve{