18 May 2007 9:21:23.574 AM COLORS_PRB FORTRAN90 version Simple tests for the COLORS routines. 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 1.000 1.000 1.000 0.000 0.000 0.000 1.000 1.000 1.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 1.000 1.000 1.000 0.000 0.000 0.000 0.000 1.000 1.000 1.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 TEST025 GRAYSCALE_LUV determines the appropriate CIE LUV coordinates for a grayscale. LUV_TO_XYZ_CAP converts LUV to XYZ colors; XYZ_CAP_TO_RGB709 converts XYZ to RGB709 colors; The number of grays is 11 L u v X Y Z R G B 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 10.000 0.000 0.000 0.011 0.011 0.012 0.011 0.011 0.011 20.000 0.000 0.000 0.028 0.030 0.033 0.030 0.030 0.030 30.000 0.000 0.000 0.059 0.062 0.068 0.062 0.062 0.062 40.000 0.000 0.000 0.107 0.113 0.123 0.113 0.113 0.113 50.000 0.000 0.000 0.175 0.184 0.201 0.184 0.184 0.184 60.000 0.000 0.000 0.267 0.281 0.306 0.281 0.281 0.281 70.000 0.000 0.000 0.387 0.407 0.444 0.407 0.407 0.408 80.000 0.000 0.000 0.539 0.567 0.617 0.567 0.567 0.567 90.000 0.000 0.000 0.725 0.763 0.831 0.763 0.763 0.763 100.000 0.000 0.000 0.950 1.000 1.089 1.000 1.000 1.000 TEST027 GRAYSCALE_RGB determines the appropriate RGB coordinates for a grayscale. The number of grays is 11 R G B 0.000 0.000 0.000 0.291 0.291 0.291 0.434 0.434 0.434 0.540 0.540 0.540 0.629 0.629 0.629 0.706 0.706 0.706 0.774 0.774 0.774 0.837 0.837 0.837 0.895 0.895 0.895 0.949 0.949 0.949 1.000 1.000 1.000 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 1.000 1.000 1.000 0.000 1.000 0.000 1.000 1.000 1.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 TEST035 RGB_TO_HSI converts RGB to HSI colors; HSI_TO_RGB converts HSI to RGB colors; Rin Gin Bin H S I Rout Gout Bout 0.900 0.000 0.000 0.000 1.000 0.300 0.900 0.000 0.000 0.000 0.800 0.000 120.000 1.000 0.267 0.000 0.800 0.000 0.000 0.000 0.700 240.000 1.000 0.233 0.000 0.000 0.700 0.000 0.600 0.600 180.000 1.000 0.400 0.000 0.600 0.600 0.500 0.000 0.500 300.000 1.000 0.333 0.500 0.000 0.500 0.400 0.400 0.000 60.000 1.000 0.267 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 1.000 1.000 1.000 0.000 0.000 1.000 1.000 1.000 1.000 0.100 0.300 0.500 210.000 0.667 0.300 0.100 0.300 0.500 0.300 0.500 0.300 120.000 0.182 0.367 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 1.000 1.000 1.000 0.000 0.000 1.000 1.000 1.000 1.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_CAP converts L*a*b* to XYZ colors. XYZ_CAP_TO_LAB converts XYZ to L*a*b* colors; Illuminant XYZ color coordinates: .950500 1.00000 1.08910 NM Xin Yin Zin L* a* b* Xout Yout Zout 380.0 0.219 0.006 1.035 5.693 213.225 -159.209 0.219 0.006 1.035 400.0 0.218 0.006 1.035 5.458 213.641 -159.613 0.218 0.006 1.035 420.0 0.215 0.006 1.035 5.788 210.898 -159.044 0.215 0.006 1.035 440.0 0.206 0.014 1.035 11.739 180.892 -148.783 0.206 0.014 1.035 460.0 0.180 0.037 1.035 22.719 120.399 -129.852 0.180 0.037 1.035 480.0 0.122 0.177 1.035 49.122 -28.666 -84.331 0.122 0.177 1.035 500.0 0.014 0.950 0.800 98.034 -367.607 16.152 0.014 0.950 0.800 520.0 0.085 0.950 0.105 98.034 -268.234 104.988 0.085 0.950 0.105 540.0 0.289 0.950 0.020 98.034 -155.242 143.601 0.289 0.950 0.020 560.0 0.568 0.950 0.004 98.034 -70.482 163.803 0.568 0.950 0.004 580.0 0.903 0.857 0.002 94.199 16.530 160.144 0.903 0.857 0.002 600.0 0.903 0.536 0.001 78.255 85.254 133.892 0.903 0.536 0.001 620.0 0.903 0.403 0.000 69.653 122.329 119.718 0.903 0.403 0.000 640.0 0.903 0.353 0.000 65.964 138.230 113.552 0.903 0.353 0.000 660.0 0.903 0.334 0.000 64.482 144.620 111.175 0.903 0.334 0.000 680.0 0.903 0.328 0.000 64.018 146.617 110.376 0.903 0.328 0.000 700.0 0.903 0.326 0.000 63.841 147.382 110.071 0.903 0.326 -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 1.000 1.000 1.000 1.000 0.000 0.000 1.000 1.000 1.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_CAP converts L*u*v* to XYZ colors. XYZ_CAP_TO_LUV converts XYZ to L*u*v* colors; Illuminant XYZ color coordinates: .950500 1.00000 1.08910 Illuminant u'v'w' color coordinates: .197837 .468316 .333847 NM Xin Yin Zin L* u* v* Xout Yout Zout 380.0 0.219 0.006 1.035 5.693 4.364 -33.429 0.219 0.006 1.035 400.0 0.218 0.006 1.035 5.458 4.106 -32.099 0.218 0.006 1.035 420.0 0.215 0.006 1.035 5.788 4.091 -33.968 0.215 0.006 1.035 440.0 0.206 0.014 1.035 11.739 5.624 -66.128 0.206 0.014 1.035 460.0 0.180 0.037 1.035 22.719 -2.988 -112.589 0.180 0.037 1.035 480.0 0.122 0.177 1.035 49.122 -73.451 -126.111 0.122 0.177 1.035 500.0 0.014 0.950 0.800 98.034 -247.705 57.031 0.014 0.950 0.800 520.0 0.085 0.950 0.105 98.034 -222.671 147.007 0.085 0.950 0.105 540.0 0.289 0.950 0.020 98.034 -151.165 149.492 0.289 0.950 0.020 560.0 0.568 0.950 0.004 98.034 -57.013 137.991 0.568 0.950 0.004 580.0 0.903 0.857 0.002 94.199 78.992 112.815 0.903 0.857 0.002 600.0 0.903 0.536 0.001 78.255 209.197 72.248 0.903 0.536 0.001 620.0 0.903 0.403 0.000 69.653 291.949 48.514 0.903 0.403 0.000 640.0 0.903 0.353 0.000 65.964 330.321 37.896 0.903 0.353 0.000 660.0 0.903 0.334 0.000 64.482 346.237 33.574 0.903 0.334 -0.000 680.0 0.903 0.328 0.000 64.018 351.254 32.207 0.903 0.328 0.000 700.0 0.903 0.326 0.000 63.841 353.182 31.683 0.903 0.326 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 .670000 .330000 G primary .210000 .710000 B primary .140000 0.800000E-01 Reference white: .310100 .316200 R luminance coefficient .298939 G luminance coefficient .586625 B luminance coefficient .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.824 0.706 0.549 YellowGree 0.604 0.804 0.196 Maroon 0.690 0.188 0.376 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.218 0.956 0.830 Turquoise 0.251 0.878 0.816 0.562 0.415 0.066 Goldenrod5 0.545 0.412 0.078 0.258 0.110 0.044 Gray014 0.141 0.141 0.141 0.634 0.062 0.450 Maroon5 0.545 0.110 0.384 0.401 0.755 0.797 Cadet_Blue 0.478 0.773 0.804 0.002 0.898 0.351 Spring_Gre 0.000 0.804 0.400 0.095 0.014 0.859 Blue3 0.000 0.000 0.804 0.841 0.123 0.008 Orange_Red 0.804 0.216 0.000 0.260 0.912 0.114 Lime_Green 0.196 0.804 0.196 0.352 0.823 0.267 Lime_Green 0.196 0.804 0.196 TEST131 NM_TO_XYZ_CAP converts pure light wavelengths to XYZ. XYZ_CAP_TO_LUV converts XYZ to LUV. (Then slide from red to blue along "nonpure" purple...) NM X Y Z L u v 380.0 0.0014 0.0000 0.0065 0.0000 0.0000 0.0000 385.0 0.0022 0.0001 0.0105 0.0903 0.0613 -0.5199 390.0 0.0042 0.0001 0.0201 0.0903 0.0666 -0.5339 395.0 0.0076 0.0002 0.0362 0.1807 0.1343 -1.0644 400.0 0.0143 0.0004 0.0679 0.3613 0.2702 -2.1243 405.0 0.0232 0.0006 0.1102 0.5420 0.4083 -3.1948 410.0 0.0435 0.0012 0.2074 1.0840 0.7984 -6.3767 415.0 0.0776 0.0022 0.3713 1.9873 1.4378 -11.6809 420.0 0.1344 0.0040 0.6456 3.6132 2.5560 -21.2041 425.0 0.2148 0.0073 1.0391 6.5941 4.4417 -38.5091 430.0 0.2839 0.0116 1.3856 10.2589 6.4344 -59.4404 435.0 0.3285 0.0168 1.6230 13.7094 7.7145 -78.5196 440.0 0.3483 0.0230 1.7471 16.9889 8.1543 -95.7265 445.0 0.3481 0.0298 1.7826 19.9636 7.4824 -110.2096 450.0 0.3362 0.0380 1.7721 22.9989 5.4659 -123.5870 455.0 0.3187 0.0480 1.7441 26.1572 1.8524 -135.8227 460.0 0.2908 0.0600 1.6692 29.4125 -3.8909 -145.7551 465.0 0.2511 0.0739 1.5281 32.6788 -12.2593 -151.4155 470.0 0.1954 0.0910 1.2876 36.1761 -25.2620 -149.2219 475.0 0.1421 0.1126 1.0419 40.0150 -43.2629 -137.2635 480.0 0.0956 0.1390 0.8130 44.0892 -65.9475 -113.2065 485.0 0.0580 0.1693 0.6162 48.1717 -91.2150 -78.6617 490.0 0.0320 0.2080 0.4652 52.7299 -116.3211 -38.8467 495.0 0.0147 0.2586 0.3533 57.9039 -139.9870 1.1474 500.0 0.0049 0.3230 0.2720 63.5901 -160.6867 36.9965 505.0 0.0024 0.4073 0.2123 69.9863 -178.7027 68.0978 510.0 0.0093 0.5030 0.1582 76.2530 -191.5212 94.6903 515.0 0.0291 0.6082 0.1117 82.2819 -198.4958 116.2201 520.0 0.0633 0.7100 0.0782 87.4850 -198.6982 131.1970 525.0 0.1096 0.7932 0.0573 91.3789 -192.2569 139.9573 530.0 0.1655 0.8620 0.0422 94.3978 -181.3388 145.3328 535.0 0.2257 0.9149 0.0298 96.6114 -167.7056 148.4745 540.0 0.2904 0.9540 0.0203 98.1933 -151.4053 149.7447 545.0 0.3597 0.9803 0.0134 99.2332 -132.3320 149.3840 550.0 0.4334 0.9950 0.0087 99.8063 -110.4840 147.6062 555.0 0.5121 1.0000 0.0057 100.0000 -85.7104 144.6088 560.0 0.5945 0.9950 0.0039 99.8063 -58.0315 140.4726 565.0 0.6784 0.9786 0.0027 99.1666 -27.3741 135.2043 570.0 0.7621 0.9520 0.0021 98.1135 6.0401 128.8830 575.0 0.8425 0.9154 0.0018 96.6320 41.8553 121.5872 580.0 0.9163 0.8700 0.0017 94.7383 79.4362 113.4483 585.0 0.9786 0.8163 0.0014 92.4113 117.8473 104.6417 590.0 1.0263 0.7570 0.0011 89.7199 155.8707 95.4115 595.0 1.0567 0.6949 0.0010 86.7461 191.9887 86.0599 600.0 1.0622 0.6310 0.0008 83.4950 223.2442 77.0885 605.0 1.0456 0.5668 0.0006 79.9993 249.7410 68.5092 610.0 1.0026 0.5030 0.0003 76.2530 268.9343 60.7172 615.0 0.9384 0.4412 0.0002 72.3086 280.9392 53.7036 620.0 0.8544 0.3810 0.0002 68.0943 285.3481 47.4498 625.0 0.7514 0.3210 0.0001 63.4254 282.0617 41.7733 630.0 0.6424 0.2650 0.0000 58.5086 272.8060 36.6681 635.0 0.5419 0.2170 0.0000 53.7072 260.4609 32.1526 640.0 0.4479 0.1750 0.0000 48.8840 244.7881 28.1074 645.0 0.3608 0.1382 0.0000 43.9737 225.8876 24.4308 650.0 0.2835 0.1070 0.0000 39.0705 204.5072 21.1358 655.0 0.2187 0.0816 0.0000 34.3139 182.2354 18.1687 660.0 0.1649 0.0610 0.0000 29.6634 159.2472 15.4499 665.0 0.1212 0.0466 0.0000 25.7433 131.6021 14.3981 670.0 0.0874 0.0320 0.0000 20.8277 113.2607 10.6307 675.0 0.0636 0.0232 0.0000 17.0842 93.3327 8.6556 680.0 0.0468 0.0170 0.0000 13.8269 75.9334 6.9459 685.0 0.0329 0.0119 0.0000 10.4834 57.8770 5.2206 690.0 0.0227 0.0082 0.0000 7.4071 40.9588 3.6788 695.0 0.0158 0.0057 0.0000 5.1488 28.5176 2.5503 700.0 0.0114 0.0041 0.0000 3.7035 20.5909 1.8227 705.0 0.0081 0.0029 0.0000 2.6196 14.6458 1.2770 710.0 0.0058 0.0021 0.0000 1.8969 10.4595 0.9466 715.0 0.0041 0.0015 0.0000 1.3550 7.3752 0.6905 720.0 0.0029 0.0010 0.0000 0.9033 5.2867 0.4049 725.0 0.0020 0.0007 0.0000 0.6323 3.6346 0.2933 730.0 0.0014 0.0005 0.0000 0.4517 2.5328 0.2190 735.0 0.0010 0.0004 0.0000 0.3613 1.7548 0.2159 740.0 0.0007 0.0002 0.0000 0.1807 1.3127 0.0427 745.0 0.0005 0.0002 0.0000 0.1807 0.8774 0.1080 750.0 0.0003 0.0001 0.0000 0.0903 0.5505 0.0372 755.0 0.0002 0.0001 0.0000 0.0903 0.3203 0.0717 760.0 0.0002 0.0001 0.0000 0.0903 0.3203 0.0717 765.0 0.0001 0.0000 0.0000 0.0000 0.0000 0.0000 770.0 0.0001 0.0000 0.0000 0.0000 0.0000 0.0000 775.0 0.0001 0.0000 0.0000 0.0000 0.0000 0.0000 780.0 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0000 0.0003 0.0000 0.0000 0.0000 0.0001 0.0000 0.0007 0.0000 0.0000 0.0000 0.0002 0.0000 0.0010 0.0000 0.0000 0.0000 0.0003 0.0000 0.0013 0.0000 0.0000 0.0000 0.0003 0.0000 0.0016 0.0000 0.0000 0.0000 0.0004 0.0000 0.0020 0.0000 0.0000 0.0000 0.0005 0.0000 0.0023 0.0000 0.0000 0.0000 0.0006 0.0000 0.0026 0.0000 0.0000 0.0000 0.0006 0.0000 0.0029 0.0000 0.0000 0.0000 0.0007 0.0000 0.0033 0.0000 0.0000 0.0000 0.0008 0.0000 0.0036 0.0000 0.0000 0.0000 0.0008 0.0000 0.0039 0.0000 0.0000 0.0000 0.0009 0.0000 0.0042 0.0000 0.0000 0.0000 0.0010 0.0000 0.0046 0.0000 0.0000 0.0000 0.0010 0.0000 0.0049 0.0000 0.0000 0.0000 0.0011 0.0000 0.0052 0.0000 0.0000 0.0000 0.0012 0.0000 0.0055 0.0000 0.0000 0.0000 0.0013 0.0000 0.0059 0.0000 0.0000 0.0000 0.0013 0.0000 0.0062 0.0000 0.0000 0.0000 0.0014 0.0000 0.0065 0.0000 0.0000 0.0000 TEST13 RGB_NAMED_UNIFORM picks a random named color; R G B Name 0.000 0.604 0.804 Deep_Sky_Blue3 0.251 0.878 0.816 Turquoise 0.282 0.463 1.000 Royal_Blue2 0.933 0.867 0.510 Light_Goldenrod 0.749 0.749 0.749 Gray075 0.933 0.773 0.569 Burlywood3 1.000 0.757 0.145 Goldenrod2 1.000 0.973 0.863 Cornsilk 0.000 0.000 1.000 Blue 0.933 0.000 0.933 Magenta2 TEST135 NCS_TO_RGB converts NCS to RGB colors. RGB_TO_NCS converts RGB to NCS colors; WARNING: These routines are NOT worked out yet! Rin Gin Bin C1 C2 N C S W Rout Gout Bout 0.900 0.000 0.000 R 0 90 10 0 0.900 0.000 0.000 0.000 0.800 0.000 G 0 80 20 0 0.000 0.800 0.000 0.000 0.000 0.700 B 0 70 30 0 0.000 0.000 0.700 0.000 0.600 0.600 G B 50 60 40 0 0.000 0.600 0.600 0.500 0.000 0.500 B R 50 50 50 0 0.500 0.000 0.500 0.400 0.400 0.000 Y 0 40 60 0 0.400 0.400 0.000 0.300 0.300 0.300 N 0 0 70 30 0.300 0.300 0.300 0.000 0.000 0.000 B 0 0 100 0 0.000 0.000 0.000 1.000 1.000 1.000 W 0 0 0 100 1.000 1.000 1.000 0.100 0.300 0.500 G B 66 40 50 10 0.100 0.306 0.500 0.300 0.500 0.300 G 0 20 50 30 0.300 0.500 0.300 TEST14 NM_TO_XYZ converts wavelengths to xyz colors; XYY_TO_XYZ_CAP converts xyY to XYZ colors; XYZ_CAP_TO_XYY converts XYZ to xyY colors. (Assume a luminosity of YCAP = 1.00000 NM xin yin Yin X Y Z xout yout Yout 380.000 0.174 0.005 1.000 34.820 1.000 164.180 0.174 0.005 1.000 400.000 0.173 0.005 1.000 36.104 1.000 171.229 0.173 0.005 1.000 420.000 0.171 0.005 1.000 33.608 1.000 161.471 0.171 0.005 1.000 440.000 0.164 0.011 1.000 15.083 1.000 75.661 0.164 0.011 1.000 460.000 0.144 0.030 1.000 4.848 1.000 27.822 0.144 0.030 1.000 480.000 0.091 0.133 1.000 0.688 1.000 5.848 0.091 0.133 1.000 500.000 0.008 0.538 1.000 0.015 1.000 0.842 0.008 0.538 1.000 520.000 0.074 0.834 1.000 0.089 1.000 0.110 0.074 0.834 1.000 540.000 0.230 0.754 1.000 0.304 1.000 0.021 0.230 0.754 1.000 560.000 0.373 0.624 1.000 0.597 1.000 0.004 0.373 0.624 1.000 580.000 0.512 0.487 1.000 1.053 1.000 0.002 0.512 0.487 1.000 600.000 0.627 0.373 1.000 1.683 1.000 0.001 0.627 0.373 1.000 620.000 0.692 0.308 1.000 2.243 1.000 0.001 0.692 0.308 1.000 640.000 0.719 0.281 1.000 2.560 1.000 0.000 0.719 0.281 1.000 660.000 0.730 0.270 1.000 2.704 1.000 0.000 0.730 0.270 1.000 680.000 0.733 0.267 1.000 2.751 1.000 0.000 0.733 0.267 1.000 700.000 0.735 0.265 1.000 2.769 1.000 0.000 0.735 0.265 1.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 1.000 1.000 1.000 1.000 1.000 1.000 1.000 1.000 1.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 1.000 1.000 1.000 1.000 0.000 0.000 1.000 1.000 1.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 1.000 1.000 1.000 1.000 0.000 0.000 1.000 1.000 1.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 TEST185 RGB_TO_YPBPR converts RGB to YPbPr colors; YPBPR_TO_RGB converts YPbPr to RGB colors. Rin Gin Bin Y Pb Pr Rout Gout Bout 0.900 0.000 0.000 0.191 -0.105 0.450 0.900 -0.000 -0.000 0.000 0.800 0.000 0.561 -0.307 -0.356 0.000 0.800 0.000 0.000 0.000 0.700 0.061 0.350 -0.038 -0.000 0.000 0.700 0.000 0.600 0.600 0.473 0.070 -0.300 0.000 0.600 0.600 0.500 0.000 0.500 0.149 0.192 0.223 0.500 0.000 0.500 0.400 0.400 0.000 0.365 -0.200 0.022 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 1.000 1.000 1.000 1.000 0.000 -0.000 1.000 1.000 1.000 0.100 0.300 0.500 0.275 0.123 -0.111 0.100 0.300 0.500 0.300 0.500 0.300 0.440 -0.077 -0.089 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 1.000 1.000 1.000 1.000 0.000 0.000 1.000 1.000 1.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_CAP: RGB709 => CIE XYZ colors; XYZ_CAP_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 1.000 1.000 1.000 0.950 1.000 1.089 1.000 1.000 1.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_CAP converts CIE RGB to XYZ colors; XYZ_CAP_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 1.000 1.000 1.000 1.000 0.999 1.000 1.001 0.999 1.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_CAP converts sRGB to XYZ colors; XYZ_CAP_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 1.000 0.999 1.000 255 249 244 0.914 0.955 0.992 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 255 249 244 0.914 0.955 0.992 255 249 244 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.80902E-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.9426 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.6387 0.3561 0.0052 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.9245 1200.0000 0.6249 0.3676 0.0075 169.9946 100.0000 2.0403 1220.0000 0.6222 0.3694 0.0083 168.4352 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.6063 0.3804 0.0132 159.3938 100.0000 3.4805 1360.0000 0.6037 0.3822 0.0141 157.9374 100.0000 3.6783 1380.0000 0.6010 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_CAP converts u'v'Y to XYZ colors. XYZ_CAP_TO_UVWPRIME converts XYZ to u'v'w' colors; Illuminant XYZ color coordinates: .950500 1.00000 1.08910 Xin Yin Zin u' v' w' Xout Yout Zout 0.219 0.006 1.035 0.257 0.017 0.727 0.219 0.006 1.035 0.218 0.006 1.035 0.256 0.016 0.728 0.218 0.006 1.035 0.215 0.006 1.035 0.252 0.017 0.731 0.215 0.006 1.035 0.206 0.014 1.035 0.235 0.035 0.730 0.206 0.014 1.035 0.180 0.037 1.035 0.188 0.087 0.725 0.180 0.037 1.035 0.122 0.177 1.035 0.083 0.271 0.646 0.122 0.177 1.035 0.014 0.950 0.800 0.003 0.513 0.483 0.014 0.950 0.800 0.085 0.950 0.105 0.023 0.584 0.393 0.085 0.950 0.105 0.289 0.950 0.020 0.079 0.586 0.335 0.289 0.950 0.020 0.568 0.950 0.004 0.153 0.577 0.270 0.568 0.950 0.004 0.903 0.857 0.002 0.262 0.560 0.177 0.903 0.857 0.002 0.903 0.536 0.001 0.403 0.539 0.057 0.903 0.536 0.001 0.903 0.403 0.000 0.520 0.522 -0.042 0.903 0.403 0.000 0.903 0.353 0.000 0.583 0.513 -0.096 0.903 0.353 0.000 0.903 0.334 0.000 0.611 0.508 -0.119 0.903 0.334 -0.000 0.903 0.328 0.000 0.620 0.507 -0.127 0.903 0.328 0.000 0.903 0.326 0.000 0.623 0.506 -0.130 0.903 0.326 -0.000 TEST26 XYZ_CAP_TO_YCC converts XYZ to PhotoYCC colors; YCC_TO_XYZ_CAP converts PhotoYCC to XYZ colors. Illuminant XYZ color coordinates: .950500 1.00000 1.08910 NM Xin Yin Zin Y C1 C2 Xout Yout Zout 380.0 0.219 0.006 1.035 0.727 161.094 137.591 0.219 0.006 1.035 400.0 0.218 0.006 1.035 0.721 161.097 137.572 0.218 0.006 1.035 420.0 0.215 0.006 1.035 0.714 161.100 137.519 0.215 0.006 1.035 440.0 0.206 0.014 1.035 0.720 161.086 137.266 0.206 0.014 1.035 460.0 0.180 0.037 1.035 0.753 161.035 136.508 0.180 0.037 1.035 480.0 0.122 0.177 1.035 1.265 160.562 133.656 0.122 0.177 1.035 500.0 0.014 0.950 0.800 4.842 156.307 122.294 0.014 0.950 0.800 520.0 0.085 0.950 0.105 5.086 152.492 125.650 0.085 0.950 0.105 540.0 0.289 0.950 0.020 5.769 151.683 129.442 0.289 0.950 0.020 560.0 0.568 0.950 0.004 6.695 151.105 134.309 0.568 0.950 0.004 580.0 0.903 0.857 0.002 7.342 150.887 141.336 0.903 0.857 0.002 600.0 0.903 0.536 0.001 5.701 152.215 145.531 0.903 0.536 0.001 620.0 0.903 0.403 0.000 4.971 152.797 147.202 0.903 0.403 0.000 640.0 0.903 0.353 0.000 4.694 153.017 147.814 0.903 0.353 0.000 660.0 0.903 0.334 0.000 4.588 153.100 148.044 0.903 0.334 0.000 680.0 0.903 0.328 0.000 4.556 153.126 148.114 0.903 0.328 0.000 700.0 0.903 0.326 0.000 4.544 153.135 148.140 0.903 0.326 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 1.000 0.000 0.000 1.000 0.000 0.000 1.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. 18 May 2007 9:21:23.732 AM