| # | Line 719 | Line 719 | doambient( /* compute ambient component */ | |
|---|---|---|
| 719 | free(hp); /* Hessian not requested/possible */ | |
| 720 | return(-1); /* value-only return value */ | |
| 721 | } | |
| 722 | < | if ((d = scolor_photopic(rcol)) > FTINY) { |
| 723 | < | d = 0.99*(hp->ns*hp->ns)/d; /* normalize Y values */ |
| 722 | > | if ((d = scolor_mean(rcol)) > FTINY) { |
| 723 | > | d = 0.99*(hp->ns*hp->ns)/d; /* normalize avg. values */ |
| 724 | K = 0.01; | |
| 725 | } else { /* or fall back on geometric Hessian */ | |
| 726 | K = 1.0; | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |