Raw white point (aka Raw exposure) ported

This commit is contained in:
Oliver Duis
2011-04-08 19:39:35 +02:00
parent 573bae31d1
commit 9d053c18b3
11 changed files with 53 additions and 23 deletions

View File

@@ -713,6 +713,11 @@ IImage8* Thumbnail::processImage (const procparams::ProcParams& params, int rhei
if (params.toneCurve.autoexp && aeHistogram)
ipf.getAutoExp (aeHistogram, aeHistCompression, logDefGain, params.toneCurve.clip, br, bl);
// The RAW exposure is not reflected since it's done in preprocessing. If we only have e.g. the chached thumb,
// that is already preprocessed. So we simulate the effect here roughly my modifying the exposure accordingly
if (params.raw.expos!=1) br += (params.raw.expos-1.0);
printf("Param raw.exp: %f real %f\n",params.raw.expos,br);
LUTf curve1 (65536);
LUTf curve2 (65536);
LUTf curve (65536);