![]() |
Colorcheck AppendixAlgorithms and reference formulas | ![]() |
|
Color error formulas
Algorithm
Grayscale and exposure
ISO Speed
See Also
Using Colorcheck
Tour Colorcheck
Using Imatest
Related
Color management
This page contains algorithms and reference formulas for Colorcheck. It's all in green text because it's all math. Color difference (error) formulasThe notation in this section is adapted from the Digital Color Imaging Handbook, edited by Gaurav Sharma, published by the CRC Press, referred to below as DCIH. The DCIH online Errata was consulted. In measuring color error, keep it in mind that accurate color is not necessarily the same as pleasing color. Many manufacturers deliberately alter colors to make them more pleasing, most often by increasing saturation. In calculating color error, you may choose not to use the exact formulas for ColorChecker L*a*b* values; you may want to substitute your own enhanced values. Imatest Pro allows you to enter values from a file written in CSV format. Absolute differences (including luminance)CIE 1976 The L*a*b* color space was designed to be relatively perceptually uniform. That means that perceptible color difference is approximately equal to the Euclidean distance between L*a*b* values. For colors {L1*, a1*, b1*} and {L2*, a2*, b2*}, where ΔL* = L2* - L1*, Δa* = a2* - a1*, and Δb* = b2* - b1*,
Although ΔE*ab is relatively simple to calculate and understand, it's not very accurate expecially for strongly saturated colors. L*a*b* is not as perceptually uniform as its designers intended. For example, for saturated colors, which have large chroma values (C* = ( a*2 + b*2 )1/2 ), the eye is less sensitive to changes in chroma than to corresponding changes for Hue (ΔH* = ( (ΔE*ab)2 - (ΔL*)2 - (ΔC*)2 )1/2 ) or Luminance (ΔL*). To address this issue, several additional color difference formulas have been established. In these formulas, just-noticeable differences (JNDs) are represented by ellipsoids rather than circles. CIE 1994 The CIE-94 color difference formula, ΔE*94, provides a better measure of perceived color difference.
The CIEDE2000 formulas (ΔEoo and ΔCoo ) are the upcoming standard, and may be regarded as more accurate than the previous formulas. We omit the equations here because they are described very well on Gaurav Sharma's CIEDE2000 Color-Difference Formula web page. Default values of 1 are used for parameters kL, kC, and kH. At the time of this writing (February 2008) the CIE 1976 color difference metrics (ΔE*ab...) are still the most familiar. CIE 1994 is more accurate and robust, and retains a relatively simple equation. ΔE*CMC is more complex but widely used in the textile industry. The complexity of the CIEDE2000 equations (DCIH, section 1.7.4, pp. 34-40) has slowed their widespread adoption, but they are on their way to becomming the accepted standard. For the long run, CIEDE2000 color difference metrics are the best choice. Color differences that omit luminance differenceSince Colorcheck measures captured images, exposure errors will strongly affect color differences ΔE*ab, ΔE*94, and ΔE*94. Since it is useful to look at color errors independently of exposure error, we define color differences that omit ΔL*.
These formulas don't entirely remove the effects of exposure error since L* is affected by exposure, but they reduce it to a manageable level.
Color differences corrected for chroma (saturation) boost/cutMany digital cameras deliberately boost chroma, i.e., saturation, to enhance image appearance in digital cameras. This boost increases color error in the ΔE and ΔC formulas, above. The mean chroma percentage is
Chroma, which is closely related to the perception of saturation, is boosted when Chrp > 100. Chroma boost increases color error measurements ΔE*ab, ΔC*ab, ΔE*94, and ΔC*94. Since it is easy to remove chroma boost in image editors (with saturation settings), it is useful to measure the color error after the mean chroma has been corrected (normalized) to 100%. To do so, normalized ai_corr and bi_corr are substituted for measured (camera) values ai and bi in the above equations.
The reference values for the ColorChecker are unchanged. Color differences corrected for chroma are denoted ΔC*ab(corr), ΔC*94(corr), and ΔC*CMC(corr). Mean and RMS valuesColorcheck Figure 3 reports the mean and RMS values of ΔC*ab corrected (for saturation) and uncorrected, where
The RMS value is of interest because it gives more weight to the larger errors. Algorithm
A simplified equation for a capture device (camera or scanner) response is,
The the equation for saturation boost in the lower image of the third figure is S' = (1-e-4S )/(1-e-4), where e = 2.71828... Grayscale levels and exposure errorThe Colorchecker grayscale patch densities (in the bottom row) are specified as 0.05, 0.23, 0.44, 0.70, 1.05, and 1.50. Using the equation, pixel level = 255 * (10–density/1.06)(1/2.2) (see ISO speed, below), the ideal pixel levels would be 236, 195, 157, 119, 83, and 52, about 3% lower than the values measured by Bruce Lindbloom (242, 201, 161, 122, 83, and 49 for the Green channel) and provided with a Colorchecker purchased in October 2005 (243, 200, 160, 122, 85, 52). On the average, these measured values fit the equation,
Exposure error is measured by comparing the measured levels of patches 2-5 in the bottom row (20-23 in the chart as a whole) with the selected reference levels. Patches 1 and 6 (19, 24) are omitted because they frequently clip. Since pixel level is proportional to exposuregamma, and hence log10(exposure) is proportional to log10(pixel level) / gamma (where gamma is measured from patches 2-5), the log exposure error for an individual patch is
Using the mean value of Δ(log exposure) for patches 2-5 and the equation, f-stops = 3.32 * log exposure,
ISO speedISO speed is defined in Kodak Image Sensors - ISO Measurement (App note MTD/PS-0234), which is extracted from ISO standard 12232:1998. (Only 73 CHF— about $60 US— for 131 kB; such a deal!)
where f# is the effective f-number of the camera lens, L is the luminance in cd/m2 of an 18% reflector (the familiar 18% gray card), and t is the exposure time in seconds. A camera's effective ISO setting may be increased by increasing the electronic gain. You can use this equation to find the approximate luminance of an object, L = (15.4 * f#2) / (ISO * t), where f# and t are read from an 18% gray card. For a typical white surface (90% reflectance), L = (3.08 * f#2) / (ISO * t). Digital image sensors are linear devices: their output voltage (and the pixel level in a RAW image file) is proportional to the light energy reaching the pixel up to the point where it abruptly saturates. Now here's the heart of the matter.
Any portion of the image with luminance equivalent to more than 106% reflectiance (5.9x brighter than the gray card) will be saturated-- pure white; burnt out; gonzo. Since a white card is about 90% reflectance (density = 0.05), that doesn't leave much margin. The Kodak document says, "Very demanding applications might need more headroom for highlights, and so might use a higher number when calculating base ISO." That's why exposure compensation-- equivalent to increased ISO speed-- is often required to avoid burnt out highlights for "very demanding applications" like ordinary sunlit outdoor scenes. |
|
|||