| # | 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 */ | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |