Fixed thumbnails too dark when using highlight recovery
see issue 861
This commit is contained in:
parent
3d52b94077
commit
ed015d0184
@ -598,17 +598,18 @@ IImage8* Thumbnail::processImage (const procparams::ProcParams& params, int rhei
|
|||||||
double mul_lum = 0.299*rm + 0.587*gm + 0.114*bm;
|
double mul_lum = 0.299*rm + 0.587*gm + 0.114*bm;
|
||||||
double logDefGain = log(defGain) / log(2.0);
|
double logDefGain = log(defGain) / log(2.0);
|
||||||
int rmi, gmi, bmi;
|
int rmi, gmi, bmi;
|
||||||
if (!isRaw || !params.hlrecovery.enabled) {
|
// Since HL recovery is not rendered in thumbs
|
||||||
|
// if (!isRaw || !params.hlrecovery.enabled) {
|
||||||
logDefGain = 0.0;
|
logDefGain = 0.0;
|
||||||
rmi = 1024.0 * rm * defGain / mul_lum;
|
rmi = 1024.0 * rm * defGain / mul_lum;
|
||||||
gmi = 1024.0 * gm * defGain / mul_lum;
|
gmi = 1024.0 * gm * defGain / mul_lum;
|
||||||
bmi = 1024.0 * bm * defGain / mul_lum;
|
bmi = 1024.0 * bm * defGain / mul_lum;
|
||||||
}
|
/* }
|
||||||
else {
|
else {
|
||||||
rmi = 1024.0 * rm / mul_lum;
|
rmi = 1024.0 * rm / mul_lum;
|
||||||
gmi = 1024.0 * gm / mul_lum;
|
gmi = 1024.0 * gm / mul_lum;
|
||||||
bmi = 1024.0 * bm / mul_lum;
|
bmi = 1024.0 * bm / mul_lum;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
// The RAW exposure is not reflected since it's done in preprocessing. If we only have e.g. the chached thumb,
|
// 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
|
// that is already preprocessed. So we simulate the effect here roughly my modifying the exposure accordingly
|
||||||
|
Loading…
x
Reference in New Issue
Block a user