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

Comparing ray/src/px/macbethcal.c (file contents):
Revision 2.23 by schorsch, Sun Mar 28 20:33:13 2004 UTC vs.
Revision 2.24 by greg, Wed Dec 15 06:30:36 2004 UTC

# Line 471 | Line 471 | compute(void)                  /* compute color mapping */
471                                          /* compute piecewise luminance curve */
472          for (i = 0; i < NMBNEU; i++) {
473                  copycolor(bramp[i][0], inpRGB[mbneu[i]]);
474 +                for (n = i ? 3 : 0; n--; )
475 +                        if (colval(bramp[i][0],n) <=
476 +                                        colval(bramp[i-1][0],n)+1e-7) {
477 +                                fprintf(stderr,
478 +                "%s: non-increasing neutral patch\n", progname);
479 +                                exit(1);
480 +                        }
481                  copycolor(bramp[i][1], mbRGB[mbneu[i]]);
482          }
483                                          /* compute color space gamut */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines