# | Line 491 | Line 491 | double Ldmax | |
---|---|---|
491 | } | |
492 | if (!histot) | |
493 | returnErr(TM_E_TMFAIL); | |
494 | < | threshold = histot/40 + 1; |
494 | > | threshold = histot/500 + 1; |
495 | Lwavg = tmLuminance( (double)sum / histot ); | |
496 | /* use linear tone mapping? */ | |
497 | < | if (tms->flags & TM_F_LINEAR || threshold < 4 || |
497 | > | if (tms->flags & TM_F_LINEAR || |
498 | tms->hbrmax - tms->hbrmin < TM_BRTSCALE*logLddyn) | |
499 | goto linearmap; | |
500 | /* clamp histogram */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |