Initial commit: ArgyllCMS v3.5.0 and multichannel profiling research

This commit is contained in:
2026-10-31 14:27:14 +03:30
commit 66f664fc82
1828 changed files with 1123613 additions and 0 deletions

103
Argyll_V3.5.0/profile/3dap5k.sp Executable file
View File

@@ -0,0 +1,103 @@
SPECT
DESCRIPTOR "Argyll Spectral Power information for 3DAP viewing booth at D50 - Foam reflector, extendedto 355nm by estimate of UV"
ORIGINATOR "Argyll CMS"
CREATED "Tue Apr 9 17:15:32 2002"
KEYWORD "SPECTRAL_BANDS"
SPECTRAL_BANDS "80"
KEYWORD "SPECTRAL_START_NM"
SPECTRAL_START_NM "355.000000"
KEYWORD "SPECTRAL_END_NM"
SPECTRAL_END_NM "750.000000"
KEYWORD "SPECTRAL_NORM"
SPECTRAL_NORM "3945.000"
KEYWORD "SPEC_355"
KEYWORD "SPEC_360"
KEYWORD "SPEC_365"
KEYWORD "SPEC_370"
KEYWORD "SPEC_375"
KEYWORD "SPEC_380"
KEYWORD "SPEC_385"
KEYWORD "SPEC_390"
KEYWORD "SPEC_395"
KEYWORD "SPEC_400"
KEYWORD "SPEC_405"
KEYWORD "SPEC_410"
KEYWORD "SPEC_415"
KEYWORD "SPEC_420"
KEYWORD "SPEC_425"
KEYWORD "SPEC_430"
KEYWORD "SPEC_435"
KEYWORD "SPEC_440"
KEYWORD "SPEC_445"
KEYWORD "SPEC_450"
KEYWORD "SPEC_455"
KEYWORD "SPEC_460"
KEYWORD "SPEC_465"
KEYWORD "SPEC_470"
KEYWORD "SPEC_475"
KEYWORD "SPEC_480"
KEYWORD "SPEC_485"
KEYWORD "SPEC_490"
KEYWORD "SPEC_495"
KEYWORD "SPEC_500"
KEYWORD "SPEC_505"
KEYWORD "SPEC_510"
KEYWORD "SPEC_515"
KEYWORD "SPEC_520"
KEYWORD "SPEC_525"
KEYWORD "SPEC_530"
KEYWORD "SPEC_535"
KEYWORD "SPEC_540"
KEYWORD "SPEC_545"
KEYWORD "SPEC_550"
KEYWORD "SPEC_555"
KEYWORD "SPEC_560"
KEYWORD "SPEC_565"
KEYWORD "SPEC_570"
KEYWORD "SPEC_575"
KEYWORD "SPEC_580"
KEYWORD "SPEC_585"
KEYWORD "SPEC_590"
KEYWORD "SPEC_595"
KEYWORD "SPEC_600"
KEYWORD "SPEC_605"
KEYWORD "SPEC_610"
KEYWORD "SPEC_615"
KEYWORD "SPEC_620"
KEYWORD "SPEC_625"
KEYWORD "SPEC_630"
KEYWORD "SPEC_635"
KEYWORD "SPEC_640"
KEYWORD "SPEC_645"
KEYWORD "SPEC_650"
KEYWORD "SPEC_655"
KEYWORD "SPEC_660"
KEYWORD "SPEC_665"
KEYWORD "SPEC_670"
KEYWORD "SPEC_675"
KEYWORD "SPEC_680"
KEYWORD "SPEC_685"
KEYWORD "SPEC_690"
KEYWORD "SPEC_695"
KEYWORD "SPEC_700"
KEYWORD "SPEC_705"
KEYWORD "SPEC_710"
KEYWORD "SPEC_715"
KEYWORD "SPEC_720"
KEYWORD "SPEC_725"
KEYWORD "SPEC_730"
KEYWORD "SPEC_735"
KEYWORD "SPEC_740"
KEYWORD "SPEC_745"
KEYWORD "SPEC_750"
NUMBER_OF_FIELDS 80
BEGIN_DATA_FORMAT
SPEC_355 SPEC_360 SPEC_365 SPEC_370 SPEC_375 SPEC_380 SPEC_385 SPEC_390 SPEC_395 SPEC_400 SPEC_405 SPEC_410 SPEC_415 SPEC_420 SPEC_425 SPEC_430 SPEC_435 SPEC_440 SPEC_445 SPEC_450 SPEC_455 SPEC_460 SPEC_465 SPEC_470 SPEC_475 SPEC_480 SPEC_485 SPEC_490 SPEC_495 SPEC_500 SPEC_505 SPEC_510 SPEC_515 SPEC_520 SPEC_525 SPEC_530 SPEC_535 SPEC_540 SPEC_545 SPEC_550 SPEC_555 SPEC_560 SPEC_565 SPEC_570 SPEC_575 SPEC_580 SPEC_585 SPEC_590 SPEC_595 SPEC_600 SPEC_605 SPEC_610 SPEC_615 SPEC_620 SPEC_625 SPEC_630 SPEC_635 SPEC_640 SPEC_645 SPEC_650 SPEC_655 SPEC_660 SPEC_665 SPEC_670 SPEC_675 SPEC_680 SPEC_685 SPEC_690 SPEC_695 SPEC_700 SPEC_705 SPEC_710 SPEC_715 SPEC_720 SPEC_725 SPEC_730 SPEC_735 SPEC_740 SPEC_745 SPEC_750
END_DATA_FORMAT
NUMBER_OF_SETS 1
BEGIN_DATA
0.0 44.97 103.94 164.9 200.88 269.8301111 310.0680556 414.1321667 586.6544444 1066.693611 1133.624333 1031.633944 972.29 1043.722333 1360.529389 2417.268111 3132.216667 2818.478056 2192.068111 1957.285667 2012.437833 2086.816 2149.097611 2205.945556 2264.570111 2339.1085 2399.303778 2451.353278 2494.1235 2516.631 2534.502167 2543.351444 2565.551778 2603.578944 2647.086278 2702.404611 3045.447667 3626.533111 3944.484778 3524.838667 3082.760333 2947.282889 2987.046333 3115.224611 3264.204778 3254.242611 3106.393611 3101.613167 3069.166278 3050.570056 3084.844278 3103.531722 3083.711278 3053.589722 3031.742722 2965.037333 2901.627444 2814.946667 2731.505611 2628.440667 2523.334611 2418.187556 2309.318778 2191.377056 2074.207278 1952.003389 1830.847556 1709.364111 1586.339889 1466.436333 1359.227167 1251.518111 1158.713556 1056.849167 982.2127778 900.2322778 833.9932222 763.601 692.7145556 643.0055556
END_DATA

118
Argyll_V3.5.0/profile/CIE_C.sp Executable file
View File

@@ -0,0 +1,118 @@
SPECT
DESCRIPTOR "Argyll CIE illuminant C spectral power"
ORIGINATOR "Argyll CMS"
CREATED "Thu Dec 02 23:05:57 2009"
KEYWORD "SPECTRAL_BANDS"
SPECTRAL_BANDS "93"
KEYWORD "SPECTRAL_START_NM"
SPECTRAL_START_NM "320.000000"
KEYWORD "SPECTRAL_END_NM"
SPECTRAL_END_NM "780.000000"
KEYWORD "SPECTRAL_NORM"
SPECTRAL_NORM "100.000000"
KEYWORD "SPEC_320"
KEYWORD "SPEC_325"
KEYWORD "SPEC_330"
KEYWORD "SPEC_335"
KEYWORD "SPEC_340"
KEYWORD "SPEC_345"
KEYWORD "SPEC_350"
KEYWORD "SPEC_355"
KEYWORD "SPEC_360"
KEYWORD "SPEC_365"
KEYWORD "SPEC_370"
KEYWORD "SPEC_375"
KEYWORD "SPEC_380"
KEYWORD "SPEC_385"
KEYWORD "SPEC_390"
KEYWORD "SPEC_395"
KEYWORD "SPEC_400"
KEYWORD "SPEC_405"
KEYWORD "SPEC_410"
KEYWORD "SPEC_415"
KEYWORD "SPEC_420"
KEYWORD "SPEC_425"
KEYWORD "SPEC_430"
KEYWORD "SPEC_435"
KEYWORD "SPEC_440"
KEYWORD "SPEC_445"
KEYWORD "SPEC_450"
KEYWORD "SPEC_455"
KEYWORD "SPEC_460"
KEYWORD "SPEC_465"
KEYWORD "SPEC_470"
KEYWORD "SPEC_475"
KEYWORD "SPEC_480"
KEYWORD "SPEC_485"
KEYWORD "SPEC_490"
KEYWORD "SPEC_495"
KEYWORD "SPEC_500"
KEYWORD "SPEC_505"
KEYWORD "SPEC_510"
KEYWORD "SPEC_515"
KEYWORD "SPEC_520"
KEYWORD "SPEC_525"
KEYWORD "SPEC_530"
KEYWORD "SPEC_535"
KEYWORD "SPEC_540"
KEYWORD "SPEC_545"
KEYWORD "SPEC_550"
KEYWORD "SPEC_555"
KEYWORD "SPEC_560"
KEYWORD "SPEC_565"
KEYWORD "SPEC_570"
KEYWORD "SPEC_575"
KEYWORD "SPEC_580"
KEYWORD "SPEC_585"
KEYWORD "SPEC_590"
KEYWORD "SPEC_595"
KEYWORD "SPEC_600"
KEYWORD "SPEC_605"
KEYWORD "SPEC_610"
KEYWORD "SPEC_615"
KEYWORD "SPEC_620"
KEYWORD "SPEC_625"
KEYWORD "SPEC_630"
KEYWORD "SPEC_635"
KEYWORD "SPEC_640"
KEYWORD "SPEC_645"
KEYWORD "SPEC_650"
KEYWORD "SPEC_655"
KEYWORD "SPEC_660"
KEYWORD "SPEC_665"
KEYWORD "SPEC_670"
KEYWORD "SPEC_675"
KEYWORD "SPEC_680"
KEYWORD "SPEC_685"
KEYWORD "SPEC_690"
KEYWORD "SPEC_695"
KEYWORD "SPEC_700"
KEYWORD "SPEC_705"
KEYWORD "SPEC_710"
KEYWORD "SPEC_715"
KEYWORD "SPEC_720"
KEYWORD "SPEC_725"
KEYWORD "SPEC_730"
KEYWORD "SPEC_735"
KEYWORD "SPEC_740"
KEYWORD "SPEC_745"
KEYWORD "SPEC_750"
KEYWORD "SPEC_755"
KEYWORD "SPEC_760"
KEYWORD "SPEC_765"
KEYWORD "SPEC_770"
KEYWORD "SPEC_775"
KEYWORD "SPEC_780"
NUMBER_OF_FIELDS 93
BEGIN_DATA_FORMAT
SPEC_320 SPEC_325 SPEC_330 SPEC_335 SPEC_340 SPEC_345 SPEC_350 SPEC_355 SPEC_360 SPEC_365 SPEC_370 SPEC_375 SPEC_380 SPEC_385 SPEC_390 SPEC_395 SPEC_400 SPEC_405 SPEC_410 SPEC_415 SPEC_420 SPEC_425 SPEC_430 SPEC_435 SPEC_440 SPEC_445 SPEC_450 SPEC_455 SPEC_460 SPEC_465 SPEC_470 SPEC_475 SPEC_480 SPEC_485 SPEC_490 SPEC_495 SPEC_500 SPEC_505 SPEC_510 SPEC_515 SPEC_520 SPEC_525 SPEC_530 SPEC_535 SPEC_540 SPEC_545 SPEC_550 SPEC_555 SPEC_560 SPEC_565 SPEC_570 SPEC_575 SPEC_580 SPEC_585 SPEC_590 SPEC_595 SPEC_600 SPEC_605 SPEC_610 SPEC_615 SPEC_620 SPEC_625 SPEC_630 SPEC_635 SPEC_640 SPEC_645 SPEC_650 SPEC_655 SPEC_660 SPEC_665 SPEC_670 SPEC_675 SPEC_680 SPEC_685 SPEC_690 SPEC_695 SPEC_700 SPEC_705 SPEC_710 SPEC_715 SPEC_720 SPEC_725 SPEC_730 SPEC_735 SPEC_740 SPEC_745 SPEC_750 SPEC_755 SPEC_760 SPEC_765 SPEC_770 SPEC_775 SPEC_780
END_DATA_FORMAT
NUMBER_OF_SETS 1
BEGIN_DATA
0.01 0.20 0.40 1.55 2.70 4.85 7.00 9.95 12.90 17.20 21.40 27.50 33.00 39.92 47.40 55.17 63.30 71.81 80.60 89.53 98.10 105.80 112.40 117.75 121.50 123.45 124.00 123.60 123.10 123.30 123.80 124.09 123.90 122.92 120.70 116.90 112.10 106.98 102.30 98.81 96.90 96.78 98.00 99.94 102.10 103.95 105.20 105.67 105.30 104.11 102.30 100.15 97.80 95.43 93.20 91.22 89.70 88.83 88.40 88.19 88.10 88.06 88.00 87.86 87.80 87.99 88.20 88.20 87.90 87.22 86.30 85.30 84.00 82.21 80.20 78.24 76.30 74.36 72.40 70.40 68.30 66.30 64.40 62.80 61.50 60.20 59.20 58.50 58.10 58.00 58.20 58.50 59.10
END_DATA

132
Argyll_V3.5.0/profile/D50_0.0.sp Executable file
View File

@@ -0,0 +1,132 @@
SPECT
DESCRIPTOR "Argyll D50 illimunant spectral power, 0% U.V."
ORIGINATOR "Argyll CMS"
CREATED "Fri Jul 06 17:49:57 2001"
KEYWORD "SPECTRAL_BANDS"
SPECTRAL_BANDS "107"
KEYWORD "SPECTRAL_START_NM"
SPECTRAL_START_NM "300.000000"
KEYWORD "SPECTRAL_END_NM"
SPECTRAL_END_NM "830.000000"
KEYWORD "SPECTRAL_NORM"
SPECTRAL_NORM "100.000000"
KEYWORD "SPEC_300"
KEYWORD "SPEC_305"
KEYWORD "SPEC_310"
KEYWORD "SPEC_315"
KEYWORD "SPEC_320"
KEYWORD "SPEC_325"
KEYWORD "SPEC_330"
KEYWORD "SPEC_335"
KEYWORD "SPEC_340"
KEYWORD "SPEC_345"
KEYWORD "SPEC_350"
KEYWORD "SPEC_355"
KEYWORD "SPEC_360"
KEYWORD "SPEC_365"
KEYWORD "SPEC_370"
KEYWORD "SPEC_375"
KEYWORD "SPEC_380"
KEYWORD "SPEC_385"
KEYWORD "SPEC_390"
KEYWORD "SPEC_395"
KEYWORD "SPEC_400"
KEYWORD "SPEC_405"
KEYWORD "SPEC_410"
KEYWORD "SPEC_415"
KEYWORD "SPEC_420"
KEYWORD "SPEC_425"
KEYWORD "SPEC_430"
KEYWORD "SPEC_435"
KEYWORD "SPEC_440"
KEYWORD "SPEC_445"
KEYWORD "SPEC_450"
KEYWORD "SPEC_455"
KEYWORD "SPEC_460"
KEYWORD "SPEC_465"
KEYWORD "SPEC_470"
KEYWORD "SPEC_475"
KEYWORD "SPEC_480"
KEYWORD "SPEC_485"
KEYWORD "SPEC_490"
KEYWORD "SPEC_495"
KEYWORD "SPEC_500"
KEYWORD "SPEC_505"
KEYWORD "SPEC_510"
KEYWORD "SPEC_515"
KEYWORD "SPEC_520"
KEYWORD "SPEC_525"
KEYWORD "SPEC_530"
KEYWORD "SPEC_535"
KEYWORD "SPEC_540"
KEYWORD "SPEC_545"
KEYWORD "SPEC_550"
KEYWORD "SPEC_555"
KEYWORD "SPEC_560"
KEYWORD "SPEC_565"
KEYWORD "SPEC_570"
KEYWORD "SPEC_575"
KEYWORD "SPEC_580"
KEYWORD "SPEC_585"
KEYWORD "SPEC_590"
KEYWORD "SPEC_595"
KEYWORD "SPEC_600"
KEYWORD "SPEC_605"
KEYWORD "SPEC_610"
KEYWORD "SPEC_615"
KEYWORD "SPEC_620"
KEYWORD "SPEC_625"
KEYWORD "SPEC_630"
KEYWORD "SPEC_635"
KEYWORD "SPEC_640"
KEYWORD "SPEC_645"
KEYWORD "SPEC_650"
KEYWORD "SPEC_655"
KEYWORD "SPEC_660"
KEYWORD "SPEC_665"
KEYWORD "SPEC_670"
KEYWORD "SPEC_675"
KEYWORD "SPEC_680"
KEYWORD "SPEC_685"
KEYWORD "SPEC_690"
KEYWORD "SPEC_695"
KEYWORD "SPEC_700"
KEYWORD "SPEC_705"
KEYWORD "SPEC_710"
KEYWORD "SPEC_715"
KEYWORD "SPEC_720"
KEYWORD "SPEC_725"
KEYWORD "SPEC_730"
KEYWORD "SPEC_735"
KEYWORD "SPEC_740"
KEYWORD "SPEC_745"
KEYWORD "SPEC_750"
KEYWORD "SPEC_755"
KEYWORD "SPEC_760"
KEYWORD "SPEC_765"
KEYWORD "SPEC_770"
KEYWORD "SPEC_775"
KEYWORD "SPEC_780"
KEYWORD "SPEC_785"
KEYWORD "SPEC_790"
KEYWORD "SPEC_795"
KEYWORD "SPEC_800"
KEYWORD "SPEC_805"
KEYWORD "SPEC_810"
KEYWORD "SPEC_815"
KEYWORD "SPEC_820"
KEYWORD "SPEC_825"
KEYWORD "SPEC_830"
NUMBER_OF_FIELDS 107
BEGIN_DATA_FORMAT
SPEC_300 SPEC_305 SPEC_310 SPEC_315 SPEC_320 SPEC_325 SPEC_330 SPEC_335 SPEC_340 SPEC_345 SPEC_350 SPEC_355 SPEC_360 SPEC_365 SPEC_370 SPEC_375 SPEC_380 SPEC_385 SPEC_390 SPEC_395 SPEC_400 SPEC_405 SPEC_410 SPEC_415 SPEC_420 SPEC_425 SPEC_430 SPEC_435 SPEC_440 SPEC_445 SPEC_450 SPEC_455 SPEC_460 SPEC_465 SPEC_470 SPEC_475 SPEC_480 SPEC_485 SPEC_490 SPEC_495 SPEC_500 SPEC_505 SPEC_510 SPEC_515 SPEC_520 SPEC_525 SPEC_530 SPEC_535 SPEC_540 SPEC_545 SPEC_550 SPEC_555 SPEC_560 SPEC_565 SPEC_570 SPEC_575 SPEC_580 SPEC_585 SPEC_590 SPEC_595 SPEC_600 SPEC_605 SPEC_610 SPEC_615 SPEC_620 SPEC_625 SPEC_630 SPEC_635 SPEC_640 SPEC_645 SPEC_650 SPEC_655 SPEC_660 SPEC_665 SPEC_670 SPEC_675 SPEC_680 SPEC_685 SPEC_690 SPEC_695 SPEC_700 SPEC_705 SPEC_710 SPEC_715 SPEC_720 SPEC_725 SPEC_730 SPEC_735 SPEC_740 SPEC_745 SPEC_750 SPEC_755 SPEC_760 SPEC_765 SPEC_770 SPEC_775 SPEC_780 SPEC_785 SPEC_790 SPEC_795 SPEC_800 SPEC_805 SPEC_810 SPEC_815 SPEC_820 SPEC_825 SPEC_830
END_DATA_FORMAT
NUMBER_OF_SETS 1
BEGIN_DATA
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 25.0 57.82 66.32 74.82 81.04 87.25 88.93 90.61 90.99 91.37 93.24 95.11 93.54 91.96 93.84 95.72 96.17 96.61 96.87 97.13 99.61 102.1 101.43 100.75 101.54 102.32 101.16 100.0 98.87 97.74 98.33 98.92 96.21 93.5 95.59 97.69 98.48 99.27 99.16 99.04 97.38 95.72 97.29 98.86 97.26 95.67 96.93 98.19 100.6 103.0 101.07 99.13 93.26 87.38 89.49 91.6 92.25 92.89 84.87 76.85 81.68 86.51 89.55 92.58 85.4 78.23 67.96 57.69 70.31 82.92 80.6 78.27 78.91 79.55 76.48 73.4 68.66 63.92 67.35 70.78 72.61 74.44
END_DATA

132
Argyll_V3.5.0/profile/D50_0.1.sp Executable file
View File

@@ -0,0 +1,132 @@
SPECT
DESCRIPTOR "Argyll D50 illimunant spectral power, 0% U.V."
ORIGINATOR "Argyll CMS"
CREATED "Fri Jul 06 17:49:57 2001"
KEYWORD "SPECTRAL_BANDS"
SPECTRAL_BANDS "107"
KEYWORD "SPECTRAL_START_NM"
SPECTRAL_START_NM "300.000000"
KEYWORD "SPECTRAL_END_NM"
SPECTRAL_END_NM "830.000000"
KEYWORD "SPECTRAL_NORM"
SPECTRAL_NORM "100.000000"
KEYWORD "SPEC_300"
KEYWORD "SPEC_305"
KEYWORD "SPEC_310"
KEYWORD "SPEC_315"
KEYWORD "SPEC_320"
KEYWORD "SPEC_325"
KEYWORD "SPEC_330"
KEYWORD "SPEC_335"
KEYWORD "SPEC_340"
KEYWORD "SPEC_345"
KEYWORD "SPEC_350"
KEYWORD "SPEC_355"
KEYWORD "SPEC_360"
KEYWORD "SPEC_365"
KEYWORD "SPEC_370"
KEYWORD "SPEC_375"
KEYWORD "SPEC_380"
KEYWORD "SPEC_385"
KEYWORD "SPEC_390"
KEYWORD "SPEC_395"
KEYWORD "SPEC_400"
KEYWORD "SPEC_405"
KEYWORD "SPEC_410"
KEYWORD "SPEC_415"
KEYWORD "SPEC_420"
KEYWORD "SPEC_425"
KEYWORD "SPEC_430"
KEYWORD "SPEC_435"
KEYWORD "SPEC_440"
KEYWORD "SPEC_445"
KEYWORD "SPEC_450"
KEYWORD "SPEC_455"
KEYWORD "SPEC_460"
KEYWORD "SPEC_465"
KEYWORD "SPEC_470"
KEYWORD "SPEC_475"
KEYWORD "SPEC_480"
KEYWORD "SPEC_485"
KEYWORD "SPEC_490"
KEYWORD "SPEC_495"
KEYWORD "SPEC_500"
KEYWORD "SPEC_505"
KEYWORD "SPEC_510"
KEYWORD "SPEC_515"
KEYWORD "SPEC_520"
KEYWORD "SPEC_525"
KEYWORD "SPEC_530"
KEYWORD "SPEC_535"
KEYWORD "SPEC_540"
KEYWORD "SPEC_545"
KEYWORD "SPEC_550"
KEYWORD "SPEC_555"
KEYWORD "SPEC_560"
KEYWORD "SPEC_565"
KEYWORD "SPEC_570"
KEYWORD "SPEC_575"
KEYWORD "SPEC_580"
KEYWORD "SPEC_585"
KEYWORD "SPEC_590"
KEYWORD "SPEC_595"
KEYWORD "SPEC_600"
KEYWORD "SPEC_605"
KEYWORD "SPEC_610"
KEYWORD "SPEC_615"
KEYWORD "SPEC_620"
KEYWORD "SPEC_625"
KEYWORD "SPEC_630"
KEYWORD "SPEC_635"
KEYWORD "SPEC_640"
KEYWORD "SPEC_645"
KEYWORD "SPEC_650"
KEYWORD "SPEC_655"
KEYWORD "SPEC_660"
KEYWORD "SPEC_665"
KEYWORD "SPEC_670"
KEYWORD "SPEC_675"
KEYWORD "SPEC_680"
KEYWORD "SPEC_685"
KEYWORD "SPEC_690"
KEYWORD "SPEC_695"
KEYWORD "SPEC_700"
KEYWORD "SPEC_705"
KEYWORD "SPEC_710"
KEYWORD "SPEC_715"
KEYWORD "SPEC_720"
KEYWORD "SPEC_725"
KEYWORD "SPEC_730"
KEYWORD "SPEC_735"
KEYWORD "SPEC_740"
KEYWORD "SPEC_745"
KEYWORD "SPEC_750"
KEYWORD "SPEC_755"
KEYWORD "SPEC_760"
KEYWORD "SPEC_765"
KEYWORD "SPEC_770"
KEYWORD "SPEC_775"
KEYWORD "SPEC_780"
KEYWORD "SPEC_785"
KEYWORD "SPEC_790"
KEYWORD "SPEC_795"
KEYWORD "SPEC_800"
KEYWORD "SPEC_805"
KEYWORD "SPEC_810"
KEYWORD "SPEC_815"
KEYWORD "SPEC_820"
KEYWORD "SPEC_825"
KEYWORD "SPEC_830"
NUMBER_OF_FIELDS 107
BEGIN_DATA_FORMAT
SPEC_300 SPEC_305 SPEC_310 SPEC_315 SPEC_320 SPEC_325 SPEC_330 SPEC_335 SPEC_340 SPEC_345 SPEC_350 SPEC_355 SPEC_360 SPEC_365 SPEC_370 SPEC_375 SPEC_380 SPEC_385 SPEC_390 SPEC_395 SPEC_400 SPEC_405 SPEC_410 SPEC_415 SPEC_420 SPEC_425 SPEC_430 SPEC_435 SPEC_440 SPEC_445 SPEC_450 SPEC_455 SPEC_460 SPEC_465 SPEC_470 SPEC_475 SPEC_480 SPEC_485 SPEC_490 SPEC_495 SPEC_500 SPEC_505 SPEC_510 SPEC_515 SPEC_520 SPEC_525 SPEC_530 SPEC_535 SPEC_540 SPEC_545 SPEC_550 SPEC_555 SPEC_560 SPEC_565 SPEC_570 SPEC_575 SPEC_580 SPEC_585 SPEC_590 SPEC_595 SPEC_600 SPEC_605 SPEC_610 SPEC_615 SPEC_620 SPEC_625 SPEC_630 SPEC_635 SPEC_640 SPEC_645 SPEC_650 SPEC_655 SPEC_660 SPEC_665 SPEC_670 SPEC_675 SPEC_680 SPEC_685 SPEC_690 SPEC_695 SPEC_700 SPEC_705 SPEC_710 SPEC_715 SPEC_720 SPEC_725 SPEC_730 SPEC_735 SPEC_740 SPEC_745 SPEC_750 SPEC_755 SPEC_760 SPEC_765 SPEC_770 SPEC_775 SPEC_780 SPEC_785 SPEC_790 SPEC_795 SPEC_800 SPEC_805 SPEC_810 SPEC_815 SPEC_820 SPEC_825 SPEC_830
END_DATA_FORMAT
NUMBER_OF_SETS 1
BEGIN_DATA
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.45 5.44 11.95 23.75 39.45 47.62 56.51 58.27 60.03 58.93 57.82 66.32 74.82 81.04 87.25 88.93 90.61 90.99 91.37 93.24 95.11 93.54 91.96 93.84 95.72 96.17 96.61 96.87 97.13 99.61 102.1 101.43 100.75 101.54 102.32 101.16 100.0 98.87 97.74 98.33 98.92 96.21 93.5 95.59 97.69 98.48 99.27 99.16 99.04 97.38 95.72 97.29 98.86 97.26 95.67 96.93 98.19 100.6 103.0 101.07 99.13 93.26 87.38 89.49 91.6 92.25 92.89 84.87 76.85 81.68 86.51 89.55 92.58 85.4 78.23 67.96 57.69 70.31 82.92 80.6 78.27 78.91 79.55 76.48 73.4 68.66 63.92 67.35 70.78 72.61 74.44
END_DATA

132
Argyll_V3.5.0/profile/D50_0.3.sp Executable file
View File

@@ -0,0 +1,132 @@
SPECT
DESCRIPTOR "Argyll D50 illimunant spectral power, 30% U.V."
ORIGINATOR "Argyll CMS"
CREATED "Fri Jul 06 17:49:57 2001"
KEYWORD "SPECTRAL_BANDS"
SPECTRAL_BANDS "107"
KEYWORD "SPECTRAL_START_NM"
SPECTRAL_START_NM "300.000000"
KEYWORD "SPECTRAL_END_NM"
SPECTRAL_END_NM "830.000000"
KEYWORD "SPECTRAL_NORM"
SPECTRAL_NORM "100.000000"
KEYWORD "SPEC_300"
KEYWORD "SPEC_305"
KEYWORD "SPEC_310"
KEYWORD "SPEC_315"
KEYWORD "SPEC_320"
KEYWORD "SPEC_325"
KEYWORD "SPEC_330"
KEYWORD "SPEC_335"
KEYWORD "SPEC_340"
KEYWORD "SPEC_345"
KEYWORD "SPEC_350"
KEYWORD "SPEC_355"
KEYWORD "SPEC_360"
KEYWORD "SPEC_365"
KEYWORD "SPEC_370"
KEYWORD "SPEC_375"
KEYWORD "SPEC_380"
KEYWORD "SPEC_385"
KEYWORD "SPEC_390"
KEYWORD "SPEC_395"
KEYWORD "SPEC_400"
KEYWORD "SPEC_405"
KEYWORD "SPEC_410"
KEYWORD "SPEC_415"
KEYWORD "SPEC_420"
KEYWORD "SPEC_425"
KEYWORD "SPEC_430"
KEYWORD "SPEC_435"
KEYWORD "SPEC_440"
KEYWORD "SPEC_445"
KEYWORD "SPEC_450"
KEYWORD "SPEC_455"
KEYWORD "SPEC_460"
KEYWORD "SPEC_465"
KEYWORD "SPEC_470"
KEYWORD "SPEC_475"
KEYWORD "SPEC_480"
KEYWORD "SPEC_485"
KEYWORD "SPEC_490"
KEYWORD "SPEC_495"
KEYWORD "SPEC_500"
KEYWORD "SPEC_505"
KEYWORD "SPEC_510"
KEYWORD "SPEC_515"
KEYWORD "SPEC_520"
KEYWORD "SPEC_525"
KEYWORD "SPEC_530"
KEYWORD "SPEC_535"
KEYWORD "SPEC_540"
KEYWORD "SPEC_545"
KEYWORD "SPEC_550"
KEYWORD "SPEC_555"
KEYWORD "SPEC_560"
KEYWORD "SPEC_565"
KEYWORD "SPEC_570"
KEYWORD "SPEC_575"
KEYWORD "SPEC_580"
KEYWORD "SPEC_585"
KEYWORD "SPEC_590"
KEYWORD "SPEC_595"
KEYWORD "SPEC_600"
KEYWORD "SPEC_605"
KEYWORD "SPEC_610"
KEYWORD "SPEC_615"
KEYWORD "SPEC_620"
KEYWORD "SPEC_625"
KEYWORD "SPEC_630"
KEYWORD "SPEC_635"
KEYWORD "SPEC_640"
KEYWORD "SPEC_645"
KEYWORD "SPEC_650"
KEYWORD "SPEC_655"
KEYWORD "SPEC_660"
KEYWORD "SPEC_665"
KEYWORD "SPEC_670"
KEYWORD "SPEC_675"
KEYWORD "SPEC_680"
KEYWORD "SPEC_685"
KEYWORD "SPEC_690"
KEYWORD "SPEC_695"
KEYWORD "SPEC_700"
KEYWORD "SPEC_705"
KEYWORD "SPEC_710"
KEYWORD "SPEC_715"
KEYWORD "SPEC_720"
KEYWORD "SPEC_725"
KEYWORD "SPEC_730"
KEYWORD "SPEC_735"
KEYWORD "SPEC_740"
KEYWORD "SPEC_745"
KEYWORD "SPEC_750"
KEYWORD "SPEC_755"
KEYWORD "SPEC_760"
KEYWORD "SPEC_765"
KEYWORD "SPEC_770"
KEYWORD "SPEC_775"
KEYWORD "SPEC_780"
KEYWORD "SPEC_785"
KEYWORD "SPEC_790"
KEYWORD "SPEC_795"
KEYWORD "SPEC_800"
KEYWORD "SPEC_805"
KEYWORD "SPEC_810"
KEYWORD "SPEC_815"
KEYWORD "SPEC_820"
KEYWORD "SPEC_825"
KEYWORD "SPEC_830"
NUMBER_OF_FIELDS 107
BEGIN_DATA_FORMAT
SPEC_300 SPEC_305 SPEC_310 SPEC_315 SPEC_320 SPEC_325 SPEC_330 SPEC_335 SPEC_340 SPEC_345 SPEC_350 SPEC_355 SPEC_360 SPEC_365 SPEC_370 SPEC_375 SPEC_380 SPEC_385 SPEC_390 SPEC_395 SPEC_400 SPEC_405 SPEC_410 SPEC_415 SPEC_420 SPEC_425 SPEC_430 SPEC_435 SPEC_440 SPEC_445 SPEC_450 SPEC_455 SPEC_460 SPEC_465 SPEC_470 SPEC_475 SPEC_480 SPEC_485 SPEC_490 SPEC_495 SPEC_500 SPEC_505 SPEC_510 SPEC_515 SPEC_520 SPEC_525 SPEC_530 SPEC_535 SPEC_540 SPEC_545 SPEC_550 SPEC_555 SPEC_560 SPEC_565 SPEC_570 SPEC_575 SPEC_580 SPEC_585 SPEC_590 SPEC_595 SPEC_600 SPEC_605 SPEC_610 SPEC_615 SPEC_620 SPEC_625 SPEC_630 SPEC_635 SPEC_640 SPEC_645 SPEC_650 SPEC_655 SPEC_660 SPEC_665 SPEC_670 SPEC_675 SPEC_680 SPEC_685 SPEC_690 SPEC_695 SPEC_700 SPEC_705 SPEC_710 SPEC_715 SPEC_720 SPEC_725 SPEC_730 SPEC_735 SPEC_740 SPEC_745 SPEC_750 SPEC_755 SPEC_760 SPEC_765 SPEC_770 SPEC_775 SPEC_780 SPEC_785 SPEC_790 SPEC_795 SPEC_800 SPEC_805 SPEC_810 SPEC_815 SPEC_820 SPEC_825 SPEC_830
END_DATA_FORMAT
NUMBER_OF_SETS 1
BEGIN_DATA
0.01 0.31 0.62 1.47 2.33 3.38 4.43 4.91 5.39 5.84 6.3 6.74 7.18 7.64 8.09 7.72 9.06 11.96 17.32 28.5 42.41 49.21 56.51 58.27 60.03 58.93 57.82 66.32 74.82 81.04 87.25 88.93 90.61 90.99 91.37 93.24 95.11 93.54 91.96 93.84 95.72 96.17 96.61 96.87 97.13 99.61 102.1 101.43 100.75 101.54 102.32 101.16 100.0 98.87 97.74 98.33 98.92 96.21 93.5 95.59 97.69 98.48 99.27 99.16 99.04 97.38 95.72 97.29 98.86 97.26 95.67 96.93 98.19 100.6 103.0 101.07 99.13 93.26 87.38 89.49 91.6 92.25 92.89 84.87 76.85 81.68 86.51 89.55 92.58 85.4 78.23 67.96 57.69 70.31 82.92 80.6 78.27 78.91 79.55 76.48 73.4 68.66 63.92 67.35 70.78 72.61 74.44
END_DATA

132
Argyll_V3.5.0/profile/D50_0.5.sp Executable file
View File

@@ -0,0 +1,132 @@
SPECT
DESCRIPTOR "Argyll D50 illimunant spectral power, 50% U.V."
ORIGINATOR "Argyll CMS"
CREATED "Fri Jul 06 17:49:57 2001"
KEYWORD "SPECTRAL_BANDS"
SPECTRAL_BANDS "107"
KEYWORD "SPECTRAL_START_NM"
SPECTRAL_START_NM "300.000000"
KEYWORD "SPECTRAL_END_NM"
SPECTRAL_END_NM "830.000000"
KEYWORD "SPECTRAL_NORM"
SPECTRAL_NORM "100.000000"
KEYWORD "SPEC_300"
KEYWORD "SPEC_305"
KEYWORD "SPEC_310"
KEYWORD "SPEC_315"
KEYWORD "SPEC_320"
KEYWORD "SPEC_325"
KEYWORD "SPEC_330"
KEYWORD "SPEC_335"
KEYWORD "SPEC_340"
KEYWORD "SPEC_345"
KEYWORD "SPEC_350"
KEYWORD "SPEC_355"
KEYWORD "SPEC_360"
KEYWORD "SPEC_365"
KEYWORD "SPEC_370"
KEYWORD "SPEC_375"
KEYWORD "SPEC_380"
KEYWORD "SPEC_385"
KEYWORD "SPEC_390"
KEYWORD "SPEC_395"
KEYWORD "SPEC_400"
KEYWORD "SPEC_405"
KEYWORD "SPEC_410"
KEYWORD "SPEC_415"
KEYWORD "SPEC_420"
KEYWORD "SPEC_425"
KEYWORD "SPEC_430"
KEYWORD "SPEC_435"
KEYWORD "SPEC_440"
KEYWORD "SPEC_445"
KEYWORD "SPEC_450"
KEYWORD "SPEC_455"
KEYWORD "SPEC_460"
KEYWORD "SPEC_465"
KEYWORD "SPEC_470"
KEYWORD "SPEC_475"
KEYWORD "SPEC_480"
KEYWORD "SPEC_485"
KEYWORD "SPEC_490"
KEYWORD "SPEC_495"
KEYWORD "SPEC_500"
KEYWORD "SPEC_505"
KEYWORD "SPEC_510"
KEYWORD "SPEC_515"
KEYWORD "SPEC_520"
KEYWORD "SPEC_525"
KEYWORD "SPEC_530"
KEYWORD "SPEC_535"
KEYWORD "SPEC_540"
KEYWORD "SPEC_545"
KEYWORD "SPEC_550"
KEYWORD "SPEC_555"
KEYWORD "SPEC_560"
KEYWORD "SPEC_565"
KEYWORD "SPEC_570"
KEYWORD "SPEC_575"
KEYWORD "SPEC_580"
KEYWORD "SPEC_585"
KEYWORD "SPEC_590"
KEYWORD "SPEC_595"
KEYWORD "SPEC_600"
KEYWORD "SPEC_605"
KEYWORD "SPEC_610"
KEYWORD "SPEC_615"
KEYWORD "SPEC_620"
KEYWORD "SPEC_625"
KEYWORD "SPEC_630"
KEYWORD "SPEC_635"
KEYWORD "SPEC_640"
KEYWORD "SPEC_645"
KEYWORD "SPEC_650"
KEYWORD "SPEC_655"
KEYWORD "SPEC_660"
KEYWORD "SPEC_665"
KEYWORD "SPEC_670"
KEYWORD "SPEC_675"
KEYWORD "SPEC_680"
KEYWORD "SPEC_685"
KEYWORD "SPEC_690"
KEYWORD "SPEC_695"
KEYWORD "SPEC_700"
KEYWORD "SPEC_705"
KEYWORD "SPEC_710"
KEYWORD "SPEC_715"
KEYWORD "SPEC_720"
KEYWORD "SPEC_725"
KEYWORD "SPEC_730"
KEYWORD "SPEC_735"
KEYWORD "SPEC_740"
KEYWORD "SPEC_745"
KEYWORD "SPEC_750"
KEYWORD "SPEC_755"
KEYWORD "SPEC_760"
KEYWORD "SPEC_765"
KEYWORD "SPEC_770"
KEYWORD "SPEC_775"
KEYWORD "SPEC_780"
KEYWORD "SPEC_785"
KEYWORD "SPEC_790"
KEYWORD "SPEC_795"
KEYWORD "SPEC_800"
KEYWORD "SPEC_805"
KEYWORD "SPEC_810"
KEYWORD "SPEC_815"
KEYWORD "SPEC_820"
KEYWORD "SPEC_825"
KEYWORD "SPEC_830"
NUMBER_OF_FIELDS 107
BEGIN_DATA_FORMAT
SPEC_300 SPEC_305 SPEC_310 SPEC_315 SPEC_320 SPEC_325 SPEC_330 SPEC_335 SPEC_340 SPEC_345 SPEC_350 SPEC_355 SPEC_360 SPEC_365 SPEC_370 SPEC_375 SPEC_380 SPEC_385 SPEC_390 SPEC_395 SPEC_400 SPEC_405 SPEC_410 SPEC_415 SPEC_420 SPEC_425 SPEC_430 SPEC_435 SPEC_440 SPEC_445 SPEC_450 SPEC_455 SPEC_460 SPEC_465 SPEC_470 SPEC_475 SPEC_480 SPEC_485 SPEC_490 SPEC_495 SPEC_500 SPEC_505 SPEC_510 SPEC_515 SPEC_520 SPEC_525 SPEC_530 SPEC_535 SPEC_540 SPEC_545 SPEC_550 SPEC_555 SPEC_560 SPEC_565 SPEC_570 SPEC_575 SPEC_580 SPEC_585 SPEC_590 SPEC_595 SPEC_600 SPEC_605 SPEC_610 SPEC_615 SPEC_620 SPEC_625 SPEC_630 SPEC_635 SPEC_640 SPEC_645 SPEC_650 SPEC_655 SPEC_660 SPEC_665 SPEC_670 SPEC_675 SPEC_680 SPEC_685 SPEC_690 SPEC_695 SPEC_700 SPEC_705 SPEC_710 SPEC_715 SPEC_720 SPEC_725 SPEC_730 SPEC_735 SPEC_740 SPEC_745 SPEC_750 SPEC_755 SPEC_760 SPEC_765 SPEC_770 SPEC_775 SPEC_780 SPEC_785 SPEC_790 SPEC_795 SPEC_800 SPEC_805 SPEC_810 SPEC_815 SPEC_820 SPEC_825 SPEC_830
END_DATA_FORMAT
NUMBER_OF_SETS 1
BEGIN_DATA
0.01 0.52 1.03 2.46 3.89 5.63 7.38 8.18 8.98 9.74 10.51 11.24 11.97 12.73 13.48 12.86 13.47 16.31 20.91 31.67 44.38 50.26 56.51 58.27 60.03 58.93 57.82 66.32 74.82 81.04 87.25 88.93 90.61 90.99 91.37 93.24 95.11 93.54 91.96 93.84 95.72 96.17 96.61 96.87 97.13 99.61 102.1 101.43 100.75 101.54 102.32 101.16 100.0 98.87 97.74 98.33 98.92 96.21 93.5 95.59 97.69 98.48 99.27 99.16 99.04 97.38 95.72 97.29 98.86 97.26 95.67 96.93 98.19 100.6 103.0 101.07 99.13 93.26 87.38 89.49 91.6 92.25 92.89 84.87 76.85 81.68 86.51 89.55 92.58 85.4 78.23 67.96 57.69 70.31 82.92 80.6 78.27 78.91 79.55 76.48 73.4 68.66 63.92 67.35 70.78 72.61 74.44
END_DATA

132
Argyll_V3.5.0/profile/D50_0.7.sp Executable file
View File

@@ -0,0 +1,132 @@
SPECT
DESCRIPTOR "Argyll D50 illimunant spectral power, 70% U.V."
ORIGINATOR "Argyll CMS"
CREATED "Fri Jul 06 17:49:57 2001"
KEYWORD "SPECTRAL_BANDS"
SPECTRAL_BANDS "107"
KEYWORD "SPECTRAL_START_NM"
SPECTRAL_START_NM "300.000000"
KEYWORD "SPECTRAL_END_NM"
SPECTRAL_END_NM "830.000000"
KEYWORD "SPECTRAL_NORM"
SPECTRAL_NORM "100.000000"
KEYWORD "SPEC_300"
KEYWORD "SPEC_305"
KEYWORD "SPEC_310"
KEYWORD "SPEC_315"
KEYWORD "SPEC_320"
KEYWORD "SPEC_325"
KEYWORD "SPEC_330"
KEYWORD "SPEC_335"
KEYWORD "SPEC_340"
KEYWORD "SPEC_345"
KEYWORD "SPEC_350"
KEYWORD "SPEC_355"
KEYWORD "SPEC_360"
KEYWORD "SPEC_365"
KEYWORD "SPEC_370"
KEYWORD "SPEC_375"
KEYWORD "SPEC_380"
KEYWORD "SPEC_385"
KEYWORD "SPEC_390"
KEYWORD "SPEC_395"
KEYWORD "SPEC_400"
KEYWORD "SPEC_405"
KEYWORD "SPEC_410"
KEYWORD "SPEC_415"
KEYWORD "SPEC_420"
KEYWORD "SPEC_425"
KEYWORD "SPEC_430"
KEYWORD "SPEC_435"
KEYWORD "SPEC_440"
KEYWORD "SPEC_445"
KEYWORD "SPEC_450"
KEYWORD "SPEC_455"
KEYWORD "SPEC_460"
KEYWORD "SPEC_465"
KEYWORD "SPEC_470"
KEYWORD "SPEC_475"
KEYWORD "SPEC_480"
KEYWORD "SPEC_485"
KEYWORD "SPEC_490"
KEYWORD "SPEC_495"
KEYWORD "SPEC_500"
KEYWORD "SPEC_505"
KEYWORD "SPEC_510"
KEYWORD "SPEC_515"
KEYWORD "SPEC_520"
KEYWORD "SPEC_525"
KEYWORD "SPEC_530"
KEYWORD "SPEC_535"
KEYWORD "SPEC_540"
KEYWORD "SPEC_545"
KEYWORD "SPEC_550"
KEYWORD "SPEC_555"
KEYWORD "SPEC_560"
KEYWORD "SPEC_565"
KEYWORD "SPEC_570"
KEYWORD "SPEC_575"
KEYWORD "SPEC_580"
KEYWORD "SPEC_585"
KEYWORD "SPEC_590"
KEYWORD "SPEC_595"
KEYWORD "SPEC_600"
KEYWORD "SPEC_605"
KEYWORD "SPEC_610"
KEYWORD "SPEC_615"
KEYWORD "SPEC_620"
KEYWORD "SPEC_625"
KEYWORD "SPEC_630"
KEYWORD "SPEC_635"
KEYWORD "SPEC_640"
KEYWORD "SPEC_645"
KEYWORD "SPEC_650"
KEYWORD "SPEC_655"
KEYWORD "SPEC_660"
KEYWORD "SPEC_665"
KEYWORD "SPEC_670"
KEYWORD "SPEC_675"
KEYWORD "SPEC_680"
KEYWORD "SPEC_685"
KEYWORD "SPEC_690"
KEYWORD "SPEC_695"
KEYWORD "SPEC_700"
KEYWORD "SPEC_705"
KEYWORD "SPEC_710"
KEYWORD "SPEC_715"
KEYWORD "SPEC_720"
KEYWORD "SPEC_725"
KEYWORD "SPEC_730"
KEYWORD "SPEC_735"
KEYWORD "SPEC_740"
KEYWORD "SPEC_745"
KEYWORD "SPEC_750"
KEYWORD "SPEC_755"
KEYWORD "SPEC_760"
KEYWORD "SPEC_765"
KEYWORD "SPEC_770"
KEYWORD "SPEC_775"
KEYWORD "SPEC_780"
KEYWORD "SPEC_785"
KEYWORD "SPEC_790"
KEYWORD "SPEC_795"
KEYWORD "SPEC_800"
KEYWORD "SPEC_805"
KEYWORD "SPEC_810"
KEYWORD "SPEC_815"
KEYWORD "SPEC_820"
KEYWORD "SPEC_825"
KEYWORD "SPEC_830"
NUMBER_OF_FIELDS 107
BEGIN_DATA_FORMAT
SPEC_300 SPEC_305 SPEC_310 SPEC_315 SPEC_320 SPEC_325 SPEC_330 SPEC_335 SPEC_340 SPEC_345 SPEC_350 SPEC_355 SPEC_360 SPEC_365 SPEC_370 SPEC_375 SPEC_380 SPEC_385 SPEC_390 SPEC_395 SPEC_400 SPEC_405 SPEC_410 SPEC_415 SPEC_420 SPEC_425 SPEC_430 SPEC_435 SPEC_440 SPEC_445 SPEC_450 SPEC_455 SPEC_460 SPEC_465 SPEC_470 SPEC_475 SPEC_480 SPEC_485 SPEC_490 SPEC_495 SPEC_500 SPEC_505 SPEC_510 SPEC_515 SPEC_520 SPEC_525 SPEC_530 SPEC_535 SPEC_540 SPEC_545 SPEC_550 SPEC_555 SPEC_560 SPEC_565 SPEC_570 SPEC_575 SPEC_580 SPEC_585 SPEC_590 SPEC_595 SPEC_600 SPEC_605 SPEC_610 SPEC_615 SPEC_620 SPEC_625 SPEC_630 SPEC_635 SPEC_640 SPEC_645 SPEC_650 SPEC_655 SPEC_660 SPEC_665 SPEC_670 SPEC_675 SPEC_680 SPEC_685 SPEC_690 SPEC_695 SPEC_700 SPEC_705 SPEC_710 SPEC_715 SPEC_720 SPEC_725 SPEC_730 SPEC_735 SPEC_740 SPEC_745 SPEC_750 SPEC_755 SPEC_760 SPEC_765 SPEC_770 SPEC_775 SPEC_780 SPEC_785 SPEC_790 SPEC_795 SPEC_800 SPEC_805 SPEC_810 SPEC_815 SPEC_820 SPEC_825 SPEC_830
END_DATA_FORMAT
NUMBER_OF_SETS 1
BEGIN_DATA
0.01 0.72 1.44 3.44 5.45 7.88 10.33 11.45 12.57 13.64 14.71 15.74 16.76 17.82 18.87 18 17.88 20.66 24.49 34.84 46.35 51.32 56.51 58.27 60.03 58.93 57.82 66.32 74.82 81.04 87.25 88.93 90.61 90.99 91.37 93.24 95.11 93.54 91.96 93.84 95.72 96.17 96.61 96.87 97.13 99.61 102.1 101.43 100.75 101.54 102.32 101.16 100.0 98.87 97.74 98.33 98.92 96.21 93.5 95.59 97.69 98.48 99.27 99.16 99.04 97.38 95.72 97.29 98.86 97.26 95.67 96.93 98.19 100.6 103.0 101.07 99.13 93.26 87.38 89.49 91.6 92.25 92.89 84.87 76.85 81.68 86.51 89.55 92.58 85.4 78.23 67.96 57.69 70.31 82.92 80.6 78.27 78.91 79.55 76.48 73.4 68.66 63.92 67.35 70.78 72.61 74.44
END_DATA

132
Argyll_V3.5.0/profile/D50_1.0.sp Executable file
View File

@@ -0,0 +1,132 @@
SPECT
DESCRIPTOR "Argyll D50 illimunant spectral power, Standard U.V."
ORIGINATOR "Argyll CMS"
CREATED "Fri Jul 06 17:49:57 2001"
KEYWORD "SPECTRAL_BANDS"
SPECTRAL_BANDS "107"
KEYWORD "SPECTRAL_START_NM"
SPECTRAL_START_NM "300.000000"
KEYWORD "SPECTRAL_END_NM"
SPECTRAL_END_NM "830.000000"
KEYWORD "SPECTRAL_NORM"
SPECTRAL_NORM "100.000000"
KEYWORD "SPEC_300"
KEYWORD "SPEC_305"
KEYWORD "SPEC_310"
KEYWORD "SPEC_315"
KEYWORD "SPEC_320"
KEYWORD "SPEC_325"
KEYWORD "SPEC_330"
KEYWORD "SPEC_335"
KEYWORD "SPEC_340"
KEYWORD "SPEC_345"
KEYWORD "SPEC_350"
KEYWORD "SPEC_355"
KEYWORD "SPEC_360"
KEYWORD "SPEC_365"
KEYWORD "SPEC_370"
KEYWORD "SPEC_375"
KEYWORD "SPEC_380"
KEYWORD "SPEC_385"
KEYWORD "SPEC_390"
KEYWORD "SPEC_395"
KEYWORD "SPEC_400"
KEYWORD "SPEC_405"
KEYWORD "SPEC_410"
KEYWORD "SPEC_415"
KEYWORD "SPEC_420"
KEYWORD "SPEC_425"
KEYWORD "SPEC_430"
KEYWORD "SPEC_435"
KEYWORD "SPEC_440"
KEYWORD "SPEC_445"
KEYWORD "SPEC_450"
KEYWORD "SPEC_455"
KEYWORD "SPEC_460"
KEYWORD "SPEC_465"
KEYWORD "SPEC_470"
KEYWORD "SPEC_475"
KEYWORD "SPEC_480"
KEYWORD "SPEC_485"
KEYWORD "SPEC_490"
KEYWORD "SPEC_495"
KEYWORD "SPEC_500"
KEYWORD "SPEC_505"
KEYWORD "SPEC_510"
KEYWORD "SPEC_515"
KEYWORD "SPEC_520"
KEYWORD "SPEC_525"
KEYWORD "SPEC_530"
KEYWORD "SPEC_535"
KEYWORD "SPEC_540"
KEYWORD "SPEC_545"
KEYWORD "SPEC_550"
KEYWORD "SPEC_555"
KEYWORD "SPEC_560"
KEYWORD "SPEC_565"
KEYWORD "SPEC_570"
KEYWORD "SPEC_575"
KEYWORD "SPEC_580"
KEYWORD "SPEC_585"
KEYWORD "SPEC_590"
KEYWORD "SPEC_595"
KEYWORD "SPEC_600"
KEYWORD "SPEC_605"
KEYWORD "SPEC_610"
KEYWORD "SPEC_615"
KEYWORD "SPEC_620"
KEYWORD "SPEC_625"
KEYWORD "SPEC_630"
KEYWORD "SPEC_635"
KEYWORD "SPEC_640"
KEYWORD "SPEC_645"
KEYWORD "SPEC_650"
KEYWORD "SPEC_655"
KEYWORD "SPEC_660"
KEYWORD "SPEC_665"
KEYWORD "SPEC_670"
KEYWORD "SPEC_675"
KEYWORD "SPEC_680"
KEYWORD "SPEC_685"
KEYWORD "SPEC_690"
KEYWORD "SPEC_695"
KEYWORD "SPEC_700"
KEYWORD "SPEC_705"
KEYWORD "SPEC_710"
KEYWORD "SPEC_715"
KEYWORD "SPEC_720"
KEYWORD "SPEC_725"
KEYWORD "SPEC_730"
KEYWORD "SPEC_735"
KEYWORD "SPEC_740"
KEYWORD "SPEC_745"
KEYWORD "SPEC_750"
KEYWORD "SPEC_755"
KEYWORD "SPEC_760"
KEYWORD "SPEC_765"
KEYWORD "SPEC_770"
KEYWORD "SPEC_775"
KEYWORD "SPEC_780"
KEYWORD "SPEC_785"
KEYWORD "SPEC_790"
KEYWORD "SPEC_795"
KEYWORD "SPEC_800"
KEYWORD "SPEC_805"
KEYWORD "SPEC_810"
KEYWORD "SPEC_815"
KEYWORD "SPEC_820"
KEYWORD "SPEC_825"
KEYWORD "SPEC_830"
NUMBER_OF_FIELDS 107
BEGIN_DATA_FORMAT
SPEC_300 SPEC_305 SPEC_310 SPEC_315 SPEC_320 SPEC_325 SPEC_330 SPEC_335 SPEC_340 SPEC_345 SPEC_350 SPEC_355 SPEC_360 SPEC_365 SPEC_370 SPEC_375 SPEC_380 SPEC_385 SPEC_390 SPEC_395 SPEC_400 SPEC_405 SPEC_410 SPEC_415 SPEC_420 SPEC_425 SPEC_430 SPEC_435 SPEC_440 SPEC_445 SPEC_450 SPEC_455 SPEC_460 SPEC_465 SPEC_470 SPEC_475 SPEC_480 SPEC_485 SPEC_490 SPEC_495 SPEC_500 SPEC_505 SPEC_510 SPEC_515 SPEC_520 SPEC_525 SPEC_530 SPEC_535 SPEC_540 SPEC_545 SPEC_550 SPEC_555 SPEC_560 SPEC_565 SPEC_570 SPEC_575 SPEC_580 SPEC_585 SPEC_590 SPEC_595 SPEC_600 SPEC_605 SPEC_610 SPEC_615 SPEC_620 SPEC_625 SPEC_630 SPEC_635 SPEC_640 SPEC_645 SPEC_650 SPEC_655 SPEC_660 SPEC_665 SPEC_670 SPEC_675 SPEC_680 SPEC_685 SPEC_690 SPEC_695 SPEC_700 SPEC_705 SPEC_710 SPEC_715 SPEC_720 SPEC_725 SPEC_730 SPEC_735 SPEC_740 SPEC_745 SPEC_750 SPEC_755 SPEC_760 SPEC_765 SPEC_770 SPEC_775 SPEC_780 SPEC_785 SPEC_790 SPEC_795 SPEC_800 SPEC_805 SPEC_810 SPEC_815 SPEC_820 SPEC_825 SPEC_830
END_DATA_FORMAT
NUMBER_OF_SETS 1
BEGIN_DATA
0.020000 1.0300 2.0500 4.9100 7.7800 11.260 14.750 16.350 17.950 19.480 21.010 22.480 23.940 25.450 26.960 25.720 24.490 27.180 29.870 39.590 49.310 52.910 56.510 58.270 60.030 58.930 57.820 66.320 74.820 81.040 87.250 88.930 90.610 90.990 91.370 93.240 95.110 93.540 91.960 93.840 95.720 96.170 96.610 96.870 97.130 99.610 102.10 101.43 100.75 101.54 102.32 101.16 100.00 98.870 97.740 98.330 98.920 96.210 93.500 95.590 97.690 98.480 99.270 99.160 99.040 97.380 95.720 97.290 98.860 97.260 95.670 96.930 98.190 100.60 103.00 101.07 99.130 93.260 87.380 89.490 91.600 92.250 92.890 84.870 76.850 81.680 86.510 89.550 92.580 85.400 78.230 67.960 57.690 70.310 82.920 80.600 78.270 78.910 79.550 76.480 73.400 68.660 63.920 67.350 70.780 72.610 74.440
END_DATA

132
Argyll_V3.5.0/profile/D50_1.2.sp Executable file
View File

@@ -0,0 +1,132 @@
SPECT
DESCRIPTOR "Argyll D50 illimunant spectral power, 120% U.V."
ORIGINATOR "Argyll CMS"
CREATED "Fri Jul 06 17:49:57 2001"
KEYWORD "SPECTRAL_BANDS"
SPECTRAL_BANDS "107"
KEYWORD "SPECTRAL_START_NM"
SPECTRAL_START_NM "300.000000"
KEYWORD "SPECTRAL_END_NM"
SPECTRAL_END_NM "830.000000"
KEYWORD "SPECTRAL_NORM"
SPECTRAL_NORM "100.000000"
KEYWORD "SPEC_300"
KEYWORD "SPEC_305"
KEYWORD "SPEC_310"
KEYWORD "SPEC_315"
KEYWORD "SPEC_320"
KEYWORD "SPEC_325"
KEYWORD "SPEC_330"
KEYWORD "SPEC_335"
KEYWORD "SPEC_340"
KEYWORD "SPEC_345"
KEYWORD "SPEC_350"
KEYWORD "SPEC_355"
KEYWORD "SPEC_360"
KEYWORD "SPEC_365"
KEYWORD "SPEC_370"
KEYWORD "SPEC_375"
KEYWORD "SPEC_380"
KEYWORD "SPEC_385"
KEYWORD "SPEC_390"
KEYWORD "SPEC_395"
KEYWORD "SPEC_400"
KEYWORD "SPEC_405"
KEYWORD "SPEC_410"
KEYWORD "SPEC_415"
KEYWORD "SPEC_420"
KEYWORD "SPEC_425"
KEYWORD "SPEC_430"
KEYWORD "SPEC_435"
KEYWORD "SPEC_440"
KEYWORD "SPEC_445"
KEYWORD "SPEC_450"
KEYWORD "SPEC_455"
KEYWORD "SPEC_460"
KEYWORD "SPEC_465"
KEYWORD "SPEC_470"
KEYWORD "SPEC_475"
KEYWORD "SPEC_480"
KEYWORD "SPEC_485"
KEYWORD "SPEC_490"
KEYWORD "SPEC_495"
KEYWORD "SPEC_500"
KEYWORD "SPEC_505"
KEYWORD "SPEC_510"
KEYWORD "SPEC_515"
KEYWORD "SPEC_520"
KEYWORD "SPEC_525"
KEYWORD "SPEC_530"
KEYWORD "SPEC_535"
KEYWORD "SPEC_540"
KEYWORD "SPEC_545"
KEYWORD "SPEC_550"
KEYWORD "SPEC_555"
KEYWORD "SPEC_560"
KEYWORD "SPEC_565"
KEYWORD "SPEC_570"
KEYWORD "SPEC_575"
KEYWORD "SPEC_580"
KEYWORD "SPEC_585"
KEYWORD "SPEC_590"
KEYWORD "SPEC_595"
KEYWORD "SPEC_600"
KEYWORD "SPEC_605"
KEYWORD "SPEC_610"
KEYWORD "SPEC_615"
KEYWORD "SPEC_620"
KEYWORD "SPEC_625"
KEYWORD "SPEC_630"
KEYWORD "SPEC_635"
KEYWORD "SPEC_640"
KEYWORD "SPEC_645"
KEYWORD "SPEC_650"
KEYWORD "SPEC_655"
KEYWORD "SPEC_660"
KEYWORD "SPEC_665"
KEYWORD "SPEC_670"
KEYWORD "SPEC_675"
KEYWORD "SPEC_680"
KEYWORD "SPEC_685"
KEYWORD "SPEC_690"
KEYWORD "SPEC_695"
KEYWORD "SPEC_700"
KEYWORD "SPEC_705"
KEYWORD "SPEC_710"
KEYWORD "SPEC_715"
KEYWORD "SPEC_720"
KEYWORD "SPEC_725"
KEYWORD "SPEC_730"
KEYWORD "SPEC_735"
KEYWORD "SPEC_740"
KEYWORD "SPEC_745"
KEYWORD "SPEC_750"
KEYWORD "SPEC_755"
KEYWORD "SPEC_760"
KEYWORD "SPEC_765"
KEYWORD "SPEC_770"
KEYWORD "SPEC_775"
KEYWORD "SPEC_780"
KEYWORD "SPEC_785"
KEYWORD "SPEC_790"
KEYWORD "SPEC_795"
KEYWORD "SPEC_800"
KEYWORD "SPEC_805"
KEYWORD "SPEC_810"
KEYWORD "SPEC_815"
KEYWORD "SPEC_820"
KEYWORD "SPEC_825"
KEYWORD "SPEC_830"
NUMBER_OF_FIELDS 107
BEGIN_DATA_FORMAT
SPEC_300 SPEC_305 SPEC_310 SPEC_315 SPEC_320 SPEC_325 SPEC_330 SPEC_335 SPEC_340 SPEC_345 SPEC_350 SPEC_355 SPEC_360 SPEC_365 SPEC_370 SPEC_375 SPEC_380 SPEC_385 SPEC_390 SPEC_395 SPEC_400 SPEC_405 SPEC_410 SPEC_415 SPEC_420 SPEC_425 SPEC_430 SPEC_435 SPEC_440 SPEC_445 SPEC_450 SPEC_455 SPEC_460 SPEC_465 SPEC_470 SPEC_475 SPEC_480 SPEC_485 SPEC_490 SPEC_495 SPEC_500 SPEC_505 SPEC_510 SPEC_515 SPEC_520 SPEC_525 SPEC_530 SPEC_535 SPEC_540 SPEC_545 SPEC_550 SPEC_555 SPEC_560 SPEC_565 SPEC_570 SPEC_575 SPEC_580 SPEC_585 SPEC_590 SPEC_595 SPEC_600 SPEC_605 SPEC_610 SPEC_615 SPEC_620 SPEC_625 SPEC_630 SPEC_635 SPEC_640 SPEC_645 SPEC_650 SPEC_655 SPEC_660 SPEC_665 SPEC_670 SPEC_675 SPEC_680 SPEC_685 SPEC_690 SPEC_695 SPEC_700 SPEC_705 SPEC_710 SPEC_715 SPEC_720 SPEC_725 SPEC_730 SPEC_735 SPEC_740 SPEC_745 SPEC_750 SPEC_755 SPEC_760 SPEC_765 SPEC_770 SPEC_775 SPEC_780 SPEC_785 SPEC_790 SPEC_795 SPEC_800 SPEC_805 SPEC_810 SPEC_815 SPEC_820 SPEC_825 SPEC_830
END_DATA_FORMAT
NUMBER_OF_SETS 1
BEGIN_DATA
0.02 1.24 2.46 5.89 9.34 13.51 17.7 19.62 21.54 23.38 25.21 26.98 28.73 30.54 32.35 30.86 28.9 31.53 33.45 42.76 51.28 53.97 56.51 58.27 60.03 58.93 57.82 66.32 74.82 81.04 87.25 88.93 90.61 90.99 91.37 93.24 95.11 93.54 91.96 93.84 95.72 96.17 96.61 96.87 97.13 99.61 102.1 101.43 100.75 101.54 102.32 101.16 100.0 98.87 97.74 98.33 98.92 96.21 93.5 95.59 97.69 98.48 99.27 99.16 99.04 97.38 95.72 97.29 98.86 97.26 95.67 96.93 98.19 100.6 103.0 101.07 99.13 93.26 87.38 89.49 91.6 92.25 92.89 84.87 76.85 81.68 86.51 89.55 92.58 85.4 78.23 67.96 57.69 70.31 82.92 80.6 78.27 78.91 79.55 76.48 73.4 68.66 63.92 67.35 70.78 72.61 74.44
END_DATA

132
Argyll_V3.5.0/profile/D50_1.5.sp Executable file
View File

@@ -0,0 +1,132 @@
SPECT
DESCRIPTOR "Argyll D50 illimunant spectral power, 150% U.V."
ORIGINATOR "Argyll CMS"
CREATED "Fri Jul 06 17:49:57 2001"
KEYWORD "SPECTRAL_BANDS"
SPECTRAL_BANDS "107"
KEYWORD "SPECTRAL_START_NM"
SPECTRAL_START_NM "300.000000"
KEYWORD "SPECTRAL_END_NM"
SPECTRAL_END_NM "830.000000"
KEYWORD "SPECTRAL_NORM"
SPECTRAL_NORM "100.000000"
KEYWORD "SPEC_300"
KEYWORD "SPEC_305"
KEYWORD "SPEC_310"
KEYWORD "SPEC_315"
KEYWORD "SPEC_320"
KEYWORD "SPEC_325"
KEYWORD "SPEC_330"
KEYWORD "SPEC_335"
KEYWORD "SPEC_340"
KEYWORD "SPEC_345"
KEYWORD "SPEC_350"
KEYWORD "SPEC_355"
KEYWORD "SPEC_360"
KEYWORD "SPEC_365"
KEYWORD "SPEC_370"
KEYWORD "SPEC_375"
KEYWORD "SPEC_380"
KEYWORD "SPEC_385"
KEYWORD "SPEC_390"
KEYWORD "SPEC_395"
KEYWORD "SPEC_400"
KEYWORD "SPEC_405"
KEYWORD "SPEC_410"
KEYWORD "SPEC_415"
KEYWORD "SPEC_420"
KEYWORD "SPEC_425"
KEYWORD "SPEC_430"
KEYWORD "SPEC_435"
KEYWORD "SPEC_440"
KEYWORD "SPEC_445"
KEYWORD "SPEC_450"
KEYWORD "SPEC_455"
KEYWORD "SPEC_460"
KEYWORD "SPEC_465"
KEYWORD "SPEC_470"
KEYWORD "SPEC_475"
KEYWORD "SPEC_480"
KEYWORD "SPEC_485"
KEYWORD "SPEC_490"
KEYWORD "SPEC_495"
KEYWORD "SPEC_500"
KEYWORD "SPEC_505"
KEYWORD "SPEC_510"
KEYWORD "SPEC_515"
KEYWORD "SPEC_520"
KEYWORD "SPEC_525"
KEYWORD "SPEC_530"
KEYWORD "SPEC_535"
KEYWORD "SPEC_540"
KEYWORD "SPEC_545"
KEYWORD "SPEC_550"
KEYWORD "SPEC_555"
KEYWORD "SPEC_560"
KEYWORD "SPEC_565"
KEYWORD "SPEC_570"
KEYWORD "SPEC_575"
KEYWORD "SPEC_580"
KEYWORD "SPEC_585"
KEYWORD "SPEC_590"
KEYWORD "SPEC_595"
KEYWORD "SPEC_600"
KEYWORD "SPEC_605"
KEYWORD "SPEC_610"
KEYWORD "SPEC_615"
KEYWORD "SPEC_620"
KEYWORD "SPEC_625"
KEYWORD "SPEC_630"
KEYWORD "SPEC_635"
KEYWORD "SPEC_640"
KEYWORD "SPEC_645"
KEYWORD "SPEC_650"
KEYWORD "SPEC_655"
KEYWORD "SPEC_660"
KEYWORD "SPEC_665"
KEYWORD "SPEC_670"
KEYWORD "SPEC_675"
KEYWORD "SPEC_680"
KEYWORD "SPEC_685"
KEYWORD "SPEC_690"
KEYWORD "SPEC_695"
KEYWORD "SPEC_700"
KEYWORD "SPEC_705"
KEYWORD "SPEC_710"
KEYWORD "SPEC_715"
KEYWORD "SPEC_720"
KEYWORD "SPEC_725"
KEYWORD "SPEC_730"
KEYWORD "SPEC_735"
KEYWORD "SPEC_740"
KEYWORD "SPEC_745"
KEYWORD "SPEC_750"
KEYWORD "SPEC_755"
KEYWORD "SPEC_760"
KEYWORD "SPEC_765"
KEYWORD "SPEC_770"
KEYWORD "SPEC_775"
KEYWORD "SPEC_780"
KEYWORD "SPEC_785"
KEYWORD "SPEC_790"
KEYWORD "SPEC_795"
KEYWORD "SPEC_800"
KEYWORD "SPEC_805"
KEYWORD "SPEC_810"
KEYWORD "SPEC_815"
KEYWORD "SPEC_820"
KEYWORD "SPEC_825"
KEYWORD "SPEC_830"
NUMBER_OF_FIELDS 107
BEGIN_DATA_FORMAT
SPEC_300 SPEC_305 SPEC_310 SPEC_315 SPEC_320 SPEC_325 SPEC_330 SPEC_335 SPEC_340 SPEC_345 SPEC_350 SPEC_355 SPEC_360 SPEC_365 SPEC_370 SPEC_375 SPEC_380 SPEC_385 SPEC_390 SPEC_395 SPEC_400 SPEC_405 SPEC_410 SPEC_415 SPEC_420 SPEC_425 SPEC_430 SPEC_435 SPEC_440 SPEC_445 SPEC_450 SPEC_455 SPEC_460 SPEC_465 SPEC_470 SPEC_475 SPEC_480 SPEC_485 SPEC_490 SPEC_495 SPEC_500 SPEC_505 SPEC_510 SPEC_515 SPEC_520 SPEC_525 SPEC_530 SPEC_535 SPEC_540 SPEC_545 SPEC_550 SPEC_555 SPEC_560 SPEC_565 SPEC_570 SPEC_575 SPEC_580 SPEC_585 SPEC_590 SPEC_595 SPEC_600 SPEC_605 SPEC_610 SPEC_615 SPEC_620 SPEC_625 SPEC_630 SPEC_635 SPEC_640 SPEC_645 SPEC_650 SPEC_655 SPEC_660 SPEC_665 SPEC_670 SPEC_675 SPEC_680 SPEC_685 SPEC_690 SPEC_695 SPEC_700 SPEC_705 SPEC_710 SPEC_715 SPEC_720 SPEC_725 SPEC_730 SPEC_735 SPEC_740 SPEC_745 SPEC_750 SPEC_755 SPEC_760 SPEC_765 SPEC_770 SPEC_775 SPEC_780 SPEC_785 SPEC_790 SPEC_795 SPEC_800 SPEC_805 SPEC_810 SPEC_815 SPEC_820 SPEC_825 SPEC_830
END_DATA_FORMAT
NUMBER_OF_SETS 1
BEGIN_DATA
0.03 1.55 3.08 7.37 11.67 16.89 22.13 24.53 26.93 29.22 31.52 33.72 35.91 38.18 40.44 38.58 35.51 38.05 38.83 47.51 54.24 55.56 56.51 58.27 60.03 58.93 57.82 66.32 74.82 81.04 87.25 88.93 90.61 90.99 91.37 93.24 95.11 93.54 91.96 93.84 95.72 96.17 96.61 96.87 97.13 99.61 102.1 101.43 100.75 101.54 102.32 101.16 100.0 98.87 97.74 98.33 98.92 96.21 93.5 95.59 97.69 98.48 99.27 99.16 99.04 97.38 95.72 97.29 98.86 97.26 95.67 96.93 98.19 100.6 103.0 101.07 99.13 93.26 87.38 89.49 91.6 92.25 92.89 84.87 76.85 81.68 86.51 89.55 92.58 85.4 78.23 67.96 57.69 70.31 82.92 80.6 78.27 78.91 79.55 76.48 73.4 68.66 63.92 67.35 70.78 72.61 74.44
END_DATA

132
Argyll_V3.5.0/profile/D50_1.7.sp Executable file
View File

@@ -0,0 +1,132 @@
SPECT
DESCRIPTOR "Argyll D50 illimunant spectral power, 170% U.V."
ORIGINATOR "Argyll CMS"
CREATED "Fri Jul 06 17:49:57 2001"
KEYWORD "SPECTRAL_BANDS"
SPECTRAL_BANDS "107"
KEYWORD "SPECTRAL_START_NM"
SPECTRAL_START_NM "300.000000"
KEYWORD "SPECTRAL_END_NM"
SPECTRAL_END_NM "830.000000"
KEYWORD "SPECTRAL_NORM"
SPECTRAL_NORM "100.000000"
KEYWORD "SPEC_300"
KEYWORD "SPEC_305"
KEYWORD "SPEC_310"
KEYWORD "SPEC_315"
KEYWORD "SPEC_320"
KEYWORD "SPEC_325"
KEYWORD "SPEC_330"
KEYWORD "SPEC_335"
KEYWORD "SPEC_340"
KEYWORD "SPEC_345"
KEYWORD "SPEC_350"
KEYWORD "SPEC_355"
KEYWORD "SPEC_360"
KEYWORD "SPEC_365"
KEYWORD "SPEC_370"
KEYWORD "SPEC_375"
KEYWORD "SPEC_380"
KEYWORD "SPEC_385"
KEYWORD "SPEC_390"
KEYWORD "SPEC_395"
KEYWORD "SPEC_400"
KEYWORD "SPEC_405"
KEYWORD "SPEC_410"
KEYWORD "SPEC_415"
KEYWORD "SPEC_420"
KEYWORD "SPEC_425"
KEYWORD "SPEC_430"
KEYWORD "SPEC_435"
KEYWORD "SPEC_440"
KEYWORD "SPEC_445"
KEYWORD "SPEC_450"
KEYWORD "SPEC_455"
KEYWORD "SPEC_460"
KEYWORD "SPEC_465"
KEYWORD "SPEC_470"
KEYWORD "SPEC_475"
KEYWORD "SPEC_480"
KEYWORD "SPEC_485"
KEYWORD "SPEC_490"
KEYWORD "SPEC_495"
KEYWORD "SPEC_500"
KEYWORD "SPEC_505"
KEYWORD "SPEC_510"
KEYWORD "SPEC_515"
KEYWORD "SPEC_520"
KEYWORD "SPEC_525"
KEYWORD "SPEC_530"
KEYWORD "SPEC_535"
KEYWORD "SPEC_540"
KEYWORD "SPEC_545"
KEYWORD "SPEC_550"
KEYWORD "SPEC_555"
KEYWORD "SPEC_560"
KEYWORD "SPEC_565"
KEYWORD "SPEC_570"
KEYWORD "SPEC_575"
KEYWORD "SPEC_580"
KEYWORD "SPEC_585"
KEYWORD "SPEC_590"
KEYWORD "SPEC_595"
KEYWORD "SPEC_600"
KEYWORD "SPEC_605"
KEYWORD "SPEC_610"
KEYWORD "SPEC_615"
KEYWORD "SPEC_620"
KEYWORD "SPEC_625"
KEYWORD "SPEC_630"
KEYWORD "SPEC_635"
KEYWORD "SPEC_640"
KEYWORD "SPEC_645"
KEYWORD "SPEC_650"
KEYWORD "SPEC_655"
KEYWORD "SPEC_660"
KEYWORD "SPEC_665"
KEYWORD "SPEC_670"
KEYWORD "SPEC_675"
KEYWORD "SPEC_680"
KEYWORD "SPEC_685"
KEYWORD "SPEC_690"
KEYWORD "SPEC_695"
KEYWORD "SPEC_700"
KEYWORD "SPEC_705"
KEYWORD "SPEC_710"
KEYWORD "SPEC_715"
KEYWORD "SPEC_720"
KEYWORD "SPEC_725"
KEYWORD "SPEC_730"
KEYWORD "SPEC_735"
KEYWORD "SPEC_740"
KEYWORD "SPEC_745"
KEYWORD "SPEC_750"
KEYWORD "SPEC_755"
KEYWORD "SPEC_760"
KEYWORD "SPEC_765"
KEYWORD "SPEC_770"
KEYWORD "SPEC_775"
KEYWORD "SPEC_780"
KEYWORD "SPEC_785"
KEYWORD "SPEC_790"
KEYWORD "SPEC_795"
KEYWORD "SPEC_800"
KEYWORD "SPEC_805"
KEYWORD "SPEC_810"
KEYWORD "SPEC_815"
KEYWORD "SPEC_820"
KEYWORD "SPEC_825"
KEYWORD "SPEC_830"
NUMBER_OF_FIELDS 107
BEGIN_DATA_FORMAT
SPEC_300 SPEC_305 SPEC_310 SPEC_315 SPEC_320 SPEC_325 SPEC_330 SPEC_335 SPEC_340 SPEC_345 SPEC_350 SPEC_355 SPEC_360 SPEC_365 SPEC_370 SPEC_375 SPEC_380 SPEC_385 SPEC_390 SPEC_395 SPEC_400 SPEC_405 SPEC_410 SPEC_415 SPEC_420 SPEC_425 SPEC_430 SPEC_435 SPEC_440 SPEC_445 SPEC_450 SPEC_455 SPEC_460 SPEC_465 SPEC_470 SPEC_475 SPEC_480 SPEC_485 SPEC_490 SPEC_495 SPEC_500 SPEC_505 SPEC_510 SPEC_515 SPEC_520 SPEC_525 SPEC_530 SPEC_535 SPEC_540 SPEC_545 SPEC_550 SPEC_555 SPEC_560 SPEC_565 SPEC_570 SPEC_575 SPEC_580 SPEC_585 SPEC_590 SPEC_595 SPEC_600 SPEC_605 SPEC_610 SPEC_615 SPEC_620 SPEC_625 SPEC_630 SPEC_635 SPEC_640 SPEC_645 SPEC_650 SPEC_655 SPEC_660 SPEC_665 SPEC_670 SPEC_675 SPEC_680 SPEC_685 SPEC_690 SPEC_695 SPEC_700 SPEC_705 SPEC_710 SPEC_715 SPEC_720 SPEC_725 SPEC_730 SPEC_735 SPEC_740 SPEC_745 SPEC_750 SPEC_755 SPEC_760 SPEC_765 SPEC_770 SPEC_775 SPEC_780 SPEC_785 SPEC_790 SPEC_795 SPEC_800 SPEC_805 SPEC_810 SPEC_815 SPEC_820 SPEC_825 SPEC_830
END_DATA_FORMAT
NUMBER_OF_SETS 1
BEGIN_DATA
0.03 1.75 3.49 8.35 13.23 19.14 25.08 27.8 30.52 33.12 35.72 38.22 40.7 43.27 45.83 43.72 39.92 42.4 42.42 50.68 56.21 56.61 56.51 58.27 60.03 58.93 57.82 66.32 74.82 81.04 87.25 88.93 90.61 90.99 91.37 93.24 95.11 93.54 91.96 93.84 95.72 96.17 96.61 96.87 97.13 99.61 102.1 101.43 100.75 101.54 102.32 101.16 100.0 98.87 97.74 98.33 98.92 96.21 93.5 95.59 97.69 98.48 99.27 99.16 99.04 97.38 95.72 97.29 98.86 97.26 95.67 96.93 98.19 100.6 103.0 101.07 99.13 93.26 87.38 89.49 91.6 92.25 92.89 84.87 76.85 81.68 86.51 89.55 92.58 85.4 78.23 67.96 57.69 70.31 82.92 80.6 78.27 78.91 79.55 76.48 73.4 68.66 63.92 67.35 70.78 72.61 74.44
END_DATA

132
Argyll_V3.5.0/profile/D50_2.0.sp Executable file
View File

@@ -0,0 +1,132 @@
SPECT
DESCRIPTOR "Argyll D50 illimunant spectral power, 200% U.V."
ORIGINATOR "Argyll CMS"
CREATED "Fri Jul 06 17:49:57 2001"
KEYWORD "SPECTRAL_BANDS"
SPECTRAL_BANDS "107"
KEYWORD "SPECTRAL_START_NM"
SPECTRAL_START_NM "300.000000"
KEYWORD "SPECTRAL_END_NM"
SPECTRAL_END_NM "830.000000"
KEYWORD "SPECTRAL_NORM"
SPECTRAL_NORM "100.000000"
KEYWORD "SPEC_300"
KEYWORD "SPEC_305"
KEYWORD "SPEC_310"
KEYWORD "SPEC_315"
KEYWORD "SPEC_320"
KEYWORD "SPEC_325"
KEYWORD "SPEC_330"
KEYWORD "SPEC_335"
KEYWORD "SPEC_340"
KEYWORD "SPEC_345"
KEYWORD "SPEC_350"
KEYWORD "SPEC_355"
KEYWORD "SPEC_360"
KEYWORD "SPEC_365"
KEYWORD "SPEC_370"
KEYWORD "SPEC_375"
KEYWORD "SPEC_380"
KEYWORD "SPEC_385"
KEYWORD "SPEC_390"
KEYWORD "SPEC_395"
KEYWORD "SPEC_400"
KEYWORD "SPEC_405"
KEYWORD "SPEC_410"
KEYWORD "SPEC_415"
KEYWORD "SPEC_420"
KEYWORD "SPEC_425"
KEYWORD "SPEC_430"
KEYWORD "SPEC_435"
KEYWORD "SPEC_440"
KEYWORD "SPEC_445"
KEYWORD "SPEC_450"
KEYWORD "SPEC_455"
KEYWORD "SPEC_460"
KEYWORD "SPEC_465"
KEYWORD "SPEC_470"
KEYWORD "SPEC_475"
KEYWORD "SPEC_480"
KEYWORD "SPEC_485"
KEYWORD "SPEC_490"
KEYWORD "SPEC_495"
KEYWORD "SPEC_500"
KEYWORD "SPEC_505"
KEYWORD "SPEC_510"
KEYWORD "SPEC_515"
KEYWORD "SPEC_520"
KEYWORD "SPEC_525"
KEYWORD "SPEC_530"
KEYWORD "SPEC_535"
KEYWORD "SPEC_540"
KEYWORD "SPEC_545"
KEYWORD "SPEC_550"
KEYWORD "SPEC_555"
KEYWORD "SPEC_560"
KEYWORD "SPEC_565"
KEYWORD "SPEC_570"
KEYWORD "SPEC_575"
KEYWORD "SPEC_580"
KEYWORD "SPEC_585"
KEYWORD "SPEC_590"
KEYWORD "SPEC_595"
KEYWORD "SPEC_600"
KEYWORD "SPEC_605"
KEYWORD "SPEC_610"
KEYWORD "SPEC_615"
KEYWORD "SPEC_620"
KEYWORD "SPEC_625"
KEYWORD "SPEC_630"
KEYWORD "SPEC_635"
KEYWORD "SPEC_640"
KEYWORD "SPEC_645"
KEYWORD "SPEC_650"
KEYWORD "SPEC_655"
KEYWORD "SPEC_660"
KEYWORD "SPEC_665"
KEYWORD "SPEC_670"
KEYWORD "SPEC_675"
KEYWORD "SPEC_680"
KEYWORD "SPEC_685"
KEYWORD "SPEC_690"
KEYWORD "SPEC_695"
KEYWORD "SPEC_700"
KEYWORD "SPEC_705"
KEYWORD "SPEC_710"
KEYWORD "SPEC_715"
KEYWORD "SPEC_720"
KEYWORD "SPEC_725"
KEYWORD "SPEC_730"
KEYWORD "SPEC_735"
KEYWORD "SPEC_740"
KEYWORD "SPEC_745"
KEYWORD "SPEC_750"
KEYWORD "SPEC_755"
KEYWORD "SPEC_760"
KEYWORD "SPEC_765"
KEYWORD "SPEC_770"
KEYWORD "SPEC_775"
KEYWORD "SPEC_780"
KEYWORD "SPEC_785"
KEYWORD "SPEC_790"
KEYWORD "SPEC_795"
KEYWORD "SPEC_800"
KEYWORD "SPEC_805"
KEYWORD "SPEC_810"
KEYWORD "SPEC_815"
KEYWORD "SPEC_820"
KEYWORD "SPEC_825"
KEYWORD "SPEC_830"
NUMBER_OF_FIELDS 107
BEGIN_DATA_FORMAT
SPEC_300 SPEC_305 SPEC_310 SPEC_315 SPEC_320 SPEC_325 SPEC_330 SPEC_335 SPEC_340 SPEC_345 SPEC_350 SPEC_355 SPEC_360 SPEC_365 SPEC_370 SPEC_375 SPEC_380 SPEC_385 SPEC_390 SPEC_395 SPEC_400 SPEC_405 SPEC_410 SPEC_415 SPEC_420 SPEC_425 SPEC_430 SPEC_435 SPEC_440 SPEC_445 SPEC_450 SPEC_455 SPEC_460 SPEC_465 SPEC_470 SPEC_475 SPEC_480 SPEC_485 SPEC_490 SPEC_495 SPEC_500 SPEC_505 SPEC_510 SPEC_515 SPEC_520 SPEC_525 SPEC_530 SPEC_535 SPEC_540 SPEC_545 SPEC_550 SPEC_555 SPEC_560 SPEC_565 SPEC_570 SPEC_575 SPEC_580 SPEC_585 SPEC_590 SPEC_595 SPEC_600 SPEC_605 SPEC_610 SPEC_615 SPEC_620 SPEC_625 SPEC_630 SPEC_635 SPEC_640 SPEC_645 SPEC_650 SPEC_655 SPEC_660 SPEC_665 SPEC_670 SPEC_675 SPEC_680 SPEC_685 SPEC_690 SPEC_695 SPEC_700 SPEC_705 SPEC_710 SPEC_715 SPEC_720 SPEC_725 SPEC_730 SPEC_735 SPEC_740 SPEC_745 SPEC_750 SPEC_755 SPEC_760 SPEC_765 SPEC_770 SPEC_775 SPEC_780 SPEC_785 SPEC_790 SPEC_795 SPEC_800 SPEC_805 SPEC_810 SPEC_815 SPEC_820 SPEC_825 SPEC_830
END_DATA_FORMAT
NUMBER_OF_SETS 1
BEGIN_DATA
0.04 2.06 4.1 9.82 15.56 22.52 29.5 32.7 35.9 38.96 42.02 44.96 47.88 50.9 53.92 51.44 46.53 48.92 47.79 55.43 59.17 58.2 56.51 58.27 60.03 58.93 57.82 66.32 74.82 81.04 87.25 88.93 90.61 90.99 91.37 93.24 95.11 93.54 91.96 93.84 95.72 96.17 96.61 96.87 97.13 99.61 102.1 101.43 100.75 101.54 102.32 101.16 100.0 98.87 97.74 98.33 98.92 96.21 93.5 95.59 97.69 98.48 99.27 99.16 99.04 97.38 95.72 97.29 98.86 97.26 95.67 96.93 98.19 100.6 103.0 101.07 99.13 93.26 87.38 89.49 91.6 92.25 92.89 84.87 76.85 81.68 86.51 89.55 92.58 85.4 78.23 67.96 57.69 70.31 82.92 80.6 78.27 78.91 79.55 76.48 73.4 68.66 63.92 67.35 70.78 72.61 74.44
END_DATA

132
Argyll_V3.5.0/profile/D50_2.5.sp Executable file
View File

@@ -0,0 +1,132 @@
SPECT
DESCRIPTOR "Argyll D50 illimunant spectral power, 250% U.V."
ORIGINATOR "Argyll CMS"
CREATED "Fri Jul 06 17:49:57 2001"
KEYWORD "SPECTRAL_BANDS"
SPECTRAL_BANDS "107"
KEYWORD "SPECTRAL_START_NM"
SPECTRAL_START_NM "300.000000"
KEYWORD "SPECTRAL_END_NM"
SPECTRAL_END_NM "830.000000"
KEYWORD "SPECTRAL_NORM"
SPECTRAL_NORM "100.000000"
KEYWORD "SPEC_300"
KEYWORD "SPEC_305"
KEYWORD "SPEC_310"
KEYWORD "SPEC_315"
KEYWORD "SPEC_320"
KEYWORD "SPEC_325"
KEYWORD "SPEC_330"
KEYWORD "SPEC_335"
KEYWORD "SPEC_340"
KEYWORD "SPEC_345"
KEYWORD "SPEC_350"
KEYWORD "SPEC_355"
KEYWORD "SPEC_360"
KEYWORD "SPEC_365"
KEYWORD "SPEC_370"
KEYWORD "SPEC_375"
KEYWORD "SPEC_380"
KEYWORD "SPEC_385"
KEYWORD "SPEC_390"
KEYWORD "SPEC_395"
KEYWORD "SPEC_400"
KEYWORD "SPEC_405"
KEYWORD "SPEC_410"
KEYWORD "SPEC_415"
KEYWORD "SPEC_420"
KEYWORD "SPEC_425"
KEYWORD "SPEC_430"
KEYWORD "SPEC_435"
KEYWORD "SPEC_440"
KEYWORD "SPEC_445"
KEYWORD "SPEC_450"
KEYWORD "SPEC_455"
KEYWORD "SPEC_460"
KEYWORD "SPEC_465"
KEYWORD "SPEC_470"
KEYWORD "SPEC_475"
KEYWORD "SPEC_480"
KEYWORD "SPEC_485"
KEYWORD "SPEC_490"
KEYWORD "SPEC_495"
KEYWORD "SPEC_500"
KEYWORD "SPEC_505"
KEYWORD "SPEC_510"
KEYWORD "SPEC_515"
KEYWORD "SPEC_520"
KEYWORD "SPEC_525"
KEYWORD "SPEC_530"
KEYWORD "SPEC_535"
KEYWORD "SPEC_540"
KEYWORD "SPEC_545"
KEYWORD "SPEC_550"
KEYWORD "SPEC_555"
KEYWORD "SPEC_560"
KEYWORD "SPEC_565"
KEYWORD "SPEC_570"
KEYWORD "SPEC_575"
KEYWORD "SPEC_580"
KEYWORD "SPEC_585"
KEYWORD "SPEC_590"
KEYWORD "SPEC_595"
KEYWORD "SPEC_600"
KEYWORD "SPEC_605"
KEYWORD "SPEC_610"
KEYWORD "SPEC_615"
KEYWORD "SPEC_620"
KEYWORD "SPEC_625"
KEYWORD "SPEC_630"
KEYWORD "SPEC_635"
KEYWORD "SPEC_640"
KEYWORD "SPEC_645"
KEYWORD "SPEC_650"
KEYWORD "SPEC_655"
KEYWORD "SPEC_660"
KEYWORD "SPEC_665"
KEYWORD "SPEC_670"
KEYWORD "SPEC_675"
KEYWORD "SPEC_680"
KEYWORD "SPEC_685"
KEYWORD "SPEC_690"
KEYWORD "SPEC_695"
KEYWORD "SPEC_700"
KEYWORD "SPEC_705"
KEYWORD "SPEC_710"
KEYWORD "SPEC_715"
KEYWORD "SPEC_720"
KEYWORD "SPEC_725"
KEYWORD "SPEC_730"
KEYWORD "SPEC_735"
KEYWORD "SPEC_740"
KEYWORD "SPEC_745"
KEYWORD "SPEC_750"
KEYWORD "SPEC_755"
KEYWORD "SPEC_760"
KEYWORD "SPEC_765"
KEYWORD "SPEC_770"
KEYWORD "SPEC_775"
KEYWORD "SPEC_780"
KEYWORD "SPEC_785"
KEYWORD "SPEC_790"
KEYWORD "SPEC_795"
KEYWORD "SPEC_800"
KEYWORD "SPEC_805"
KEYWORD "SPEC_810"
KEYWORD "SPEC_815"
KEYWORD "SPEC_820"
KEYWORD "SPEC_825"
KEYWORD "SPEC_830"
NUMBER_OF_FIELDS 107
BEGIN_DATA_FORMAT
SPEC_300 SPEC_305 SPEC_310 SPEC_315 SPEC_320 SPEC_325 SPEC_330 SPEC_335 SPEC_340 SPEC_345 SPEC_350 SPEC_355 SPEC_360 SPEC_365 SPEC_370 SPEC_375 SPEC_380 SPEC_385 SPEC_390 SPEC_395 SPEC_400 SPEC_405 SPEC_410 SPEC_415 SPEC_420 SPEC_425 SPEC_430 SPEC_435 SPEC_440 SPEC_445 SPEC_450 SPEC_455 SPEC_460 SPEC_465 SPEC_470 SPEC_475 SPEC_480 SPEC_485 SPEC_490 SPEC_495 SPEC_500 SPEC_505 SPEC_510 SPEC_515 SPEC_520 SPEC_525 SPEC_530 SPEC_535 SPEC_540 SPEC_545 SPEC_550 SPEC_555 SPEC_560 SPEC_565 SPEC_570 SPEC_575 SPEC_580 SPEC_585 SPEC_590 SPEC_595 SPEC_600 SPEC_605 SPEC_610 SPEC_615 SPEC_620 SPEC_625 SPEC_630 SPEC_635 SPEC_640 SPEC_645 SPEC_650 SPEC_655 SPEC_660 SPEC_665 SPEC_670 SPEC_675 SPEC_680 SPEC_685 SPEC_690 SPEC_695 SPEC_700 SPEC_705 SPEC_710 SPEC_715 SPEC_720 SPEC_725 SPEC_730 SPEC_735 SPEC_740 SPEC_745 SPEC_750 SPEC_755 SPEC_760 SPEC_765 SPEC_770 SPEC_775 SPEC_780 SPEC_785 SPEC_790 SPEC_795 SPEC_800 SPEC_805 SPEC_810 SPEC_815 SPEC_820 SPEC_825 SPEC_830
END_DATA_FORMAT
NUMBER_OF_SETS 1
BEGIN_DATA
0.05 2.58 5.13 12.28 19.45 28.15 36.88 40.88 44.88 48.7 52.53 56.2 59.85 63.63 67.4 64.3 57.55 59.8 56.75 63.34 64.1 60.85 56.51 58.27 60.03 58.93 57.82 66.32 74.82 81.04 87.25 88.93 90.61 90.99 91.37 93.24 95.11 93.54 91.96 93.84 95.72 96.17 96.61 96.87 97.13 99.61 102.1 101.43 100.75 101.54 102.32 101.16 100.0 98.87 97.74 98.33 98.92 96.21 93.5 95.59 97.69 98.48 99.27 99.16 99.04 97.38 95.72 97.29 98.86 97.26 95.67 96.93 98.19 100.6 103.0 101.07 99.13 93.26 87.38 89.49 91.6 92.25 92.89 84.87 76.85 81.68 86.51 89.55 92.58 85.4 78.23 67.96 57.69 70.31 82.92 80.6 78.27 78.91 79.55 76.48 73.4 68.66 63.92 67.35 70.78 72.61 74.44
END_DATA

132
Argyll_V3.5.0/profile/D50_3.0.sp Executable file
View File

@@ -0,0 +1,132 @@
SPECT
DESCRIPTOR "Argyll D50 illimunant spectral power, 300% U.V."
ORIGINATOR "Argyll CMS"
CREATED "Fri Jul 06 17:49:57 2001"
KEYWORD "SPECTRAL_BANDS"
SPECTRAL_BANDS "107"
KEYWORD "SPECTRAL_START_NM"
SPECTRAL_START_NM "300.000000"
KEYWORD "SPECTRAL_END_NM"
SPECTRAL_END_NM "830.000000"
KEYWORD "SPECTRAL_NORM"
SPECTRAL_NORM "100.000000"
KEYWORD "SPEC_300"
KEYWORD "SPEC_305"
KEYWORD "SPEC_310"
KEYWORD "SPEC_315"
KEYWORD "SPEC_320"
KEYWORD "SPEC_325"
KEYWORD "SPEC_330"
KEYWORD "SPEC_335"
KEYWORD "SPEC_340"
KEYWORD "SPEC_345"
KEYWORD "SPEC_350"
KEYWORD "SPEC_355"
KEYWORD "SPEC_360"
KEYWORD "SPEC_365"
KEYWORD "SPEC_370"
KEYWORD "SPEC_375"
KEYWORD "SPEC_380"
KEYWORD "SPEC_385"
KEYWORD "SPEC_390"
KEYWORD "SPEC_395"
KEYWORD "SPEC_400"
KEYWORD "SPEC_405"
KEYWORD "SPEC_410"
KEYWORD "SPEC_415"
KEYWORD "SPEC_420"
KEYWORD "SPEC_425"
KEYWORD "SPEC_430"
KEYWORD "SPEC_435"
KEYWORD "SPEC_440"
KEYWORD "SPEC_445"
KEYWORD "SPEC_450"
KEYWORD "SPEC_455"
KEYWORD "SPEC_460"
KEYWORD "SPEC_465"
KEYWORD "SPEC_470"
KEYWORD "SPEC_475"
KEYWORD "SPEC_480"
KEYWORD "SPEC_485"
KEYWORD "SPEC_490"
KEYWORD "SPEC_495"
KEYWORD "SPEC_500"
KEYWORD "SPEC_505"
KEYWORD "SPEC_510"
KEYWORD "SPEC_515"
KEYWORD "SPEC_520"
KEYWORD "SPEC_525"
KEYWORD "SPEC_530"
KEYWORD "SPEC_535"
KEYWORD "SPEC_540"
KEYWORD "SPEC_545"
KEYWORD "SPEC_550"
KEYWORD "SPEC_555"
KEYWORD "SPEC_560"
KEYWORD "SPEC_565"
KEYWORD "SPEC_570"
KEYWORD "SPEC_575"
KEYWORD "SPEC_580"
KEYWORD "SPEC_585"
KEYWORD "SPEC_590"
KEYWORD "SPEC_595"
KEYWORD "SPEC_600"
KEYWORD "SPEC_605"
KEYWORD "SPEC_610"
KEYWORD "SPEC_615"
KEYWORD "SPEC_620"
KEYWORD "SPEC_625"
KEYWORD "SPEC_630"
KEYWORD "SPEC_635"
KEYWORD "SPEC_640"
KEYWORD "SPEC_645"
KEYWORD "SPEC_650"
KEYWORD "SPEC_655"
KEYWORD "SPEC_660"
KEYWORD "SPEC_665"
KEYWORD "SPEC_670"
KEYWORD "SPEC_675"
KEYWORD "SPEC_680"
KEYWORD "SPEC_685"
KEYWORD "SPEC_690"
KEYWORD "SPEC_695"
KEYWORD "SPEC_700"
KEYWORD "SPEC_705"
KEYWORD "SPEC_710"
KEYWORD "SPEC_715"
KEYWORD "SPEC_720"
KEYWORD "SPEC_725"
KEYWORD "SPEC_730"
KEYWORD "SPEC_735"
KEYWORD "SPEC_740"
KEYWORD "SPEC_745"
KEYWORD "SPEC_750"
KEYWORD "SPEC_755"
KEYWORD "SPEC_760"
KEYWORD "SPEC_765"
KEYWORD "SPEC_770"
KEYWORD "SPEC_775"
KEYWORD "SPEC_780"
KEYWORD "SPEC_785"
KEYWORD "SPEC_790"
KEYWORD "SPEC_795"
KEYWORD "SPEC_800"
KEYWORD "SPEC_805"
KEYWORD "SPEC_810"
KEYWORD "SPEC_815"
KEYWORD "SPEC_820"
KEYWORD "SPEC_825"
KEYWORD "SPEC_830"
NUMBER_OF_FIELDS 107
BEGIN_DATA_FORMAT
SPEC_300 SPEC_305 SPEC_310 SPEC_315 SPEC_320 SPEC_325 SPEC_330 SPEC_335 SPEC_340 SPEC_345 SPEC_350 SPEC_355 SPEC_360 SPEC_365 SPEC_370 SPEC_375 SPEC_380 SPEC_385 SPEC_390 SPEC_395 SPEC_400 SPEC_405 SPEC_410 SPEC_415 SPEC_420 SPEC_425 SPEC_430 SPEC_435 SPEC_440 SPEC_445 SPEC_450 SPEC_455 SPEC_460 SPEC_465 SPEC_470 SPEC_475 SPEC_480 SPEC_485 SPEC_490 SPEC_495 SPEC_500 SPEC_505 SPEC_510 SPEC_515 SPEC_520 SPEC_525 SPEC_530 SPEC_535 SPEC_540 SPEC_545 SPEC_550 SPEC_555 SPEC_560 SPEC_565 SPEC_570 SPEC_575 SPEC_580 SPEC_585 SPEC_590 SPEC_595 SPEC_600 SPEC_605 SPEC_610 SPEC_615 SPEC_620 SPEC_625 SPEC_630 SPEC_635 SPEC_640 SPEC_645 SPEC_650 SPEC_655 SPEC_660 SPEC_665 SPEC_670 SPEC_675 SPEC_680 SPEC_685 SPEC_690 SPEC_695 SPEC_700 SPEC_705 SPEC_710 SPEC_715 SPEC_720 SPEC_725 SPEC_730 SPEC_735 SPEC_740 SPEC_745 SPEC_750 SPEC_755 SPEC_760 SPEC_765 SPEC_770 SPEC_775 SPEC_780 SPEC_785 SPEC_790 SPEC_795 SPEC_800 SPEC_805 SPEC_810 SPEC_815 SPEC_820 SPEC_825 SPEC_830
END_DATA_FORMAT
NUMBER_OF_SETS 1
BEGIN_DATA
0.06 3.09 6.15 14.73 23.34 33.78 44.25 49.05 53.85 58.44 63.03 67.44 71.82 76.35 80.88 77.16 68.57 70.67 65.71 71.26 69.03 63.49 56.51 58.27 60.03 58.93 57.82 66.32 74.82 81.04 87.25 88.93 90.61 90.99 91.37 93.24 95.11 93.54 91.96 93.84 95.72 96.17 96.61 96.87 97.13 99.61 102.1 101.43 100.75 101.54 102.32 101.16 100.0 98.87 97.74 98.33 98.92 96.21 93.5 95.59 97.69 98.48 99.27 99.16 99.04 97.38 95.72 97.29 98.86 97.26 95.67 96.93 98.19 100.6 103.0 101.07 99.13 93.26 87.38 89.49 91.6 92.25 92.89 84.87 76.85 81.68 86.51 89.55 92.58 85.4 78.23 67.96 57.69 70.31 82.92 80.6 78.27 78.91 79.55 76.48 73.4 68.66 63.92 67.35 70.78 72.61 74.44
END_DATA

106
Argyll_V3.5.0/profile/F1.sp Executable file
View File

@@ -0,0 +1,106 @@
SPECT
DESCRIPTOR "Argyll F1 illimunant spectral power"
ORIGINATOR "Argyll CMS"
CREATED "Fri Jul 06 17:49:57 2001"
KEYWORD "SPECTRAL_BANDS"
SPECTRAL_BANDS "81"
KEYWORD "SPECTRAL_START_NM"
SPECTRAL_START_NM "380.000000"
KEYWORD "SPECTRAL_END_NM"
SPECTRAL_END_NM "780.000000"
KEYWORD "SPECTRAL_NORM"
SPECTRAL_NORM "30.00"
KEYWORD "SPEC_380"
KEYWORD "SPEC_385"
KEYWORD "SPEC_390"
KEYWORD "SPEC_395"
KEYWORD "SPEC_400"
KEYWORD "SPEC_405"
KEYWORD "SPEC_410"
KEYWORD "SPEC_415"
KEYWORD "SPEC_420"
KEYWORD "SPEC_425"
KEYWORD "SPEC_430"
KEYWORD "SPEC_435"
KEYWORD "SPEC_440"
KEYWORD "SPEC_445"
KEYWORD "SPEC_450"
KEYWORD "SPEC_455"
KEYWORD "SPEC_460"
KEYWORD "SPEC_465"
KEYWORD "SPEC_470"
KEYWORD "SPEC_475"
KEYWORD "SPEC_480"
KEYWORD "SPEC_485"
KEYWORD "SPEC_490"
KEYWORD "SPEC_495"
KEYWORD "SPEC_500"
KEYWORD "SPEC_505"
KEYWORD "SPEC_510"
KEYWORD "SPEC_515"
KEYWORD "SPEC_520"
KEYWORD "SPEC_525"
KEYWORD "SPEC_530"
KEYWORD "SPEC_535"
KEYWORD "SPEC_540"
KEYWORD "SPEC_545"
KEYWORD "SPEC_550"
KEYWORD "SPEC_555"
KEYWORD "SPEC_560"
KEYWORD "SPEC_565"
KEYWORD "SPEC_570"
KEYWORD "SPEC_575"
KEYWORD "SPEC_580"
KEYWORD "SPEC_585"
KEYWORD "SPEC_590"
KEYWORD "SPEC_595"
KEYWORD "SPEC_600"
KEYWORD "SPEC_605"
KEYWORD "SPEC_610"
KEYWORD "SPEC_615"
KEYWORD "SPEC_620"
KEYWORD "SPEC_625"
KEYWORD "SPEC_630"
KEYWORD "SPEC_635"
KEYWORD "SPEC_640"
KEYWORD "SPEC_645"
KEYWORD "SPEC_650"
KEYWORD "SPEC_655"
KEYWORD "SPEC_660"
KEYWORD "SPEC_665"
KEYWORD "SPEC_670"
KEYWORD "SPEC_675"
KEYWORD "SPEC_680"
KEYWORD "SPEC_685"
KEYWORD "SPEC_690"
KEYWORD "SPEC_695"
KEYWORD "SPEC_700"
KEYWORD "SPEC_705"
KEYWORD "SPEC_710"
KEYWORD "SPEC_715"
KEYWORD "SPEC_720"
KEYWORD "SPEC_725"
KEYWORD "SPEC_730"
KEYWORD "SPEC_735"
KEYWORD "SPEC_740"
KEYWORD "SPEC_745"
KEYWORD "SPEC_750"
KEYWORD "SPEC_755"
KEYWORD "SPEC_760"
KEYWORD "SPEC_765"
KEYWORD "SPEC_770"
KEYWORD "SPEC_775"
KEYWORD "SPEC_780"
NUMBER_OF_FIELDS 81
BEGIN_DATA_FORMAT
SPEC_380 SPEC_385 SPEC_390 SPEC_395 SPEC_400 SPEC_405 SPEC_410 SPEC_415 SPEC_420 SPEC_425 SPEC_430 SPEC_435 SPEC_440 SPEC_445 SPEC_450 SPEC_455 SPEC_460 SPEC_465 SPEC_470 SPEC_475 SPEC_480 SPEC_485 SPEC_490 SPEC_495 SPEC_500 SPEC_505 SPEC_510 SPEC_515 SPEC_520 SPEC_525 SPEC_530 SPEC_535 SPEC_540 SPEC_545 SPEC_550 SPEC_555 SPEC_560 SPEC_565 SPEC_570 SPEC_575 SPEC_580 SPEC_585 SPEC_590 SPEC_595 SPEC_600 SPEC_605 SPEC_610 SPEC_615 SPEC_620 SPEC_625 SPEC_630 SPEC_635 SPEC_640 SPEC_645 SPEC_650 SPEC_655 SPEC_660 SPEC_665 SPEC_670 SPEC_675 SPEC_680 SPEC_685 SPEC_690 SPEC_695 SPEC_700 SPEC_705 SPEC_710 SPEC_715 SPEC_720 SPEC_725 SPEC_730 SPEC_735 SPEC_740 SPEC_745 SPEC_750 SPEC_755 SPEC_760 SPEC_765 SPEC_770 SPEC_775 SPEC_780
END_DATA_FORMAT
NUMBER_OF_SETS 1
BEGIN_DATA
1.87 2.36 2.94 3.47 5.17 19.49 6.13 6.24 7.01 7.79 8.56 43.67 16.94 10.72 11.35 11.89 12.37 12.75 13.00 13.15 13.23 13.17 13.13 12.85 12.52 12.20 11.83 11.50 11.22 11.05 11.03 11.18 11.53 27.74 17.05 13.55 14.33 15.01 15.52 18.29 19.55 15.48 14.91 14.15 13.22 12.19 11.12 10.03 8.95 7.96 7.02 6.20 5.42 4.73 4.15 3.64 3.20 2.81 2.47 2.18 1.93 1.72 1.67 1.43 1.29 1.19 1.08 0.96 0.88 0.81 0.77 0.75 0.73 0.68 0.69 0.64 0.68 0.69 0.61 0.52 0.43
END_DATA

106
Argyll_V3.5.0/profile/F5.sp Executable file
View File

@@ -0,0 +1,106 @@
SPECT
DESCRIPTOR "Argyll F5 illimunant spectral power"
ORIGINATOR "Argyll CMS"
CREATED "Fri Jul 06 17:49:57 2001"
KEYWORD "SPECTRAL_BANDS"
SPECTRAL_BANDS "81"
KEYWORD "SPECTRAL_START_NM"
SPECTRAL_START_NM "380.000000"
KEYWORD "SPECTRAL_END_NM"
SPECTRAL_END_NM "780.000000"
KEYWORD "SPECTRAL_NORM"
SPECTRAL_NORM "30.00"
KEYWORD "SPEC_380"
KEYWORD "SPEC_385"
KEYWORD "SPEC_390"
KEYWORD "SPEC_395"
KEYWORD "SPEC_400"
KEYWORD "SPEC_405"
KEYWORD "SPEC_410"
KEYWORD "SPEC_415"
KEYWORD "SPEC_420"
KEYWORD "SPEC_425"
KEYWORD "SPEC_430"
KEYWORD "SPEC_435"
KEYWORD "SPEC_440"
KEYWORD "SPEC_445"
KEYWORD "SPEC_450"
KEYWORD "SPEC_455"
KEYWORD "SPEC_460"
KEYWORD "SPEC_465"
KEYWORD "SPEC_470"
KEYWORD "SPEC_475"
KEYWORD "SPEC_480"
KEYWORD "SPEC_485"
KEYWORD "SPEC_490"
KEYWORD "SPEC_495"
KEYWORD "SPEC_500"
KEYWORD "SPEC_505"
KEYWORD "SPEC_510"
KEYWORD "SPEC_515"
KEYWORD "SPEC_520"
KEYWORD "SPEC_525"
KEYWORD "SPEC_530"
KEYWORD "SPEC_535"
KEYWORD "SPEC_540"
KEYWORD "SPEC_545"
KEYWORD "SPEC_550"
KEYWORD "SPEC_555"
KEYWORD "SPEC_560"
KEYWORD "SPEC_565"
KEYWORD "SPEC_570"
KEYWORD "SPEC_575"
KEYWORD "SPEC_580"
KEYWORD "SPEC_585"
KEYWORD "SPEC_590"
KEYWORD "SPEC_595"
KEYWORD "SPEC_600"
KEYWORD "SPEC_605"
KEYWORD "SPEC_610"
KEYWORD "SPEC_615"
KEYWORD "SPEC_620"
KEYWORD "SPEC_625"
KEYWORD "SPEC_630"
KEYWORD "SPEC_635"
KEYWORD "SPEC_640"
KEYWORD "SPEC_645"
KEYWORD "SPEC_650"
KEYWORD "SPEC_655"
KEYWORD "SPEC_660"
KEYWORD "SPEC_665"
KEYWORD "SPEC_670"
KEYWORD "SPEC_675"
KEYWORD "SPEC_680"
KEYWORD "SPEC_685"
KEYWORD "SPEC_690"
KEYWORD "SPEC_695"
KEYWORD "SPEC_700"
KEYWORD "SPEC_705"
KEYWORD "SPEC_710"
KEYWORD "SPEC_715"
KEYWORD "SPEC_720"
KEYWORD "SPEC_725"
KEYWORD "SPEC_730"
KEYWORD "SPEC_735"
KEYWORD "SPEC_740"
KEYWORD "SPEC_745"
KEYWORD "SPEC_750"
KEYWORD "SPEC_755"
KEYWORD "SPEC_760"
KEYWORD "SPEC_765"
KEYWORD "SPEC_770"
KEYWORD "SPEC_775"
KEYWORD "SPEC_780"
NUMBER_OF_FIELDS 81
BEGIN_DATA_FORMAT
SPEC_380 SPEC_385 SPEC_390 SPEC_395 SPEC_400 SPEC_405 SPEC_410 SPEC_415 SPEC_420 SPEC_425 SPEC_430 SPEC_435 SPEC_440 SPEC_445 SPEC_450 SPEC_455 SPEC_460 SPEC_465 SPEC_470 SPEC_475 SPEC_480 SPEC_485 SPEC_490 SPEC_495 SPEC_500 SPEC_505 SPEC_510 SPEC_515 SPEC_520 SPEC_525 SPEC_530 SPEC_535 SPEC_540 SPEC_545 SPEC_550 SPEC_555 SPEC_560 SPEC_565 SPEC_570 SPEC_575 SPEC_580 SPEC_585 SPEC_590 SPEC_595 SPEC_600 SPEC_605 SPEC_610 SPEC_615 SPEC_620 SPEC_625 SPEC_630 SPEC_635 SPEC_640 SPEC_645 SPEC_650 SPEC_655 SPEC_660 SPEC_665 SPEC_670 SPEC_675 SPEC_680 SPEC_685 SPEC_690 SPEC_695 SPEC_700 SPEC_705 SPEC_710 SPEC_715 SPEC_720 SPEC_725 SPEC_730 SPEC_735 SPEC_740 SPEC_745 SPEC_750 SPEC_755 SPEC_760 SPEC_765 SPEC_770 SPEC_775 SPEC_780
END_DATA_FORMAT
NUMBER_OF_SETS 1
BEGIN_DATA
1.87 2.35 2.92 3.45 5.10 18.91 6.00 6.11 6.85 7.58 8.31 40.76 16.06 10.32 10.91 11.40 11.83 12.17 12.40 12.54 12.58 12.52 12.47 12.20 11.89 11.61 11.33 11.10 10.96 10.97 11.16 11.54 12.12 27.78 17.73 14.47 15.20 15.77 16.10 18.54 19.50 15.39 14.64 13.72 12.69 11.57 10.45 9.35 8.29 7.32 6.41 5.63 4.90 4.26 3.72 3.25 2.83 2.49 2.19 1.93 1.71 1.52 1.43 1.26 1.13 1.05 0.96 0.85 0.78 0.72 0.68 0.67 0.65 0.61 0.62 0.59 0.62 0.64 0.55 0.47 0.40
END_DATA

106
Argyll_V3.5.0/profile/F8.sp Executable file
View File

@@ -0,0 +1,106 @@
SPECT
DESCRIPTOR "Argyll F8 illimunant spectral power"
ORIGINATOR "Argyll CMS"
CREATED "Fri Jul 06 17:49:57 2001"
KEYWORD "SPECTRAL_BANDS"
SPECTRAL_BANDS "81"
KEYWORD "SPECTRAL_START_NM"
SPECTRAL_START_NM "380.000000"
KEYWORD "SPECTRAL_END_NM"
SPECTRAL_END_NM "780.000000"
KEYWORD "SPECTRAL_NORM"
SPECTRAL_NORM "30.00"
KEYWORD "SPEC_380"
KEYWORD "SPEC_385"
KEYWORD "SPEC_390"
KEYWORD "SPEC_395"
KEYWORD "SPEC_400"
KEYWORD "SPEC_405"
KEYWORD "SPEC_410"
KEYWORD "SPEC_415"
KEYWORD "SPEC_420"
KEYWORD "SPEC_425"
KEYWORD "SPEC_430"
KEYWORD "SPEC_435"
KEYWORD "SPEC_440"
KEYWORD "SPEC_445"
KEYWORD "SPEC_450"
KEYWORD "SPEC_455"
KEYWORD "SPEC_460"
KEYWORD "SPEC_465"
KEYWORD "SPEC_470"
KEYWORD "SPEC_475"
KEYWORD "SPEC_480"
KEYWORD "SPEC_485"
KEYWORD "SPEC_490"
KEYWORD "SPEC_495"
KEYWORD "SPEC_500"
KEYWORD "SPEC_505"
KEYWORD "SPEC_510"
KEYWORD "SPEC_515"
KEYWORD "SPEC_520"
KEYWORD "SPEC_525"
KEYWORD "SPEC_530"
KEYWORD "SPEC_535"
KEYWORD "SPEC_540"
KEYWORD "SPEC_545"
KEYWORD "SPEC_550"
KEYWORD "SPEC_555"
KEYWORD "SPEC_560"
KEYWORD "SPEC_565"
KEYWORD "SPEC_570"
KEYWORD "SPEC_575"
KEYWORD "SPEC_580"
KEYWORD "SPEC_585"
KEYWORD "SPEC_590"
KEYWORD "SPEC_595"
KEYWORD "SPEC_600"
KEYWORD "SPEC_605"
KEYWORD "SPEC_610"
KEYWORD "SPEC_615"
KEYWORD "SPEC_620"
KEYWORD "SPEC_625"
KEYWORD "SPEC_630"
KEYWORD "SPEC_635"
KEYWORD "SPEC_640"
KEYWORD "SPEC_645"
KEYWORD "SPEC_650"
KEYWORD "SPEC_655"
KEYWORD "SPEC_660"
KEYWORD "SPEC_665"
KEYWORD "SPEC_670"
KEYWORD "SPEC_675"
KEYWORD "SPEC_680"
KEYWORD "SPEC_685"
KEYWORD "SPEC_690"
KEYWORD "SPEC_695"
KEYWORD "SPEC_700"
KEYWORD "SPEC_705"
KEYWORD "SPEC_710"
KEYWORD "SPEC_715"
KEYWORD "SPEC_720"
KEYWORD "SPEC_725"
KEYWORD "SPEC_730"
KEYWORD "SPEC_735"
KEYWORD "SPEC_740"
KEYWORD "SPEC_745"
KEYWORD "SPEC_750"
KEYWORD "SPEC_755"
KEYWORD "SPEC_760"
KEYWORD "SPEC_765"
KEYWORD "SPEC_770"
KEYWORD "SPEC_775"
KEYWORD "SPEC_780"
NUMBER_OF_FIELDS 81
BEGIN_DATA_FORMAT
SPEC_380 SPEC_385 SPEC_390 SPEC_395 SPEC_400 SPEC_405 SPEC_410 SPEC_415 SPEC_420 SPEC_425 SPEC_430 SPEC_435 SPEC_440 SPEC_445 SPEC_450 SPEC_455 SPEC_460 SPEC_465 SPEC_470 SPEC_475 SPEC_480 SPEC_485 SPEC_490 SPEC_495 SPEC_500 SPEC_505 SPEC_510 SPEC_515 SPEC_520 SPEC_525 SPEC_530 SPEC_535 SPEC_540 SPEC_545 SPEC_550 SPEC_555 SPEC_560 SPEC_565 SPEC_570 SPEC_575 SPEC_580 SPEC_585 SPEC_590 SPEC_595 SPEC_600 SPEC_605 SPEC_610 SPEC_615 SPEC_620 SPEC_625 SPEC_630 SPEC_635 SPEC_640 SPEC_645 SPEC_650 SPEC_655 SPEC_660 SPEC_665 SPEC_670 SPEC_675 SPEC_680 SPEC_685 SPEC_690 SPEC_695 SPEC_700 SPEC_705 SPEC_710 SPEC_715 SPEC_720 SPEC_725 SPEC_730 SPEC_735 SPEC_740 SPEC_745 SPEC_750 SPEC_755 SPEC_760 SPEC_765 SPEC_770 SPEC_775 SPEC_780
END_DATA_FORMAT
NUMBER_OF_SETS 1
BEGIN_DATA
1.21 1.50 1.81 2.13 3.17 13.08 3.83 3.45 3.86 4.42 5.09 34.10 12.42 7.68 8.60 9.46 10.24 10.84 11.33 11.71 11.98 12.17 12.28 12.32 12.35 12.44 12.55 12.68 12.77 12.72 12.60 12.43 12.22 28.96 16.51 11.79 11.76 11.77 11.84 14.61 16.11 12.34 12.53 12.72 12.92 13.12 13.34 13.61 13.87 14.07 14.20 14.16 14.13 14.34 14.50 14.46 14.00 12.58 10.99 9.98 9.22 8.62 8.07 7.39 6.71 6.16 5.63 5.03 4.46 4.02 3.66 3.36 3.09 2.85 2.65 2.51 2.37 2.15 1.89 1.61 1.32
END_DATA

View File

@@ -0,0 +1,64 @@
SPECT
DESCRIPTOR "Argyll Spectral Power information for GTI D50 viewer - extended to 350nm with high estimation of UV"
ORIGINATOR "Argyll CMS"
CREATED "Thu May 20 15:12:32 2004"
KEYWORD "SPECTRAL_BANDS"
SPECTRAL_BANDS "80"
KEYWORD "SPECTRAL_START_NM"
SPECTRAL_START_NM "340.000000"
KEYWORD "SPECTRAL_END_NM"
SPECTRAL_END_NM "750.000000"
KEYWORD "SPECTRAL_NORM"
SPECTRAL_NORM "50.000"
KEYWORD "SPEC_340"
KEYWORD "SPEC_350"
KEYWORD "SPEC_360"
KEYWORD "SPEC_370"
KEYWORD "SPEC_380"
KEYWORD "SPEC_390"
KEYWORD "SPEC_400"
KEYWORD "SPEC_410"
KEYWORD "SPEC_420"
KEYWORD "SPEC_430"
KEYWORD "SPEC_440"
KEYWORD "SPEC_450"
KEYWORD "SPEC_460"
KEYWORD "SPEC_470"
KEYWORD "SPEC_480"
KEYWORD "SPEC_490"
KEYWORD "SPEC_500"
KEYWORD "SPEC_510"
KEYWORD "SPEC_520"
KEYWORD "SPEC_530"
KEYWORD "SPEC_540"
KEYWORD "SPEC_550"
KEYWORD "SPEC_560"
KEYWORD "SPEC_570"
KEYWORD "SPEC_580"
KEYWORD "SPEC_590"
KEYWORD "SPEC_600"
KEYWORD "SPEC_610"
KEYWORD "SPEC_620"
KEYWORD "SPEC_630"
KEYWORD "SPEC_640"
KEYWORD "SPEC_650"
KEYWORD "SPEC_660"
KEYWORD "SPEC_670"
KEYWORD "SPEC_680"
KEYWORD "SPEC_690"
KEYWORD "SPEC_700"
KEYWORD "SPEC_710"
KEYWORD "SPEC_720"
KEYWORD "SPEC_730"
NUMBER_OF_FIELDS 40
BEGIN_DATA_FORMAT
SPEC_340 SPEC_350 SPEC_360 SPEC_370 SPEC_380 SPEC_390 SPEC_400 SPEC_410 SPEC_420 SPEC_430 SPEC_440 SPEC_450 SPEC_460 SPEC_470 SPEC_480 SPEC_490 SPEC_500 SPEC_510 SPEC_520 SPEC_530 SPEC_540 SPEC_550 SPEC_560 SPEC_570 SPEC_580 SPEC_590 SPEC_600 SPEC_610 SPEC_620 SPEC_630 SPEC_640 SPEC_650 SPEC_660 SPEC_670 SPEC_680 SPEC_690 SPEC_700 SPEC_710 SPEC_720 SPEC_730
END_DATA_FORMAT
NUMBER_OF_SETS 1
BEGIN_DATA
5.0 7.0 7.0 6.0 3.257189 6.165859 19.269892 21.802994 16.533678 39.975159 57.056049 30.274649 30.155033 32.977394 35.03986 36.617123 37.617252 38.191128 38.476234 39.155827 51.626312 62.044827 42.804649 43.08567 48.201847 44.268539 43.22028 43.416119 42.784763 41.291107 39.292709 36.579609 33.26786 29.675453 26.125034 22.980124 19.86338 16.922205 13.994864 11.727232
END_DATA

150
Argyll_V3.5.0/profile/Jamfile Executable file
View File

@@ -0,0 +1,150 @@
#PREF_CCFLAGS = $(CCOPTFLAG) ; # Turn optimisation on
PREF_CCFLAGS = $(CCDEBUGFLAG) ; # Debugging flags
#PREF_CCFLAGS = $(CCHEAPDEBUG) ; # Heap Debugging flags
PREF_LINKFLAGS = $(LINKDEBUGFLAG) ;
#Products
Libraries = libprof ;
Executables = cb2ti3 kodak2ti3 txt2ti3 cxf2ti3 ls2ti3 splitti3 mppcheck mppprof
profcheck invprofcheck colverify colprof printcal applycal iccvcgt ;
Headers = prof.h ;
Samples = example.sp example121.sp 3dap5k.sp GTIPlus.sp Office.sp Trulux.sp TruluxPlus.sp
D50_0.0.sp D50_0.1.sp D50_0.3.sp D50_0.5.sp D50_0.7.sp D50_1.0.sp D50_1.2.sp
D50_1.5.sp D50_1.7.sp D50_2.0.sp D50_2.5.sp D50_3.0.sp CIE_C.sp F1.sp F5.sp F8.sp ;
if [ GLOB [ NormPaths . ] : mpp2prof.c ] {
Executables += mpp2prof ;
}
#Install
InstallBin $(DESTDIR)$(PREFIX)/bin : $(Executables) ;
InstallFile $(DESTDIR)$(PREFIX)/$(REFSUBDIR) : $(Samples) ;
#InstallFile $(DESTDIR)$(PREFIX)/h : $(Headers) ;
#InstallLib $(DESTDIR)$(PREFIX)/lib : $(Libraries) ;
HDRS = ../h ../icc ../cgats ../rspl
../numlib ../gamut ../xicc ../spectro
../target ../plot ;
# PROF library
Library libprof : profin.c profout.c ;
LINKLIBS = ../rspl/librspl ../icc/libicc ../cgats/libcgats ../spectro/libconv
../plot/libplot ../plot/libvrml ../numlib/libui ../numlib/libnum ;
LINKFLAGS += $(GUILINKFLAGS) ;
# Simple profile generator
Main simpprof : simpprof.c ;
#Kodak raw profile data to Argyll CGATS format converter
Main kodak2ti3 : kodak2ti3.c ;
#Colorblind raw profile data to Argyll CGATS format converter
Main cb2ti3 : cb2ti3.c ;
# the gcc linker is retarded, and can't link to things it's gone past, hence 2 x libxicc...
LINKLIBS = ../xicc/libxicc ../spectro/libinsttypes ../spectro/libdisptechs ../xicc/libxicc ../gamut/libgamut $(LINKLIBS) ;
#Gretag/Logo raw CMYK profile data to Argyll CGATS format converter
Main txt2ti3 : txt2ti3.c ;
#CxF to Argyll CGATS format
Main cxf2ti3 : cxf2ti3.c : : : ../xml : : ../xml/libmxml ;
#LightSpace to Argyll CGATS format
Main ls2ti3 : ls2ti3.c : : : ../xml : : ../xml/libmxml ;
#Split a .ti3 into two pieces randomly
Main splitti3 : splitti3.c ;
# Profile checker
Main profcheck : profcheck.c ;
# Reverse Profile checker
Main invprofcheck : invprofcheck.c ;
# Model Printer Profile generator
Main mppprof : mppprof.c ;
# Model Printer Profile checker
Main mppcheck : mppcheck.c ;
# Model Printer Profile #2 generator
if [ GLOB [ NormPaths . ] : mpp2prof.c ] {
Main mpp2prof : mpp2prof.c : : : : : ../xicc/libmpp2 ;
}
if [ GLOB [ NormPaths . ] : mpp2check.c ] {
Main mpp2check : mpp2check.c : : : : : ../xicc/libmpp2 ;
}
if [ GLOB [ NormPaths . ] : mpp2mod.c ] {
Main mpp2mod : mpp2mod.c : : : : : ../xicc/libmpp2 ;
}
LINKLIBS = ../plot/libvrml $(LINKLIBS) ;
# Verifyer
Main colverify : colverify.c ;
LINKLIBS = libprof ../gamut/libgammap $(LINKLIBS) $(TIFFLIB) $(JPEGLIB) ;
# Full profile generator
Main colprof : colprof.c : : : $(TIFFINC) $(JPEGINC) ;
# Print calibration
Main printcal : printcal.c : : : $(TIFFINC) $(JPEGINC) ;
# Applying calibration
Main applycal : applycal.c ;
# Changing an ICC profile vcgt
Main iccvcgt : iccvcgt.c ;
# Optimised Separation Generator
#Main sepgen : sepgen.c ;
# Test code
if $(HOME) = "d:\\usr\\graeme" && $(PWD) = "/src/argyll/profile" {
Main specinpprof : specinpprof.c ;
}
# Development code
if [ GLOB [ NormPaths . ] : retargti3.c ] {
Main retargti3 : retargti3.c ;
}
if [ GLOB [ NormPaths . ] : t.c ] {
Main t : t.c ;
}
if [ GLOB [ NormPaths . ] : nmod2.c ] {
Main nmod2 : nmod2.c ;
}
if [ GLOB [ NormPaths . ] : nmod2t.c ] {
Main nmod2t : nmod2t.c ;
}
if [ GLOB [ NormPaths . ] : nmod7.c ] {
Main nmod7 : nmod7.c ;
}
if [ GLOB [ NormPaths . ] : nmod7_2.c ] {
Main nmod7_2 : nmod7_2.c ;
}
if [ GLOB [ NormPaths . ] : nmod8.c ] {
Main nmod8 : nmod8.c ;
}

662
Argyll_V3.5.0/profile/License.txt Executable file
View File

@@ -0,0 +1,662 @@
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.
A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate. Many developers of free software are heartened and
encouraged by the resulting cooperation. However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.
The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community. It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.
An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals. This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU Affero General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Remote Network Interaction; Use with the GNU General Public License.
Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software. This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU Affero General Public License from time to time. Such new versions
will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code. There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<http://www.gnu.org/licenses/>.

103
Argyll_V3.5.0/profile/Office.sp Executable file
View File

@@ -0,0 +1,103 @@
SPECT
DESCRIPTOR "Argyll Spectral Power information for Typical Office lighting (Ref), extended to 355nm by estimate of UV"
ORIGINATOR "Argyll CMS"
CREATED "Wed Sep 12 15:12:32 2001"
KEYWORD "SPECTRAL_BANDS"
SPECTRAL_BANDS "80"
KEYWORD "SPECTRAL_START_NM"
SPECTRAL_START_NM "380.000000"
KEYWORD "SPECTRAL_END_NM"
SPECTRAL_END_NM "750.000000"
KEYWORD "SPECTRAL_NORM"
SPECTRAL_NORM "100.000"
KEYWORD "SPEC_355"
KEYWORD "SPEC_360"
KEYWORD "SPEC_365"
KEYWORD "SPEC_370"
KEYWORD "SPEC_375"
KEYWORD "SPEC_380"
KEYWORD "SPEC_385"
KEYWORD "SPEC_390"
KEYWORD "SPEC_395"
KEYWORD "SPEC_400"
KEYWORD "SPEC_405"
KEYWORD "SPEC_410"
KEYWORD "SPEC_415"
KEYWORD "SPEC_420"
KEYWORD "SPEC_425"
KEYWORD "SPEC_430"
KEYWORD "SPEC_435"
KEYWORD "SPEC_440"
KEYWORD "SPEC_445"
KEYWORD "SPEC_450"
KEYWORD "SPEC_455"
KEYWORD "SPEC_460"
KEYWORD "SPEC_465"
KEYWORD "SPEC_470"
KEYWORD "SPEC_475"
KEYWORD "SPEC_480"
KEYWORD "SPEC_485"
KEYWORD "SPEC_490"
KEYWORD "SPEC_495"
KEYWORD "SPEC_500"
KEYWORD "SPEC_505"
KEYWORD "SPEC_510"
KEYWORD "SPEC_515"
KEYWORD "SPEC_520"
KEYWORD "SPEC_525"
KEYWORD "SPEC_530"
KEYWORD "SPEC_535"
KEYWORD "SPEC_540"
KEYWORD "SPEC_545"
KEYWORD "SPEC_550"
KEYWORD "SPEC_555"
KEYWORD "SPEC_560"
KEYWORD "SPEC_565"
KEYWORD "SPEC_570"
KEYWORD "SPEC_575"
KEYWORD "SPEC_580"
KEYWORD "SPEC_585"
KEYWORD "SPEC_590"
KEYWORD "SPEC_595"
KEYWORD "SPEC_600"
KEYWORD "SPEC_605"
KEYWORD "SPEC_610"
KEYWORD "SPEC_615"
KEYWORD "SPEC_620"
KEYWORD "SPEC_625"
KEYWORD "SPEC_630"
KEYWORD "SPEC_635"
KEYWORD "SPEC_640"
KEYWORD "SPEC_645"
KEYWORD "SPEC_650"
KEYWORD "SPEC_655"
KEYWORD "SPEC_660"
KEYWORD "SPEC_665"
KEYWORD "SPEC_670"
KEYWORD "SPEC_675"
KEYWORD "SPEC_680"
KEYWORD "SPEC_685"
KEYWORD "SPEC_690"
KEYWORD "SPEC_695"
KEYWORD "SPEC_700"
KEYWORD "SPEC_705"
KEYWORD "SPEC_710"
KEYWORD "SPEC_715"
KEYWORD "SPEC_720"
KEYWORD "SPEC_725"
KEYWORD "SPEC_730"
KEYWORD "SPEC_735"
KEYWORD "SPEC_740"
KEYWORD "SPEC_745"
KEYWORD "SPEC_750"
NUMBER_OF_FIELDS 80
BEGIN_DATA_FORMAT
SPEC_355 SPEC_360 SPEC_365 SPEC_370 SPEC_375 SPEC_380 SPEC_385 SPEC_390 SPEC_395 SPEC_400 SPEC_405 SPEC_410 SPEC_415 SPEC_420 SPEC_425 SPEC_430 SPEC_435 SPEC_440 SPEC_445 SPEC_450 SPEC_455 SPEC_460 SPEC_465 SPEC_470 SPEC_475 SPEC_480 SPEC_485 SPEC_490 SPEC_495 SPEC_500 SPEC_505 SPEC_510 SPEC_515 SPEC_520 SPEC_525 SPEC_530 SPEC_535 SPEC_540 SPEC_545 SPEC_550 SPEC_555 SPEC_560 SPEC_565 SPEC_570 SPEC_575 SPEC_580 SPEC_585 SPEC_590 SPEC_595 SPEC_600 SPEC_605 SPEC_610 SPEC_615 SPEC_620 SPEC_625 SPEC_630 SPEC_635 SPEC_640 SPEC_645 SPEC_650 SPEC_655 SPEC_660 SPEC_665 SPEC_670 SPEC_675 SPEC_680 SPEC_685 SPEC_690 SPEC_695 SPEC_700 SPEC_705 SPEC_710 SPEC_715 SPEC_720 SPEC_725 SPEC_730 SPEC_735 SPEC_740 SPEC_745 SPEC_750
END_DATA_FORMAT
NUMBER_OF_SETS 1
BEGIN_DATA
0.0 3.0 5.0 6.0 8.0 9.4368 10.6036 13.842 20.7332 34.842 32.098 26.2668 24.5324 24.5532 33.8892 67.0204 82.9432 65.6956 48.8256 39.5772 38.0888 37.9392 37.624 37.78 37.4864 37.5828 37.4708 37.6088 37.4588 37.4644 37.622 38.0968 39.4056 41.7988 45.5484 50.8436 69.6052 106.3616 130.678 114.7876 97.5064 99.306 107.0748 117.8096 127.0744 126.3964 116.4272 111.9564 106.0416 99.828 93.2196 85.5196 77.282 69.6072 62.604 55.1144 48.3624 42.4144 37.872 33.3228 29.2668 25.792 23.0656 19.8412 17.7056 15.4692 13.7852 12.314 10.8312 9.4588 8.542 7.4892 6.912 5.8156 5.7536 5.3348 5.1076 4.636 4.0384 4.1468
END_DATA

View File

@@ -0,0 +1,3 @@
This directory has the source code ICC profile creation.

103
Argyll_V3.5.0/profile/Trulux.sp Executable file
View File

@@ -0,0 +1,103 @@
SPECT
DESCRIPTOR "Argyll Spectral Power information for Trulux D50 viewer - Foam reflector, extended to 355nm with estimation of UV"
ORIGINATOR "Argyll CMS"
CREATED "Fri Oct 5 15:12:32 2001"
KEYWORD "SPECTRAL_BANDS"
SPECTRAL_BANDS "80"
KEYWORD "SPECTRAL_START_NM"
SPECTRAL_START_NM "380.000000"
KEYWORD "SPECTRAL_END_NM"
SPECTRAL_END_NM "750.000000"
KEYWORD "SPECTRAL_NORM"
SPECTRAL_NORM "100.000"
KEYWORD "SPEC_355"
KEYWORD "SPEC_360"
KEYWORD "SPEC_365"
KEYWORD "SPEC_370"
KEYWORD "SPEC_375"
KEYWORD "SPEC_380"
KEYWORD "SPEC_385"
KEYWORD "SPEC_390"
KEYWORD "SPEC_395"
KEYWORD "SPEC_400"
KEYWORD "SPEC_405"
KEYWORD "SPEC_410"
KEYWORD "SPEC_415"
KEYWORD "SPEC_420"
KEYWORD "SPEC_425"
KEYWORD "SPEC_430"
KEYWORD "SPEC_435"
KEYWORD "SPEC_440"
KEYWORD "SPEC_445"
KEYWORD "SPEC_450"
KEYWORD "SPEC_455"
KEYWORD "SPEC_460"
KEYWORD "SPEC_465"
KEYWORD "SPEC_470"
KEYWORD "SPEC_475"
KEYWORD "SPEC_480"
KEYWORD "SPEC_485"
KEYWORD "SPEC_490"
KEYWORD "SPEC_495"
KEYWORD "SPEC_500"
KEYWORD "SPEC_505"
KEYWORD "SPEC_510"
KEYWORD "SPEC_515"
KEYWORD "SPEC_520"
KEYWORD "SPEC_525"
KEYWORD "SPEC_530"
KEYWORD "SPEC_535"
KEYWORD "SPEC_540"
KEYWORD "SPEC_545"
KEYWORD "SPEC_550"
KEYWORD "SPEC_555"
KEYWORD "SPEC_560"
KEYWORD "SPEC_565"
KEYWORD "SPEC_570"
KEYWORD "SPEC_575"
KEYWORD "SPEC_580"
KEYWORD "SPEC_585"
KEYWORD "SPEC_590"
KEYWORD "SPEC_595"
KEYWORD "SPEC_600"
KEYWORD "SPEC_605"
KEYWORD "SPEC_610"
KEYWORD "SPEC_615"
KEYWORD "SPEC_620"
KEYWORD "SPEC_625"
KEYWORD "SPEC_630"
KEYWORD "SPEC_635"
KEYWORD "SPEC_640"
KEYWORD "SPEC_645"
KEYWORD "SPEC_650"
KEYWORD "SPEC_655"
KEYWORD "SPEC_660"
KEYWORD "SPEC_665"
KEYWORD "SPEC_670"
KEYWORD "SPEC_675"
KEYWORD "SPEC_680"
KEYWORD "SPEC_685"
KEYWORD "SPEC_690"
KEYWORD "SPEC_695"
KEYWORD "SPEC_700"
KEYWORD "SPEC_705"
KEYWORD "SPEC_710"
KEYWORD "SPEC_715"
KEYWORD "SPEC_720"
KEYWORD "SPEC_725"
KEYWORD "SPEC_730"
KEYWORD "SPEC_735"
KEYWORD "SPEC_740"
KEYWORD "SPEC_745"
KEYWORD "SPEC_750"
NUMBER_OF_FIELDS 80
BEGIN_DATA_FORMAT
SPEC_355 SPEC_360 SPEC_365 SPEC_370 SPEC_375 SPEC_380 SPEC_385 SPEC_390 SPEC_395 SPEC_400 SPEC_405 SPEC_410 SPEC_415 SPEC_420 SPEC_425 SPEC_430 SPEC_435 SPEC_440 SPEC_445 SPEC_450 SPEC_455 SPEC_460 SPEC_465 SPEC_470 SPEC_475 SPEC_480 SPEC_485 SPEC_490 SPEC_495 SPEC_500 SPEC_505 SPEC_510 SPEC_515 SPEC_520 SPEC_525 SPEC_530 SPEC_535 SPEC_540 SPEC_545 SPEC_550 SPEC_555 SPEC_560 SPEC_565 SPEC_570 SPEC_575 SPEC_580 SPEC_585 SPEC_590 SPEC_595 SPEC_600 SPEC_605 SPEC_610 SPEC_615 SPEC_620 SPEC_625 SPEC_630 SPEC_635 SPEC_640 SPEC_645 SPEC_650 SPEC_655 SPEC_660 SPEC_665 SPEC_670 SPEC_675 SPEC_680 SPEC_685 SPEC_690 SPEC_695 SPEC_700 SPEC_705 SPEC_710 SPEC_715 SPEC_720 SPEC_725 SPEC_730 SPEC_735 SPEC_740 SPEC_745 SPEC_750
END_DATA_FORMAT
NUMBER_OF_SETS 1
BEGIN_DATA
0.0 0.685175 1.37035 2.255525 3.0407 4.11105 4.09644 5.01837 7.36485 11.98614 11.19519 7.11198 3.33963 6.44973 21.99549 67.47228 93.88269 79.77081 64.85577 57.85737 65.37378 75.29142 82.82394 87.81939 90.44277 92.28321 93.10557 93.11004 92.17122 89.96841 87.65004 84.8304 82.13712 77.75847 74.04651 74.87289 91.45155 123.67365 139.4193 115.8867 87.2391 79.06761 81.88944 91.58172 101.15043 102.11544 94.71408 93.87819 94.00419 95.28195 97.80723 99.53307 99.40416 98.43141 97.50237 95.58378 93.41358 91.00236 88.69698 85.72017 83.18451 80.22261 77.45886 73.79589 70.02708 66.29484 62.08128 57.95706 53.89545 49.70493 45.99504 42.19815 38.68413 35.16609 32.78418 30.1482 27.3201 24.13857 21.88494 20.10168
END_DATA

View File

@@ -0,0 +1,103 @@
SPECT
DESCRIPTOR "Argyll Spectral Power information for Trulux D50 viewer - Foam reflector, extended to 355nm with larger estimation of UV"
ORIGINATOR "Argyll CMS"
CREATED "Fri Oct 5 15:12:32 2001"
KEYWORD "SPECTRAL_BANDS"
SPECTRAL_BANDS "80"
KEYWORD "SPECTRAL_START_NM"
SPECTRAL_START_NM "355.000000"
KEYWORD "SPECTRAL_END_NM"
SPECTRAL_END_NM "750.000000"
KEYWORD "SPECTRAL_NORM"
SPECTRAL_NORM "100.000"
KEYWORD "SPEC_355"
KEYWORD "SPEC_360"
KEYWORD "SPEC_365"
KEYWORD "SPEC_370"
KEYWORD "SPEC_375"
KEYWORD "SPEC_380"
KEYWORD "SPEC_385"
KEYWORD "SPEC_390"
KEYWORD "SPEC_395"
KEYWORD "SPEC_400"
KEYWORD "SPEC_405"
KEYWORD "SPEC_410"
KEYWORD "SPEC_415"
KEYWORD "SPEC_420"
KEYWORD "SPEC_425"
KEYWORD "SPEC_430"
KEYWORD "SPEC_435"
KEYWORD "SPEC_440"
KEYWORD "SPEC_445"
KEYWORD "SPEC_450"
KEYWORD "SPEC_455"
KEYWORD "SPEC_460"
KEYWORD "SPEC_465"
KEYWORD "SPEC_470"
KEYWORD "SPEC_475"
KEYWORD "SPEC_480"
KEYWORD "SPEC_485"
KEYWORD "SPEC_490"
KEYWORD "SPEC_495"
KEYWORD "SPEC_500"
KEYWORD "SPEC_505"
KEYWORD "SPEC_510"
KEYWORD "SPEC_515"
KEYWORD "SPEC_520"
KEYWORD "SPEC_525"
KEYWORD "SPEC_530"
KEYWORD "SPEC_535"
KEYWORD "SPEC_540"
KEYWORD "SPEC_545"
KEYWORD "SPEC_550"
KEYWORD "SPEC_555"
KEYWORD "SPEC_560"
KEYWORD "SPEC_565"
KEYWORD "SPEC_570"
KEYWORD "SPEC_575"
KEYWORD "SPEC_580"
KEYWORD "SPEC_585"
KEYWORD "SPEC_590"
KEYWORD "SPEC_595"
KEYWORD "SPEC_600"
KEYWORD "SPEC_605"
KEYWORD "SPEC_610"
KEYWORD "SPEC_615"
KEYWORD "SPEC_620"
KEYWORD "SPEC_625"
KEYWORD "SPEC_630"
KEYWORD "SPEC_635"
KEYWORD "SPEC_640"
KEYWORD "SPEC_645"
KEYWORD "SPEC_650"
KEYWORD "SPEC_655"
KEYWORD "SPEC_660"
KEYWORD "SPEC_665"
KEYWORD "SPEC_670"
KEYWORD "SPEC_675"
KEYWORD "SPEC_680"
KEYWORD "SPEC_685"
KEYWORD "SPEC_690"
KEYWORD "SPEC_695"
KEYWORD "SPEC_700"
KEYWORD "SPEC_705"
KEYWORD "SPEC_710"
KEYWORD "SPEC_715"
KEYWORD "SPEC_720"
KEYWORD "SPEC_725"
KEYWORD "SPEC_730"
KEYWORD "SPEC_735"
KEYWORD "SPEC_740"
KEYWORD "SPEC_745"
KEYWORD "SPEC_750"
NUMBER_OF_FIELDS 80
BEGIN_DATA_FORMAT
SPEC_355 SPEC_360 SPEC_365 SPEC_370 SPEC_375 SPEC_380 SPEC_385 SPEC_390 SPEC_395 SPEC_400 SPEC_405 SPEC_410 SPEC_415 SPEC_420 SPEC_425 SPEC_430 SPEC_435 SPEC_440 SPEC_445 SPEC_450 SPEC_455 SPEC_460 SPEC_465 SPEC_470 SPEC_475 SPEC_480 SPEC_485 SPEC_490 SPEC_495 SPEC_500 SPEC_505 SPEC_510 SPEC_515 SPEC_520 SPEC_525 SPEC_530 SPEC_535 SPEC_540 SPEC_545 SPEC_550 SPEC_555 SPEC_560 SPEC_565 SPEC_570 SPEC_575 SPEC_580 SPEC_585 SPEC_590 SPEC_595 SPEC_600 SPEC_605 SPEC_610 SPEC_615 SPEC_620 SPEC_625 SPEC_630 SPEC_635 SPEC_640 SPEC_645 SPEC_650 SPEC_655 SPEC_660 SPEC_665 SPEC_670 SPEC_675 SPEC_680 SPEC_685 SPEC_690 SPEC_695 SPEC_700 SPEC_705 SPEC_710 SPEC_715 SPEC_720 SPEC_725 SPEC_730 SPEC_735 SPEC_740 SPEC_745 SPEC_750
END_DATA_FORMAT
NUMBER_OF_SETS 1
BEGIN_DATA
10.0 10.0 10.0 10.0 10.0407 6.11105 5.09644 5.01837 7.36485 11.98614 11.19519 7.11198 3.33963 6.44973 21.99549 67.47228 93.88269 79.77081 64.85577 57.85737 65.37378 75.29142 82.82394 87.81939 90.44277 92.28321 93.10557 93.11004 92.17122 89.96841 87.65004 84.8304 82.13712 77.75847 74.04651 74.87289 91.45155 123.67365 139.4193 115.8867 87.2391 79.06761 81.88944 91.58172 101.15043 102.11544 94.71408 93.87819 94.00419 95.28195 97.80723 99.53307 99.40416 98.43141 97.50237 95.58378 93.41358 91.00236 88.69698 85.72017 83.18451 80.22261 77.45886 73.79589 70.02708 66.29484 62.08128 57.95706 53.89545 49.70493 45.99504 42.19815 38.68413 35.16609 32.78418 30.1482 27.3201 24.13857 21.88494 20.10168
END_DATA

46
Argyll_V3.5.0/profile/afiles Executable file
View File

@@ -0,0 +1,46 @@
Readme.txt
License.txt
afiles
Jamfile
printcal.c
prof.h
profin.c
profout.c
colprof.c
profcheck.c
invprofcheck.c
colverify.c
applycal.c
mppprof.c
mppcheck.c
simpprof.c
kodak2ti3.c
ls2ti3.c
cb2ti3.c
txt2ti3.c
cxf2ti3.c
splitti3.c
iccvcgt.c
3dap5k.sp
GTIPlus.sp
Office.sp
Trulux.sp
TruluxPlus.sp
example.sp
example121.sp
F1.sp
F5.sp
F8.sp
CIE_C.sp
D50_0.0.sp
D50_0.1.sp
D50_0.3.sp
D50_0.5.sp
D50_0.7.sp
D50_1.0.sp
D50_1.2.sp
D50_1.5.sp
D50_1.7.sp
D50_2.0.sp
D50_2.5.sp
D50_3.0.sp

View File

@@ -0,0 +1,706 @@
/*
* ArgyllCMS.
* Apply a device calibration to an ICC profile.
*
* Author: Graeme W. Gill
* Date: 2009/8/31
* Version: 1.00
*
* Copyright 2009 Graeme W. Gill
*
* This material is licenced under the GNU AFFERO GENERAL PUBLIC LICENSE Version 3 :-
* see the License.txt file for licencing details.
*/
/* TTBD:
*
* Would be good if remove restores shared curves, rather than
* leaving duplicates.
*
* Could stash the whole cal file in a text tag.
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <fcntl.h>
#include <string.h>
#include <time.h>
#include "copyright.h"
#include "aconfig.h"
#include "cgats.h"
#include "numlib.h"
#include "rspl.h"
#include "conv.h"
#include "xicc.h"
#undef DEBUG
#ifdef DEBUG
#undef DBG
#define DBG(xxx) printf xxx ;
#else
#undef DBG
#define DBG(xxx)
#endif
typedef icmLut1 icmLut; /* Will only work for icSigLut16Type & icSigLut8Type */
void usage(char *diag, ...) {
int i;
fprintf(stderr,"Apply device calibration to an ICC profile, Version %s\n",ARGYLL_VERSION_STR);
fprintf(stderr,"Author: Graeme W. Gill, licensed under the AGPL Version 3\n");
if (diag != NULL) {
va_list args;
fprintf(stderr," Diagnostic: ");
va_start(args, diag);
vfprintf(stderr, diag, args);
va_end(args);
fprintf(stderr,"\n");
}
fprintf(stderr,"usage: %s [-options] [calfile.cal] inprof%s [outprof%s]\n","applycal",ICC_FILE_EXT,ICC_FILE_EXT);
fprintf(stderr," -v Verbose mode\n");
fprintf(stderr," -a Apply or re-apply calibration (default)\n");
fprintf(stderr," -u Remove calibration\n");
fprintf(stderr," -c Check calibration\n");
fprintf(stderr," calfile.cal Calibration file to apply\n");
fprintf(stderr," inprof%s ICC profile to read\n",ICC_FILE_EXT);
fprintf(stderr," outprof%s modified ICC profile to write\n",ICC_FILE_EXT);
exit(2);
}
/* A primary signature and its backup */
struct _tagsigpair {
icTagSignature prim;
icTagSignature back;
int chan;
int dir; /* 0 = none or out, 1 = in */
}; typedef struct _tagsigpair tagsigpair;
int
main(int argc, char *argv[]) {
int fa,nfa; /* argument we're looking at */
static char cal_name[MAXNAMEL+1];
static char in_name[MAXNAMEL+1];
static char out_name[MAXNAMEL+1];
xcal *cal = NULL; /* Calibration to apply */
icmFile *rd_fp = NULL, *wr_fp = NULL;
icmErr err = { 0, { '\000'} };
icc *icco;
int apply = 1;
int remove = 0;
int check = 0;
int verb = 0;
int found = -1;
int rv;
if (argc < 3)
usage("Too few arguments");
/* Process the arguments */
for(fa = 1;fa < argc;fa++) {
nfa = fa; /* skip to nfa if next argument is used */
if (argv[fa][0] == '-') { /* Look for any flags */
char *na = NULL; /* next argument after flag, null if none */
if (argv[fa][2] != '\000')
na = &argv[fa][2]; /* next is directly after flag */
else {
if ((fa+1) < argc) {
if (argv[fa+1][0] != '-') {
nfa = fa + 1;
na = argv[nfa]; /* next is seperate non-flag argument */
}
}
}
if (argv[fa][1] == '?')
usage("Usage requested");
else if (argv[fa][1] == 'v' || argv[fa][1] == 'V')
verb = 1;
else if (argv[fa][1] == 'a' || argv[fa][1] == 'A') {
apply = 1;
remove = 0;
check = 0;
}
else if (argv[fa][1] == 'u' || argv[fa][1] == 'U') {
apply = 0;
remove = 1;
check = 0;
}
else if (argv[fa][1] == 'c' || argv[fa][1] == 'C') {
apply = 0;
remove = 0;
check = 1;
}
else
usage("Unknown option '%s'",argv[fa][1]);
} else
break;
}
if (apply) {
if (fa >= argc || argv[fa][0] == '-') usage("Missing calibration filename");
strncpy(cal_name,argv[fa++],MAXNAMEL); cal_name[MAXNAMEL] = '\000';
}
if (fa >= argc || argv[fa][0] == '-') usage("Missing input profile filename");
strncpy(in_name,argv[fa++],MAXNAMEL); in_name[MAXNAMEL] = '\000';
if (apply || remove) {
if (fa >= argc || argv[fa][0] == '-') usage("Missing output profile name");
strncpy(out_name,argv[fa++],MAXNAMEL); out_name[MAXNAMEL] = '\000';
}
if (fa < argc) usage("Extra argument '%s'",argv[fa]);
DBG(("apply %d, remove %d, check %d, calfile '%s', infile '%s', outfile '%s'\n",apply,remove,check,cal_name,in_name,out_name));
if (apply) {
/* Open up the calibration file */
if ((cal = new_xcal()) == NULL)
error("new_xcal failed");
if ((cal->read(cal, cal_name)) != 0)
error("%s",cal->e.m);
}
/* Open up the profile for reading */
if ((rd_fp = new_icmFileStd_name(&err,in_name,"r")) == NULL)
error ("Can't open file '%s' (0x%x, '%s')",in_name,err.c,err.m);
if ((icco = new_icc(&err)) == NULL)
error ("Creation of ICC object failed (0x%x, '%s')",err.c,err.m);
/* Read header etc. */
if ((rv = icco->read(icco,rd_fp,0)) != 0)
error ("%d, %s",rv,icco->e.m);
/* Read every tag */
if (icco->read_all_tags(icco) != 0) {
error("Unable to read all tags: %d, %s",icco->e.c,icco->e.m);
}
rd_fp->del(rd_fp);
/* ======================================= */
{
tagsigpair sigs[] = { /* Signatures to modify and their backups */
{ icSigProfileDescriptionTag, icmMakeTag('A','R','0','T'), 0, 0 },
{ icSigAToB0Tag, icmMakeTag('A','R','1','0'), 0, 1 },
{ icSigAToB1Tag, icmMakeTag('A','R','2','0'), 0, 1 },
{ icSigAToB2Tag, icmMakeTag('A','R','3','0'), 0, 1 },
{ icSigBToA0Tag, icmMakeTag('A','R','4','0'), 0, 0 },
{ icSigBToA1Tag, icmMakeTag('A','R','5','0'), 0, 0 },
{ icSigBToA2Tag, icmMakeTag('A','R','6','0'), 0, 0 },
{ icSigRedTRCTag, icmMakeTag('A','R','7','0'), 0, 0 },
{ icSigGreenTRCTag, icmMakeTag('A','R','7','1'), 1, 0 },
{ icSigBlueTRCTag, icmMakeTag('A','R','7','2'), 2, 0 },
{ icSigGrayTRCTag, icmMakeTag('A','R','8','0'), 0, 0 },
{ 0, 0, 0 }
};
tagsigpair linksigs[] = { /* Signatures to modify */
{ icSigProfileDescriptionTag, icmMakeTag('A','R','0','T'), 0 },
{ icSigAToB0Tag, icmMakeTag('A','R','9','1'), 1 },
{ icSigAToB0Tag, icmMakeTag('A','R','9','0'), 0 },
{ 0, 0, 0 }
};
tagsigpair *ssigp, *sigp;
int ntags = 0; /* Number of tags done */
icmBase *dtags[50]; /* Address of tags done */
int inp = 0; /* NZ for input calibration */
unsigned int i, j;
if (icco->header->deviceClass == icSigInputClass && cal->devclass != icSigInputClass) {
warning("Non-input calibration being applied to an input profile");
}
if (check) {
DBG(("Checking...\n"));
for (sigp = linksigs; sigp->prim != 0; sigp++) {
icmBase *primt;
if (sigp->prim != icSigProfileDescriptionTag)
continue;
if ((primt = icco->read_tag(icco, sigp->prim)) == NULL)
error("Can't find icSigProfileDescriptionTag in profile");
/* See if we have a backup */
if (icco->read_tag(icco, sigp->back) != NULL)
found = 1;
else
found = 0;
}
DBG(("found = %d\n",found));
if (found < 0)
error("Internal, didn't look for ProfileDescriptionTag");
if (verb) {
if (found)
printf("Profile has had calibration applied\n");
else
printf("Profile has NOT had calibration applied\n");
}
} else if (apply) {
DBG(("Applying...\n"));
if (icco->header->deviceClass == icSigInputClass
|| icco->header->deviceClass == icSigDisplayClass
|| icco->header->deviceClass == icSigOutputClass) {
DBG(("Input, display or output profile\n"));
/* Check colorspace is compatible */
if (cal->colspace != icco->header->colorSpace)
error("Calibration space %s doesn't match profile %s",
icm2str(icmColorSpaceSig, cal->colspace),
icm2str(icmColorSpaceSig, icco->header->colorSpace));
ssigp = sigs;
/* Note the cal direction */
if (cal->devclass == icSigInputClass)
inp = 1;
else
inp = 0;
} else if (icco->header->deviceClass == icSigLinkClass) {
DBG(("Device link profile\n"));
/* Check colorspace is compatible */
if (cal->colspace != icco->header->pcs)
error("Calibration space %s doesn't match profile %s",
icm2str(icmColorSpaceSig, cal->colspace),
icm2str(icmColorSpaceSig, icco->header->pcs));
ssigp = linksigs;
/* Note the cal direction */
if (cal->devclass == icSigInputClass)
inp = 1;
else
inp = 0;
} else {
error("Can't apply calibration to profile of class %s",
icm2str(icmProfileClassSig, icco->header->deviceClass));
}
DBG(("input calibration = %d\n",inp));
/* First pass is to duplicate any linked TRCTags */
for (sigp = ssigp; sigp->prim != 0; sigp++) { /* Process each tag */
icmBase *primt;
DBG(("looking for tag '%s'\n",icm2str(icmTagSig, sigp->prim)));
if ((primt = icco->read_tag(icco, sigp->prim)) == NULL) {
if (sigp->prim == icSigProfileDescriptionTag)
error("Can't find icSigProfileDescriptionTag in profile");
continue; /* Don't have this tag */
}
/* XXXXTRCTag */
if (primt->ttype == icSigCurveType) {
icmCurve *wo, *ro = (icmCurve *)primt;
/* See if we have a backup */
if ((wo = (icmCurve *)icco->read_tag(icco, sigp->back)) == NULL) {
/* If tag is shared, we need to separated it */
if (ro->refcount > 1) {
DBG(("tag is shared, so separate it\n"));
if ((wo = (icmCurve *)icco->add_tag(
icco, sigp->back, icSigCurveType)) == NULL)
error("Failed to create tag '%s'\n", icm2str(icmTagSig, sigp->back));
wo->ctype = ro->ctype;
wo->count = ro->count;
wo->allocate(wo); /* Allocate space */
for (i = 0; i < wo->count; i++) /* Copy the curve */
wo->data[i] = ro->data[i];
if (icco->delete_tag(icco, sigp->prim))
error("Failed to delete tag '%s'",icm2str(icmTagSig, sigp->prim));
if (icco->rename_tag(icco, sigp->back, sigp->prim))
error("Failed to rename tag '%s' to '%s'",
icm2str(icmTagSig, sigp->back),
icm2str(icmTagSig, sigp->prim));
}
} else {
if (ro->refcount > 1)
error("Found tag %s has backup, but is shared",icm2str(icmTagSig,sigp->prim));
}
}
}
/* Second pass we create backups and calibrated curves */
for (sigp = ssigp; sigp->prim != 0; sigp++) { /* Process each tag */
icmBase *primt;
DBG(("looking for tag '%s'\n",icm2str(icmTagSig, sigp->prim)));
if ((primt = icco->read_tag(icco, sigp->prim)) == NULL) {
if (sigp->prim == icSigProfileDescriptionTag)
error("Can't find icSigProfileDescriptionTag in profile");
continue; /* Don't have this tag */
}
/* icSigProfileDescriptionTag type */
if (ISCOMMONTEXT(primt->ttype)) {
icmCommonTextDescription *wo, *ro = (icmCommonTextDescription *)primt;
char *extra = NULL;
/* See if we've done this tag before due to links */
for (i = 0; i < ntags; i++) {
if (dtags[i] == primt)
break; /* Yes */
}
if (i < ntags) {
DBG(("Found this tag before (link)\n"));
continue; /* Skip tag */
}
if (ntags >= 50) /* Impossible */
error("Internal, run out of previuos tags space");
dtags[ntags++] = primt; /* Remember this one */
DBG(("ProfileDescriptionTag\n"));
DBG(("Looking for backup tag '%s'\n",icm2str(icmTagSig, sigp->back)));
/* See if we have a backup */
if ((wo = (icmCommonTextDescription *)icco->read_tag(icco, sigp->back)) == NULL) {
DBG(("No backup, creating one\n"));
/* No, so create one */
if ((wo = (icmCommonTextDescription *)icco->add_tag(
icco, sigp->back, icmSigCommonTextDescriptionType)) == NULL)
error("Failed to create tag '%s' type '%s'\n", icm2str(icmTagSig, sigp->back),icm2str(icmTypeSig,icmSigCommonTextDescriptionType));
wo->count = ro->count;
wo->allocate(wo); /* Allocate space */
strcpy(wo->desc, ro->desc); /* Copy the string in */
/* Hmm. what should we do with Unicode and script ? */
} else {
DBG(("Found backup\n"));
}
if (cal->xpi.profDesc != NULL)
extra = cal->xpi.profDesc;
else
extra = cal_name;
ro->count = strlen(wo->desc) + 3 + strlen(extra) + 3;
ro->allocate(ro); /* Allocate space */
strcpy(ro->desc, wo->desc);
strcat(ro->desc, " [ ");
strcat(ro->desc, extra);
strcat(ro->desc, " ]");
DBG(("Set tag contents to '%s' len %" PFSTPREC "d size %d\n",ro->desc,strlen(ro->desc)+1,ro->count));
/* icSigAToBXTag or icSigBToAXTag */
} else if (primt->ttype == icSigLut8Type
|| primt->ttype == icSigLut16Type) {
icmLut *ro = (icmLut *)primt; /* Modified Lut */
/* See if we've done this tag before due to links */
for (i = 0; i < ntags; i++) {
if (dtags[i] == primt)
break; /* Yes */
}
if (i < ntags) {
DBG(("Found this tag before (link)\n"));
continue; /* Skip tag */
}
if (ntags >= 50) /* Impossible */
error("Internal, run out of previous tags space");
dtags[ntags++] = primt; /* Remember this one */
DBG(("Lut8 or Lut16\n"));
if (sigp->dir) {
/* Apply calibration to the input table */
for (j = 0; j < ro->inputChan; j++) {
icTagSignature bsig = sigp->back;
icmCurve *wo; /* Backup of original */
/* Create a tag per channel */
bsig += j;
DBG(("Looking for backup tag '%s'\n",icm2str(icmTagSig, bsig)));
/* See if we have a backup */
if ((wo = (icmCurve *)icco->read_tag(icco, bsig)) == NULL) {
DBG(("No backup, creating one\n"));
/* No, so create one */
if ((wo = (icmCurve *)icco->add_tag(
icco, bsig, icSigCurveType)) == NULL)
error("Failed to create tag '%s'\n", icm2str(icmTagSig, bsig));
wo->ctype = icmCurveSpec; /* Specified version */
wo->count = ro->inputEnt;
wo->allocate(wo); /* Allocate space */
for (i = 0; i < wo->count; i++) /* Copy the curve */
wo->data[i] = ro->pe_ic[j]->data[i];
} else {
DBG(("Found backup\n"));
}
/* Create new input curve from inv cal + orginal curve */
for (i = 0; i < ro->inputEnt; i++) {
double val;
val = i/(ro->inputEnt-1.0);
if (inp)
val = cal->interp_ch(cal, j, val); /* Do calibration */
else
val = cal->inv_interp_ch(cal, j, val); /* Undo calibration */
wo->lookup_fwd(wo, &val, &val); /* Original curve */
ro->pe_ic[j]->data[i] = val;
}
DBG(("Created calibrated input curve\n"));
}
} else {
/* Apply calibration to the output table */
for (j = 0; j < ro->outputChan; j++) {
icTagSignature bsig = sigp->back;
icmCurve *wo; /* Backup of original */
/* Create a tag per channel */
bsig += j;
DBG(("Looking for backup tag '%s'\n",icm2str(icmTagSig, bsig)));
/* See if we have a backup */
if ((wo = (icmCurve *)icco->read_tag(icco, bsig)) == NULL) {
DBG(("No backup, creating one\n"));
/* No, so create one */
if ((wo = (icmCurve *)icco->add_tag(
icco, bsig, icSigCurveType)) == NULL)
error("Failed to create tag '%s'\n", icm2str(icmTagSig, bsig));
wo->ctype = icmCurveSpec; /* Specified version */
wo->count = ro->outputEnt;
wo->allocate(wo); /* Allocate space */
for (i = 0; i < wo->count; i++) /* Copy the curve */
wo->data[i] = ro->pe_oc[j]->data[i];
} else {
DBG(("Found backup\n"));
}
/* Create new output curve from original + cal */
for (i = 0; i < ro->outputEnt; i++) {
double val;
val = i/(ro->outputEnt-1.0);
wo->lookup_fwd(wo, &val, &val); /* Original curve */
if (inp)
val = cal->interp_ch(cal, j, val); /* Undo calibration */
else
val = cal->interp_ch(cal, j, val); /* Do calibration */
ro->pe_oc[j]->data[i] = val;
}
DBG(("Created calibrated output curve\n"));
}
}
/* XXXXTRCTag */
} else if (primt->ttype == icSigCurveType) {
icmCurve *wo, *ro = (icmCurve *)primt;
DBG(("CurveType\n"));
DBG(("Looking for backup tag '%s'\n",icm2str(icmTagSig, sigp->back)));
/* See if we have a backup */
if ((wo = (icmCurve *)icco->read_tag(icco, sigp->back)) == NULL) {
DBG(("No backup, creating one\n"));
/* No, so create one */
if ((wo = (icmCurve *)icco->add_tag(
icco, sigp->back, icSigCurveType)) == NULL)
error("Failed to create tag '%s'\n", icm2str(icmTagSig, sigp->back));
wo->ctype = ro->ctype;
wo->count = ro->count;
wo->allocate(wo); /* Allocate space */
for (i = 0; i < wo->count; i++) /* Copy the curve */
wo->data[i] = ro->data[i];
/* Change type & size of ro if necessary */
if (ro->ctype != icmCurveSpec || wo->count < 256) {
ro->ctype = icmCurveSpec;
ro->count = 256;
ro->allocate(ro); /* Allocate space */
}
} else {
DBG(("Found backup\n"));
}
/* Create new forward direction curve from cal + orginal curve */
j = sigp->chan;
for (i = 0; i < ro->count; i++) {
double val;
val = i/(ro->count-1.0);
val = cal->inv_interp_ch(cal, j, val); /* Inverse output calibration */
wo->lookup_fwd(wo, &val, &val); /* Original curve */
ro->data[i] = val;
}
DBG(("Created calibrated %s curve for chan %d\n",inp ? "input" : "output",j));
} else {
error("Tag %s is type %s we don't know how to handle",
icm2str(icmTagSig, sigp->prim),
icm2str(icmTypeSig, primt->ttype));
}
}
} else if (remove) {
int k;
DBG(("Removing...\n"));
for (k = 0; k < 2; k++) {
if (k == 0)
ssigp = sigs;
else if (k == 1)
ssigp = linksigs;
for (sigp = ssigp; sigp->prim != 0; sigp++) { /* Process each tag */
icmBase *backt, *primt;
DBG(("Looking for baclup tag '%s'\n",icm2str(icmTagSig, sigp->back)));
if ((backt = icco->read_tag(icco, sigp->back)) == NULL)
continue; /* Don't have this backup tag */
DBG(("Looking for primary tag '%s'\n",icm2str(icmTagSig, sigp->prim)));
if ((primt = icco->read_tag(icco, sigp->prim)) == NULL) {
error("Can't find primary tag %s for backup %s",
icm2str(icmTagSig, sigp->prim),
icm2str(icmTagSig, sigp->back));
}
/* icSigProfileDescriptionTag type */
if (ISCOMMONTEXT(primt->ttype)) {
icmCommonTextDescription *wo, *ro = (icmCommonTextDescription *)primt;
DBG(("ProfileDescriptionTag\n"));
wo = (icmCommonTextDescription *)backt;
/* Restore primary table */
ro->count = wo->count;
ro->allocate(ro); /* Reallocate space */
strcpy(ro->desc, wo->desc); /* Restore description */
/* delete backup */
if (icco->delete_tag(icco, sigp->back))
error("Failed to delete tag '%s'",icm2str(icmTagSig, sigp->prim));
DBG(("Restored primary and deleted backup\n"));
/* icSigAToBXTag or icSigBToAXTag */
} else if (primt->ttype == icSigLut8Type
|| primt->ttype == icSigLut16Type) {
icmLut *ro = (icmLut *)primt; /* Modified Lut */
if (sigp->dir) {
/* Restore the input table */
for (j = 0; j < ro->inputChan; j++) {
icTagSignature bsig = sigp->back;
icmCurve *wo; /* Backup of original */
/* Create a tag per channel */
bsig += j;
DBG(("Looking for backup tag '%s'\n",icm2str(icmTagSig, bsig)));
/* See if we have a backup */
if ((wo = (icmCurve *)icco->read_tag(icco, bsig)) == NULL)
error("Can't find original table data in tag %s",
icm2str(icmTagSig, sigp->back));
/* Restore primary table */
for (i = 0; i < wo->count; i++) /* Copy the curve */
ro->pe_ic[j]->data[i] = wo->data[i];
/* delete backup */
if (icco->delete_tag(icco, bsig))
error("Failed to delete tag '%s'",icm2str(icmTagSig, bsig));
DBG(("Restored primary and deleted backup\n"));
}
} else {
/* Restore the output table */
for (j = 0; j < ro->outputChan; j++) {
icTagSignature bsig = sigp->back;
icmCurve *wo; /* Backup of original */
/* Create a tag per channel */
bsig += j;
DBG(("Looking for backup tag '%s'\n",icm2str(icmTagSig, bsig)));
/* See if we have a backup */
if ((wo = (icmCurve *)icco->read_tag(icco, bsig)) == NULL)
error("Can't find original table data in tag %s",
icm2str(icmTagSig, sigp->back));
/* Restore primary table */
for (i = 0; i < wo->count; i++) /* Copy the curve */
ro->pe_oc[j]->data[i] = wo->data[i];
/* delete backup */
if (icco->delete_tag(icco, bsig))
error("Failed to delete tag '%s'",icm2str(icmTagSig, bsig));
DBG(("Restored primary and deleted backup\n"));
}
}
/* XXXXTRCTag */
} else if (primt->ttype == icSigCurveType) {
icmCurve *wo, *ro = (icmCurve *)primt;
DBG(("CurveType\n"));
DBG(("Looking for backup tag '%s'\n",icm2str(icmTagSig, sigp->back)));
/* See if we have a backup */
wo = (icmCurve *)backt;
/* Restore primary table */
ro->ctype = wo->ctype;
ro->count = wo->count;
ro->allocate(ro); /* Allocate space */
for (i = 0; i < wo->count; i++) /* Copy the curve */
ro->data[i] = wo->data[i];
/* delete backup */
if (icco->delete_tag(icco, sigp->back))
error("Failed to delete tag '%s'",icm2str(icmTagSig, sigp->back));
DBG(("Restored primary and deleted backup\n"));
} else {
error("Tag %s is type %s we don't know how to handle",
icm2str(icmTagSig, sigp->prim),
icm2str(icmTypeSig, primt->ttype));
}
}
}
}
}
/* ======================================= */
if (apply || remove) {
/* Open up the other profile for writing */
if ((wr_fp = new_icmFileStd_name(&err,out_name,"w")) == NULL)
error ("Can't open file '%s' (0x%x, '%s')",out_name,err.c,err.m);
if ((rv = icco->write(icco,wr_fp,0)) != 0)
error ("Write file: %d, %s",rv,icco->e.m);
wr_fp->del(wr_fp);
}
if (cal != NULL)
cal->del(cal);
icco->del(icco);
if (found == 1)
return 1;
return 0;
}

View File

@@ -0,0 +1,243 @@
/*
* Argyll Color Management System
*
* Read in the device data from Colorblind device files,
* and convert it into a .ti3 CGATs format suitable for
* the Argyll CMM.
*
* Derived from kodak2cgats.c
* Author: Graeme W. Gill
* Date: 16/11/00
*
* Copyright 2000, 2010, Graeme W. Gill
*
* This material is licenced under the GNU AFFERO GENERAL PUBLIC LICENSE Version 3 :-
* see the License.txt file for licencing details.
*/
#define VERSION "1.0"
/* TTBD
*/
#undef DEBUG
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <sys/types.h>
#include <time.h>
#include <string.h>
#include <stdarg.h>
#include "copyright.h"
#include "aconfig.h"
#include "numlib.h"
#include "cgats.h"
void
usage(void) {
fprintf(stderr,"Convert Colorblind raw device profile data to Argyll data, Version %s\n",ARGYLL_VERSION_STR);
fprintf(stderr,"Author: Graeme W. Gill, licensed under the AGPL Version 3\n");
fprintf(stderr,"usage: cb2ti3 [-v] [-l limit] infile outfile\n");
fprintf(stderr," -v Verbose mode\n");
fprintf(stderr," -l limit Set inklimit in .ti3 file\n");
fprintf(stderr," infile Base name for input.CMY and input.nCIE file\n");
fprintf(stderr," outfile Base name for output.ti3 file\n");
exit(1);
}
int main(int argc, char *argv[])
{
int i;
int fa,nfa; /* current argument we're looking at */
int verb = 0;
static char tarname[MAXNAMEL+10+1] = { 0 }; /* Input .CMY file */
static char inname[MAXNAMEL+10+1] = { 0 }; /* Input .nCIE file */
static char outname[MAXNAMEL+10+1] = { 0 }; /* Output cgats .ti3 file base name */
cgats *cmy; /* Input RGB reference file */
int f_id1, f_c, f_m, f_y; /* Field indexes */
cgats *ncie; /* Inpit CIE readings file */
int f_id2, f_xx, f_yy, f_zz; /* Field indexes */
cgats *ocg; /* output cgats structure */
time_t clk = time(0);
struct tm *tsp = localtime(&clk);
char *atm = asctime(tsp); /* Ascii time */
int npat = 0; /* Number of patches */
error_program = "cb2ti3";
if (argc <= 1)
usage();
/* Process the arguments */
for (fa = 1;fa < argc;fa++) {
nfa = fa; /* skip to nfa if next argument is used */
if (argv[fa][0] == '-') { /* Look for any flags */
char *na = NULL; /* next argument after flag, null if none */
if (argv[fa][2] != '\000')
na = &argv[fa][2]; /* next is directly after flag */
else {
if ((fa+1) < argc) {
if (argv[fa+1][0] != '-') {
nfa = fa + 1;
na = argv[nfa]; /* next is seperate non-flag argument */
}
}
}
if (argv[fa][1] == '?')
usage();
else if (argv[fa][1] == 'v' || argv[fa][1] == 'V')
verb = 1;
else
usage();
} else
break;
}
/* Get the file name argument */
if (fa >= argc || argv[fa][0] == '-') usage();
strncpy(inname,argv[fa],MAXNAMEL); inname[MAXNAMEL] = '\000';
strcat(inname,".CMY");
strncpy(tarname,argv[fa++],MAXNAMEL); tarname[MAXNAMEL] = '\000';
strcat(tarname,".nCIE");
if (fa >= argc || argv[fa][0] == '-') usage();
strncpy(outname,argv[fa++],MAXNAMEL); outname[MAXNAMEL] = '\000';
strcat(outname,".ti3");
/* Open up the Input CMY reference file */
cmy = new_cgats(); /* Create a CGATS structure */
cmy->add_other(cmy, "CBTA"); /* Colorblind Target file */
if (cmy->read_name(cmy, inname))
error ("Read: Can't open file '%s'",inname);
if (cmy->ntables == 0 || cmy->t[0].tt != tt_other || cmy->t[0].oi != 0)
error ("Input file isn't a 'CBTA' format file");
if (cmy->ntables != 1)
fprintf(stderr,"Input file '%s' doesn't contain exactly one table",inname);
if ((npat = cmy->t[0].nsets) <= 0)
error("No patches");
if ((f_id1 = cmy->find_field(cmy, 0, "SAMPLE_ID")) < 0)
error("Input file doesn't contain field SAMPLE_ID");
if (cmy->t[0].ftype[f_id1] != nqcs_t)
error("Field SAMPLE_ID is wrong type");
if ((f_c = cmy->find_field(cmy, 0, "C")) < 0)
error("Input file doesn't contain field C");
if (cmy->t[0].ftype[f_c] != r_t)
error("Field C is wrong type");
if ((f_m = cmy->find_field(cmy, 0, "M")) < 0)
error("Input file doesn't contain field M");
if (cmy->t[0].ftype[f_m] != r_t)
error("Field M is wrong type");
if ((f_y = cmy->find_field(cmy, 0, "Y")) < 0)
error("Input file doesn't contain field Y");
if (cmy->t[0].ftype[f_y] != r_t)
error("Field Y is wrong type");
/* Open up the input nCIE device data file */
ncie = new_cgats(); /* Create a CGATS structure */
ncie->add_other(ncie, "CBPR"); /* Colorblind Printer Response file */
if (ncie->read_name(ncie, tarname))
error ("Read: Can't open file '%s'",tarname);
if (ncie->ntables == 0 || ncie->t[0].tt != tt_other || ncie->t[0].oi != 0)
error ("Input file isn't a 'CBTA' format file");
if (ncie->ntables != 1)
fprintf(stderr,"Input file '%s' doesn't contain exactly one table",tarname);
if (npat != ncie->t[0].nsets)
error("Number of patches doesn't match");
if ((f_id2 = ncie->find_field(ncie, 0, "SAMPLE_ID")) < 0)
error("Input file doesn't contain field SAMPLE_ID");
if (ncie->t[0].ftype[f_id2] != nqcs_t)
error("Field SAMPLE_ID is wrong type");
if ((f_xx = ncie->find_field(ncie, 0, "XYZ_X")) < 0)
error("Input file doesn't contain field XYZ_X");
if (ncie->t[0].ftype[f_xx] != r_t)
error("Field XYZ_X is wrong type");
if ((f_yy = ncie->find_field(ncie, 0, "XYZ_Y")) < 0)
error("Input file doesn't contain field XYZ_Y");
if (ncie->t[0].ftype[f_yy] != r_t)
error("Field XYZ_Y is wrong type");
if ((f_zz = ncie->find_field(ncie, 0, "XYZ_Z")) < 0)
error("Input file doesn't contain field XYZ_Z");
if (ncie->t[0].ftype[f_zz] != r_t)
error("Field XYZ_Z is wrong type");
/* Setup output cgats file */
ocg = new_cgats(); /* Create a CGATS structure */
ocg->add_other(ocg, "CTI3"); /* our special type is Calibration Target Information 3 */
ocg->add_table(ocg, tt_other, 0); /* Start the first table */
ocg->add_kword(ocg, 0, "DESCRIPTOR", "Argyll Calibration Target chart information 3",NULL);
ocg->add_kword(ocg, 0, "ORIGINATOR", "Argyll target", NULL);
atm[strlen(atm)-1] = '\000'; /* Remove \n from end */
ocg->add_kword(ocg, 0, "CREATED",atm, NULL);
ocg->add_kword(ocg, 0, "DEVICE_CLASS","OUTPUT", NULL); /* What sort of device this is */
/* Fields we want */
ocg->add_field(ocg, 0, "SAMPLE_ID", nqcs_t);
ocg->add_field(ocg, 0, "RGB_R", r_t);
ocg->add_field(ocg, 0, "RGB_G", r_t);
ocg->add_field(ocg, 0, "RGB_B", r_t);
ocg->add_kword(ocg, 0, "COLOR_REP","RGB_XYZ", NULL);
ocg->add_field(ocg, 0, "XYZ_X", r_t);
ocg->add_field(ocg, 0, "XYZ_Y", r_t);
ocg->add_field(ocg, 0, "XYZ_Z", r_t);
/* Write out the patch info to the output CGATS file */
for (i = 0; i < npat; i++) {
char id[100];
double rgb[3];
double xyz[3];
if (strcmp(((char *)cmy->t[0].fdata[i][f_id1]),
((char *)ncie->t[0].fdata[i][f_id2])) != 0) {
error("Patch label mismatch, patch %d, '%s' != '%s'\n",
i, ((char *)cmy->t[0].fdata[i][f_id1]),
((char *)ncie->t[0].fdata[i][f_id2]));
}
rgb[0] = 100.0 - *((double *)cmy->t[0].fdata[i][f_c]); /* Convert to RGB */
rgb[1] = 100.0 - *((double *)cmy->t[0].fdata[i][f_m]);
rgb[2] = 100.0 - *((double *)cmy->t[0].fdata[i][f_y]);
xyz[0] = *((double *)ncie->t[0].fdata[i][f_xx]);
xyz[1] = *((double *)ncie->t[0].fdata[i][f_yy]);
xyz[2] = *((double *)ncie->t[0].fdata[i][f_zz]);
sprintf(id, "%d", i+1);
ocg->add_set(ocg, 0, id, rgb[0], rgb[1], rgb[2],
xyz[0], xyz[1], xyz[2]);
}
if (ocg->write_name(ocg, outname))
error("Write error : %s",ocg->e.m);
ncie->del(ncie); /* Clean up */
cmy->del(cmy);
ocg->del(ocg);
return 0;
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

132
Argyll_V3.5.0/profile/example.sp Executable file
View File

@@ -0,0 +1,132 @@
SPECT
DESCRIPTOR "Argyll Example Spectral power/reflectance information (D50)"
ORIGINATOR "Argyll CMS"
CREATED "Fri Jul 06 17:49:57 2001"
# If you want the FWA compensation to work properly, you need to specify your
# light source down to 300nm
KEYWORD "SPECTRAL_BANDS"
SPECTRAL_BANDS "107"
KEYWORD "SPECTRAL_START_NM"
SPECTRAL_START_NM "300.000000"
KEYWORD "SPECTRAL_END_NM"
SPECTRAL_END_NM "830.000000"
KEYWORD "SPECTRAL_NORM"
SPECTRAL_NORM "100.000000"
KEYWORD "SPEC_300"
KEYWORD "SPEC_305"
KEYWORD "SPEC_310"
KEYWORD "SPEC_315"
KEYWORD "SPEC_320"
KEYWORD "SPEC_325"
KEYWORD "SPEC_330"
KEYWORD "SPEC_335"
KEYWORD "SPEC_340"
KEYWORD "SPEC_345"
KEYWORD "SPEC_350"
KEYWORD "SPEC_355"
KEYWORD "SPEC_360"
KEYWORD "SPEC_365"
KEYWORD "SPEC_370"
KEYWORD "SPEC_375"
KEYWORD "SPEC_380"
KEYWORD "SPEC_385"
KEYWORD "SPEC_390"
KEYWORD "SPEC_395"
KEYWORD "SPEC_400"
KEYWORD "SPEC_405"
KEYWORD "SPEC_410"
KEYWORD "SPEC_415"
KEYWORD "SPEC_420"
KEYWORD "SPEC_425"
KEYWORD "SPEC_430"
KEYWORD "SPEC_435"
KEYWORD "SPEC_440"
KEYWORD "SPEC_445"
KEYWORD "SPEC_450"
KEYWORD "SPEC_455"
KEYWORD "SPEC_460"
KEYWORD "SPEC_465"
KEYWORD "SPEC_470"
KEYWORD "SPEC_475"
KEYWORD "SPEC_480"
KEYWORD "SPEC_485"
KEYWORD "SPEC_490"
KEYWORD "SPEC_495"
KEYWORD "SPEC_500"
KEYWORD "SPEC_505"
KEYWORD "SPEC_510"
KEYWORD "SPEC_515"
KEYWORD "SPEC_520"
KEYWORD "SPEC_525"
KEYWORD "SPEC_530"
KEYWORD "SPEC_535"
KEYWORD "SPEC_540"
KEYWORD "SPEC_545"
KEYWORD "SPEC_550"
KEYWORD "SPEC_555"
KEYWORD "SPEC_560"
KEYWORD "SPEC_565"
KEYWORD "SPEC_570"
KEYWORD "SPEC_575"
KEYWORD "SPEC_580"
KEYWORD "SPEC_585"
KEYWORD "SPEC_590"
KEYWORD "SPEC_595"
KEYWORD "SPEC_600"
KEYWORD "SPEC_605"
KEYWORD "SPEC_610"
KEYWORD "SPEC_615"
KEYWORD "SPEC_620"
KEYWORD "SPEC_625"
KEYWORD "SPEC_630"
KEYWORD "SPEC_635"
KEYWORD "SPEC_640"
KEYWORD "SPEC_645"
KEYWORD "SPEC_650"
KEYWORD "SPEC_655"
KEYWORD "SPEC_660"
KEYWORD "SPEC_665"
KEYWORD "SPEC_670"
KEYWORD "SPEC_675"
KEYWORD "SPEC_680"
KEYWORD "SPEC_685"
KEYWORD "SPEC_690"
KEYWORD "SPEC_695"
KEYWORD "SPEC_700"
KEYWORD "SPEC_705"
KEYWORD "SPEC_710"
KEYWORD "SPEC_715"
KEYWORD "SPEC_720"
KEYWORD "SPEC_725"
KEYWORD "SPEC_730"
KEYWORD "SPEC_735"
KEYWORD "SPEC_740"
KEYWORD "SPEC_745"
KEYWORD "SPEC_750"
KEYWORD "SPEC_755"
KEYWORD "SPEC_760"
KEYWORD "SPEC_765"
KEYWORD "SPEC_770"
KEYWORD "SPEC_775"
KEYWORD "SPEC_780"
KEYWORD "SPEC_785"
KEYWORD "SPEC_790"
KEYWORD "SPEC_795"
KEYWORD "SPEC_800"
KEYWORD "SPEC_805"
KEYWORD "SPEC_810"
KEYWORD "SPEC_815"
KEYWORD "SPEC_820"
KEYWORD "SPEC_825"
KEYWORD "SPEC_830"
NUMBER_OF_FIELDS 107
BEGIN_DATA_FORMAT
SPEC_300 SPEC_305 SPEC_310 SPEC_315 SPEC_320 SPEC_325 SPEC_330 SPEC_335 SPEC_340 SPEC_345 SPEC_350 SPEC_355 SPEC_360 SPEC_365 SPEC_370 SPEC_375 SPEC_380 SPEC_385 SPEC_390 SPEC_395 SPEC_400 SPEC_405 SPEC_410 SPEC_415 SPEC_420 SPEC_425 SPEC_430 SPEC_435 SPEC_440 SPEC_445 SPEC_450 SPEC_455 SPEC_460 SPEC_465 SPEC_470 SPEC_475 SPEC_480 SPEC_485 SPEC_490 SPEC_495 SPEC_500 SPEC_505 SPEC_510 SPEC_515 SPEC_520 SPEC_525 SPEC_530 SPEC_535 SPEC_540 SPEC_545 SPEC_550 SPEC_555 SPEC_560 SPEC_565 SPEC_570 SPEC_575 SPEC_580 SPEC_585 SPEC_590 SPEC_595 SPEC_600 SPEC_605 SPEC_610 SPEC_615 SPEC_620 SPEC_625 SPEC_630 SPEC_635 SPEC_640 SPEC_645 SPEC_650 SPEC_655 SPEC_660 SPEC_665 SPEC_670 SPEC_675 SPEC_680 SPEC_685 SPEC_690 SPEC_695 SPEC_700 SPEC_705 SPEC_710 SPEC_715 SPEC_720 SPEC_725 SPEC_730 SPEC_735 SPEC_740 SPEC_745 SPEC_750 SPEC_755 SPEC_760 SPEC_765 SPEC_770 SPEC_775 SPEC_780 SPEC_785 SPEC_790 SPEC_795 SPEC_800 SPEC_805 SPEC_810 SPEC_815 SPEC_820 SPEC_825 SPEC_830
END_DATA_FORMAT
NUMBER_OF_SETS 1
BEGIN_DATA
0.020000 1.0300 2.0500 4.9100 7.7800 11.260 14.750 16.350 17.950 19.480 21.010 22.480 23.940 25.450 26.960 25.720 24.490 27.180 29.870 39.590 49.310 52.910 56.510 58.270 60.030 58.930 57.820 66.320 74.820 81.040 87.250 88.930 90.610 90.990 91.370 93.240 95.110 93.540 91.960 93.840 95.720 96.170 96.610 96.870 97.130 99.610 102.10 101.43 100.75 101.54 102.32 101.16 100.00 98.870 97.740 98.330 98.920 96.210 93.500 95.590 97.690 98.480 99.270 99.160 99.040 97.380 95.720 97.290 98.860 97.260 95.670 96.930 98.190 100.60 103.00 101.07 99.130 93.260 87.380 89.490 91.600 92.250 92.890 84.870 76.850 81.680 86.510 89.550 92.580 85.400 78.230 67.960 57.690 70.310 82.920 80.600 78.270 78.910 79.550 76.480 73.400 68.660 63.920 67.350 70.780 72.610 74.440
END_DATA

View File

@@ -0,0 +1,147 @@
SPECT
DESCRIPTOR "Argyll Example Spectral power/reflectance information with 121 bands from an i1 pro (Fluorescent lamp)"
ORIGINATOR "Argyll CMS"
CREATED "Wed Sep 12 16:45:26 2007"
# If you want the FWA compensation to work properly, you need to specify your
# light source down to 300nm
KEYWORD "SPECTRAL_BANDS"
SPECTRAL_BANDS "121"
KEYWORD "SPECTRAL_START_NM"
SPECTRAL_START_NM "350"
KEYWORD "SPECTRAL_END_NM"
SPECTRAL_END_NM "750"
KEYWORD "SPECTRAL_NORM"
SPECTRAL_NORM "100"
KEYWORD "SPEC_350"
KEYWORD "SPEC_353"
KEYWORD "SPEC_357"
KEYWORD "SPEC_360"
KEYWORD "SPEC_363"
KEYWORD "SPEC_367"
KEYWORD "SPEC_370"
KEYWORD "SPEC_373"
KEYWORD "SPEC_377"
KEYWORD "SPEC_380"
KEYWORD "SPEC_383"
KEYWORD "SPEC_387"
KEYWORD "SPEC_390"
KEYWORD "SPEC_393"
KEYWORD "SPEC_397"
KEYWORD "SPEC_400"
KEYWORD "SPEC_403"
KEYWORD "SPEC_407"
KEYWORD "SPEC_410"
KEYWORD "SPEC_413"
KEYWORD "SPEC_417"
KEYWORD "SPEC_420"
KEYWORD "SPEC_423"
KEYWORD "SPEC_427"
KEYWORD "SPEC_430"
KEYWORD "SPEC_433"
KEYWORD "SPEC_437"
KEYWORD "SPEC_440"
KEYWORD "SPEC_443"
KEYWORD "SPEC_447"
KEYWORD "SPEC_450"
KEYWORD "SPEC_453"
KEYWORD "SPEC_457"
KEYWORD "SPEC_460"
KEYWORD "SPEC_463"
KEYWORD "SPEC_467"
KEYWORD "SPEC_470"
KEYWORD "SPEC_473"
KEYWORD "SPEC_477"
KEYWORD "SPEC_480"
KEYWORD "SPEC_483"
KEYWORD "SPEC_487"
KEYWORD "SPEC_490"
KEYWORD "SPEC_493"
KEYWORD "SPEC_497"
KEYWORD "SPEC_500"
KEYWORD "SPEC_503"
KEYWORD "SPEC_507"
KEYWORD "SPEC_510"
KEYWORD "SPEC_513"
KEYWORD "SPEC_517"
KEYWORD "SPEC_520"
KEYWORD "SPEC_523"
KEYWORD "SPEC_527"
KEYWORD "SPEC_530"
KEYWORD "SPEC_533"
KEYWORD "SPEC_537"
KEYWORD "SPEC_540"
KEYWORD "SPEC_543"
KEYWORD "SPEC_547"
KEYWORD "SPEC_550"
KEYWORD "SPEC_553"
KEYWORD "SPEC_557"
KEYWORD "SPEC_560"
KEYWORD "SPEC_563"
KEYWORD "SPEC_567"
KEYWORD "SPEC_570"
KEYWORD "SPEC_573"
KEYWORD "SPEC_577"
KEYWORD "SPEC_580"
KEYWORD "SPEC_583"
KEYWORD "SPEC_587"
KEYWORD "SPEC_590"
KEYWORD "SPEC_593"
KEYWORD "SPEC_597"
KEYWORD "SPEC_600"
KEYWORD "SPEC_603"
KEYWORD "SPEC_607"
KEYWORD "SPEC_610"
KEYWORD "SPEC_613"
KEYWORD "SPEC_617"
KEYWORD "SPEC_620"
KEYWORD "SPEC_623"
KEYWORD "SPEC_627"
KEYWORD "SPEC_630"
KEYWORD "SPEC_633"
KEYWORD "SPEC_637"
KEYWORD "SPEC_640"
KEYWORD "SPEC_643"
KEYWORD "SPEC_647"
KEYWORD "SPEC_650"
KEYWORD "SPEC_653"
KEYWORD "SPEC_657"
KEYWORD "SPEC_660"
KEYWORD "SPEC_663"
KEYWORD "SPEC_667"
KEYWORD "SPEC_670"
KEYWORD "SPEC_673"
KEYWORD "SPEC_677"
KEYWORD "SPEC_680"
KEYWORD "SPEC_683"
KEYWORD "SPEC_687"
KEYWORD "SPEC_690"
KEYWORD "SPEC_693"
KEYWORD "SPEC_697"
KEYWORD "SPEC_700"
KEYWORD "SPEC_703"
KEYWORD "SPEC_707"
KEYWORD "SPEC_710"
KEYWORD "SPEC_713"
KEYWORD "SPEC_717"
KEYWORD "SPEC_720"
KEYWORD "SPEC_723"
KEYWORD "SPEC_727"
KEYWORD "SPEC_730"
KEYWORD "SPEC_733"
KEYWORD "SPEC_737"
KEYWORD "SPEC_740"
KEYWORD "SPEC_743"
KEYWORD "SPEC_747"
KEYWORD "SPEC_750"
NUMBER_OF_FIELDS 121
BEGIN_DATA_FORMAT
SPEC_350 SPEC_353 SPEC_357 SPEC_360 SPEC_363 SPEC_367 SPEC_370 SPEC_373 SPEC_377 SPEC_380 SPEC_383 SPEC_387 SPEC_390 SPEC_393 SPEC_397 SPEC_400 SPEC_403 SPEC_407 SPEC_410 SPEC_413 SPEC_417 SPEC_420 SPEC_423 SPEC_427 SPEC_430 SPEC_433 SPEC_437 SPEC_440 SPEC_443 SPEC_447 SPEC_450 SPEC_453 SPEC_457 SPEC_460 SPEC_463 SPEC_467 SPEC_470 SPEC_473 SPEC_477 SPEC_480 SPEC_483 SPEC_487 SPEC_490 SPEC_493 SPEC_497 SPEC_500 SPEC_503 SPEC_507 SPEC_510 SPEC_513 SPEC_517 SPEC_520 SPEC_523 SPEC_527 SPEC_530 SPEC_533 SPEC_537 SPEC_540 SPEC_543 SPEC_547 SPEC_550 SPEC_553 SPEC_557 SPEC_560 SPEC_563 SPEC_567 SPEC_570 SPEC_573 SPEC_577 SPEC_580 SPEC_583 SPEC_587 SPEC_590 SPEC_593 SPEC_597 SPEC_600 SPEC_603 SPEC_607 SPEC_610 SPEC_613 SPEC_617 SPEC_620 SPEC_623 SPEC_627 SPEC_630 SPEC_633 SPEC_637 SPEC_640 SPEC_643 SPEC_647 SPEC_650 SPEC_653 SPEC_657 SPEC_660 SPEC_663 SPEC_667 SPEC_670 SPEC_673 SPEC_677 SPEC_680 SPEC_683 SPEC_687 SPEC_690 SPEC_693 SPEC_697 SPEC_700 SPEC_703 SPEC_707 SPEC_710 SPEC_713 SPEC_717 SPEC_720 SPEC_723 SPEC_727 SPEC_730 SPEC_733 SPEC_737 SPEC_740 SPEC_743 SPEC_747 SPEC_750
END_DATA_FORMAT
NUMBER_OF_SETS 1
BEGIN_DATA
-0.041690 0.24392 4.3572 5.4017 6.5222 7.0710 8.6925 12.563 16.482 18.309 17.829 17.021 16.072 16.687 87.378 282.88 411.34 306.20 188.94 221.27 286.97 368.32 461.52 591.86 962.15 2078.2 2435.7 1583.7 985.14 1000.3 1013.1 1010.9 994.64 967.45 926.07 875.50 826.62 776.65 728.56 729.41 894.38 1230.5 1346.3 1108.1 831.25 636.32 518.37 473.21 477.58 492.45 491.10 457.30 399.25 348.62 326.58 367.02 707.07 1919.0 3813.6 4662.9 3291.3 1432.5 513.04 229.68 141.83 108.25 90.996 144.02 387.80 680.40 822.45 858.52 763.41 621.14 498.90 391.19 345.59 749.61 2255.0 3078.6 1993.9 866.06 750.13 785.14 718.71 498.72 228.97 128.41 127.71 158.54 217.06 231.70 191.86 166.43 164.48 146.81 124.29 112.00 109.04 115.61 129.27 146.74 143.18 117.28 87.783 80.151 141.77 286.25 374.19 308.51 156.95 59.626 32.257 32.390 32.801 33.930 35.539 37.845 36.214 31.438 23.866
END_DATA

View File

@@ -0,0 +1,225 @@
/*
* Argyll Color Management System
* ICC Profile extract or insert 'vcgt' display calibration tag.
*
* Author: Graeme W. Gill
* Date: 2021/6/7
* Version: 1.0
*
* Copyright 1997 - 2021 Graeme W. Gill
*
* This material is licenced under the GNU AFFERO GENERAL PUBLIC LICENSE Version 3 :-
* see the License.txt file for licencing details.
*
* Based on iccrw.c
*/
/* TTBD:
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <fcntl.h>
#include <string.h>
#include <math.h>
#include "copyright.h"
#include "aconfig.h"
#include "numlib.h"
#include "conv.h"
#include "xicc.h"
void error(char *fmt, ...), warning(char *fmt, ...);
void usage(char *diag, ...) {
fprintf(stderr,"Extract or insert 'vcgt' calibration tag from/into an ICC profile, V%s\n",ARGYLL_VERSION_STR);
fprintf(stderr,"Author: Graeme W. Gill, licensed under the AGPL Version 3\n");
if (diag != NULL) {
va_list args;
fprintf(stderr," Diagnostic: ");
va_start(args, diag);
vfprintf(stderr, diag, args);
va_end(args);
fprintf(stderr,"\n");
}
fprintf(stderr,"usage: -x profile%s curves.cal\n",ICC_FILE_EXT);
fprintf(stderr,"usage: -i inprofile%s curves.cal outprofile%s\n",ICC_FILE_EXT, ICC_FILE_EXT);
fprintf(stderr," -v Verbose mode\n");
fprintf(stderr," -x Extract 'vcgt'\n");
fprintf(stderr," -i Insert 'vcgt'\n");
exit(1);
}
int
main(int argc, char *argv[]) {
int fa,nfa,mfa; /* argument we're looking at */
static char inname[MAXNAMEL+1] = "";
static char calname[MAXNAMEL+1] = "";
static char outname[MAXNAMEL+1] = "";
icmFile *rd_fp, *wr_fp;
icmErr err = { 0, { '\000'} };
icc *icco;
xcal *cal = NULL; /* Calibration extracted or inserted */
int verb = 0;
int extract = 0;
int insert = 0;
int rv = 0;
error_program = argv[0];
if (argc < 3)
usage("Less than three arguments");
/* Process the arguments */
mfa = 2; /* Minimum final arguments */
for (fa = 1;fa < argc;fa++) {
nfa = fa; /* skip to nfa if next argument is used */
if (argv[fa][0] == '-') { /* Look for any flags */
char *na = NULL; /* next argument after flag, null if none */
if (argv[fa][2] != '\000')
na = &argv[fa][2]; /* next is directly after flag */
else {
if ((fa+1+mfa) < argc) {
if (argv[fa+1][0] != '-') {
nfa = fa + 1;
na = argv[nfa]; /* next is seperate non-flag argument */
}
}
}
if (argv[fa][1] == '?')
usage(NULL);
if (argv[fa][1] == 'x') {
extract = 1;
mfa = 2;
}
if (argv[fa][1] == 'i') {
insert = 1;
mfa = 3;
}
} else
break;
}
if ((extract && insert)
|| (!extract && !insert)) {
usage("Conflicting options");
}
if (fa >= argc || argv[fa][0] == '-') usage("No source ICC profile");
strcpy(inname,argv[fa++]);
if (fa >= argc || argv[fa][0] == '-') usage("No calibration curve filename");
strcpy(calname,argv[fa++]);
if (insert) {
if (fa >= argc || argv[fa][0] == '-') usage("No destination ICC profile");
strcpy(outname,argv[fa++]);
}
/* Open up the incoming profile for reading */
if ((rd_fp = new_icmFileStd_name(&err,inname,"r")) == NULL)
error ("Can't open file '%s' (0x%x, '%s')",inname,err.c,err.m);
if ((icco = new_icc(&err)) == NULL)
error ("Creation of ICC object for '%s' failed (0x%x, '%s')",inname,err.c,err.m);
/* Read header etc. */
if ((rv = icco->read(icco,rd_fp,0)) != 0)
error ("%d, %s",rv,icco->e.m);
if (icco->header->deviceClass != icSigDisplayClass)
error("'%s' must be a Display profile",inname);
if (insert) {
int c, i, j;
icmVideoCardGamma *wo;
int ncal;
/* Read every tag so that we can copy the profile */
if (icco->read_all_tags(icco) != 0)
error("Unable to read all tags from '%s': %d, %s",inname,icco->e.c,icco->e.m);
/* Open up and read the calibration file */
if ((cal = new_xcal()) == NULL)
error("new_xcal failed");
if ((cal->read(cal, calname)) != 0)
error("%s",cal->e.m);
if (cal->devchan != 3)
error("'%s' doesn't contain 3 channels",calname);
/* Delete the current video card gamma tag */
if (icco->find_tag(icco, icSigVideoCardGammaTag) == 0)
if (icco->delete_tag(icco, icSigVideoCardGammaTag) != 0)
error("Unable to delete videocardgamma tag: %d, %s",icco->e.c,icco->e.m);
/* Decide on the vcgt resolution */
ncal = cal->cals[0]->g.res[0];
if (ncal < 256)
ncal = 256;
/* Add new video card gamma table */
wo = (icmVideoCardGamma *)icco->add_tag(icco, icSigVideoCardGammaTag, icSigVideoCardGammaType);
if (wo == NULL)
error ("Unable to add VideoCardGamma tag");
wo->tagType = icVideoCardGammaTable;
wo->u.table.channels = 3; /* rgb */
wo->u.table.entryCount = ncal;
wo->u.table.entrySize = 2; /* 16 bits */
wo->allocate(wo);
for (j = 0; j < 3; j++) {
for (i = 0; i < ncal; i++) {
double cc, vv = i/(ncal - 1.0);
cc = cal->interp_ch(cal, j, vv);
if (cc < 0.0)
cc = 0.0;
else if (cc > 1.0)
cc = 1.0;
wo->u.table.data[j][i] = cc;
}
}
/* Open up the output profile for writing */
if ((wr_fp = new_icmFileStd_name(&err,outname,"w")) == NULL)
error ("Can't open file '%s' (0x%x, '%s')",outname,err.c,err.m);
if ((rv = icco->write(icco, wr_fp, 0)) != 0)
error ("Write file: %d, %s",rv,icco->e.m);
wr_fp->del(wr_fp);
cal->del(cal);
} else { /* Extract */
/* Read the video card gamma tag from the ICC profile */
if ((cal = new_xcal()) == NULL)
error("new_xcal failed");
if ((cal->read_icc(cal, icco)) != 0)
error("%s",cal->e.m);
/* Write out the calibration file */
if (cal->write(cal, calname))
error("Writing '%s' failed",calname);
cal->del(cal);
}
icco->del(icco);
rd_fp->del(rd_fp);
return 0;
}

View File

@@ -0,0 +1,615 @@
/*
* Argyll Color Management System
* Inverse profile checker.
*
* Author: Graeme W. Gill
* Date: 1999/11/29
*
* Copyright 1999 - 2005 Graeme W. Gill
* All rights reserved.
*
* This material is licenced under the GNU AFFERO GENERAL PUBLIC LICENSE Version 3 :-
* see the License.txt file for licencing details.
*/
/*
* This program takes checks the round trip errors of
* the colorimetric forward and inverse profile direction
* of an ICC profile.
* (Was called icc/fbtest.c)
*/
/* TTBD:
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <fcntl.h>
#include <string.h>
#include <math.h>
#include <ctype.h>
#include "copyright.h"
#include "aconfig.h"
#include "numlib.h"
#include "icc.h"
#include "conv.h"
#include "xicc.h"
#include "vrml.h"
/* Resolution of the sampling modes */
#define TRES 11
#define HTRES 27
#define UHTRES 61
/* ------------------------------------------------------- */
/* Macros for an di or fdi dimensional counter */
/* Declare the counter name nn, dimensions di, & count */
#define DCOUNT(nn, di, start, reset, count) \
int nn[MAX_CHAN]; /* counter value */ \
int nn##_di = (di); /* Number of dimensions */ \
int nn##_stt = (start); /* start count value */ \
int nn##_rst = (reset); /* reset on carry value */ \
int nn##_res = (count); /* last count +1 */ \
int nn##_e /* dimension index */
/* Set the counter value to 0 */
#define DC_INIT(nn) \
{ \
for (nn##_e = 0; nn##_e < nn##_di; nn##_e++) \
nn[nn##_e] = nn##_stt; \
nn##_e = 0; \
}
/* Increment the counter value */
#define DC_INC(nn) \
{ \
for (nn##_e = 0; nn##_e < nn##_di; nn##_e++) { \
nn[nn##_e]++; \
if (nn[nn##_e] < nn##_res) \
break; /* No carry */ \
nn[nn##_e] = nn##_rst; \
} \
}
/* After increment, expression is TRUE if counter is done */
#define DC_DONE(nn) \
(nn##_e >= nn##_di)
/* ---------------------------------------- */
void usage(void) {
fprintf(stderr,"Check fwd to bwd relative transfer of an ICC file, Version %s\n",ARGYLL_VERSION_STR);
fprintf(stderr,"Author: Graeme W. Gill, licensed under the AGPL Version 3\n");
fprintf(stderr,"usage: invprofcheck [-] profile.icm\n");
fprintf(stderr," -v [level] Verbosity level (default 1), 2 to print each DE\n");
fprintf(stderr," -l limit Set total ink limit (estimate by default)\n");
fprintf(stderr," -L klimit Set black channel ink limit (estimate by default)\n");
fprintf(stderr," -i intent a = absolute, r = relative colorimetric (def.)\n");
fprintf(stderr," p = perceptual, s = saturation\n");
fprintf(stderr," -h High res test (%d)\n",HTRES);
fprintf(stderr," -u Ultra high res test (%d)\n",UHTRES);
fprintf(stderr," -R res Specific grid resolution\n");
fprintf(stderr," -I Do bwd to fwd check\n");
fprintf(stderr," -c Show CIE94 delta E values\n");
fprintf(stderr," -k Show CIEDE2000 delta E values\n");
fprintf(stderr," -w Create %s visualisation (profile%s)\n",vrml_format(),vrml_ext());
fprintf(stderr," -x Use %s axes\n",vrml_format());
fprintf(stderr," -e Color vectors according to delta E\n");
fprintf(stderr," -Y c:file.inkvol Provide or overide calibration total ink curves\n");
fprintf(stderr," profile.icm Profile to check\n");
exit(1);
}
static void DE2RGB(double *out, double in);
int
main(
int argc,
char *argv[]
) {
int fa,nfa; /* argument we're looking at */
int verb = 0;
int cie94 = 0;
int cie2k = 0;
int dovrml = 0;
int doaxes = 0;
int dodecol = 0;
static char in_name[MAXNAMEL+1];
static char out_name[MAXNAMEL+1], *xl; /* VRML/X3D name */
icmFile *rd_fp;
icmErr err = { 0, { '\000'} };
icc *icco;
int rv = 0;
int inv = 0;
int tres = TRES;
double tlimit = -1.0;
double klimit = -1.0;
static char tcalname[MAXNAMEL+1] = ""; /* .cal overide for icc */
icRenderingIntent intent = icRelativeColorimetric; /* Default */
vrml *wrl = NULL;
error_program = "invprofcheck";
if (argc < 2)
usage();
/* Process the arguments */
for (fa = 1;fa < argc;fa++) {
nfa = fa; /* skip to nfa if next argument is used */
if (argv[fa][0] == '-') { /* Look for any flags */
char *na = NULL; /* next argument after flag, null if none */
if (argv[fa][2] != '\000')
na = &argv[fa][2]; /* next is directly after flag */
else {
if ((fa+1) < argc) {
if (argv[fa+1][0] != '-') {
nfa = fa + 1;
na = argv[nfa]; /* next is seperate non-flag argument */
}
}
}
if (argv[fa][1] == '?')
usage();
/* Verbosity */
else if (argv[fa][1] == 'v' || argv[fa][1] == 'V') {
verb = 1;
if (na != NULL && isdigit(na[0])) {
verb = atoi(na);
}
}
/* Resolution */
else if (argv[fa][1] == 'h' || argv[fa][1] == 'H') {
tres = HTRES;
}
/* Resolution */
else if (argv[fa][1] == 'u' || argv[fa][1] == 'U') {
tres = UHTRES;
}
/* Resolution */
else if (argv[fa][1] == 'R') {
int res;
if (na == NULL) usage();
fa = nfa;
res = atoi(na);
if (res < 2 || res > 500)
usage();
tres = res;
}
/* Inverse */
else if (argv[fa][1] == 'I') {
inv = 1;
}
else if (argv[fa][1] == 'l') {
int limit;
if (na == NULL) usage();
fa = nfa;
limit = atoi(na);
if (limit < 1)
limit = 1;
tlimit = limit/100.0;
}
else if (argv[fa][1] == 'L') {
int limit;
if (na == NULL) usage();
fa = nfa;
limit = atoi(na);
if (limit < 1)
limit = 1;
klimit = limit/100.0;
}
/* Intent */
else if (argv[fa][1] == 'i') {
if (na == NULL) usage();
fa = nfa;
switch (na[0]) {
case 'p':
intent = icPerceptual;
break;
case 'r':
intent = icRelativeColorimetric;
break;
case 's':
intent = icSaturation;
break;
case 'a':
intent = icAbsoluteColorimetric;
break;
default:
usage();
}
}
/* VRML/X3D */
else if (argv[fa][1] == 'w' || argv[fa][1] == 'W')
dovrml = 1;
/* Axes */
else if (argv[fa][1] == 'x' || argv[fa][1] == 'X')
doaxes = 1;
/* Delta E coloring */
else if (argv[fa][1] == 'e' || argv[fa][1] == 'E')
dodecol = 1;
else if (argv[fa][1] == 'c' || argv[fa][1] == 'C') {
cie94 = 1;
cie2k = 0;
}
else if (argv[fa][1] == 'k' || argv[fa][1] == 'K') {
cie94 = 0;
cie2k = 1;
}
/* Extra flags */
else if (argv[fa][1] == 'Y') {
fa = nfa;
if (na == NULL)
usage();
if (na[0] == 'c') {
if (na[1] != ':')
usage();
strncpy(tcalname,&na[2],MAXNAMEL); tcalname[MAXNAMEL] = '\000';
} else
{
usage();
}
}
else
usage();
}
else
break;
}
if (fa >= argc || argv[fa][0] == '-') usage();
strncpy(in_name,argv[fa++],MAXNAMEL); in_name[MAXNAMEL] = '\000';
strncpy(out_name,in_name,MAXNAMEL-4); out_name[MAXNAMEL-4] = '\000';
if ((xl = strrchr(out_name, '.')) == NULL) /* Figure where extention is */
xl = out_name + strlen(out_name);
xl[0] = '\000'; /* Remove extension */
/* Open up the file for reading */
if ((rd_fp = new_icmFileStd_name(&err,in_name,"r")) == NULL)
error ("Read: Can't open file '%s' (0x%x, '%s')",in_name,err.c,err.m);
if ((icco = new_icc(&err)) == NULL)
error ("Read: Creation of ICC object failed (0x%x, '%s')",err.c,err.m);
/* Read the header and tag list */
if ((rv = icco->read(icco,rd_fp,0)) != 0)
error ("Read: %d, %s",rv,icco->e.m);
/* Check the bwd lookup against the fwd function */
{
xcal *cal = NULL; /* Device calibration curves */
icColorSpaceSignature ins, outs; /* Type of input and output spaces of fwd */
int inn, outn; /* Channels of fwd conversion */
int kch; /* Black channel, -1 if not known/applicable */
icmLuSpace *luo1, *luo2;
double merr = 0.0; /* Max */
double aerr = 0.0; /* Avg */
double rerr = 0.0; /* RMS */
double nsamps = 0.0;
/* Read any user supplied cal curves */
if (tcalname[0] != '\000') {
xcal *xc;
if ((xc = new_xcal()) == NULL)
error("new_xcal failed");
if ((xc->read(xc, tcalname)) != 0)
error("%s",xc->e.m);
cal = xc;
}
/* Get a Device to PCS conversion object */
if ((luo1 = (icmLuSpace *)icco->get_luobj(icco, icmFwd, intent, icSigLabData, icmLuOrdNorm)) == NULL) {
if ((luo1 = (icmLuSpace *)icco->get_luobj(icco, icmFwd, icmDefaultIntent, icSigLabData, icmLuOrdNorm)) == NULL)
error ("%d, %s",icco->e.c, icco->e.m);
}
/* Get details of conversion */
{
icmCSInfo ini, outi;
luo1->spaces(luo1, &ini, &outi, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
ins = ini.sig;
inn = ini.nch;
outs = outi.sig;
outn = outi.nch;
}
/* Get a PCS to Device conversion object */
if ((luo2 = (icmLuSpace *)icco->get_luobj(icco, icmBwd, intent, icSigLabData, icmLuOrdNorm)) == NULL) {
if ((luo2 = (icmLuSpace *)icco->get_luobj(icco, icmBwd, icmDefaultIntent, icSigLabData, icmLuOrdNorm)) == NULL)
error ("%d, %s",icco->e.c, icco->e.m);
}
if (dovrml) {
wrl = new_vrml(out_name, doaxes, vrml_lab);
wrl->start_line_set(wrl, 0);
}
/* Grab any device calibration curves if the user hasn't overriden it */
if (cal == NULL)
cal = xiccReadCalTag(icco);
kch = icxGuessBlackChan(icco);
/* Set the default ink limits if not set by user */
if (tlimit < 0.0 || klimit < 0.0) {
double max[MAX_CHAN], total;
icxCalCBctx ctx;
ctx.cal = cal;
if (cal != NULL
) {
total = icco->get_tac(icco, max, xiccCalCallback_void, (void *)&ctx);
if (total > 0.0) {
{
if (verb) printf("B2A Final TAC = %f, chan max = %s\n",total,
icmPdv(icmCSSig2nchan(ins), max));
}
}
} else {
total = icco->get_tac(icco, max, NULL, NULL);
}
if (tlimit < 0.0)
tlimit = total;
if (klimit < 0.0 && kch >= 0)
klimit = max[kch];
}
if (verb) {
printf("Grid resolution is %d\n",tres);
if (tlimit >= 0.0)
printf("Input total ink limit assumed is %3.1f%%\n",100.0 * tlimit);
if (klimit >= 0.0)
printf("Input black ink limit assumed is %3.1f%%\n",100.0 * klimit);
}
/* Device -> PCS -> Device */
if (inv == 0) {
double dev[MAX_CHAN], cdev[MAX_CHAN], clipdev[MAX_CHAN], pcsin[3], devout[MAX_CHAN], pcsout[3];
DCOUNT(co, inn, 0, 0, tres); /* Multi-D counter */
/* Go through the chosen device grid */
DC_INIT(co)
for (; !DC_DONE(co);) {
int n, rv1, rv2;
double sum;
double de;
/* Check the (possibly calibrated) device values */
/* and reject any more than 10% over the limits. */
for (n = 0; n < inn; n++)
cdev[n] = dev[n] = co[n]/(tres-1.0);
if (cal != NULL)
cal->interp(cal, cdev, cdev);
for (sum = 0.0, n = 0; n < inn; n++)
sum += cdev[n];
if ((tlimit > 0.0 && sum > (1.1 * tlimit))
|| (klimit > 0.0 && kch >= 0 && cdev[kch] > (1.1 * klimit))) {
DC_INC(co);
continue;
}
/* Generate the raw PCS test point value */
/* by converting device to pcsin */
if ((rv1 = luo1->lookup_fwd(luo1, pcsin, dev)) & icmPe_lurv_err)
error ("%d, %s",icco->e.c,icco->e.m);
/* Convert to gamut clipped device values */
if ((rv2 = luo2->lookup_fwd(luo2, clipdev, pcsin)) & icmPe_lurv_err)
error ("%d, %s",icco->e.c,icco->e.m);
/* clipped Device to target PCS */
if ((rv2 = luo1->lookup_fwd(luo1, pcsin, clipdev)) & icmPe_lurv_err)
error ("%d, %s",icco->e.c,icco->e.m);
/* Now do the round trip check */
/* PCS -> Device */
if ((rv2 = luo2->lookup_fwd(luo2, devout, pcsin)) & icmPe_lurv_err)
error ("%d, %s",icco->e.c,icco->e.m);
/* Device to PCS */
if ((rv2 = luo1->lookup_fwd(luo1, pcsout, devout)) & icmPe_lurv_err)
error ("%d, %s",icco->e.c,icco->e.m);
/* Delta E */
if (dovrml) {
int ix[2];
/* Add the vertices */
ix[0] = wrl->add_vertex(wrl, 0, pcsin);
ix[1] = wrl->add_vertex(wrl, 0, pcsout);
/* Add the line */
if (dodecol) { /* Lines with color determined by length */
double rgb[3];
DE2RGB(rgb, icmNorm33(pcsin, pcsout));
wrl->add_col_line(wrl, 0, ix, rgb);
} else { /* Natural color */
wrl->add_line(wrl, 0, ix);
}
}
/* Check the result */
if (cie2k)
de = icmCIE2K(pcsout, pcsin);
else if (cie94)
de = icmCIE94(pcsout, pcsin);
else
de = icmLabDE(pcsout, pcsin);
aerr += de;
rerr += de * de;
if (de > merr)
merr = de;
nsamps++;
if (verb > 1) {
printf("[%f] %f %f %f -> ",de, pcsin[0], pcsin[1], pcsin[2]);
for (n = 0; n < inn; n++)
printf("%f ",devout[n]);
printf("-> %f %f %f\n",pcsout[0], pcsout[1], pcsout[2]);
}
DC_INC(co);
}
/* PCS -> Device -> PCS */
/* Note that we're not rejecting out of gamut values ?? */
} else {
double dev[MAX_CHAN], cdev[MAX_CHAN], pcsin[3], devout[MAX_CHAN], pcsout[3];
DCOUNT(co, 3, 0, 0, tres); /* Multi-D counter */
/* Go through the chosen Lab grid */
DC_INIT(co)
for (; !DC_DONE(co);) {
int n, rv1, rv2;
double sum;
double de;
pcsin[0] = 100.0 * co[0]/(tres-1.0);
pcsin[1] = (127.0 * 2.0 * co[1]/(tres-1.0)) - 127.0;
pcsin[2] = (127.0 * 2.0 * co[2]/(tres-1.0)) - 127.0;
/* PCS -> Device (will clip) */
if ((rv2 = luo2->lookup_fwd(luo2, devout, pcsin)) & icmPe_lurv_err)
error ("%d, %s",icco->e.c,icco->e.m);
/* Device to PCS */
if ((rv2 = luo1->lookup_fwd(luo1, pcsout, devout)) & icmPe_lurv_err)
error ("%d, %s",icco->e.c,icco->e.m);
/* Delta E */
if (dovrml) {
// if (fabs(pcsin[0] - 5.0) < 0.1 && dovrml) {
int ix[2];
/* Add the vertices */
ix[0] = wrl->add_vertex(wrl, 0, pcsin);
ix[1] = wrl->add_vertex(wrl, 0, pcsout);
/* Add the line */
if (dodecol) { /* Lines with color determined by length */
double rgb[3];
DE2RGB(rgb, icmNorm33(pcsin, pcsout));
wrl->add_col_line(wrl, 0, ix, rgb);
} else { /* Natural color */
wrl->add_line(wrl, 0, ix);
}
}
/* Check the result */
if (cie2k)
de = icmCIE2K(pcsout, pcsin);
else if (cie94)
de = icmCIE94(pcsout, pcsin);
else
de = icmLabDE(pcsout, pcsin);
aerr += de;
rerr += de * de;
if (de > merr)
merr = de;
nsamps++;
if (verb > 1) {
printf("[%f] %f %f %f -> ",de, pcsin[0], pcsin[1], pcsin[2]);
for (n = 0; n < inn; n++)
printf("%f ",devout[n]);
printf("-> %f %f %f\n",pcsout[0], pcsout[1], pcsout[2]);
}
DC_INC(co);
}
}
if (dovrml) {
wrl->make_lines_vc(wrl, 0, 0.0);
wrl->del(wrl);
}
printf("Profile check complete, errors%s: max. = %f, avg. = %f, RMS = %f\n",
cie2k ? "(CIEDE2000)" : cie94 ? " (CIE94)" : "", merr, aerr/nsamps, sqrt(rerr/nsamps));
/* Done with lookup object */
luo1->del(luo1);
luo2->del(luo2);
}
icco->del(icco);
rd_fp->del(rd_fp);
return 0;
}
/* ------------------------------------------------ */
/* Convert a delta E value into a signal color: */
static void DE2RGB(double *out, double in) {
struct {
double de;
double r, g, b;
} range[6] = {
{ 10.0, 1, 1, 0 }, /* yellow */
{ 4.0, 1, 0, 0 }, /* red */
{ 2.0, 1, 0, 1 }, /* magenta */
{ 1.0, 0, 0, 1 }, /* blue */
{ 0.5, 0, 1, 1 }, /* cyan */
{ 0.0, 0, 1, 0 } /* green */
};
int i;
double bl;
//printf("~1 input de = %f\n",in);
/* Locate the range we're in */
if (in > range[0].de) {
out[0] = range[0].r;
out[1] = range[0].g;
out[2] = range[0].b;
//printf("~1 too big\n");
} else {
for (i = 0; i < 5; i++) {
if (in <= range[i].de && in >= range[i+1].de)
break;
}
bl = (in - range[i+1].de)/(range[i].de - range[i+1].de);
//printf("~1 located at ix %d, bl = %f\n",i,bl);
out[0] = bl * range[i].r + (1.0 - bl) * range[i+1].r;
out[1] = bl * range[i].g + (1.0 - bl) * range[i+1].g;
out[2] = bl * range[i].b + (1.0 - bl) * range[i+1].b;
}
//printf("~1 returning rgb %f %f %f\n",out[0],out[1],out[2]);
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,385 @@
/*
* Argyll Color Management System
*
* Read in the RGB & CIE data from a LightSpace format .bcs XML file
* and convert it into a .ti3 CGATs format suitable for the Argyll CMS.
*
* Derived from txt2cgats.c
* Author: Graeme W. Gill
* Date: 16/11/00
*
* Copyright 2000 - 2014, Graeme W. Gill
* All rights reserved.
*
* This material is licenced under the GNU AFFERO GENERAL PUBLIC LICENSE Version 3 :-
* see the License.txt file for licencing details.
*/
/* TTBD
*/
#define DEBUG
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <sys/types.h>
#include <time.h>
#include <string.h>
#include <stdarg.h>
#include "copyright.h"
#include "aconfig.h"
#include "cgats.h"
#include "xspect.h"
#include "insttypes.h"
#include "mxml.h"
#include "numlib.h"
#include "ui.h"
#define DEB 6
void
usage(char *mes) {
fprintf(stderr,"Convert LightSpace raw RGB device profile data to Argyll CGATS data, Version %s\n",ARGYLL_VERSION_STR);
fprintf(stderr,"Author: Graeme W. Gill, licensed under the AGPL Version 3\n");
if (mes != NULL)
fprintf(stderr,"error: %s\n",mes);
fprintf(stderr,"usage: ls2ti3 [-v] infile outbase\n");
/* fprintf(stderr," -v Verbose mode\n"); */
fprintf(stderr," infile Input LightSpace .bcs file\n");
fprintf(stderr," outbasename Output file basename for .ti3\n");
exit(1);
}
/* XML data type callback for mxmlLoadFile() */
mxml_type_t
type_cb(mxml_node_t *node) {
mxml_node_t *parent = mxmlGetParent(node);
const char *pname;
const char *name = node->value.element.name;
if (parent == NULL)
return MXML_TEXT;
pname = parent->value.element.name;
// printf("~1 type_cb got pnode '%s' node '%s'\n",pname, name);
if (strcmp(pname, "stimuli") == 0
&& (strcmp(name, "red") == 0
|| strcmp(name, "green") == 0
|| strcmp(name, "blue") == 0))
return MXML_REAL;
if (strcmp(pname, "XYZ") == 0
&& (strcmp(name, "X") == 0
|| strcmp(name, "Y") == 0
|| strcmp(name, "Z") == 0))
return MXML_REAL;
#ifdef NEVER
if (strcmp(pname, "FileInformation") == 0
&& (strcmp(name, "Creator") == 0
|| strcmp(name, "CreationDate") == 0
|| strcmp(name, "Description") == 0))
return MXML_OPAQUE; /* Don't split strings up */
#endif
return MXML_TEXT;
}
struct _patch {
int pno; /* Patch number */
double dev[MAX_CHAN]; /* Device value */
double XYZ[3]; /* XYZ value */
}; typedef struct _patch patch;
int main(int argc, char *argv[]) {
int i, j;
int fa,nfa; /* current argument we're looking at */
int verb = 0;
static char inname[MAXNAMEL+1] = { 0 }; /* Input LightSpace .xml file */
static char outname[MAXNAMEL+1] = { 0 }; /* Output cgats .ti3 file base name */
double dev_scale = 1.0; /* Device value scaling */
FILE *ifp;
mxml_node_t *tree, *pnode, *node;
mxml_node_t *top, *data;
const char *attr, *name;
patch *patches;
cgats *ocg; /* output cgats structure for .ti3 */
time_t clk = time(0);
struct tm *tsp = localtime(&clk);
char *atm = asctime(tsp); /* Ascii time */
int islab = 0; /* CIE is Lab rather than XYZ */
int npat = 0; /* Number of patches */
int ndchan = 3; /* Number of device channels, 0 = no device, RGB = 3, CMYK = 4 */
cgats_set_elem *setel; /* Array of set value elements */
error_program = "ls2ti3";
if (argc < 3)
usage("Too few arguments");
/* Process the arguments */
for (fa = 1;fa < argc;fa++) {
nfa = fa; /* skip to nfa if next argument is used */
if (argv[fa][0] == '-') { /* Look for any flags */
char *na = NULL; /* next argument after flag, null if none */
if (argv[fa][2] != '\000')
na = &argv[fa][2]; /* next is directly after flag */
else {
if ((fa+1) < argc) {
if (argv[fa+1][0] != '-') {
nfa = fa + 1;
na = argv[nfa]; /* next is seperate non-flag argument */
}
}
}
if (argv[fa][1] == '?')
usage(NULL);
else if (argv[fa][1] == 'v' || argv[fa][1] == 'V')
verb = 1;
else
usage("Unknown flag");
} else
break;
}
/* Get the file name argument */
if (fa >= argc || argv[fa][0] == '-') usage("input filename not found");
strncpy(inname,argv[fa++],MAXNAMEL); inname[MAXNAMEL] = '\000';
if (fa >= argc || argv[fa][0] == '-') usage("output basename not found");
strncpy(outname,argv[fa++],MAXNAMEL-4); outname[MAXNAMEL-4] = '\000';
strcat(outname,".ti3");
if ((ifp = fopen(inname, "r")) == NULL)
error("Unable to read '%s'",inname);
#ifndef NEVER
tree = mxmlLoadFile(NULL, ifp, type_cb);
#else
tree = mxmlSAXLoadFd(NULL, fileno(ifp), type_cb, sax_cb, (void *)p);
#endif
fclose(ifp);
if (tree == NULL)
error("Parsing '%s' failed",inname);
if ((top = mxmlFindElement(tree, tree, NULL, NULL, NULL, MXML_DESCEND_FIRST)) == NULL
|| mxmlGetType(top) != MXML_ELEMENT)
error("Failed to find top element in '%s'",inname);
if (strcmp(top->value.element.name, "builder_color_space") != 0)
error("'%s' doesn't seem to be a LightSpace .bcs file ?",inname);
#ifdef NEVER
/* Check that its CxF3 */
if ((attr = mxmlElementGetAttr(top, "xmlns")) == NULL)
error("Failed to find CxF attribute %s in '%s'","xmlns", inname);
if (strcmp(attr, "http://colorexchangeformat.com/CxF3-core") != 0)
error("File '%s' is not CxF format",inname);
/* Look for header information */
if ((pnode = mxmlFindElement(top, top, "head", NULL, NULL, MXML_DESCEND_FIRST)) == NULL)
error("Failed to find head in '%s'",inname);
/* Grab the creation date */
if ((node = mxmlFindElement(pnode, pnode, "created", NULL, NULL, MXML_DESCEND_FIRST)) == NULL)
error();
name = mxmlGetOpaque(node);
#endif
/* Locate the data node */
if ((data = mxmlFindElement(top, top, "data", NULL, NULL, MXML_DESCEND_FIRST)) == NULL)
error("Failed to find data in '%s'",inname);
/* Get the number of patches */
if ((attr = mxmlElementGetAttr(data, "frames")) == NULL)
error("Failed to find data attribute 'frames' in '%s'", inname);
npat = atoi(attr);
if (npat <= 0)
error("Illegal number of patches %d in '%s",inname);
a1logd(g_log, DEB, "npat = %d\n",npat);
if ((patches = calloc(npat, sizeof(patch))) == NULL)
error("malloc failed");
/* Read all the patches */
node = mxmlFindElement(data, data, "patch", NULL, NULL, MXML_DESCEND_FIRST);
for (i = 0; node != NULL && i < npat;) {
int j;
mxml_node_t *stim, *res, *xyz, *val;
char *rgb_key[3] = { "red", "green", "blue" };
char *xyz_key[3] = { "X", "Y", "Z" };
if (mxmlGetType(node) != MXML_ELEMENT) {
a1logd(g_log, DEB, "skipping non element node type %d\n",mxmlGetType(node));
goto next;
}
a1logd(g_log, DEB, "read node '%s'\n",node->value.element.name);
if ((attr = mxmlElementGetAttr(node, "frame")) == NULL) {
a1logd(g_log, DEB, "read_cxf: skipping node without frame\n");
goto next; /* Skip this one */
}
patches[i].pno = atoi(attr);
a1logd(g_log, DEB, "got patch %d no %d\n",i,patches[i].pno);
/* Read the RGB stimulus */
if ((stim = mxmlFindElement(node, node, "stimuli", NULL, NULL, MXML_DESCEND_FIRST))
== NULL) {
a1logd(g_log, DEB, "Can't find 'stimuli' in patch %d - skipping\n",patches[i].pno);
goto next;
}
for (j = 0; j < 3; j++) {
if ((val = mxmlFindElement(stim, stim, rgb_key[j], NULL, NULL, MXML_DESCEND_FIRST))
== NULL) {
a1logd(g_log, DEB, "failed to find RGB component %s\n",rgb_key[j]);
goto next;
}
patches[i].dev[j] = mxmlGetReal(val);
a1logd(g_log, DEB, "got RGB component %s value %f\n",rgb_key[j],patches[i].dev[j]);
}
/* Read the XYZ results */
if ((res = mxmlFindElement(node, node, "results", NULL, NULL, MXML_DESCEND_FIRST))
== NULL) {
a1logd(g_log, DEB, "Can't find 'results' in patch %d - skipping\n",patches[i].pno);
goto next;
}
if ((xyz = mxmlFindElement(res, res, "XYZ", NULL, NULL, MXML_DESCEND_FIRST))
== NULL) {
a1logd(g_log, DEB, "Can't find 'XYZ' in patch %d - skipping\n",patches[i].pno);
goto next;
}
for (j = 0; j < 3; j++) {
if ((val = mxmlFindElement(xyz, xyz, xyz_key[j], NULL, NULL, MXML_DESCEND_FIRST))
== NULL) {
a1logd(g_log, DEB, "failed to find XYZ component %s\n",xyz_key[j]);
goto next;
}
patches[i].XYZ[j] = mxmlGetReal(val);
a1logd(g_log, DEB, "got XYZ component %s value %f\n",xyz_key[j],patches[i].XYZ[j]);
}
i++;
/* Add patch to output CGATS */
next:; /* Next color */
node = mxmlGetNextSibling(node);
}
mxmlDelete(tree);
/* Setup output cgats file */
ocg = new_cgats(); /* Create a CGATS structure */
ocg->add_other(ocg, "CTI3"); /* our special type is Calibration Target Information 3 */
ocg->add_table(ocg, tt_other, 0); /* Start the first table */
ocg->add_kword(ocg, 0, "DESCRIPTOR", "Argyll Calibration Target chart information 3",NULL);
ocg->add_kword(ocg, 0, "ORIGINATOR", "Argyll target", NULL);
atm[strlen(atm)-1] = '\000'; /* Remove \n from end */
ocg->add_kword(ocg, 0, "CREATED",atm, NULL);
ocg->add_kword(ocg, 0, "DEVICE_CLASS","DISPLAY", NULL); /* What sort of device this is */
/* Note what instrument the chart was read with */
/* Assume this - could try reading from file INSTRUMENTATION "SpectroScan" ?? */
ocg->add_kword(ocg, 0, "TARGET_INSTRUMENT", inst_name(instSpectrolino) , NULL);
/* Don't make any assumptions about normalisation (this is default anyway) */
ocg->add_kword(ocg, 0, "NORMALIZED_TO_Y_100","NO", NULL);
/* Fields we want */
ocg->add_field(ocg, 0, "SAMPLE_ID", nqcs_t);
if (ndchan == 3) {
ocg->add_field(ocg, 0, "RGB_R", r_t);
ocg->add_field(ocg, 0, "RGB_G", r_t);
ocg->add_field(ocg, 0, "RGB_B", r_t);
if (islab)
ocg->add_kword(ocg, 0, "COLOR_REP","RGB_LAB", NULL);
else
ocg->add_kword(ocg, 0, "COLOR_REP","RGB_XYZ", NULL);
}
if (islab) {
ocg->add_field(ocg, 0, "LAB_L", r_t);
ocg->add_field(ocg, 0, "LAB_A", r_t);
ocg->add_field(ocg, 0, "LAB_B", r_t);
} else {
ocg->add_field(ocg, 0, "XYZ_X", r_t);
ocg->add_field(ocg, 0, "XYZ_Y", r_t);
ocg->add_field(ocg, 0, "XYZ_Z", r_t);
}
/* LS uses 0.0 .. 1.0 */
dev_scale = 100.0/1.0;
/* Write out the patch info to the output CGATS file */
if ((setel = (cgats_set_elem *)malloc(
sizeof(cgats_set_elem) * ocg->t[0].nfields)) == NULL)
error("Malloc failed!");
/* Write out the patch info to the output CGATS file */
for (i = 0; i < npat; i++) {
char id[100];
int k = 0;
/* SAMPLE ID */
sprintf(id, "%d", patches[i].pno);
setel[k++].c = id;
if (ndchan == 3) {
setel[k++].d = dev_scale * patches[i].dev[0];
setel[k++].d = dev_scale * patches[i].dev[1];
setel[k++].d = dev_scale * patches[i].dev[2];
}
setel[k++].d = patches[i].XYZ[0];
setel[k++].d = patches[i].XYZ[1];
setel[k++].d = patches[i].XYZ[2];
ocg->add_setarr(ocg, 0, setel);
}
free(setel);
if (ocg->write_name(ocg, outname))
error("Write error : %s",ocg->e.m);
/* Clean up */
ocg->del(ocg);
return 0;
}

View File

@@ -0,0 +1,704 @@
/*
* Argyll Color Management System
* Color Printer Device Model Profile checker.
* Check an mpp profile against a .ti3 file.
*
* Author: Graeme W. Gill
* Date: 19/3/2003
*
* Copyright 2003 Graeme W. Gill
* All rights reserved.
*
* This material is licenced under the GNU AFFERO GENERAL PUBLIC LICENSE Version 3 :-
* see the License.txt file for licencing details.
*/
#undef DEBUG
#define verbo stdout
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <sys/types.h>
#include <time.h>
#include "copyright.h"
#include "aconfig.h"
#include "numlib.h"
#include "cgats.h"
#include "conv.h"
#include "xicc.h"
#include "prof.h"
#include "vrml.h"
#include "sort.h"
#include "ui.h"
static void DE2RGB(double *out, double in);
void
usage(void) {
fprintf(stderr,"Check Model Printer Profile, Version %s\n",ARGYLL_VERSION_STR);
fprintf(stderr,"Author: Graeme W. Gill, licensed under the AGPL Version 3\n");
fprintf(stderr,"usage: %s [-v] [-c] [-s] [-y] values.ti3 profile.mpp\n",error_program);
fprintf(stderr," -v Verbose mode\n");
fprintf(stderr," -c Show CIE94 delta E values\n");
fprintf(stderr," -k Show CIEDE2000 delta E values\n");
fprintf(stderr," -s Check spectral model too\n");
fprintf(stderr," -y Detail each value\n");
fprintf(stderr," -w Create %s visualisation (mppprofile%s)\n",vrml_format(),vrml_ext());
fprintf(stderr," -e Color vectors according to delta E\n");
fprintf(stderr," values.ti3 Test values to check against\n");
fprintf(stderr," profile.mpp Profile to check\n");
exit(1);
}
int main(int argc, char *argv[])
{
int fa,nfa; /* current argument we're looking at */
int verb = 0;
int cie94 = 0; /* Display CIE94 delta E */
int cie2k = 0; /* Display CIEDE2000 delta E */
int verify = 0;
int ospec = 0; /* Output spectral model flag */
int dovrml = 0;
int doaxes = 0;
int dodecol = 0;
static char ti3name[MAXNAMEL+1] = { 0 }; /* Input cgats file base name */
static char mppname[MAXNAMEL+1] = { 0 }; /* Profile file base name */
int i, j;
int ti; /* Temporary index */
cgats *icg; /* input cgats structure */
int devmask; /* ICX ink mask of device space */
int devchan; /* Number of chanels in device space */
int isLab = 0; /* Flag indicating whether PCS is XYZ or Lab */
int isDisplay = 0; /* Flag indicating that this is a display device, not output */
double limit = -1.0; /* Ink limit */
instType itype = instUnknown; /* Spectral instrument type */
int spec_n = 0; /* Number of spectral bands, 0 if not valid */
double spec_wl_short = 0.0; /* First reading wavelength in nm (shortest) */
double spec_wl_long = 0.0; /* Last reading wavelength in nm (longest) */
double norm = 0.0; /* Normalising scale value */
int nodp; /* Number of test patches */
mppcol *cols; /* Test patches */
mpp *p; /* Model Printer Profile */
static char out_name[MAXNAMEL+10+1], *xl; /* VRML/X3D name */
vrml *wrl = NULL;
double merr = 0.0;
double aerr = 0.0;
double nsamps = 0.0;
error_program = argv[0];
if (argc <= 1)
usage();
/* Process the arguments */
for (fa = 1;fa < argc;fa++) {
nfa = fa; /* skip to nfa if next argument is used */
if (argv[fa][0] == '-') { /* Look for any flags */
char *na = NULL; /* next argument after flag, null if none */
if (argv[fa][2] != '\000')
na = &argv[fa][2]; /* next is directly after flag */
else {
if ((fa+1) < argc) {
if (argv[fa+1][0] != '-') {
nfa = fa + 1;
na = argv[nfa]; /* next is seperate non-flag argument */
}
}
}
if (argv[fa][1] == '?')
usage();
else if (argv[fa][1] == 'v' || argv[fa][1] == 'V')
verb = 1;
else if (argv[fa][1] == 'c' || argv[fa][1] == 'C') {
cie94 = 1;
cie2k = 0;
}
else if (argv[fa][1] == 'k' || argv[fa][1] == 'K') {
cie94 = 0;
cie2k = 1;
}
/* Verify model against input points */
else if (argv[fa][1] == 'y' || argv[fa][1] == 'Y')
verify = 1;
/* Check spectral model */
else if (argv[fa][1] == 's' || argv[fa][1] == 'S')
ospec = 1;
/* VRML/X3D */
else if (argv[fa][1] == 'w')
dovrml = 1;
/* Delta E coloring */
else if (argv[fa][1] == 'e')
dodecol = 1;
else
usage();
} else
break;
}
/* Get the file name argument */
if (fa >= argc || argv[fa][0] == '-') usage();
strncpy(ti3name,argv[fa++],MAXNAMEL); ti3name[MAXNAMEL] = '\000';
if (fa >= argc || argv[fa][0] == '-') usage();
strncpy(mppname,argv[fa++],MAXNAMEL); mppname[MAXNAMEL] = '\000';
strncpy(out_name,ti3name,MAXNAMEL-4); out_name[MAXNAMEL-4] = '\000';
if ((xl = strrchr(out_name, '.')) == NULL) /* Figure where extention is */
xl = out_name + strlen(out_name);
xl[0] = '\000'; /* Remove extension */
/* Open and look at the .ti3 profile patches file */
icg = new_cgats(); /* Create a CGATS structure */
icg->add_other(icg, "CTI3"); /* our special input type is Calibration Target Information 3 */
if (icg->read_name(icg, ti3name))
error("CGATS file read error : %s",icg->e.m);
if (icg->ntables == 0 || icg->t[0].tt != tt_other || icg->t[0].oi != 0)
error ("Input file isn't a CTI3 format file");
if (icg->ntables != 1)
error ("Input file doesn't contain exactly one table");
/* If we requested spectral, check that it is available */
if (ospec) {
if ((ti = icg->find_kword(icg, 0, "SPECTRAL_BANDS")) < 0) {
if (ospec) {
error ("No spectral data, so no spectral model output");
ospec = 0; /* Can't output spectral model */
}
} else {
spec_n = atoi(icg->t[0].kdata[ti]);
if (spec_n > MPP_MXBANDS) {
error ("MPP can't cope with %d spectral components", spec_n);
ospec = 0; /* Can't output spectral model */
/* Alternative would be to downsample the spectrum to fit */
}
}
}
/* read the device class, and call function to create profile. */
if ((ti = icg->find_kword(icg, 0, "DEVICE_CLASS")) < 0)
error ("Input file doesn't contain keyword DEVICE_CLASS");
if (strcmp(icg->t[0].kdata[ti],"OUTPUT") == 0) {
isDisplay = 0;
} else if (strcmp(icg->t[0].kdata[ti],"DISPLAY") == 0) {
isDisplay = 1;
} else {
error ("Input file must be for an output device");
}
/* Deal with color representation of input */
{
char *buf;
char *inc, *outc;
if ((ti = icg->find_kword(icg, 0, "COLOR_REP")) < 0)
error("Input file doesn't contain keyword COLOR_REPS");
if ((buf = strdup(icg->t[0].kdata[ti])) == NULL)
error("Malloc failed - color rep");
/* Split COLOR_REP into device and PCS space */
inc = buf;
if ((outc = strchr(buf, '_')) == NULL)
error("COLOR_REP '%s' invalid", icg->t[0].kdata[ti]);
*outc++ = '\000';
if (strcmp(outc, "XYZ") == 0)
isLab = 0;
else if (strcmp(outc, "LAB") == 0)
isLab = 1;
else
error("COLOR_REP '%s' invalid (Neither XYZ nor LAB)", icg->t[0].kdata[ti]);
devmask = icx_char2inkmask(inc);
devchan = icx_noofinks(devmask);
if (devchan == 0)
error("COLOR_REP '%s' invalid (No matching devmask)", icg->t[0].kdata[ti]);
if ((nodp = icg->t[0].nsets) <= 0)
error ("No sets of data");
free(buf);
}
/* Deal with ink limit */
if ((ti = icg->find_kword(icg, 0, "TOTAL_INK_LIMIT")) >= 0) {
double imax;
imax = atof(icg->t[0].kdata[ti]);
if (imax > 1e-4 && imax <= (ICX_MXINKS * 100.0)) {
if (limit > 1e-4 && limit <= (ICX_MXINKS * 100.0)) {
/* User has specified limit as option */
if (imax < limit) {
warning("Ink limit greater than original chart! (%f > %f)",limit,imax);
}
} else {
if (imax > 80.0)
limit = imax - 10.0; /* Rule of thumb - 10% below chart maximum */
else
limit = imax;
}
}
}
if (limit > 1e-4 && limit <= (ICX_MXINKS * 100.0)) {
if (verb)
printf("Total ink limit being used is %f\n",limit);
limit = limit/100.0; /* Set a total ink limit */
} else {
if (verb)
printf("No total ink limit being used\n");
limit = 0.0; /* Don't use a limit */
}
if (ospec && !isDisplay) {
/* Deal with instrument type */
if ((ti = icg->find_kword(icg, 0, "TARGET_INSTRUMENT")) < 0)
error ("Can't find target instrument needed for FWA compensation");
if ((itype = inst_enum(icg->t[0].kdata[ti])) == instUnknown)
error ("Unrecognised target instrument '%s'", icg->t[0].kdata[ti]);
}
if (verb)
printf("Device has %d colorants, key = '%s', %s\n", devchan, icx_inkmask2char(devmask, 1),
devmask & ICX_ADDITIVE ? "Additive" : "Subtractive");
if ((cols = new_mppcols(nodp, devchan, spec_n)) == NULL)
error("Malloc failed! - cols (%d colors x %d bytes",nodp,sizeof(mppcol));
/* Read in all the patch values */
{
int chix[ICX_MXINKS];
char *bident;
int ii, Xi, Yi, Zi;
xspect sp;
char buf[100];
int spi[XSPECT_MAX_BANDS]; /* CGATS indexes for each wavelength */
bident = icx_inkmask2char(devmask, 0);
/* Find the device value fields */
for (j = 0; j < devchan; j++) {
int ii, imask;
char fname[100];
imask = icx_index2ink(devmask, j);
sprintf(fname,"%s_%s",bident,icx_ink2char(imask));
if ((ii = icg->find_field(icg, 0, fname)) < 0)
error ("Input file doesn't contain field %s",fname);
if (icg->t[0].ftype[ii] != r_t)
error ("Field %s is wrong type - expect float",fname);
chix[j] = ii;
}
if (isLab) { /* Expect Lab */
if (verb)
printf("Using the instruments Lab values\n");
if ((Xi = icg->find_field(icg, 0, "LAB_L")) < 0)
error("Input file doesn't contain field LAB_L");
if (icg->t[0].ftype[Xi] != r_t)
error("Field LAB_L is wrong type - expect float");
if ((Yi = icg->find_field(icg, 0, "LAB_A")) < 0)
error("Input file doesn't contain field LAB_A");
if (icg->t[0].ftype[Yi] != r_t)
error("Field LAB_A is wrong type - expect float");
if ((Zi = icg->find_field(icg, 0, "LAB_B")) < 0)
error("Input file doesn't contain field LAB_B");
if (icg->t[0].ftype[Zi] != r_t)
error("Field LAB_B is wrong type - expect float");
} else { /* Expect XYZ */
if (verb)
printf("Using the instruments XYZ values\n");
if ((Xi = icg->find_field(icg, 0, "XYZ_X")) < 0)
error("Input file doesn't contain field XYZ_X");
if (icg->t[0].ftype[Xi] != r_t)
error("Field XYZ_X is wrong type - expect float");
if ((Yi = icg->find_field(icg, 0, "XYZ_Y")) < 0)
error("Input file doesn't contain field XYZ_Y");
if (icg->t[0].ftype[Yi] != r_t)
error("Field XYZ_Y is wrong type - expect float");
if ((Zi = icg->find_field(icg, 0, "XYZ_Z")) < 0)
error("Input file doesn't contain field XYZ_Z");
if (icg->t[0].ftype[Zi] != r_t)
error("Field XYZ_Z is wrong type - expect float");
}
/* If we need the spectral information, find the fields */
if (ospec) {
if ((ii = icg->find_kword(icg, 0, "SPECTRAL_BANDS")) < 0)
error ("Input file doesn't contain keyword SPECTRAL_BANDS");
sp.spec_n = atoi(icg->t[0].kdata[ii]);
if ((ii = icg->find_kword(icg, 0, "SPECTRAL_START_NM")) < 0)
error ("Input file doesn't contain keyword SPECTRAL_START_NM");
sp.spec_wl_short = atof(icg->t[0].kdata[ii]);
if ((ii = icg->find_kword(icg, 0, "SPECTRAL_END_NM")) < 0)
error ("Input file doesn't contain keyword SPECTRAL_END_NM");
sp.spec_wl_long = atof(icg->t[0].kdata[ii]);
sp.norm = 100.0;
/* Find the fields for spectral values */
for (j = 0; j < sp.spec_n; j++) {
int nm;
/* Compute nearest integer wavelength */
nm = (int)(sp.spec_wl_short + ((double)j/(sp.spec_n-1.0))
* (sp.spec_wl_long - sp.spec_wl_short) + 0.5);
sprintf(buf,"SPEC_%03d",nm);
if ((spi[j] = icg->find_field(icg, 0, buf)) < 0)
error("Input file doesn't contain field %s",buf);
if (icg->t[0].ftype[spi[j]] != r_t)
error("Field %s is wrong type - expect float",buf);
}
/* Record spectral parameters */
spec_n = sp.spec_n;
spec_wl_short = sp.spec_wl_short;
spec_wl_long = sp.spec_wl_long;
norm = sp.norm;
} else {
spec_n = 0; /* Not using spectral in model */
}
/* Load up all the patch values */
for (i = 0; i < nodp; i++) {
/* read in device values */
for (j = 0; j < devchan; j++)
cols[i].nv[j] = *((double *)icg->t[0].fdata[i][chix[j]])/100.0;
/* Read the spectral values for this patch */
if (ospec) {
/* norm takes care of 100 scale */
for (j = 0; j < sp.spec_n; j++) {
sp.spec[j] = *((double *)icg->t[0].fdata[i][spi[j]]);
if (ospec)
cols[i].band[3+j] = sp.spec[j];
}
}
/* Use the instrument CIE values */
if (isLab) {
cols[i].band[0] = *((double *)icg->t[0].fdata[i][Xi]);
cols[i].band[1] = *((double *)icg->t[0].fdata[i][Yi]);
cols[i].band[2] = *((double *)icg->t[0].fdata[i][Zi]);
icmLab2XYZ(&icmD50, cols[i].band, cols[i].band);
} else {
cols[i].band[0] = *((double *)icg->t[0].fdata[i][Xi])/100.0;
cols[i].band[1] = *((double *)icg->t[0].fdata[i][Yi])/100.0;
cols[i].band[2] = *((double *)icg->t[0].fdata[i][Zi])/100.0;
}
}
free(bident);
} /* End of reading in CGATs file */
/* Done with inputs to mpp->create() */
icg->del(icg);
if (dovrml) {
wrl = new_vrml(out_name, doaxes, vrml_lab);
wrl->start_line_set(wrl, 0);
}
merr = 0.0;
aerr = 0.0;
nsamps = 0.0;
if ((p = new_mpp()) == NULL)
error("Failed to create an mpp");
if (p->read_mpp(p, mppname))
error("Read error : %s",p->e.m);
/* Set just PCS and use XYZ model */
p->set_ilob(p, icxIT_default, NULL, icxOT_default, NULL, icSigLabData, 0);
for (i = 0; i < nodp; i++) {
double out[3], ref[3];
double mxd;
/* Lookup the profile PCS value for this data point */
p->lookup(p, out, cols[i].nv);
/* Convert our cols data to Lab */
icmXYZ2Lab(&icmD50, ref, cols[i].band);
if (verify && verb) {
printf("[%f] ", cie2k ? icmCIE2K(ref, out) :
cie94 ? icmCIE94(ref, out) : icmLabDE(ref, out));
for (j = 0; j < devchan; j++)
printf("%6.4f ", cols[i].nv[j]);
printf("-> %5.1f %5.1f %5.1f should be %5.1f %5.1f %5.1f\n",
out[0],out[1],out[2], ref[0],ref[1],ref[2]);
}
/* Check the result */
mxd = cie2k ? icmCIE2K(ref, out) : cie94 ? icmCIE94(ref, out) : icmLabDE(ref, out);
if (mxd > merr)
merr = mxd;
aerr += mxd;
nsamps++;
if (dovrml && !ospec) {
int ix[2];
double p1[3], p2[3];
/* Add the vertexes */
icmCpy3(p1, ref);
icmCpy3(p2, out);
ix[0] = wrl->add_vertex(wrl, 0, p1);
ix[1] = wrl->add_vertex(wrl, 0, p2);
/* Add the line */
if (dodecol) { /* Lines with color determined by length */
double rgb[3];
DE2RGB(rgb, icmNorm33(p1, p2));
wrl->add_col_line(wrl, 0, ix, rgb);
} else { /* Natural color */
wrl->add_line(wrl, 0, ix);
}
}
}
printf("Read profile %s check complete, avg err = %f, max err = %f\n",
cie2k ? "CIEDE2000" : cie94 ? "CIE94" : "Lab", aerr/nsamps, merr); fflush(stdout);
if (ospec) {
merr = 0.0;
aerr = 0.0;
nsamps = 0.0;
for (i = 0; i < nodp; i++) {
xspect spout;
double avd, mxd;
/* Lookup the profile spectral value for this data point */
p->lookup_spec(p, &spout, cols[i].nv);
if (spec_n != spout.spec_n)
error("Mismatch between original spectral and returned");
avd = mxd = 0.0;
for (j = 0; j < spec_n; j++) {
double ded;
ded = fabs(spout.spec[j]/spout.norm - cols[i].band[3+j]/norm);
avd += ded;
if (ded > mxd)
mxd = ded;
}
avd /= (double)spec_n;
if (verify && verb) {
printf("[%f %f] ", avd, mxd);
for (j = 0; j < devchan; j++)
printf("%6.4f ", cols[i].nv[j]);
printf("-> ");
for (j = 0; j < spec_n; j++)
printf("%2.0f ", spout.spec[j]);
printf("should be ");
for (j = 0; j < spec_n; j++)
printf("%2.0f ", cols[i].band[3+j]);
printf("\n");
}
if (mxd > merr)
merr = mxd;
aerr += avd;
nsamps++;
}
printf("profile spectral check complete, avg err = %f%%, max err = %f%%\n",
aerr * 100.0/nsamps, merr * 100.0); fflush(stdout);
/* Check spectrally derived Lab values */
{
xsp2cie *sc;
xspect sp, spout;
if ((sc = new_xsp2cie(icxIT_D50, 0.0, NULL, icxOT_CIE_1931_2, NULL, icSigLabData, icxClamp)) == NULL)
error("Failed to create xsp2cie object");
/* Set standard D50 viewer & illum. */
p->set_ilob(p, icxIT_D50, NULL, icxOT_CIE_1931_2, NULL, icSigLabData, 0);
merr = 0.0;
aerr = 0.0;
nsamps = 0.0;
for (i = 0; i < nodp; i++) {
double out[3], ref[3];
double mxd;
/* Lookup the profile spectral value for this data point */
p->lookup_spec(p, &spout, cols[i].nv);
/* And convert to Lab */
sc->convert(sc, out, &spout);
/* Convert our cols ref data to Lab */
sp.spec_n = spec_n;
sp.spec_wl_short = spec_wl_short;
sp.spec_wl_long = spec_wl_long;
sp.norm = norm;
for (j = 0; j < spec_n; j++)
sp.spec[j] = cols[i].band[3+j];
sc->convert(sc, ref, &sp);
if (verify && verb) {
printf("[%f] ", cie2k ? icmCIE2K(ref, out) :
cie94 ? icmCIE94(ref, out) : icmLabDE(ref, out));
for (j = 0; j < devchan; j++)
printf("%6.4f ", cols[i].nv[j]);
printf("-> %5.1f %5.1f %5.1f should be %5.1f %5.1f %5.1f\n",
out[0],out[1],out[2], ref[0],ref[1],ref[2]);
}
/* Check the result */
mxd = cie2k ? icmCIE2K(ref, out) : cie94 ? icmCIE94(ref, out) : icmLabDE(ref, out);
if (mxd > merr)
merr = mxd;
aerr += mxd;
nsamps++;
if (dovrml && !ospec) {
int ix[2];
double p1[3], p2[3];
/* Add the vertexes */
icmCpy3(p1, ref);
icmCpy3(p2, out);
ix[0] = wrl->add_vertex(wrl, 0, p1);
ix[1] = wrl->add_vertex(wrl, 0, p2);
/* Add the line */
if (dodecol) { /* Lines with color determined by length */
double rgb[3];
DE2RGB(rgb, icmNorm33(p1, p2));
wrl->add_col_line(wrl, 0, ix, rgb);
} else { /* Natural color */
wrl->add_line(wrl, 0, ix);
}
}
}
printf("Read profile spectral %s check complete, avg err = %f, max err = %f\n",
cie2k ? "CIEDE2000" : cie94 ? "CIE94" : "Lab", aerr/nsamps, merr);
fflush(stdout);
sc->del(sc);
}
}
if (dovrml) {
wrl->make_lines_vc(wrl, 0, 0.0);
wrl->del(wrl);
}
p->del(p);
/* Clean up */
del_mppcols(cols, nodp, devchan, spec_n);
return 0;
}
/* ------------------------------------------------ */
/* Convert a delta E value into a signal color: */
static void
DE2RGB(double *out, double in) {
struct {
double de;
double r, g, b;
} range[6] = {
{ 10.0, 1, 1, 0 }, /* yellow */
{ 4.0, 1, 0, 0 }, /* red */
{ 2.0, 1, 0, 1 }, /* magenta */
{ 1.0, 0, 0, 1 }, /* blue */
{ 0.5, 0, 1, 1 }, /* cyan */
{ 0.0, 0, 1, 0 } /* green */
};
int i;
double bl;
/* Locate the range we're in */
if (in > range[0].de) {
out[0] = range[0].r;
out[1] = range[0].g;
out[2] = range[0].b;
} else {
for (i = 0; i < 5; i++) {
if (in <= range[i].de && in >= range[i+1].de)
break;
}
bl = (in - range[i+1].de)/(range[i].de - range[i+1].de);
out[0] = bl * range[i].r + (1.0 - bl) * range[i+1].r;
out[1] = bl * range[i].g + (1.0 - bl) * range[i+1].g;
out[2] = bl * range[i].b + (1.0 - bl) * range[i+1].b;
}
}

View File

@@ -0,0 +1,963 @@
/*
* Argyll Color Management System
* Color Printer Device Model Profile generator.
*
* Author: Graeme W. Gill
* Date: 24/2/2002
*
* Copyright 2003 Graeme W. Gill
* All rights reserved.
*
* This material is licenced under the GNU AFFERO GENERAL PUBLIC LICENSE Version 3 :-
* see the License.txt file for licencing details.
*/
/*
* This program takes in the scattered test chart
* points, and creates a model based forward printer profile
* (Device -> CIE + spectral), based on Neugenbauer equations.
* It is designed to handle an arbitrary number of colorants,
* and in the future, (optionally) create an aproximate ink overlap/mixing model
* to allow synthesis of a forward model for a hyperthetical
* similar printing process with aditional inks.
*
* This code is based on profile.c, sprof.c and xlut.c
*
*/
/*
* TTBD:
*
* Add ink order and overlay modeling stuff back in, with
* new ink overlay model (see mpprof0.c).
*
* Add options to set extra information in xpi structure.
*
* Rather than computing XYZ based versios of the print model
* and ink mixing models, should compute spectrally sharpened
* equivalents to XYZ ??
*
* Fixup error handling in make_output_mpp()
*
*/
#undef DEBUG
#undef DOQUAD /* Minimise error^4 */
#define verbo stdout
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <sys/types.h>
#include <time.h>
#include "copyright.h"
#include "aconfig.h"
#include "cgats.h"
#include "numlib.h"
#include "conv.h"
#include "xicc.h"
#include "prof.h"
#include "sort.h"
#include "ui.h"
void
usage(void) {
fprintf(stderr,"Create Model Printer Profile, Version %s\n",ARGYLL_VERSION_STR);
fprintf(stderr,"Author: Graeme W. Gill, licensed under the AGPL Version 3\n");
fprintf(stderr,"usage: %s [options] outfile\n",error_program);
fprintf(stderr," -v [level] Verbose mode\n");
fprintf(stderr," -q [lmhus] Quality - Low, Medium (def), High, Ultra, Simple\n");
// fprintf(stderr," -q [vfmsu] Speed - Very Fast, Medium (def), Slow, Ultra Slow\n");
fprintf(stderr," -l limit override default ink limit, 1 - n00%%\n");
fprintf(stderr," -s Generate spectral model too\n");
fprintf(stderr," -m Generate ink mixing model\n");
fprintf(stderr," -y [level] Verify profile, 2 = read/write verify\n");
fprintf(stderr," -L Output Lab values\n");
fprintf(stderr," outfile Base name for input.ti3/output.mpp file\n");
exit(1);
}
/* Worker function */
static int make_output_mpp(int verb, int quality, int verify, char *inname, char *outname,
int dolab, double ilimit, int ospec, int omix, profxinf *xpi);
int main(int argc, char *argv[]) {
int fa,nfa,mfa; /* current argument we're looking at */
int verb = 0;
int iquality = 1; /* Forward quality, default medium */
int dolab = 0;
int verify = 0; /* Verify each point */
double limit = -1.0; /* Ink limit */
int ospec = 0; /* Output spectral model flag */
int omix = 0; /* Output mixing model flag */
static char inname[MAXNAMEL+10+1] = { 0 }; /* Input cgats file base name */
static char outname[MAXNAMEL+10+1] = { 0 }; /* Output cgats file base name */
profxinf xpi; /* Extra profile information */
error_program = argv[0];
check_if_not_interactive();
memset((void *)&xpi, 0, sizeof(profxinf)); /* Init extra profile info to defaults */
if (argc <= 1)
usage();
/* Process the arguments */
mfa = 1; /* Expect out filename */
for (fa = 1;fa < argc;fa++) {
nfa = fa; /* skip to nfa if next argument is used */
if (argv[fa][0] == '-') { /* Look for any flags */
char *na = NULL; /* next argument after flag, null if none */
if (argv[fa][2] != '\000')
na = &argv[fa][2]; /* next is directly after flag */
else {
if ((fa+1+mfa) < argc) {
if (argv[fa+1][0] != '-') {
nfa = fa + 1;
na = argv[nfa]; /* next is seperate non-flag argument */
}
}
}
if (argv[fa][1] == '?')
usage();
else if (argv[fa][1] == 'v') {
if (na == NULL) {
verb = 1;
} else {
fa = nfa;
verb = atoi(na);
}
}
/* Ink Limit */
else if (argv[fa][1] == 'l') {
if (na == NULL) usage();
fa = nfa;
limit = atof(na);
}
/* Verify model against input points */
else if (argv[fa][1] == 'y') {
if (na == NULL) {
verify = 1;
} else {
fa = nfa;
verify = atoi(na);
}
}
/* Quality */
else if (argv[fa][1] == 'q') {
if (na == NULL) usage();
fa = nfa;
switch (na[0]) {
case 'v': /* Very fast */
case 'V':
iquality = 99;
break;
case 'f': /* fast */
case 'l':
case 'L':
iquality = 0;
break;
case 'm': /* medium */
case 'M':
iquality = 1;
break;
case 's': /* slow */
case 'h':
case 'H':
iquality = 2;
break;
case 'u': /* ultra slow */
case 'U':
iquality = 3;
break;
default:
usage();
}
}
/* Output spectral model */
else if (argv[fa][1] == 's')
ospec = 1;
/* Output mixing model */
else if (argv[fa][1] == 'm')
omix = 1;
/* Output Lab values rather than XYZ */
else if (argv[fa][1] == 'L')
dolab = 1;
else
usage();
} else
break;
}
/* Get the file name argument */
if (fa >= argc || argv[fa][0] == '-') usage();
strncpy(inname,argv[fa],MAXNAMEL); inname[MAXNAMEL] = '\000';
strcat(inname,".ti3");
strncpy(outname,argv[fa++],MAXNAMEL); outname[MAXNAMEL] = '\000';
strcat(outname,".mpp");
if (make_output_mpp(verb, iquality, verify, inname, outname,
dolab, limit, ospec, omix, &xpi) != 0) {
error ("making mpp failed");
}
return 0;
}
/* ===================================== */
/* Make a DeviceN model printing profile */
/* return nz on error */
static int
make_output_mpp(
int verb, /* Vebosity level, 0 = none, 1 = summary, 2 = detail */
int quality, /* quality, 0..3 */
int verify, /* verify result flag */
char *inname, /* Input .ti3 file name */
char *outname, /* Output .mpp file name */
int dolab, /* NZ if Lab output */
double limit, /* Ink limit, -1.0 == default */
int ospec, /* Output spectral model */
int omix, /* Output ink mixing model */
profxinf *xpi /* Optional Profile creation extra data */
) {
int i, j;
int ti; /* Temporary index */
cgats *icg; /* input cgats structure */
int devmask; /* ICX ink mask of device space */
int devchan; /* Number of chanels in device space */
int isLab = 0; /* Flag indicating whether PCS is XYZ or Lab */
int isDisplay = 0; /* Flag indicating that this is a display device, not output */
int isdnormed = 0; /* Has display data been normalised to 100 ? */
instType itype = instUnknown; /* Spectral instrument type */
int spec_n = 0; /* Number of spectral bands, 0 if not valid */
double spec_wl_short = 0.0; /* First reading wavelength in nm (shortest) */
double spec_wl_long = 0.0; /* Last reading wavelength in nm (longest) */
double norm = 0.0; /* Normalising scale value */
int nodp; /* Number of test patches */
mppcol *cols; /* Test patches */
mpp *p; /* Model Printer Profile */
/* Open and look at the .ti3 profile patches file */
icg = new_cgats(); /* Create a CGATS structure */
icg->add_other(icg, "CTI3"); /* our special input type is Calibration Target Information 3 */
if (icg->read_name(icg, inname))
error("CGATS file read error : %s",icg->e.m);
if (icg->ntables == 0 || icg->t[0].tt != tt_other || icg->t[0].oi != 0)
error ("Input file isn't a CTI3 format file");
if (icg->ntables < 1)
error ("Input file doesn't contain at least one table");
/* If we requested spectral, check that it is available */
if (ospec) {
if ((ti = icg->find_kword(icg, 0, "SPECTRAL_BANDS")) < 0) {
if (ospec) {
error ("No spectral data, so no spectral model output");
ospec = 0; /* Can't output spectral model */
}
} else {
spec_n = atoi(icg->t[0].kdata[ti]);
if (spec_n > MPP_MXBANDS) {
error ("MPP can't cope with %d spectral components", spec_n);
ospec = 0; /* Can't output spectral model */
/* Alternative would be to downsample the spectrum to fit */
}
}
}
/* read the device class, and call function to create profile. */
if ((ti = icg->find_kword(icg, 0, "DEVICE_CLASS")) < 0)
error ("Input file doesn't contain keyword DEVICE_CLASS");
if (strcmp(icg->t[0].kdata[ti],"OUTPUT") == 0) {
isDisplay = 0;
} else if (strcmp(icg->t[0].kdata[ti],"DISPLAY") == 0) {
isDisplay = 1;
} else {
error ("Input file must be for an output device");
}
/* See if the display CIE data has been normalised to Y = 100 */
if ((ti = icg->find_kword(icg, 0, "NORMALIZED_TO_Y_100")) < 0
|| strcmp(icg->t[0].kdata[ti],"NO") == 0) {
isdnormed = 0;
} else {
isdnormed = 1;
}
/* Deal with color representation of input */
{
char *buf;
char *inc, *outc;
if ((ti = icg->find_kword(icg, 0, "COLOR_REP")) < 0)
error("Input file doesn't contain keyword COLOR_REPS");
if ((buf = strdup(icg->t[0].kdata[ti])) == NULL)
error("Malloc failed - color rep");
/* Split COLOR_REP into device and PCS space */
inc = buf;
if ((outc = strchr(buf, '_')) == NULL)
error("COLOR_REP '%s' invalid", icg->t[0].kdata[ti]);
*outc++ = '\000';
if (strcmp(outc, "XYZ") == 0)
isLab = 0;
else if (strcmp(outc, "LAB") == 0)
isLab = 1;
else
error("COLOR_REP '%s' invalid (Neither XYZ nor LAB)", icg->t[0].kdata[ti]);
devmask = icx_char2inkmask(inc);
devchan = icx_noofinks(devmask);
if (devchan == 0)
error("COLOR_REP '%s' invalid (No matching devmask)", icg->t[0].kdata[ti]);
if ((nodp = icg->t[0].nsets) <= 0)
error ("No sets of data");
free(buf);
}
/* Deal with ink limit */
if ((ti = icg->find_kword(icg, 0, "TOTAL_INK_LIMIT")) >= 0) {
double imax;
imax = atof(icg->t[0].kdata[ti]);
if (imax > 1e-4 && imax <= (ICX_MXINKS * 100.0)) {
if (limit > 1e-4 && limit <= (ICX_MXINKS * 100.0)) {
/* User has specified limit as option */
if (imax < limit) {
warning("Ink limit greater than original chart! (%f > %f)",limit,imax);
}
} else {
#ifdef NEVER /* Don't need rule of thumb in MPP's ?? */
if (imax > 80.0)
limit = imax - 10.0; /* Rule of thumb - 10% below chart maximum */
else
#endif /* NEVER */
limit = imax;
}
}
}
if (limit > 1e-4 && limit <= (ICX_MXINKS * 100.0)) {
if (verb)
printf("Total ink limit being used is %f\n",limit);
limit = limit/100.0; /* Set a total ink limit */
} else {
if (verb)
printf("No total ink limit being used\n");
limit = 0.0; /* Don't use a limit */
}
if (ospec && !isDisplay) {
/* Deal with instrument type */
if ((ti = icg->find_kword(icg, 0, "TARGET_INSTRUMENT")) < 0)
error ("Can't find target instrument needed for FWA compensation");
if ((itype = inst_enum(icg->t[0].kdata[ti])) == instUnknown)
error ("Unrecognised target instrument '%s'", icg->t[0].kdata[ti]);
}
if (verb)
printf("Device has %d colorants, key = '%s', %s\n", devchan, icx_inkmask2char(devmask, 1),
devmask & ICX_ADDITIVE ? "Additive" : "Subtractive");
if ((cols = new_mppcols(nodp, devchan, spec_n)) == NULL)
error("Malloc failed! - cols (%d colors x %d bytes",nodp,sizeof(mppcol));
/* Read in all the patch values from the CGATS file */
{
int chix[ICX_MXINKS];
char *bident;
int ii, Xi, Yi, Zi;
xspect sp;
char buf[100];
int spi[XSPECT_MAX_BANDS]; /* CGATS indexes for each wavelength */
bident = icx_inkmask2char(devmask, 0);
/* Find the device value fields */
for (j = 0; j < devchan; j++) {
int ii, imask;
char fname[100];
imask = icx_index2ink(devmask, j);
sprintf(fname,"%s_%s",bident,icx_ink2char(imask));
if ((ii = icg->find_field(icg, 0, fname)) < 0)
error ("Input file doesn't contain field %s",fname);
if (icg->t[0].ftype[ii] != r_t)
error ("Field %s is wrong type - expect float",fname);
chix[j] = ii;
}
if (isLab) { /* Expect Lab */
if (verb)
printf("Using the instruments Lab values\n");
if ((Xi = icg->find_field(icg, 0, "LAB_L")) < 0)
error("Input file doesn't contain field LAB_L");
if (icg->t[0].ftype[Xi] != r_t)
error("Field LAB_L is wrong type - expect float");
if ((Yi = icg->find_field(icg, 0, "LAB_A")) < 0)
error("Input file doesn't contain field LAB_A");
if (icg->t[0].ftype[Yi] != r_t)
error("Field LAB_A is wrong type - expect float");
if ((Zi = icg->find_field(icg, 0, "LAB_B")) < 0)
error("Input file doesn't contain field LAB_B");
if (icg->t[0].ftype[Zi] != r_t)
error("Field LAB_B is wrong type - expect float");
} else { /* Expect XYZ */
if (verb)
printf("Using the instruments XYZ values\n");
if ((Xi = icg->find_field(icg, 0, "XYZ_X")) < 0)
error("Input file doesn't contain field XYZ_X");
if (icg->t[0].ftype[Xi] != r_t)
error("Field XYZ_X is wrong type - expect float");
if ((Yi = icg->find_field(icg, 0, "XYZ_Y")) < 0)
error("Input file doesn't contain field XYZ_Y");
if (icg->t[0].ftype[Yi] != r_t)
error("Field XYZ_Y is wrong type - expect float");
if ((Zi = icg->find_field(icg, 0, "XYZ_Z")) < 0)
error("Input file doesn't contain field XYZ_Z");
if (icg->t[0].ftype[Zi] != r_t)
error("Field XYZ_Z is wrong type - expect float");
}
/* If we need the spectral information, find the fields */
if (ospec) {
if ((ii = icg->find_kword(icg, 0, "SPECTRAL_BANDS")) < 0)
error ("Input file doesn't contain keyword SPECTRAL_BANDS");
sp.spec_n = atoi(icg->t[0].kdata[ii]);
if ((ii = icg->find_kword(icg, 0, "SPECTRAL_START_NM")) < 0)
error ("Input file doesn't contain keyword SPECTRAL_START_NM");
sp.spec_wl_short = atof(icg->t[0].kdata[ii]);
if ((ii = icg->find_kword(icg, 0, "SPECTRAL_END_NM")) < 0)
error ("Input file doesn't contain keyword SPECTRAL_END_NM");
sp.spec_wl_long = atof(icg->t[0].kdata[ii]);
sp.norm = 1.0; /* MPP uses norm of 1.0 */
/* Find the fields for spectral values */
for (j = 0; j < sp.spec_n; j++) {
int nm;
/* Compute nearest integer wavelength */
nm = (int)(sp.spec_wl_short + ((double)j/(sp.spec_n-1.0))
* (sp.spec_wl_long - sp.spec_wl_short) + 0.5);
sprintf(buf,"SPEC_%03d",nm);
if ((spi[j] = icg->find_field(icg, 0, buf)) < 0)
error("Input file doesn't contain field %s",buf);
if (icg->t[0].ftype[spi[j]] != r_t)
error("Field %s is wrong type - expect float",buf);
}
}
if (ospec) { /* Record spectral parameters */
spec_n = sp.spec_n;
spec_wl_short = sp.spec_wl_short;
spec_wl_long = sp.spec_wl_long;
norm = sp.norm;
} else {
spec_n = 0; /* Not using spectral in model */
}
/* Load up all the patch values */
for (i = 0; i < nodp; i++) {
/* read in device values */
for (j = 0; j < devchan; j++)
cols[i].nv[j] = *((double *)icg->t[0].fdata[i][chix[j]])/100.0;
/* Read the spectral values for this patch */
if (ospec) {
for (j = 0; j < sp.spec_n; j++) {
sp.spec[j] = *((double *)icg->t[0].fdata[i][spi[j]]);
if (ospec) {
if (!isDisplay || isdnormed)
cols[i].band[3+j] = sp.spec[j]/100.0; /* Convert to 1.0 norm */
else
cols[i].band[3+j] = sp.spec[j]; /* Absolute */
}
}
}
/* Use the instrument CIE values */
if (isLab) {
cols[i].band[0] = *((double *)icg->t[0].fdata[i][Xi]);
cols[i].band[1] = *((double *)icg->t[0].fdata[i][Yi]);
cols[i].band[2] = *((double *)icg->t[0].fdata[i][Zi]);
icmLab2XYZ(&icmD50, cols[i].band, cols[i].band);
} else {
cols[i].band[0] = *((double *)icg->t[0].fdata[i][Xi]);
cols[i].band[1] = *((double *)icg->t[0].fdata[i][Yi]);
cols[i].band[2] = *((double *)icg->t[0].fdata[i][Zi]);
/* Convert % to 1.0 scale */
if (!isDisplay || isdnormed) {
cols[i].band[0] /= 100.0;
cols[i].band[1] /= 100.0;
cols[i].band[2] /= 100.0;
}
}
}
free(bident);
/* Normalize display values to Y = 1.0 for display */
if (isDisplay && !isdnormed) {
/* XYZ not already normed */
if (isdnormed == 0) {
double scale = -1e6;
/* Locate max Y */
for (i = 0; i < nodp; i++) {
if (cols[i].band[1] > scale)
scale = cols[i].band[1];
}
scale = 1.0/scale;
for (i = 0; i < nodp; i++) {
cols[i].band[0] *= scale;
cols[i].band[1] *= scale;
cols[i].band[2] *= scale;
}
/* Keep spectral consistent, but won't necessarily */
/* give Y = 1.0 for a non 1931_2 observer. */
if (ospec) {
for (i = 0; i < nodp; i++) {
for (j = 0; j < sp.spec_n; j++) {
cols[i].band[3+j] *= scale;
}
}
}
}
}
} /* End of reading in CGATs file */
/* Create the mpp */
if ((p = new_mpp()) == NULL)
return 1;
/* Create from scattered data */
if (p->create(p, verb, quality, isDisplay, limit, devmask, spec_n, spec_wl_short, spec_wl_long,
norm, itype, nodp, cols) != 0) {
return 1;
}
/* Done with inputs to mpp->create() */
icg->del(icg);
/* Estimate the ink mixing model */
if (omix) {
printf("The ink mixing model isn't implimented here yet\n");
}
/* create and write the cgats profile */
if (p->write_mpp(p, outname, dolab))
error("Write error : %s",p->e.m);
/* Check the forward profile accuracy against the data points */
if (verb || verify) {
double merr = 0.0;
double aerr = 0.0;
double nsamps = 0.0;
/* Set just PCS and use XYZ model */
p->set_ilob(p, icxIT_default, NULL, icxOT_default, NULL, icSigLabData, 0);
for (i = 0; i < nodp; i++) {
double out[3], ref[3];
double mxd;
/* Lookup the profile PCS value for this data point */
p->lookup(p, out, cols[i].nv);
/* Convert our cols data to Lab */
icmXYZ2Lab(&icmD50, ref, cols[i].band);
if ((verify && verb) || verb >= 2) {
printf("[%f] ", icmLabDE(ref, out));
for (j = 0; j < devchan; j++)
printf("%6.4f ", cols[i].nv[j]);
printf("-> %5.1f %5.1f %5.1f should be %5.1f %5.1f %5.1f\n",
out[0],out[1],out[2], ref[0],ref[1],ref[2]);
}
/* Check the result */
mxd = icmLabDE(ref, out);
if (mxd > merr)
merr = mxd;
aerr += mxd;
nsamps++;
}
printf("Profile Lab check complete, peak err = %f, avg err = %f\n",
merr, aerr/nsamps);
if (ospec) {
double maxsp = -1e6;
merr = 0.0;
aerr = 0.0;
nsamps = 0.0;
for (i = 0; i < nodp; i++) {
xspect out;
double avd, mxd;
/* Lookup the profile spectral value for this data point */
p->lookup_spec(p, &out, cols[i].nv);
if (spec_n != out.spec_n)
error("Mismatch between original spectral and returned");
avd = mxd = 0.0;
for (j = 0; j < spec_n; j++) {
double ded;
if (out.spec[j] > maxsp)
maxsp = out.spec[j];
if (cols[i].band[3+j] > maxsp)
maxsp = out.spec[j];
ded = fabs(out.spec[j] - cols[i].band[3+j]);
avd += ded;
if (ded > mxd)
mxd = ded;
}
avd /= (double)spec_n;
if ((verify && verb) || verb >= 2) {
printf("[%f %f] ", avd, mxd);
for (j = 0; j < devchan; j++)
printf("%6.4f ", cols[i].nv[j]);
printf("-> ");
#ifdef NEVER
for (j = 0; j < spec_n; j++)
printf("%2.0f ", out.spec[j]);
printf("should be ");
for (j = 0; j < spec_n; j++)
printf("%2.0f ", cols[i].band[3+j]);
#else
for (j = 0; j < spec_n; j++)
printf("%f ", out.spec[j]);
printf("should be ");
for (j = 0; j < spec_n; j++)
printf("%f ", cols[i].band[3+j]);
#endif
printf("\n");
}
if (mxd > merr)
merr = mxd;
aerr += avd;
nsamps++;
}
printf("profile spectral check complete, avg err = %f%%, max err = %f%%\n",
aerr * 100.0/nsamps * 1.0/maxsp, merr * 100.0/maxsp);
/* Check spectrally derived Lab values */
{
xsp2cie *sc;
xspect sp;
if (isDisplay) {
if ((sc = new_xsp2cie(icxIT_none, 0.0, NULL, icxOT_CIE_1931_2, NULL, icSigLabData, icxClamp)) == NULL)
error("Failed to create xsp2cie object");
p->set_ilob(p, icxIT_none, NULL, icxOT_CIE_1931_2, NULL, icSigLabData, 0);
} else {
/* Set standard D50 viewer & illum. */
if ((sc = new_xsp2cie(icxIT_D50, 0.0, NULL, icxOT_CIE_1931_2, NULL, icSigLabData, icxClamp)) == NULL)
error("Failed to create xsp2cie object");
p->set_ilob(p, icxIT_D50, NULL, icxOT_CIE_1931_2, NULL, icSigLabData, 0);
}
merr = 0.0;
aerr = 0.0;
nsamps = 0.0;
for (i = 0; i < nodp; i++) {
double out[3], ref[3];
double mxd;
/* Lookup the profile PCS value for this data point */
p->lookup(p, out, cols[i].nv);
/* Convert our cols ref data to Lab */
sp.spec_n = spec_n;
sp.spec_wl_short = spec_wl_short;
sp.spec_wl_long = spec_wl_long;
sp.norm = norm;
for (j = 0; j < spec_n; j++)
sp.spec[j] = cols[i].band[3+j];
sc->convert(sc, ref, &sp);
if ((verify && verb) || verb >= 2) {
printf("[%f] ", icmLabDE(ref, out));
for (j = 0; j < devchan; j++)
printf("%6.4f ", cols[i].nv[j]);
printf("-> %5.1f %5.1f %5.1f should be %5.1f %5.1f %5.1f\n",
out[0],out[1],out[2], ref[0],ref[1],ref[2]);
}
/* Check the result */
mxd = icmLabDE(ref, out);
if (mxd > merr)
merr = mxd;
aerr += mxd;
nsamps++;
}
printf("Profile spectral Lab check complete, avg err = %f, max err = %f\n",
aerr/nsamps, merr);
sc->del(sc);
}
}
}
/* Test again by reading and loading the profile */
if (verify >= 2) {
mpp *p2; /* Second test profile */
double merr = 0.0;
double aerr = 0.0;
double nsamps = 0.0;
printf("\n");
if ((p2 = new_mpp()) == NULL)
error("Failed to create an mpp");
if (p2->read_mpp(p2, outname))
error("Read error : %s",p2->e.m);
{
/* Set just PCS and use XYZ model */
p2->set_ilob(p2, icxIT_default, NULL, icxOT_default, NULL, icSigLabData, 0);
for (i = 0; i < nodp; i++) {
double out[3], ref[3];
double mxd;
/* Lookup the profile PCS value for this data point */
p2->lookup(p2, out, cols[i].nv);
/* Convert our cols data to Lab */
icmXYZ2Lab(&icmD50, ref, cols[i].band);
if (verify && verb) {
printf("[%f] ", icmLabDE(ref, out));
for (j = 0; j < devchan; j++)
printf("%6.4f ", cols[i].nv[j]);
printf("-> %5.1f %5.1f %5.1f should be %5.1f %5.1f %5.1f\n",
out[0],out[1],out[2], ref[0],ref[1],ref[2]);
}
/* Check the result */
mxd = icmLabDE(ref, out);
if (mxd > merr)
merr = mxd;
aerr += mxd;
nsamps++;
}
printf("Read profile Lab check complete, avg err = %f, max err = %f\n",
aerr/nsamps, merr); fflush(stdout);
if (ospec) {
double maxsp = -1e6;
merr = 0.0;
aerr = 0.0;
nsamps = 0.0;
for (i = 0; i < nodp; i++) {
xspect out;
double avd, mxd;
/* Lookup the profile spectral value for this data point */
p2->lookup_spec(p2, &out, cols[i].nv);
if (spec_n != out.spec_n)
error("Mismatch between original spectral and returned");
avd = mxd = 0.0;
for (j = 0; j < spec_n; j++) {
double ded;
if (out.spec[j] > maxsp)
maxsp = out.spec[j];
if (cols[i].band[3+j] > maxsp)
maxsp = out.spec[j];
ded = fabs(out.spec[j] - cols[i].band[3+j]);
avd += ded;
if (ded > mxd)
mxd = ded;
}
avd /= (double)spec_n;
if (verify && verb) {
printf("[%f %f] ", avd, mxd);
for (j = 0; j < devchan; j++)
printf("%6.4f ", cols[i].nv[j]);
printf("-> ");
#ifdef NEVER
for (j = 0; j < spec_n; j++)
printf("%2.0f ", out.spec[j]);
printf("should be ");
for (j = 0; j < spec_n; j++)
printf("%2.0f ", cols[i].band[3+j]);
#else
for (j = 0; j < spec_n; j++)
printf("%f ", out.spec[j]);
printf("should be ");
for (j = 0; j < spec_n; j++)
printf("%f ", cols[i].band[3+j]);
#endif
printf("\n");
}
if (mxd > merr)
merr = mxd;
aerr += avd;
nsamps++;
}
printf("profile spectral check complete, avg err = %f, max err = %f\n",
aerr * 100.0/nsamps * 1.0/maxsp, merr * 100.0/maxsp); fflush(stdout);
/* Check spectrally derived Lab values */
{
xsp2cie *sc;
xspect sp;
if (isDisplay) {
/* Set emissive viewer. */
if ((sc = new_xsp2cie(icxIT_none, 0.0, NULL, icxOT_CIE_1931_2, NULL, icSigLabData, icxClamp)) == NULL)
error("Failed to create xsp2cie object");
/* (mpp will ignore illuminant for display anyway ??) */
p2->set_ilob(p2, icxIT_none, NULL, icxOT_CIE_1931_2, NULL, icSigLabData, 0);
} else {
/* Set standard D50 viewer & illum. */
if ((sc = new_xsp2cie(icxIT_D50, 0.0, NULL, icxOT_CIE_1931_2, NULL, icSigLabData, icxClamp)) == NULL)
error("Failed to create xsp2cie object");
p2->set_ilob(p2, icxIT_D50, NULL, icxOT_CIE_1931_2, NULL, icSigLabData, 0);
}
merr = 0.0;
aerr = 0.0;
nsamps = 0.0;
for (i = 0; i < nodp; i++) {
double out[3], ref[3];
double mxd;
/* Lookup the profile PCS value for this data point */
p2->lookup(p2, out, cols[i].nv);
/* Convert our cols ref data to Lab */
sp.spec_n = spec_n;
sp.spec_wl_short = spec_wl_short;
sp.spec_wl_long = spec_wl_long;
sp.norm = norm;
for (j = 0; j < spec_n; j++)
sp.spec[j] = cols[i].band[3+j];
sc->convert(sc, ref, &sp);
if (verify && verb) {
printf("[%f] ", icmLabDE(ref, out));
for (j = 0; j < devchan; j++)
printf("%6.4f ", cols[i].nv[j]);
printf("-> %5.1f %5.1f %5.1f should be %5.1f %5.1f %5.1f\n",
out[0],out[1],out[2], ref[0],ref[1],ref[2]);
}
/* Check the result */
mxd = icmLabDE(ref, out);
if (mxd > merr)
merr = mxd;
aerr += mxd;
nsamps++;
}
printf("Read profile spectral Lab check complete, avg err = %f, max err = %f\n",
aerr/nsamps, merr); fflush(stdout);
sc->del(sc);
}
}
}
if (p2->write_mpp(p2, "xxxx.mpp", dolab))
error("Write error : %s",p2->e.m);
p2->del(p2);
}
/* Clean up */
del_mppcols(cols, nodp, devchan, spec_n);
p->del(p);
return 0;
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,121 @@
#ifndef PROF_H
#define PROF_H
/*
* ICC Profile creation library.
*
* Author: Graeme W. Gill
* Date: 11/10/00
* Version: 1.00
*
* Copyright 2000 Graeme W. Gill
* All rights reserved.
*
* This material is licenced under the GNU AFFERO GENERAL PUBLIC LICENSE Version 3 :-
* see the License.txt file for licencing details.
*/
/*
* This library provide high level routines to create device ICC
* profiles from argyll cgats patch test data.
*/
/* Profile algorithm type */
typedef enum {
prof_default = 0, /* Default for type of device */
prof_clutLab = 1, /* Lab clut. */
prof_clutXYZ = 2, /* XYZ clut. */
prof_gammat = 3, /* XYZ gamma + matrix */
prof_shamat = 4, /* XYZ shaper + matrix */
prof_gam1mat = 5, /* XYZ shared TRC gamma + matrix */
prof_sha1mat = 6, /* XYZ shared TRC shaper + matrix */
prof_matonly = 7 /* XYZ matrix, linear */
} prof_atype;
/* Output or Display device */
void make_output_icc(
prof_atype ptype, /* Profile output type */
int mtxtoo, /* NZ if matrix tags should be created for Display XYZ cLUT */
icxTransformCreateType icctype, /* ICC profile type to create */
int verb, /* Vebosity level, 0 = none */
int iquality, /* A2B table quality, 0..2 */
int oquality, /* B2A table quality, 0..2 */
int noiluts, /* nz to supress creation of input (Device) shaper luts */
int noisluts, /* nz to supress creation of input sub-grid (Device) shaper luts */
int nooluts, /* nz to supress creation of output (PCS) shaper luts */
int nocied, /* nz to supress inclusion of .ti3 data in profile */
int noptop, /* nz to use colorimetic source gamut to make perceptual table */
int nostos, /* nz to use colorimetic source gamut to make perceptual table */
int igammap, /* Apply inverse gamut mapping to perc and sat A2B tables */
int gamdiag, /* Make gamut mapping diagnostic wrl plots */
int verify, /* nz to print verification */
int clipprims, /* Clip white, black and primaries */
double wpscale, /* >= 0.0 for media white point scale factor */
// double *bpo, /* != NULL for XYZ black point override */
icxInk *ink, /* Ink limit/black generation setup */
char *in_name, /* input .ti3 file name */
char *file_name, /* output icc name */
cgats *icg, /* input cgats structure */
int spec, /* Use spectral data flag */
icxIllumeType tillum, /* Target/simulated instrument illuminant, if set. */
xspect *cust_tillum, /* Custom target/simulated illumination spectrum */
/* if tillum == icxIT_custom */
icxIllumeType illum, /* CIE calc. illuminant spectrum, and FWA inst. */
/* illuminant if tillum not set. */
xspect *cust_illum, /* Custom CIE illumination spectrum if illum == icxIT_custom */
icxObserverType obType, /* CIE calc. observer */
xspect custObserver[3], /* If obType = icxOT_custom */
int fwacomp, /* FWA compensation requested */
double smooth, /* RSPL smoothing factor, -ve if raw */
double avgdev, /* reading Average Deviation as a proportion of the input range */
double demph, /* Emphasise dark region grid resolution in cLUT */
int gcompr, /* Gamut compression % if > 0 rather than ipname */
int gexpr, /* Gamut saturation expansion % if gcompr > 0 rather */
char *ipname, /* input icc profile - enables gamut map, NULL if none */
char *sgname, /* source image gamut - NULL if none */
char *absname[3], /* abstract profile name for each table */
/* may be duplicated, NULL if none */
int sepsat, /* Create separate Saturation B2A */
icxViewCond *ivc_p, /* Input Viewing Parameters for CIECAM97s */
icxViewCond *ovc_p, /* Output Viewing Parameters for CIECAM97s (enables CAM clip) */
int ivc_e, /* Input Enumerated viewing condition */
int ovc_e, /* Output Enumerated viewing condition */
icxGMappingIntent *pgmi,/* Perceptual gamut mapping intent */
icxGMappingIntent *sgmi,/* Saturation gamut mapping intent */
profxinf *pi, /* Optional Profile creation extra data */
char *calname /* Override calibration file name, NULL or "" if none */
);
/* Input device */
void make_input_icc(
prof_atype ptype, /* Profile algorithm type */
icxTransformCreateType icctype, /* ICC profile type to create */
int verb,
int iquality, /* A2B table quality, 0..3 */
int oquality, /* B2A table quality, 0..3 */
int noisluts, /* nz to supress creation of input (Device) shaper luts */
int noipluts, /* nz to supress creation of input (Device) position luts */
int nooluts, /* nz to supress creation of output (PCS) shaper luts */
int nocied, /* nz to supress inclusion of .ti3 data in profile */
int verify,
int autowpsc, /* nz for Auto scale the WP to prevent clipping above WP patch */
int clipovwp, /* nz for Clip cLUT values above WP */
double wpscale, /* >= 0.0 for media white point scale factor */
int dob2a, /* nz to create a B2A table as well */
int extrap, /* nz to create extra cLUT interpolation points */
int clipprims, /* Clip white, black and primaries */
char *in_name, /* input .ti3 file name */
char *file_name, /* output icc name */
cgats *icg, /* input cgats structure */
int emis, /* emissive reference data */
int spec, /* Use spectral data flag */
icxIllumeType illum, /* Spectral illuminant */
xspect *cust_illum, /* Possible custom illumination */
icxObserverType obType, /* Spectral observer */
xspect custObserver[3], /* If obType = icxOT_custom */
double smooth, /* RSPL smoothing factor, -ve if raw */
double avgdev, /* reading Average Deviation as a proportion of the input range */
profxinf *xpi /* Optional Profile creation extra data */
);
#endif /* PROF_H */

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,433 @@
/*
* Argyll Color Management System
* Simple CMYK profile generator.
*
* Author: Graeme W. Gill
* Date: 9/11/96
*
* Copyright 1996, 2002 Graeme W. Gill
* All rights reserved.
*
* This material is licenced under the GNU AFFERO GENERAL PUBLIC LICENSE Version 3 :-
* see the License.txt file for licencing details.
*/
/* This program generates a simple mathematical profile for a CMYK device. */
/* It is intended for use in bootstrapping the test chart generation. */
#define VERSION "1.1"
#undef DEBUG
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <sys/types.h>
#include <time.h>
#include "../cgats/cgats.h"
#include "../numlib/numlib.h"
#include "icc.h"
/* A color structure */
/* This holds the test patch results */
typedef struct {
double c,m,y,k;
double bc[8]; /* Gamma corrected blend coefficients of cmyk */
double Lab[3];
double err; /* Delta E squared */
} col;
/* Structure to hold data for optimization function */
struct _edatas {
col *cols; /* Pointer to table of patch results */
int npat; /* Number of patches */
int xyzi; /* current xyz index */
double gam[4]; /* Gamma values */
double k[3][8]; /* Primary combination values */
}; typedef struct _edatas edatas;
/* Definition of the power optimization function handed to powell() */
/* This function is for optimising the gamma function */
double efunc1(void *edata, double p[]) {
edatas *ed = (edatas *)edata;
double rv;
col *cp;
for (rv = 0.0, cp = &ed->cols[ed->npat-1]; cp >= &ed->cols[0]; cp--) {
double cc,mm,yy,kk;
double nc,nm,ny,nk;
double XYZ[3], Lab[3];
int j;
/* Apply gamma correction to each input */
for (j = 0; j < 4; j++) {
if (p[j] < 0.2)
p[j] = 0.2;
else if (p[j] > 5.0)
p[j] = 5.0;
}
cc = pow(cp->c, p[0]);
nc = 1.0 - cc;
mm = pow(cp->m, p[1]);
nm = 1.0 - mm;
yy = pow(cp->y, p[2]);
ny = 1.0 - yy;
kk = pow(cp->k, p[3]);
nk = 1.0 - kk;
/* Then interpolate between all combinations of primaries. */
/* plus one that stands for all that are close to black */
for (j = 0; j < 3; j++) {
XYZ[j] = nc * nm * ny * nk * ed->k[j][0]
+ nc * nm * yy * nk * ed->k[j][1]
+ nc * mm * ny * nk * ed->k[j][2]
+ nc * mm * yy * nk * ed->k[j][3]
+ cc * nm * ny * nk * ed->k[j][4]
+ cc * nm * yy * nk * ed->k[j][5]
+ cc * mm * ny * nk * ed->k[j][6]
+ (cc * mm * yy * nk + kk) * ed->k[j][7];
}
icmXYZ2Lab(&icmD50, Lab, XYZ);
rv += cp->err = icmLabDEsq(Lab, cp->Lab);
}
printf("Efunc1 returning %f\n",rv);
return rv;
}
/* Definition of the primary coefficient optimization function handed to powell() */
/* This function is for optimising the primary values */
double efunc2(void *edata, double p[]) {
edatas *ed = (edatas *)edata;
int j, os = ed->xyzi;
double tt, rv;
col *cp;
rv = 0.0;
for (j = 0; j < 8; j++) {
if (p[j] < 0.0) { /* Protect against silly values */
p[j] = 0.0;
rv += 1000.0;
}
else if (p[j] > 1.5) {
p[j] = 1.5;
rv += 1000.0;
}
ed->k[os][j] = p[j]; /* Load into current */
}
/* Compute error */
for (cp = &ed->cols[ed->npat-1]; cp >= &ed->cols[0]; cp--) {
double XYZ[3], Lab[3];
for (os = 0; os < 3; os++) {
/* Interpolate between all combinations of primaries. */
for (tt = 0.0, j = 0; j < 8; j++)
tt += cp->bc[j] * ed->k[os][j];
XYZ[os] = tt;
}
icmXYZ2Lab(&icmD50, Lab, XYZ);
rv += cp->err = icmLabDEsq(Lab, cp->Lab);
}
printf("Efunc2 returning %f\n",rv);
return rv;
}
/* Calculate blend coefficients */
void calc_bc(edatas *ed) {
int j;
col *cp;
for (cp = &ed->cols[ed->npat-1]; cp >= &ed->cols[0]; cp--) {
double cc,mm,yy,kk;
double nc,nm,ny,nk;
/* Apply gamma correction to each input, and calculate complement */
for (j = 0; j < 4; j++) {
if (ed->gam[j] < 0.2)
ed->gam[j] = 0.2;
else if (ed->gam[j] > 5.0)
ed->gam[j] = 2.0;
}
cc = pow(cp->c, ed->gam[0]);
nc = 1.0 - cc;
mm = pow(cp->m, ed->gam[1]);
nm = 1.0 - mm;
yy = pow(cp->y, ed->gam[2]);
ny = 1.0 - yy;
kk = pow(cp->k, ed->gam[3]);
nk = 1.0 - kk;
/* Go through all 8 combinations */
cp->bc[0] = nc * nm * ny * nk;
cp->bc[1] = nc * nm * yy * nk;
cp->bc[2] = nc * mm * ny * nk;
cp->bc[3] = nc * mm * yy * nk;
cp->bc[4] = cc * nm * ny * nk;
cp->bc[5] = cc * nm * yy * nk;
cp->bc[6] = cc * mm * ny * nk;
cp->bc[7] = cc * mm * yy * nk + kk;
}
}
void usage(void);
int main(int argc, char *argv[])
{
int i,j,k;
int fa,nfa; /* current argument we're looking at */
int verb = 0;
static char inname[MAXNAMEL+10+1] = { 0 }; /* Input cgats file base name */
static char outname[MAXNAMEL+10+1] = { 0 }; /* Output cgats file base name */
cgats *icg; /* input cgats structure */
cgats *ocg; /* output cgats structure */
time_t clk = time(0);
struct tm *tsp = localtime(&clk);
char *atm = asctime(tsp); /* Ascii time */
int ti; /* Temporary index */
edatas ed; /* Optimising function data structure */
double resid[4];
double presid,dresid;
double sarea;
error_program = argv[0];
if (argc <= 1)
usage();
/* Process the arguments */
for(fa = 1;fa < argc;fa++)
{
nfa = fa; /* skip to nfa if next argument is used */
if (argv[fa][0] == '-') /* Look for any flags */
{
char *na = NULL; /* next argument after flag, null if none */
if (argv[fa][2] != '\000')
na = &argv[fa][2]; /* next is directly after flag */
else
{
if ((fa+1) < argc)
{
if (argv[fa+1][0] != '-')
{
nfa = fa + 1;
na = argv[nfa]; /* next is seperate non-flag argument */
}
}
}
if (argv[fa][1] == '?')
usage();
else if (argv[fa][1] == 'v' || argv[fa][1] == 'V')
verb = 1;
else
usage();
}
else
break;
}
/* Get the file name argument */
if (fa >= argc || argv[fa][0] == '-') usage();
strncpy(inname,argv[fa],MAXNAMEL); inname[MAXNAMEL] = '\000';
strcat(inname,".ti3");
strncpy(outname,argv[fa++],MAXNAMEL); outname[MAXNAMEL] = '\000';
strcat(outname,".pr1");
icg = new_cgats(); /* Create a CGATS structure */
icg->add_other(icg, "CTI3"); /* our special input type is Calibration Target Information 3 */
if (icg->read_name(icg, inname))
error("CGATS file read error : %s",icg->e.m);
if (icg->ntables == 0 || icg->t[0].tt != tt_other || icg->t[0].oi != 0)
error ("Input file isn't a CTI3 format file");
if (icg->ntables != 1)
error ("Input file doesn't contain exactly one table");
if ((ed.npat = icg->t[0].nsets) <= 0)
error ("No sets of data");
if (verb) {
printf("No of test patches = %d\n",ed.npat);
}
if ((ed.cols = (col *)malloc(sizeof(col) * ed.npat)) == NULL)
error("Malloc failed!");
/* Setup output cgats file */
/* This is a simple interpolation CMYK -> XYZ device profile */
ocg = new_cgats(); /* Create a CGATS structure */
ocg->add_other(ocg, "PROF1"); /* our special type is Profile type 1 */
ocg->add_table(ocg, tt_other, 0); /* Start the first table */
ocg->add_kword(ocg, 0, "DESCRIPTOR", "Argyll Calibration Device Profile Type 1",NULL);
ocg->add_kword(ocg, 0, "ORIGINATOR", "Argyll sprof", NULL);
atm[strlen(atm)-1] = '\000'; /* Remove \n from end */
ocg->add_kword(ocg, 0, "CREATED",atm, NULL);
/* Figure out the color space */
if ((ti = icg->find_kword(icg, 0, "COLOR_REP")) < 0)
error ("Input file doesn't contain keyword COLOR_REPS");
if (strcmp(icg->t[0].kdata[ti],"CMYK_XYZ") == 0) {
int ci, mi, yi, ki;
int Xi, Yi, Zi;
if ((ci = icg->find_field(icg, 0, "CMYK_C")) < 0)
error ("Input file doesn't contain field CMYK_C");
if (icg->t[0].ftype[ci] != r_t)
error ("Field CMYK_C is wrong type");
if ((mi = icg->find_field(icg, 0, "CMYK_M")) < 0)
error ("Input file doesn't contain field CMYK_M");
if (icg->t[0].ftype[mi] != r_t)
error ("Field CMYK_M is wrong type");
if ((yi = icg->find_field(icg, 0, "CMYK_Y")) < 0)
error ("Input file doesn't contain field CMYK_Y");
if (icg->t[0].ftype[yi] != r_t)
error ("Field CMYK_Y is wrong type");
if ((ki = icg->find_field(icg, 0, "CMYK_K")) < 0)
error ("Input file doesn't contain field CMYK_K");
if (icg->t[0].ftype[ki] != r_t)
error ("Field CMYK_K is wrong type");
if ((Xi = icg->find_field(icg, 0, "XYZ_X")) < 0)
error ("Input file doesn't contain field XYZ_X");
if (icg->t[0].ftype[Xi] != r_t)
error ("Field XYZ_X is wrong type");
if ((Yi = icg->find_field(icg, 0, "XYZ_Y")) < 0)
error ("Input file doesn't contain field XYZ_Y");
if (icg->t[0].ftype[Yi] != r_t)
error ("Field XYZ_Y is wrong type");
if ((Zi = icg->find_field(icg, 0, "XYZ_Z")) < 0)
error ("Input file doesn't contain field XYZ_Z");
if (icg->t[0].ftype[Zi] != r_t)
error ("Field XYZ_Z is wrong type");
for (i = 0; i < ed.npat; i++) {
double XYZ[3];
ed.cols[i].c = *((double *)icg->t[0].fdata[i][ci]) / 100.0;
ed.cols[i].m = *((double *)icg->t[0].fdata[i][mi]) / 100.0;
ed.cols[i].y = *((double *)icg->t[0].fdata[i][yi]) / 100.0;
ed.cols[i].k = *((double *)icg->t[0].fdata[i][ki]) / 100.0;
XYZ[0] = *((double *)icg->t[0].fdata[i][Xi]) / 100.0;
XYZ[1] = *((double *)icg->t[0].fdata[i][Yi]) / 100.0;
XYZ[2] = *((double *)icg->t[0].fdata[i][Zi]) / 100.0;
icmXYZ2Lab(&icmD50, ed.cols[i].Lab, XYZ);
}
/* Initialise the model */
ed.gam[0] = 1.0; /* First four are CMYK gamma values */
ed.gam[1] = 1.0;
ed.gam[2] = 1.0;
ed.gam[3] = 1.0;
/* Initialise interpolation end points for each combination of primary, */
/* with all combinations close to black being represented by param[7]. */
ed.k[0][0] = .82; ed.k[1][0] = .83; ed.k[2][0] = .75; /* White */
ed.k[0][1] = .66; ed.k[1][1] = .72; ed.k[2][1] = .05; /* Y */
ed.k[0][2] = .27; ed.k[1][2] = .12; ed.k[2][2] = .06; /* M */
ed.k[0][3] = .27; ed.k[1][3] = .12; ed.k[2][3] = .00; /* MY */
ed.k[0][4] = .09; ed.k[1][4] = .13; ed.k[2][4] = .44; /* C */
ed.k[0][5] = .03; ed.k[1][5] = .10; ed.k[2][5] = .04; /* C Y */
ed.k[0][6] = .02; ed.k[1][6] = .01; ed.k[2][6] = .05; /* CM */
ed.k[0][7] = .01; ed.k[1][7] = .01; ed.k[2][7] = .01; /* Black */
sarea = 0.3;
presid = dresid = 100.0;
for (k=0; /* dresid > 0.0001 && */ k < 40; k++) { /* Untill we're done */
double sresid;
double sr[8];
double p[8];
/* Adjust the gamma */
for (i = 0; i < 4; i++)
sr[i] = 0.1; /* Device space search radius */
if (powell(&resid[3], 4, &ed.gam[0], sr, 0.1, 1000, efunc1, (void *)&ed, NULL, NULL) != 0)
error ("Powell failed");
/* Adjust the primaries */
calc_bc(&ed); /* Calculate blend coefficients */
for (i = 0; i < 8; i++)
sr[i] = 0.2; /* Device space search radius */
sresid = 99.0;
for (j = 0; j < 3; j++) { /* For each of X, Y and Z */
ed.xyzi = j;
for (i = 0; i < 8; i++)
p[i] = ed.k[j][i];
printf("##############\n");
printf("XYZ = %d\n",j);
if (powell(&resid[j], 8, p, sr, 0.1, 1000, efunc2, (void *)&ed, NULL, NULL) != 0)
error ("Powell failed");
for (i = 0; i < 8; i++)
ed.k[j][i] = p[i];
if (sresid > resid[j])
sresid = resid[j];
}
dresid = presid - sresid;
if (dresid < 0.0)
dresid = 100.0;
presid = sresid;
printf("~1 presid = %f, sresid = %f, dresid = %f\n",presid, sresid, dresid);
}
/* Fields we want */
ocg->add_kword(ocg, 0, "DSPACE","CMYK", NULL);
ocg->add_kword(ocg, 0, "DTYPE","PRINTER", NULL);
ocg->add_field(ocg, 0, "PARAM_ID", i_t);
ocg->add_field(ocg, 0, "PARAM", r_t);
/* Output model parameters */
for (j = 0; j < 4; j++)
ocg->add_set(ocg, 0, j, ed.gam[j]);
for (j = 0; j < 3; j++) {
for (i = 0; i < 8; i++)
ocg->add_set(ocg, 0, 10 * (j + 1) + i, 100.0 * ed.k[j][i]);
}
if (verb) {
double aver = 0.0;
double maxer = 0.0;
for (i = 0; i < ed.npat; i++) {
double err = sqrt(ed.cols[i].err);
if (err > maxer)
maxer = err;
aver += err;
}
aver = aver/((double)i);
printf("Average fit error = %f, maximum = %f\n",aver,maxer);
}
} else if (strcmp(icg->t[0].kdata[ti],"RGB") == 0) {
error ("We can't handle RGB !");
} else if (strcmp(icg->t[0].kdata[ti],"W") == 0) {
error ("We can't handle Grey !");
} else
error ("Input file keyword COLOR_REPS has unknown value");
if (ocg->write_name(ocg, outname))
error("Write error : %s",ocg->e.m);
free(ed.cols);
ocg->del(ocg); /* Clean up */
icg->del(icg); /* Clean up */
return 0;
}
/******************************************************************/
/* Error/debug output routines */
/******************************************************************/
void
usage(void) {
fprintf(stderr,"Create Simple CMYK Device Profile, Version %s\n",VERSION);
fprintf(stderr,"Author: Graeme W. Gill, licensed under the AGPL Version 3\n");
fprintf(stderr,"usage: %s [-v] outfile\n",error_program);
fprintf(stderr," -v Verbose mode\n");
fprintf(stderr," outfile Base name for input.tr3/output.pr1 file\n");
exit(1);
}

View File

@@ -0,0 +1,403 @@
/*
* Argyll Color Management System
* Split a .ti3 (or other CGATS like) file into two parts.
*
* Author: Graeme W. Gill
* Date: 14/12/2005
*
* Copyright 2005, 2010 Graeme W. Gill
* All rights reserved.
*
* This material is licenced under the GNU AFFERO GENERAL PUBLIC LICENSE Version 3 :-
* see the License.txt file for licencing details.
*/
/*
* This program takes in a CGATS .ti3 file, and splits it into
* two .ti3 files, spreading the readings between them.
* This is intended for use in verifying the profiler.
*/
/*
* TTBD:
This doesn't pass calibration table information through.
(ie. should copy all tables after the first.)
Write a companion "combineti3" to merge .ti3's together.
*/
#undef DEBUG
#define verbo stdout
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <time.h>
#include "copyright.h"
#include "aconfig.h"
#include "numlib.h"
#include "cgats.h"
#include "conv.h"
#include "xicc.h"
#include "insttypes.h"
#include "sort.h"
void
usage(void) {
fprintf(stderr,"Split a .ti3 into two, Version %s\n",ARGYLL_VERSION_STR);
fprintf(stderr,"Author: Graeme W. Gill, licensed under the AGPL Version 3\n");
fprintf(stderr,"usage: splitti3 [-options] input.ti3 output1.ti3 output2.ti3\n");
fprintf(stderr," -v Verbose - print each patch value\n");
fprintf(stderr," -n no Put no sets in first file, and balance in second file.\n");
fprintf(stderr," -p percent Put percent%% sets in first file, and balance in second file. (def. 50%%)\n");
fprintf(stderr," -w Put white patches in both files.\n");
fprintf(stderr," -r seed Use given random seed.\n");
fprintf(stderr," input.ti3 File to be split up.\n");
fprintf(stderr," output1.ti3 First output file\n");
fprintf(stderr," output2.ti3 Second output file\n");
exit(1);
}
int main(int argc, char *argv[]) {
int fa,nfa; /* current argument we're looking at */
int verb = 0;
int numb = -1; /* Number to put in first */
double prop = 0.5; /* Proportion to put in first */
int dow = 0; /* Put white patches in both files */
int seed = 0x12345678;
int doseed = 0;
cgats *cgf = NULL; /* cgats file data */
static char in_name[MAXNAMEL+1]; /* Patch filename */
cgats *cg1 = NULL; /* cgats file data */
static char out_name1[MAXNAMEL+1]; /* VRML name */
cgats *cg2 = NULL; /* cgats file data */
static char out_name2[MAXNAMEL+1]; /* VRML name */
cgats_set_elem *setel; /* Array of set value elements */
int *flags; /* Point to destination of set */
int i, j, n;
error_program = "splitti3";
if (argc <= 1)
usage();
/* Process the arguments */
for (fa = 1;fa < argc;fa++) {
nfa = fa; /* skip to nfa if next argument is used */
if (argv[fa][0] == '-') { /* Look for any flags */
char *na = NULL; /* next argument after flag, null if none */
if (argv[fa][2] != '\000')
na = &argv[fa][2]; /* next is directly after flag */
else {
if ((fa+1) < argc) {
if (argv[fa+1][0] != '-') {
nfa = fa + 1;
na = argv[nfa]; /* next is seperate non-flag argument */
}
}
}
if (argv[fa][1] == '?') {
usage();
} else if (argv[fa][1] == 'v') {
verb = 1;
} else if (argv[fa][1] == 'n') {
if (na == NULL) usage();
fa = nfa;
numb = atoi(na);
if (numb < 0) usage();
} else if (argv[fa][1] == 'p') {
if (na == NULL) usage();
fa = nfa;
prop = atoi(na);
if (prop < 0) usage();
prop = prop / 100.0;
} else if (argv[fa][1] == 'w') {
dow = 1;
} else if (argv[fa][1] == 'r') {
if (na == NULL) usage();
fa = nfa;
seed = atoi(na);
doseed = 1;
}
else
usage();
} else
break;
}
if (doseed)
rand32(seed); /* Init seed deterministicaly */
else
rand32(time(NULL)); /* Init seed randomly */
/* Get the file name arguments */
if (fa >= argc || argv[fa][0] == '-') usage();
strncpy(in_name,argv[fa++],MAXNAMEL); in_name[MAXNAMEL] = '\000';
if (fa >= argc || argv[fa][0] == '-') usage();
strncpy(out_name1,argv[fa++],MAXNAMEL); out_name1[MAXNAMEL] = '\000';
if (fa >= argc || argv[fa][0] == '-') usage();
strncpy(out_name2,argv[fa++],MAXNAMEL); out_name2[MAXNAMEL] = '\000';
if ((cgf = new_cgats()) == NULL)
error("Failed to create cgats object");
cgf->add_other(cgf, ""); /* Allow any signature file */
if (cgf->read_name(cgf, in_name))
error("CGATS file '%s' read error : %s",in_name,cgf->e.m);
if (cgf->ntables < 1)
error ("Input file '%s' doesn't contain at least one table",in_name);
/* Create the two output files */
if ((cg1 = new_cgats()) == NULL)
error("Failed to create cgats object");
if ((cg2 = new_cgats()) == NULL)
error("Failed to create cgats object");
/* Duplicate the type of the file */
if (cgf->t[0].tt == cgats_X) {
cg1->add_other(cg1, cgf->cgats_type);
cg1->add_table(cg1, tt_other, 0);
cg2->add_other(cg2, cgf->cgats_type);
cg2->add_table(cg2, tt_other, 0);
} else if (cgf->t[0].tt == tt_other) {
cg1->add_other(cg1, cgf->others[cgf->t[0].oi]);
cg1->add_table(cg1, tt_other, 0);
cg2->add_other(cg2, cgf->others[cgf->t[0].oi]);
cg2->add_table(cg2, tt_other, 0);
} else {
cg1->add_table(cg1, cgf->t[0].tt, 0);
cg2->add_table(cg1, cgf->t[0].tt, 0);
}
/* Duplicate all the keywords */
for (i = 0; i < cgf->t[0].nkwords; i++) {
cg1->add_kword(cg1, 0, cgf->t[0].ksym[i], cgf->t[0].kdata[i], NULL);
cg2->add_kword(cg2, 0, cgf->t[0].ksym[i], cgf->t[0].kdata[i], NULL);
}
/* Duplicate all of the fields */
for (i = 0; i < cgf->t[0].nfields; i++) {
cg1->add_field(cg1, 0, cgf->t[0].fsym[i], cgf->t[0].ftype[i]);
cg2->add_field(cg2, 0, cgf->t[0].fsym[i], cgf->t[0].ftype[i]);
}
if ((setel = (cgats_set_elem *)malloc(
sizeof(cgats_set_elem) * cgf->t[0].nfields)) == NULL)
error("Malloc failed!");
if ((flags = (int *)calloc(cgf->t[0].nsets, sizeof(int))) == NULL)
error("Malloc failed!");
if (numb < 0) { /* Use percentage */
numb = (int)(cgf->t[0].nsets * prop + 0.5);
}
if (numb > cgf->t[0].nsets)
numb = cgf->t[0].nsets;
if (verb)
printf("Putting %d sets in '%s' and %d in '%s'\n",numb,out_name1,cgf->t[0].nsets-numb,out_name2);
n = 0;
/* If dow, add white patches to both sets */
if (dow) {
int ti;
char *buf;
char *xyzfname[3] = { "XYZ_X", "XYZ_Y", "XYZ_Z" };
char *labfname[3] = { "LAB_L", "LAB_A", "LAB_B" };
char *outc;
int nmask;
int nchan;
char *bident;
int chix[ICX_MXINKS]; /* Device chanel indexes */
int pcsix[3]; /* PCS chanel indexes */
int isin = 0;
int isadd = 0;
int isLab = 0;
if ((ti = cgf->find_kword(cgf, 0, "DEVICE_CLASS")) < 0)
error ("Input file doesn't contain keyword DEVICE_CLASS");
if (strcmp(cgf->t[0].kdata[ti],"INPUT") == 0)
isin = 1;
if ((ti = cgf->find_kword(cgf, 0, "COLOR_REP")) < 0)
error("Input file doesn't contain keyword COLOR_REPS");
if ((buf = strdup(cgf->t[0].kdata[ti])) == NULL)
error("Malloc failed");
/* Split COLOR_REP into device and PCS space */
if ((outc = strchr(buf, '_')) == NULL)
error("COLOR_REP '%s' invalid", cgf->t[0].kdata[ti]);
*outc++ = '\000';
if (strcmp(outc, "XYZ") == 0) {
isLab = 0;
} else if (strcmp(outc, "LAB") == 0) {
isLab = 1;
} else
error("COLOR_REP '%s' invalid (Neither XYZ nor LAB)", cgf->t[0].kdata[ti]);
if ((nmask = icx_char2inkmask(buf)) == 0) {
error ("File '%s' keyword COLOR_REPS has unknown device value '%s'",in_name,buf);
}
if (nmask & ICX_ADDITIVE)
isadd = 1;
nchan = icx_noofinks(nmask);
bident = icx_inkmask2char(nmask, 0);
/* Find device fields */
for (j = 0; j < nchan; j++) {
int ii, imask;
char fname[100];
imask = icx_index2ink(nmask, j);
sprintf(fname,"%s_%s",nmask == ICX_W || nmask == ICX_K ? "GRAY" : bident,
icx_ink2char(imask));
if ((ii = cgf->find_field(cgf, 0, fname)) < 0)
error ("Input file doesn't contain field %s",fname);
if (cgf->t[0].ftype[ii] != r_t)
error ("Field %s is wrong type",fname);
chix[j] = ii;
}
/* Find PCS fields */
for (j = 0; j < 3; j++) {
int ii;
if ((ii = cgf->find_field(cgf, 0, isLab ? labfname[j] : xyzfname[j])) < 0)
error ("Input file doesn't contain field %s",isLab ? labfname[j] : xyzfname[j]);
if (cgf->t[0].ftype[ii] != r_t)
error ("Field %s is wrong type",isLab ? labfname[j] : xyzfname[j]);
pcsix[j] = ii;
}
if (isin) {
int wix = -1;
double wv = -1e60;
int pcsy = 1;
if (isLab)
pcsy = 0;
/* We assume that the white point is the patch with the */
/* highest L* or Y value. */
for (i = 0; i < cgf->t[0].nsets; i++) {
double val;
val = *((double *)cgf->t[0].fdata[i][pcsix[pcsy]]);
if (val > wv) {
wv = val;
wix = i;
}
}
if (wix > 0) {
n++;
flags[wix] = 3;
if (verb)
printf("Found input white patch index %d\n",wix);
}
} else {
if (isadd) {
for (i = 0; i < cgf->t[0].nsets; i++) {
for (j = 0; j < nchan; j++) {
if (*((double *)cgf->t[0].fdata[i][chix[j]]) < 99.99)
break;
}
if (j >= nchan) {
n++;
flags[i] = 3;
if (verb)
printf("Found additive white patch index %d\n",i);
}
}
} else {
for (i = 0; i < cgf->t[0].nsets; i++) {
for (j = 0; j < nchan; j++) {
if (*((double *)cgf->t[0].fdata[i][chix[j]]) > 0.01)
break;
}
if (j >= nchan) {
n++;
flags[i] = 3;
if (verb)
printf("Found subtractive white patch index %d\n",i);
}
}
}
}
free(bident);
}
/* Chose which of the sets go into file 1 and 2*/
for (;n < numb;) {
i = i_rand(0, cgf->t[0].nsets-1);
if (flags[i] == 0) {
flags[i] = 1;
n++;
}
}
/* Assume any patch not flagged goes to 2 */
for (i = 0; i < cgf->t[0].nsets; i++) {
if (flags[i] == 0)
flags[i] = 2;
}
/* Copy them approproately */
for (i = 0; i < cgf->t[0].nsets; i++) {
cgf->get_setarr(cgf, 0, i, setel);
if (flags[i] & 1) {
cg1->add_setarr(cg1, 0, setel);
}
if (flags[i] & 2) {
cg2->add_setarr(cg2, 0, setel);
}
}
/* Write out the files */
if (cg1->write_name(cg1, out_name1))
error("CGATS file '%s' write error : %s",out_name1,cg1->e.m);
if (cg2->write_name(cg2, out_name2))
error("CGATS file '%s' write error : %s",out_name2,cg2->e.m);
free(flags);
free(setel);
return 0;
}

File diff suppressed because it is too large Load Diff