June 24 2002 10:45:23.308 AM COLORS_PRB Simple tests for the COLORS color converter. TEST01 CMY_TO_RGB converts CMY to RGB colors. RGB_TO_CMY converts RGB to CMY colors; Rin Gin Bin C M Y Rout Gout Bout 0.900 0.000 0.000 0.100 1.000 1.000 0.900 0.000 0.000 0.000 0.800 0.000 1.000 0.200 1.000 0.000 0.800 0.000 0.000 0.000 0.700 1.000 1.000 0.300 0.000 0.000 0.700 0.000 0.600 0.600 1.000 0.400 0.400 0.000 0.600 0.600 0.500 0.000 0.500 0.500 1.000 0.500 0.500 0.000 0.500 0.400 0.400 0.000 0.600 0.600 1.000 0.400 0.400 0.000 0.300 0.300 0.300 0.700 0.700 0.700 0.300 0.300 0.300 0.000 0.000 0.000 1.000 1.000 1.000 0.000 0.000 0.000 0.100 0.300 0.500 0.900 0.700 0.500 0.100 0.300 0.500 0.300 0.500 0.300 0.700 0.500 0.700 0.300 0.500 0.300 TEST02 CMYK_TO_RGB converts CMYK to RGB colors. RGB_TO_CMYK converts RGB to CMYK colors; Rin Gin Bin C M Y K Rout Gout Bout 0.900 0.000 0.000 0.000 0.900 0.900 0.100 0.900 0.000 0.000 0.000 0.800 0.000 0.800 0.000 0.800 0.200 0.000 0.800 0.000 0.000 0.000 0.700 0.700 0.700 0.000 0.300 0.000 0.000 0.700 0.000 0.600 0.600 0.600 0.000 0.000 0.400 0.000 0.600 0.600 0.500 0.000 0.500 0.000 0.500 0.000 0.500 0.500 0.000 0.500 0.400 0.400 0.000 0.000 0.000 0.400 0.600 0.400 0.400 0.000 0.300 0.300 0.300 0.000 0.000 0.000 0.700 0.300 0.300 0.300 0.000 0.000 0.000 0.000 0.000 0.000 1.000 0.000 0.000 0.000 0.100 0.300 0.500 0.400 0.200 0.000 0.500 0.100 0.300 0.500 0.300 0.500 0.300 0.200 0.000 0.200 0.500 0.300 0.500 0.300 TEST03 HLS_TO_RGB converts HLS to RGB colors. RGB_TO_HLS converts RGB to HLS colors; Rin Gin Bin H L S Rout Gout Bout 0.900 0.000 0.000 0.000 0.450 1.000 0.900 0.000 0.000 0.000 0.800 0.000 120.000 0.400 1.000 0.000 0.800 0.000 0.000 0.000 0.700 240.000 0.350 1.000 0.000 0.000 0.700 0.000 0.600 0.600 180.000 0.300 1.000 0.000 0.600 0.600 0.500 0.000 0.500 300.000 0.250 1.000 0.500 0.000 0.500 0.400 0.400 0.000 60.000 0.200 1.000 0.400 0.400 0.000 0.300 0.300 0.300 0.000 0.300 0.000 0.300 0.300 0.300 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.100 0.300 0.500 210.000 0.300 0.667 0.100 0.300 0.500 0.300 0.500 0.300 120.000 0.400 0.250 0.300 0.500 0.300 TEST04 HSV_TO_RGB converts HSV to RGB colors. RGB_TO_HSV converts RGB to HSV colors; Rin Gin Bin H S V Rout Gout Bout 0.900 0.000 0.000 0.000 1.000 0.900 0.900 0.000 0.000 0.000 0.800 0.000 120.000 1.000 0.800 0.000 0.800 0.000 0.000 0.000 0.700 240.000 1.000 0.700 0.000 0.000 0.700 0.000 0.600 0.600 180.000 1.000 0.600 0.000 0.600 0.600 0.500 0.000 0.500 300.000 1.000 0.500 0.500 0.000 0.500 0.400 0.400 0.000 60.000 1.000 0.400 0.400 0.400 0.000 0.300 0.300 0.300 0.000 0.000 0.300 0.300 0.300 0.300 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.100 0.300 0.500 210.000 0.800 0.500 0.100 0.300 0.500 0.300 0.500 0.300 120.000 0.400 0.500 0.300 0.500 0.300 TEST05 LAB_TO_XYZ converts L*a*b* to XYZ colors. XYZ_TO_LAB converts XYZ to L*a*b* colors; Illuminant XYZ color coordinates: 95.0500 100.000 108.910 NM Xin Yin Zin L* a* b* Xout Yout Zout 380.0 21.943 0.630 103.465 5.693 213.225 -159.209 21.943 0.630 103.464 400.0 21.816 0.604 103.465 5.458 213.641 -159.613 21.816 0.604 103.464 420.0 21.535 0.641 103.465 5.788 210.898 -159.044 21.535 0.641 103.465 440.0 20.625 1.367 103.465 11.739 180.892 -148.783 20.625 1.367 103.464 460.0 18.031 3.719 103.465 22.719 120.399 -129.852 18.031 3.719 103.465 480.0 12.173 17.693 103.465 49.122 -28.666 -84.331 12.173 17.693 103.465 500.0 1.447 95.000 80.002 98.034 -367.607 16.152 1.447 95.000 80.002 520.0 8.465 95.000 10.471 98.034 -268.234 104.988 8.465 95.000 10.471 540.0 28.917 95.000 2.028 98.034 -155.242 143.601 28.917 95.000 2.028 560.0 56.757 95.000 0.365 98.034 -70.482 163.803 56.757 95.000 0.365 580.0 90.298 85.734 0.159 94.199 16.530 160.144 90.298 85.734 0.159 600.0 90.298 53.646 0.072 78.255 85.254 133.892 90.297 53.646 0.072 620.0 90.298 40.258 0.026 69.653 122.329 119.718 90.297 40.258 0.026 640.0 90.298 35.278 0.013 65.964 138.230 113.552 90.297 35.278 0.013 660.0 90.298 33.398 0.000 64.482 144.620 111.175 90.297 33.398 0.000 680.0 90.298 32.824 0.000 64.018 146.617 110.376 90.297 32.824 0.000 700.0 90.298 32.606 0.000 63.841 147.382 110.071 90.297 32.606 0.000 TEST06 LCC_TO_RGBPRIME converts LCC to R'G'B' colors; RGBPRIME_TO_LCC converts R'G'B' to LCC colors. R'in G'in B'in Luma Chroma1 Chroma2 R'out G'out B'out 0.949 0.000 0.000 0.284 -0.284 0.665 0.949 0.000 0.000 0.000 0.895 0.000 0.525 -0.525 -0.525 0.000 0.895 0.000 0.000 0.000 0.837 0.095 0.742 -0.095 0.000 0.000 0.837 0.000 0.774 0.774 0.543 0.232 -0.543 0.000 0.774 0.774 0.706 0.000 0.706 0.291 0.414 0.414 0.706 0.000 0.706 0.629 0.629 0.000 0.557 -0.557 0.072 0.629 0.629 0.000 0.540 0.540 0.540 0.540 0.000 0.000 0.540 0.540 0.540 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.291 0.540 0.706 0.485 0.221 -0.194 0.291 0.540 0.706 0.540 0.706 0.540 0.637 -0.097 -0.097 0.540 0.706 0.540 TEST07 LCC_TO_YCBCR converts LCC to YCBCR colors; YCBCR_TO_LCC converts YCBCR to LCC colors. Luma Chroma1 Chroma2 Y' Cb Cr Luma Chroma1 Chroma2 3.000 250.000 200.000 2.639 124.361 125.766 3.000 250.000 200.000 10.000 200.000 20.000 8.651 99.589 13.028 10.000 200.000 20.000 50.000 75.000 0.000 43.004 37.660 0.502 50.000 75.000 0.000 100.000 30.000 120.000 85.945 15.365 75.661 100.000 30.000 120.000 150.000 80.000 200.000 128.886 40.137 125.766 150.000 80.000 200.000 TEST08 LCC_TO_YCC converts LCC to PhotoYCC colors. YCC_TO_LCC converts PhotoYCC to LCC colors; Yin C1in C2in Luma Chroma1 Chroma2 Yout C1out C2out 3.000 250.000 200.000 0.016 0.844 0.464 3.000 250.000 200.000 10.000 200.000 20.000 0.055 0.395 -0.863 10.000 200.000 20.000 50.000 75.000 0.000 0.275 -0.727 -1.010 50.000 75.000 0.000 100.000 30.000 120.000 0.550 -1.131 -0.125 100.000 30.000 120.000 150.000 80.000 200.000 0.825 -0.682 0.464 150.000 80.000 200.000 TEST09 LIN_TO_NONLIN converts linear to nonlinear RGB; NONLIN_TO_LIN converts nonlinear to linear RGB. Rin R' Rout -0.040 -0.159 -0.040 0.000 0.000 0.000 0.040 0.159 0.040 0.080 0.254 0.080 0.120 0.324 0.120 0.160 0.383 0.160 0.200 0.434 0.200 0.240 0.479 0.240 0.280 0.521 0.280 0.320 0.559 0.320 0.360 0.595 0.360 0.400 0.629 0.400 0.440 0.661 0.440 0.480 0.691 0.480 0.520 0.720 0.520 0.560 0.748 0.560 0.600 0.774 0.600 0.640 0.800 0.640 0.680 0.825 0.680 0.720 0.849 0.720 0.760 0.872 0.760 0.800 0.895 0.800 0.840 0.917 0.840 0.880 0.939 0.880 0.920 0.960 0.920 0.960 0.980 0.960 1.000 1.000 1.000 1.040 1.020 1.040 TEST10 LUV_TO_XYZ converts L*u*v* to XYZ colors. XYZ_TO_LUV converts XYZ to L*u*v* colors; Illuminant XYZ color coordinates: 95.0500 100.000 108.910 Illuminant u'v'w' color coordinates: 0.197837 0.468316 0.333847 NM Xin Yin Zin L* u* v* Xout Yout Zout 380.0 21.943 0.630 103.465 5.693 4.364 -33.429 21.943 0.630 103.465 400.0 21.816 0.604 103.465 5.458 4.106 -32.099 21.816 0.604 103.464 420.0 21.535 0.641 103.465 5.788 4.091 -33.968 21.535 0.641 103.465 440.0 20.625 1.367 103.465 11.739 5.624 -66.128 20.625 1.367 103.465 460.0 18.031 3.719 103.465 22.719 -2.988 -112.589 18.031 3.719 103.465 480.0 12.173 17.693 103.465 49.122 -73.451 -126.111 12.173 17.693 103.465 500.0 1.447 95.000 80.002 98.034 -247.705 57.031 1.447 95.000 80.002 520.0 8.465 95.000 10.471 98.034 -222.671 147.007 8.465 95.000 10.471 540.0 28.917 95.000 2.028 98.034 -151.165 149.492 28.917 95.000 2.028 560.0 56.757 95.000 0.365 98.034 -57.013 137.991 56.757 95.000 0.365 580.0 90.298 85.734 0.159 94.199 78.992 112.815 90.298 85.734 0.159 600.0 90.298 53.646 0.072 78.255 209.197 72.248 90.297 53.646 0.072 620.0 90.298 40.258 0.026 69.653 291.948 48.514 90.297 40.258 0.026 640.0 90.298 35.278 0.013 65.964 330.321 37.896 90.297 35.278 0.013 660.0 90.298 33.398 0.000 64.482 346.237 33.574 90.298 33.398 0.000 680.0 90.298 32.824 0.000 64.018 351.254 32.207 90.298 32.824 0.000 700.0 90.298 32.606 0.000 63.841 353.182 31.683 90.297 32.606 0.000 TEST11 NAME_TO_PRIMARIES returns the CIE xy chromaticities of the primaries and reference white used for various television standards; PRIMARIES_TO_Y computes the coefficients in the luminance function, given the chromaticities of the three primaries, and the reference white. Primary definition: R primary 0.670000 0.330000 G primary 0.210000 0.710000 B primary 0.140000 0.800000E-01 Reference white: 0.310100 0.316200 R luminance coefficient 0.298939 G luminance coefficient 0.586625 B luminance coefficient 0.114436 TEST12 NAME_TO_RGB converts a name to RGB colors. Name Rout Gout Bout Red 1.000 0.000 0.000 Green 0.000 1.000 0.000 Blue 0.000 0.000 1.000 Cyan 0.000 1.000 1.000 Magenta 1.000 0.000 1.000 Yellow 1.000 1.000 0.000 White 1.000 1.000 1.000 Black 0.000 0.000 0.000 Pink 1.000 0.753 0.796 Aquamarine 0.498 1.000 0.831 Tan 0.823 0.706 0.549 YellowGreen 0.604 0.804 0.196 Maroon 0.690 0.188 0.377 Salmon 0.980 0.502 0.447 Mauve -1.000 -1.000 -1.000 TEST13 NAME_TO_RGB converts a name to RGB colors. RGB_TO_NAME converts RGB colors to a name; Pick RGB at random. R G B Nearest Name Rout Gout Bout 0.655 0.115 0.448 maroon 0.690 0.188 0.377 0.434 0.601 0.765 skyblue3 0.424 0.651 0.804 0.241 0.524 0.292 seagreen 0.180 0.545 0.341 0.131 0.097 0.975 blue 0.000 0.000 1.000 0.431 0.001 0.523 darkmagenta 0.545 0.000 0.545 0.069 0.001 0.794 blue3 0.000 0.000 0.804 0.834 0.727 0.677 antiquewhite3 0.804 0.753 0.690 0.954 0.732 0.946 plum2 0.933 0.682 0.933 0.866 0.630 0.029 orange2 0.933 0.604 0.000 0.376 0.078 0.745 purple3 0.490 0.149 0.804 TEST14 NM_TO_XYZ converts wavelengths to xyz colors; XYY_TO_XYZ converts xyY to XYZ colors; XYZ_TO_XYY converts XYZ to xyY colors. (Assume a luminosity of YCAP = 2.00000 NM xin yin Yin X Y Z xout yout Yout 380.000 0.174 0.005 2.000 69.640 2.000 328.360 0.174 0.005 2.000 400.000 0.173 0.005 2.000 72.208 2.000 342.458 0.173 0.005 2.000 420.000 0.171 0.005 2.000 67.216 2.000 322.941 0.171 0.005 2.000 440.000 0.164 0.011 2.000 30.165 2.000 151.321 0.164 0.011 2.000 460.000 0.144 0.030 2.000 9.697 2.000 55.643 0.144 0.030 2.000 480.000 0.091 0.133 2.000 1.376 2.000 11.696 0.091 0.133 2.000 500.000 0.008 0.538 2.000 0.030 2.000 1.684 0.008 0.538 2.000 520.000 0.074 0.834 2.000 0.178 2.000 0.220 0.074 0.834 2.000 540.000 0.230 0.754 2.000 0.609 2.000 0.043 0.230 0.754 2.000 560.000 0.373 0.624 2.000 1.195 2.000 0.008 0.373 0.624 2.000 580.000 0.512 0.487 2.000 2.106 2.000 0.004 0.512 0.487 2.000 600.000 0.627 0.373 2.000 3.366 2.000 0.003 0.627 0.373 2.000 620.000 0.692 0.308 2.000 4.486 2.000 0.001 0.692 0.308 2.000 640.000 0.719 0.281 2.000 5.119 2.000 0.001 0.719 0.281 2.000 660.000 0.730 0.270 2.000 5.407 2.000 0.000 0.730 0.270 2.000 680.000 0.733 0.267 2.000 5.502 2.000 0.000 0.733 0.267 2.000 700.000 0.735 0.265 2.000 5.539 2.000 0.000 0.735 0.265 2.000 TEST15 RGB_TO_HUE computes a hue between 0 and 1 corresponding to a given (R,G,B) color. R G B H 1.0000 0.0000 0.0000 0.0000 1.0000 1.0000 0.0000 0.1667 0.0000 1.0000 0.0000 0.3333 0.0000 1.0000 1.0000 0.5000 0.0000 0.0000 1.0000 0.6667 1.0000 0.0000 1.0000 0.8333 0.0000 0.0000 0.0000 -1.0000 0.5000 0.5000 0.5000 -1.0000 1.0000 1.0000 1.0000 -1.0000 0.9400 0.7000 0.1500 0.1160 0.2400 0.7000 0.8500 0.5410 0.2400 0.2400 0.8500 0.6667 TEST16 RGB_TO_RGBPRIME: RGB => R'G'B' colors; RGBPRIME_TO_RGB: R'G'B' => RGB colors. Rin Gin Bin R' G' B' Rout Gout Bout 0.900 0.000 0.000 0.949 0.000 0.000 0.900 0.000 0.000 0.000 0.800 0.000 0.000 0.895 0.000 0.000 0.800 0.000 0.000 0.000 0.700 0.000 0.000 0.837 0.000 0.000 0.700 0.000 0.600 0.600 0.000 0.774 0.774 0.000 0.600 0.600 0.500 0.000 0.500 0.706 0.000 0.706 0.500 0.000 0.500 0.400 0.400 0.000 0.629 0.629 0.000 0.400 0.400 0.000 0.300 0.300 0.300 0.540 0.540 0.540 0.300 0.300 0.300 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.100 0.300 0.500 0.291 0.540 0.706 0.100 0.300 0.500 0.300 0.500 0.300 0.540 0.706 0.540 0.300 0.500 0.300 TEST17 RGB_TO_YCBCR converts RGB to Y'CbCr colors; YCBCR_TO_RGB converts Y'CbCr to RGB colors. Rin Gin Bin Yprime Cb Cr Rout Gout Bout 0.900 0.000 0.000 0.269 -0.152 0.450 0.900 0.000 0.000 0.000 0.800 0.000 0.470 -0.265 -0.335 0.000 0.800 0.000 0.000 0.000 0.700 0.080 0.350 -0.057 0.000 0.000 0.700 0.000 0.600 0.600 0.421 0.101 -0.300 0.000 0.600 0.600 0.500 0.000 0.500 0.206 0.166 0.209 0.500 0.000 0.500 0.400 0.400 0.000 0.354 -0.200 0.033 0.400 0.400 0.000 0.300 0.300 0.300 0.300 0.000 0.000 0.300 0.300 0.300 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.100 0.300 0.500 0.263 0.134 -0.116 0.100 0.300 0.500 0.300 0.500 0.300 0.417 -0.066 -0.084 0.300 0.500 0.300 TEST18 RGB_TO_YIQ converts RGB to Y'IQ colors; YIQ_TO_RGB converts Y'IQ to RGB colors. Rin Gin Bin Y' I Q Rout Gout Bout 0.900 0.000 0.000 0.269 0.536 0.190 0.900 0.000 0.000 0.000 0.800 0.000 0.470 -0.219 -0.418 0.000 0.800 0.000 0.000 0.000 0.700 0.080 -0.225 0.218 0.000 0.000 0.700 0.000 0.600 0.600 0.421 -0.358 -0.127 0.000 0.600 0.600 0.500 0.000 0.500 0.206 0.137 0.262 0.500 0.000 0.500 0.400 0.400 0.000 0.354 0.129 -0.125 0.400 0.400 0.000 0.300 0.300 0.300 0.300 0.000 0.000 0.300 0.300 0.300 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.100 0.300 0.500 0.263 -0.184 0.020 0.100 0.300 0.500 0.300 0.500 0.300 0.417 -0.055 -0.105 0.300 0.500 0.300 TEST19 RGB_TO_YUV converts RGB to Y'UV colors; YUV_TO_RGB converts Y'UV to RGB colors. Rin Gin Bin Y' U V Rout Gout Bout 0.900 0.000 0.000 0.269 -0.133 0.553 0.900 0.000 0.000 0.000 0.800 0.000 0.470 -0.231 -0.412 0.000 0.800 0.000 0.000 0.000 0.700 0.080 0.306 -0.070 0.000 0.000 0.700 0.000 0.600 0.600 0.421 0.088 -0.369 0.000 0.600 0.600 0.500 0.000 0.500 0.206 0.145 0.257 0.500 0.000 0.500 0.400 0.400 0.000 0.354 -0.175 0.040 0.400 0.400 0.000 0.300 0.300 0.300 0.300 0.000 0.000 0.300 0.300 0.300 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.100 0.300 0.500 0.263 0.117 -0.143 0.100 0.300 0.500 0.300 0.500 0.300 0.417 -0.058 -0.103 0.300 0.500 0.300 TEST20 RGB709_TO_XYZ: RGB709 => CIE XYZ colors; XYZ_TO_RGB709: CIE XYZ => RGB709 colors. Rin Gin Bin X Y Z Rout Gout Bout 0.900 0.000 0.000 0.371 0.191 0.017 0.900 0.000 0.000 0.000 0.800 0.000 0.286 0.572 0.095 0.000 0.800 0.000 0.000 0.000 0.700 0.126 0.051 0.665 0.000 0.000 0.700 0.000 0.600 0.600 0.323 0.472 0.642 0.000 0.600 0.600 0.500 0.000 0.500 0.296 0.142 0.485 0.500 0.000 0.500 0.400 0.400 0.000 0.308 0.371 0.055 0.400 0.400 0.000 0.300 0.300 0.300 0.285 0.300 0.327 0.300 0.300 0.300 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.100 0.300 0.500 0.239 0.272 0.513 0.100 0.300 0.500 0.300 0.500 0.300 0.357 0.443 0.350 0.300 0.500 0.300 TEST21 RGBCIE_TO_XYZ converts CIE RGB to XYZ colors; XYZ_TO_RGBCIE converts XYZ to CIE RGB colors. Rin Gin Bin X Y Z Rout Gout Bout 0.900 0.000 0.000 0.441 0.159 0.000 0.900 0.000 0.000 0.000 0.800 0.000 0.248 0.650 0.008 0.000 0.800 0.000 0.000 0.000 0.700 0.140 0.007 0.693 0.000 -0.001 0.700 0.000 0.600 0.600 0.306 0.493 0.600 0.000 0.599 0.600 0.500 0.000 0.500 0.345 0.093 0.495 0.500 0.000 0.500 0.400 0.400 0.000 0.320 0.396 0.004 0.400 0.400 0.000 0.300 0.300 0.300 0.300 0.300 0.300 0.300 0.300 0.300 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.100 0.300 0.500 0.242 0.266 0.498 0.100 0.300 0.500 0.300 0.500 0.300 0.362 0.462 0.302 0.300 0.500 0.300 TEST22 SRGB_TO_XYZ converts sRGB to XYZ colors; XYZ_TO_SRGBCIE converts XYZ to sRGB colors. Xin Yin Zin sR sG sB Xout Yout Zout 0.441 0.159 0.000 255 0 0 0.412 0.213 0.019 0.248 0.650 0.008 0 253 0 0.351 0.703 0.117 0.140 0.007 0.693 88 0 223 0.173 0.074 0.703 0.306 0.493 0.600 0 211 196 0.333 0.506 0.602 0.345 0.093 0.495 222 0 191 0.395 0.193 0.509 0.320 0.396 0.004 175 176 0 0.332 0.402 0.060 0.300 0.300 0.300 162 145 143 0.300 0.299 0.302 0.000 0.000 0.000 0 0 0 0.000 0.000 0.000 0.242 0.266 0.498 100 146 185 0.243 0.268 0.498 0.362 0.462 0.302 152 192 136 0.362 0.462 0.303 Repeat test, but study sRGB->XYZ->sRGB sR sG sB X Y Z sR2 sG2 sB2 255 0 0 0.412 0.213 0.019 255 0 0 0 253 0 0.351 0.703 0.117 0 253 0 88 0 223 0.173 0.074 0.703 88 0 223 0 211 196 0.333 0.506 0.602 0 211 196 222 0 191 0.395 0.193 0.509 222 0 191 175 176 0 0.332 0.402 0.060 175 176 0 162 145 143 0.300 0.299 0.302 162 145 143 0 0 0 0.000 0.000 0.000 0 0 0 100 146 185 0.243 0.268 0.498 100 146 185 152 192 136 0.362 0.462 0.303 152 192 136 TEST23 T_TO_SPD evaluates the black body spectral power distribution function SPD(T,LAMBDA). T Lambda SPD(T,LAMBDA) 1900.0 380.00 0.13959E-08 1900.0 420.00 0.56465E-08 1900.0 460.00 0.17184E-07 1900.0 500.00 0.42269E-07 1900.0 540.00 0.88333E-07 1900.0 580.00 0.16254E-06 1900.0 620.00 0.27038E-06 1900.0 660.00 0.41466E-06 1900.0 700.00 0.59520E-06 1900.0 740.00 0.80901E-06 1900.0 780.00 0.10509E-05 2800.0 380.00 0.84466E-06 2800.0 420.00 0.18564E-05 2800.0 460.00 0.34132E-05 2800.0 500.00 0.54982E-05 2800.0 540.00 0.80118E-05 2800.0 580.00 0.10804E-04 2800.0 620.00 0.13711E-04 2800.0 660.00 0.16577E-04 2800.0 700.00 0.19278E-04 2800.0 740.00 0.21720E-04 2800.0 780.00 0.23844E-04 3700.0 380.00 0.22657E-04 3700.0 420.00 0.36404E-04 3700.0 460.00 0.51679E-04 3700.0 500.00 0.66995E-04 3700.0 540.00 0.81145E-04 3700.0 580.00 0.93322E-04 3700.0 620.00 0.10311E-03 3700.0 660.00 0.11041E-03 3700.0 700.00 0.11533E-03 3700.0 740.00 0.11811E-03 3700.0 780.00 0.11904E-03 4600.0 380.00 0.16781E-03 4600.0 420.00 0.22288E-03 4600.0 460.00 0.27040E-03 4600.0 500.00 0.30728E-03 4600.0 540.00 0.33278E-03 4600.0 580.00 0.34763E-03 4600.0 620.00 0.35337E-03 4600.0 660.00 0.35177E-03 4600.0 700.00 0.34458E-03 4600.0 740.00 0.33335E-03 4600.0 780.00 0.31936E-03 5500.0 380.00 0.64580E-03 5500.0 420.00 0.75496E-03 5500.0 460.00 0.82455E-03 5500.0 500.00 0.85820E-03 5500.0 540.00 0.86276E-03 5500.0 580.00 0.84564E-03 5500.0 620.00 0.81353E-03 5500.0 660.00 0.77190E-03 5500.0 700.00 0.72493E-03 5500.0 740.00 0.67568E-03 5500.0 780.00 0.62626E-03 6400.0 380.00 0.17032E-02 6400.0 420.00 0.18177E-02 6400.0 460.00 0.18422E-02 6400.0 500.00 0.18016E-02 6400.0 540.00 0.17184E-02 6400.0 580.00 0.16104E-02 6400.0 620.00 0.14905E-02 6400.0 660.00 0.13676E-02 6400.0 700.00 0.12472E-02 6400.0 740.00 0.11327E-02 6400.0 780.00 0.10260E-02 7300.0 380.00 0.35423E-02 7300.0 420.00 0.35322E-02 7300.0 460.00 0.33865E-02 7300.0 500.00 0.31626E-02 7300.0 540.00 0.29018E-02 7300.0 580.00 0.26311E-02 7300.0 620.00 0.23672E-02 7300.0 660.00 0.21192E-02 7300.0 700.00 0.18916E-02 7300.0 740.00 0.16859E-02 7300.0 780.00 0.15018E-02 8200.0 380.00 0.62863E-02 8200.0 420.00 0.59491E-02 8200.0 460.00 0.54657E-02 8200.0 500.00 0.49274E-02 8200.0 540.00 0.43892E-02 8200.0 580.00 0.38812E-02 8200.0 620.00 0.34175E-02 8200.0 660.00 0.30031E-02 8200.0 700.00 0.26374E-02 8200.0 740.00 0.23173E-02 8200.0 780.00 0.20384E-02 9100.0 380.00 0.99825E-02 9100.0 420.00 0.90649E-02 9100.0 460.00 0.80537E-02 9100.0 500.00 0.70623E-02 9100.0 540.00 0.61468E-02 9100.0 580.00 0.53297E-02 9100.0 620.00 0.46148E-02 9100.0 660.00 0.39968E-02 9100.0 700.00 0.34660E-02 9100.0 740.00 0.30117E-02 9100.0 780.00 0.26234E-02 10000. 380.00 0.14622E-01 10000. 420.00 0.12843E-01 10000. 460.00 0.11107E-01 10000. 500.00 0.95260E-02 10000. 540.00 0.81388E-02 10000. 580.00 0.69470E-02 10000. 620.00 0.59351E-02 10000. 660.00 0.50810E-02 10000. 700.00 0.43620E-02 10000. 740.00 0.37569E-02 10000. 780.00 0.32470E-02 TEST24 T_TO_XYZ returns the CIE xyz chromaticities of a black body radiator at temperature T. Assume constant luminosity YCAP = 100.000 T x y z X Y Z 960.0000 0.6526 0.3446 0.0028 189.3790 100.0000 0.8125 980.0000 0.6526 0.3446 0.0028 189.3790 100.0000 0.8125 1000.0000 0.6526 0.3446 0.0028 189.3790 100.0000 0.8125 1020.0000 0.6498 0.3469 0.0033 187.3249 100.0000 0.9427 1040.0000 0.6471 0.3492 0.0037 185.2978 100.0000 1.0710 1060.0000 0.6443 0.3515 0.0042 183.2973 100.0000 1.1977 1080.0000 0.6415 0.3538 0.0047 181.3228 100.0000 1.3228 1100.0000 0.6388 0.3561 0.0051 179.3738 100.0000 1.4462 1120.0000 0.6360 0.3584 0.0056 177.4498 100.0000 1.5681 1140.0000 0.6332 0.3607 0.0061 175.5503 100.0000 1.6884 1160.0000 0.6304 0.3630 0.0066 173.6749 100.0000 1.8072 1180.0000 0.6277 0.3653 0.0070 171.8232 100.0000 1.9244 1200.0000 0.6249 0.3676 0.0075 169.9946 100.0000 2.0403 1220.0000 0.6222 0.3694 0.0083 168.4351 100.0000 2.2521 1240.0000 0.6196 0.3713 0.0091 166.8911 100.0000 2.4619 1260.0000 0.6169 0.3731 0.0100 165.3622 100.0000 2.6696 1280.0000 0.6143 0.3749 0.0108 163.8483 100.0000 2.8753 1300.0000 0.6116 0.3767 0.0116 162.3490 100.0000 3.0790 1320.0000 0.6090 0.3786 0.0124 160.8643 100.0000 3.2807 1340.0000 0.6064 0.3804 0.0132 159.3938 100.0000 3.4804 1360.0000 0.6037 0.3822 0.0141 157.9374 100.0000 3.6783 1380.0000 0.6011 0.3841 0.0149 156.4949 100.0000 3.8743 1400.0000 0.5984 0.3859 0.0157 155.0661 100.0000 4.0684 TEST25 UVPRIMEY_TO_XYZ converts u'v'Y to XYZ colors. XYZ_TO_UVWPRIME converts XYZ to u'v'w' colors; Illuminant XYZ color coordinates: 95.0500 100.000 108.910 Xin Yin Zin u' v' w' Xout Yout Zout 21.943 0.630 103.465 0.257 0.017 0.727 21.943 0.630 103.464 21.816 0.604 103.465 0.256 0.016 0.728 21.816 0.604 103.465 21.535 0.641 103.465 0.252 0.017 0.731 21.535 0.641 103.465 20.625 1.367 103.465 0.235 0.035 0.730 20.625 1.367 103.464 18.031 3.719 103.465 0.188 0.087 0.725 18.031 3.719 103.465 12.173 17.693 103.465 0.083 0.271 0.646 12.173 17.693 103.465 1.447 95.000 80.002 0.003 0.513 0.483 1.447 95.000 80.002 8.465 95.000 10.471 0.023 0.584 0.393 8.465 95.000 10.471 28.917 95.000 2.028 0.079 0.586 0.335 28.917 95.000 2.028 56.757 95.000 0.365 0.153 0.577 0.270 56.757 95.000 0.365 90.298 85.734 0.159 0.262 0.560 0.177 90.298 85.734 0.159 90.298 53.646 0.072 0.403 0.539 0.057 90.297 53.646 0.072 90.298 40.258 0.026 0.520 0.522 -0.042 90.297 40.258 0.026 90.298 35.278 0.013 0.583 0.513 -0.096 90.297 35.278 0.013 90.298 33.398 0.000 0.611 0.508 -0.119 90.298 33.398 0.000 90.298 32.824 0.000 0.620 0.507 -0.127 90.298 32.824 0.000 90.298 32.606 0.000 0.623 0.506 -0.130 90.298 32.606 0.000 TEST26 XYZ_TO_YCC converts XYZ to PhotoYCC colors; YCC_TO_XYZ converts PhotoYCC to XYZ colors. Illuminant XYZ color coordinates: 95.0500 100.000 108.910 NM Xin Yin Zin Y C1 C2 Xout Yout Zout 380.0 21.943 0.630 103.465 3.847 270.663 190.561 21.943 0.630 103.465 400.0 21.816 0.604 103.465 3.701 270.751 190.034 21.816 0.604 103.465 420.0 21.535 0.641 103.465 3.526 270.847 188.483 21.535 0.641 103.465 440.0 20.625 1.367 103.465 3.881 270.526 180.511 20.625 1.367 103.465 460.0 18.031 3.719 103.465 1.462 271.681 142.816 18.031 3.719 103.465 480.0 12.173 17.693 103.465 40.584 246.042 22.211 12.173 17.693 103.465 500.0 1.447 95.000 80.002 86.385 193.114-108.791 1.447 95.000 80.002 520.0 8.465 95.000 10.471 72.979 83.392 -68.107 8.466 95.000 10.471 540.0 28.917 95.000 2.028 82.877 63.158 -23.720 28.917 95.000 2.028 560.0 56.757 95.000 0.365 143.585 25.657 112.604 56.757 95.000 0.365 580.0 90.298 85.734 0.159 153.265 25.475 193.836 90.297 85.734 0.159 600.0 90.298 53.646 0.072 110.269 65.376 249.540 90.297 53.646 0.072 620.0 90.298 40.258 0.026 44.303 114.020 307.686 90.297 40.258 0.026 640.0 90.298 35.278 0.013 32.980 125.032 319.346 90.297 35.278 0.013 660.0 90.298 33.398 0.000 29.623 128.884 323.050 90.297 33.398 0.000 680.0 90.298 32.824 0.000 28.672 130.054 324.124 90.297 32.824 0.000 700.0 90.298 32.606 0.000 28.317 130.494 324.526 90.297 32.606 0.000 TEST27 YCBCR_TO_YCC converts YCBCR to PhotoYCC colors. YCC_TO_YCBCR converts PhotoYCC to YCBCR colors; Yin C1in C2in Y' Cb Cr Yout C1out C2out 3.000 250.000 200.000 4.206 249.350 212.362 3.000 250.000 200.000 10.000 200.000 20.000 14.020 184.800 -28.838 10.000 200.000 20.000 50.000 75.000 0.000 70.100 23.425 -55.638 50.000 75.000 0.000 100.000 30.000 120.000 140.200 -34.670 105.162 100.000 30.000 120.000 150.000 80.000 200.000 210.300 29.880 212.362 150.000 80.000 200.000 TEST28 YIQ_TO_YUV converts Y'IQ to Y'UV colors; YUV_TO_YIQ converts Y'UV to Y'IQ colors. Y'in Iin Qin Y' U V Y'out Iout Qout 0.269 0.536 0.190 0.269 -0.261 0.634 0.269 0.536 0.190 0.470 -0.219 -0.418 0.470 -0.508 -0.483 0.470 -0.219 -0.418 0.080 -0.225 0.218 0.080 0.648 -0.070 0.080 -0.225 0.218 0.421 -0.358 -0.127 0.421 0.174 -0.422 0.421 -0.358 -0.127 0.206 0.137 0.262 0.206 0.317 0.302 0.206 0.137 0.261 0.354 0.129 -0.125 0.354 -0.370 0.040 0.354 0.129 -0.125 0.300 0.000 0.000 0.300 0.000 0.000 0.300 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.263 -0.184 0.020 0.263 0.243 -0.161 0.263 -0.184 0.020 0.417 -0.055 -0.105 0.417 -0.127 -0.121 0.417 -0.055 -0.105 COLORS_PRB Normal end of execution.