ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/tonemap.c
(Generate patch)

Comparing ray/src/common/tonemap.c (file contents):
Revision 3.51 by greg, Tue May 4 21:50:54 2021 UTC vs.
Revision 3.52 by greg, Wed May 26 17:50:26 2021 UTC

# 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 */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines