If you are reading this, you are probably looking for my EOS 10D profile (28 March 2009, linear version). This version is colorimetrically equivalent to the previous (8 april 2004) version, but fixes two encoding errors which caused it to be useless with newer versions of LittleCMS, as well as with the built-in CMS in MacOS.
An example workflow could be
dcraw -4 -c -w -m CRW_0123.CRW | pnmnorm -bpercent 0 -wpercent 0.1 -brightmax \ | pnmtotiff -truecolor >temp.tif tifficc -w -i eos10d-linear.icc temp.tif CRW_0123.tif
The profile is intended to be applied
Versions of LittleCMS earlier than 1.10 give strange results, so make sure you have 1.10 (or newer).
How the profile was created
The profiles from 2 February 2004 and earlier were created by comparing the RGB values from in-camera JPEG:s with RGB values in CRW files. This was tricky at best, as there are too many unknowns in the equation, and the results were never very good.
The 8 April 2004 profile was created using a GretagMacbeth ColorChecker, using the following procedure:
- Make a test shot of the ColorChecker.
- Estimate the colour temperature of the lighting (by making multiple runs through the Canon File Viewer Utility in the "kelvin" white balance mode, tweaking the value until the grey patches actually come out as R=G=B) and use that value to compute the light spectrum with Planck's blackbody radiation law.
- Use the illuminant spectrum from the last step together with reflectance spectra for the ColorChecker patches (obtained from Andrew Glassner's "Principles of Digital Image Synthesis") and the CIE XYZ matching functions (from the same book) to compute theoretical XYZ values for each ColorChecker patch under the illuminant.
- Find the matrix relating the actual measured RGB values from the CRW file to the computed XYZ values, by doing a least-squares fit of the data.
The test data from a sunlit shot (colour temperature = 5200K) were as follows.
- Patch
- Number of the patch on the ColorChecker (top-down, left-right, row major order).
- Theor. xyY
- Computed, theoretical xyY values, normalized so that Y=1 for the brightest patch.
- RGB
- Measured RGB values.
- Res. xyY
- Resulting xyY values from using the matrix computed, scaled so that Y=1 for the brightest patch.
- deltaE
- Euclidean distance in CIEL*a*b* (1976) space between the theoretical and resulting colours.
Patch | Theor. xyY | RGB | Res. xyY | deltaE | ||||||
---|---|---|---|---|---|---|---|---|---|---|
1 | 0.4668 | 0.3872 | 0.1016 | 0.0923 | 0.1145 | 0.0799 | 0.4182 | 0.3736 | 0.1507 | 11.8 |
2 | 0.4167 | 0.3636 | 0.4468 | 0.2900 | 0.3754 | 0.2842 | 0.4072 | 0.3629 | 0.4794 | 3.7 |
3 | 0.2687 | 0.2819 | 0.1977 | 0.0924 | 0.2717 | 0.3113 | 0.2786 | 0.2869 | 0.2310 | 4.2 |
4 | 0.3591 | 0.4764 | 0.1186 | 0.0721 | 0.1665 | 0.0880 | 0.3532 | 0.4410 | 0.1752 | 9.6 |
5 | 0.3076 | 0.2743 | 0.2698 | 0.1494 | 0.3208 | 0.3871 | 0.3099 | 0.2800 | 0.3009 | 3.2 |
6 | 0.2741 | 0.3579 | 0.4376 | 0.1559 | 0.5759 | 0.4762 | 0.2724 | 0.3622 | 0.4957 | 5.1 |
7 | 0.5173 | 0.4279 | 0.3908 | 0.3139 | 0.2345 | 0.0833 | 0.5130 | 0.4136 | 0.4253 | 8.5 |
8 | 0.2362 | 0.1988 | 0.1126 | 0.0598 | 0.2003 | 0.3194 | 0.2479 | 0.2100 | 0.1450 | 5.1 |
9 | 0.4988 | 0.3378 | 0.2634 | 0.2482 | 0.1505 | 0.1227 | 0.4944 | 0.3421 | 0.2959 | 3.4 |
10 | 0.3548 | 0.2437 | 0.0649 | 0.0558 | 0.0836 | 0.1112 | 0.3460 | 0.2679 | 0.0898 | 9.0 |
11 | 0.3824 | 0.4914 | 0.4701 | 0.2223 | 0.4875 | 0.1829 | 0.3777 | 0.4918 | 0.5377 | 5.2 |
12 | 0.4822 | 0.4527 | 0.5208 | 0.3504 | 0.3593 | 0.0961 | 0.4891 | 0.4562 | 0.5536 | 7.1 |
13 | 0.2085 | 0.1459 | 0.0571 | 0.0276 | 0.1088 | 0.2157 | 0.2251 | 0.1580 | 0.0661 | 3.8 |
14 | 0.2970 | 0.4896 | 0.2423 | 0.0817 | 0.2892 | 0.1502 | 0.2998 | 0.4660 | 0.2701 | 6.1 |
15 | 0.5853 | 0.3311 | 0.1751 | 0.1990 | 0.0716 | 0.0437 | 0.5571 | 0.3530 | 0.2087 | 10.7 |
16 | 0.4581 | 0.4759 | 0.7096 | 0.4244 | 0.5547 | 0.1570 | 0.4581 | 0.4752 | 0.7596 | 2.8 |
17 | 0.4342 | 0.2780 | 0.2528 | 0.2390 | 0.1888 | 0.2492 | 0.4278 | 0.2846 | 0.2936 | 4.4 |
18 | 0.2061 | 0.2576 | 0.1816 | 0.0520 | 0.3250 | 0.3851 | 0.2127 | 0.2714 | 0.2268 | 6.4 |
19 | 0.3418 | 0.3503 | 1.0000 | 0.4858 | 0.9570 | 0.8169 | 0.3443 | 0.3491 | 1.0000 | 1.8 |
20 | 0.3400 | 0.3485 | 0.6595 | 0.3276 | 0.6581 | 0.5717 | 0.3407 | 0.3459 | 0.6804 | 1.9 |
21 | 0.3395 | 0.3487 | 0.3976 | 0.2046 | 0.4112 | 0.3568 | 0.3407 | 0.3461 | 0.4251 | 2.4 |
22 | 0.3415 | 0.3497 | 0.2184 | 0.1122 | 0.2324 | 0.2032 | 0.3364 | 0.3450 | 0.2373 | 2.7 |
23 | 0.3425 | 0.3498 | 0.0958 | 0.0509 | 0.1059 | 0.0931 | 0.3353 | 0.3438 | 0.1078 | 2.8 |
24 | 0.3409 | 0.3486 | 0.0336 | 0.0158 | 0.0330 | 0.0290 | 0.3352 | 0.3438 | 0.0336 | 1.0 |
The matrix thus obtained can be summarized as the following sensor properties:
  | x | y |
---|---|---|
red | 0.65 | 0.33 |
green | 0.06 | 1.29 |
blue | 0.16 | -0.16 |
white | 0.42 | 0.32 |
These values are "absolute colorimetric", they do not take white balancing into account. The colour balancing code of dcraw will attempt to make neutrals come out as R=G=B. When building the ICC profile matrix, I used the values above but substituted the ICC PCS white point (D50) for the cameras white point values, thus making neutrals land at D50, which is more or less what we want.
References
- LittleCMS
- Open-source colour management system.
- NetPBM
- A package of image-manipulation programs
- dcraw
- A program to extract usable image data from Canon CRW files (and just about all other digital camera raw files in the known universe).
Old stuff
EOS10D profile (8 April 2004, linear)
Notice that the following three profiles all assume that data from the camera has been encoded with a gamma=1/2.2 transfer function!
EOS 10D profile (8 April 2004,
gamma 2.2)
EOS 10D profile (2 February 2004)
EOS 10D profile (16 November 2003)