| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta content="text/html; charset=windows-1252" |
| 5 | http-equiv="Content-Type"> |
| 6 | <title>Color Management</title> |
| 7 | <meta content="Graeme W. Gill" name="author"> |
| 8 | </head> |
| 9 | <body> |
| 10 | <h2 style="text-decoration: underline;">A Concise Introduction to |
| 11 | Color Management and ICC profiles<br> |
| 12 | </h2> |
| 13 | [Note that there are many other, perhaps more comprehensive and |
| 14 | expansive "introduction to Color Management" resources on the web, |
| 15 | so it is worth doing a search for some of them.]<br> |
| 16 | <br> |
| 17 | Color management is a means of dealing with the fact that color |
| 18 | capture and output devices such as Cameras, Scanners, Displays and |
| 19 | Printers etc., all have different color capabilities and different |
| 20 | native ways of communicating color. In the modern world each device |
| 21 | is typically just part of a chain of devices and applications that |
| 22 | deal with color, so it is essential that there be some means for |
| 23 | each of these devices to communicate with each other about what they |
| 24 | mean by color.<br> |
| 25 | <br> |
| 26 | Successful color management allows colors to be captured, |
| 27 | interchanged and reproduced by different devices in a consistent |
| 28 | manner, and in such a way as to minimize the impact of any technical |
| 29 | limitation each device has in relation to color. It must also deal |
| 30 | with the interaction of human vision and devices, allowing for such |
| 31 | fundamental vision characteristics as white point adaptation and |
| 32 | other phenomena. It should also allow the human end purposes to |
| 33 | influence the choice of tradeoffs in dealing with practical |
| 34 | device limitations.<br> |
| 35 | <br> |
| 36 | The key means of implementing color management is to have a way of |
| 37 | relating what we see, to the numbers that each device uses to |
| 38 | represent color.<br> |
| 39 | <br> |
| 40 | The human eye is known to have 3 type of receptors responsible for |
| 41 | color vision, the long, medium and short wavelength receptors. |
| 42 | Because there are 3 receptors, human color perception is a 3 |
| 43 | dimensional phenomena, and therefore at least 3 information channels |
| 44 | are necessary when communicating color information. Any device |
| 45 | capable of sensing or reproducing color must therefore have at least |
| 46 | 3 channels, and any numerical representation of a full range of |
| 47 | colors must have at least 3 components and hence may be interpreted |
| 48 | as a point in a 3 dimensional space. Such a representation is |
| 49 | referred to as a <span style="font-weight: bold;">Color Space</span>. |
| 50 | <br> |
| 51 | <br> |
| 52 | Typically color capture and output devices expose their native color |
| 53 | spaces in their hardware interfaces. The native color space is |
| 54 | usually related to the particular technology they employ to capture |
| 55 | or reproduce color. Devices that emit light often choose <span |
| 56 | style="font-weight: bold;">Red Green</span> and <span |
| 57 | style="font-weight: bold;">Blue</span> (<span style="font-weight: |
| 58 | bold;">RGB</span>) wavelengths, as these are particularly |
| 59 | efficient at independently stimulating the human eye's receptors, |
| 60 | and for capture devices R,G & B are roughly similar to the type |
| 61 | of spectral sensitivity of our eyes receptors. Devices that work by |
| 62 | taking a white background or illumination and filtering out (or <span |
| 63 | style="font-weight: bold;">subtracting</span>) colors tend to use |
| 64 | <span style="font-weight: bold;">Cyan</span>, <span |
| 65 | style="font-weight: bold;">Magenta</span>, and <span |
| 66 | style="font-weight: bold;">Yellow</span> (<span |
| 67 | style="font-weight: bold;">CMY</span>) filters or colorants to |
| 68 | manipulate the color, often augmented by a <span |
| 69 | style="font-weight: bold;">Black</span> channel (<span |
| 70 | style="font-weight: bold;">CMYK</span>). This is because a Cyan |
| 71 | filters out Red wavelengths, Magenta filters out Green wavelengths, |
| 72 | and Yellow filters out Blue wavelengths, allowing these colorants to |
| 73 | independently control how much RGB is reflected or transmitted. |
| 74 | Because it's impossible to make filters that perfectly block C, M or |
| 75 | Y wavelengths without overlapping each other, C+M+Y filters together |
| 76 | tend to let some light from broadband light sources through, making |
| 77 | for an imperfect black. Augmenting with an additional Black filter |
| 78 | allows improving Black, but the extra channel greatly complicates |
| 79 | the choice of colorant values to create any particular color. <br> |
| 80 | <br> |
| 81 | Many color devices have mechanisms for changing the way they respond |
| 82 | to or reproduce color, and such features are called <span |
| 83 | style="font-weight: bold;">Adjustments</span>, or <span |
| 84 | style="font-weight: bold;">Calibration</span>. Such features can |
| 85 | be very useful in adapting the device for use in a particular |
| 86 | situation, or for matching different instances of the device, or for |
| 87 | keeping its behavior constant in the face of component or |
| 88 | environmental changes. Sometimes there may be internal |
| 89 | transformations going on in the device so that it presents a more or |
| 90 | less expected type of color space in its hardware interface. [ Some |
| 91 | sophisticated devices have built in means of emulating the behavior |
| 92 | of other devices, but we won't go into such details here, as this is |
| 93 | really just a specialized implementation of color management. ]<br> |
| 94 | <br> |
| 95 | To be able to communicate the way we see color, a common "language" |
| 96 | is needed, and the scientific basis for such a language was laid |
| 97 | down by the International Commission on Illumination (CIE) in 1931 |
| 98 | with the establishment of the CIE 1931 <span style="font-weight: |
| 99 | bold;">XYZ</span> color space. This provides a means of predicting |
| 100 | what light spectra will be a color match to the Standard Observer. |
| 101 | The Standard Observer represents the typical response of the Human |
| 102 | eye under given viewing conditions. Such a color space is said to be |
| 103 | <span style="font-weight: bold;">Device Independent</span> since it |
| 104 | is not related to a particular technological capture or reproduction |
| 105 | device. There are also closely related color-spaces which are direct |
| 106 | transformations of the XYZ space, such as the <span |
| 107 | style="font-weight: bold;">L* a* b*</span> space which is a more |
| 108 | perceptually uniform device independent colorspace.<br> |
| 109 | <br> |
| 110 | As mentioned above, the key to managing color is to be able to |
| 111 | relate different color spaces so that they can be compared and |
| 112 | transformed between. The most practical approach to doing this is to |
| 113 | relate all color spaces back to one common colorspace, and the CIE |
| 114 | XYZ colorspace is the logical choice for this. A description of the |
| 115 | relationship between a devices native color space and an XYZ based |
| 116 | colorspace is commonly referred to as a <span style="font-weight: |
| 117 | bold;">Color Profile</span>. As a practical issue when dealing |
| 118 | with computers, it's important to have a common and widely |
| 119 | understood means to communicate such profiles, and the <span |
| 120 | style="font-weight: bold;">ICC</span> profile format standardized |
| 121 | by the <b>International Color Consortium</b> is today's most widely |
| 122 | supported color profile format.<br> |
| 123 | <br> |
| 124 | The ICC profile format refers to it's common color space as the <span |
| 125 | style="font-weight: bold;">Profile Connection Space</span> (<span |
| 126 | style="font-weight: bold;">PCS</span>), which is closely based on |
| 127 | the CIE XYZ space. ICC profile have a Tagged format, so they are |
| 128 | very flexible, and may contain a variety of ways to represent |
| 129 | profile information, and may also contain a lot of other optional |
| 130 | information.<br> |
| 131 | <br> |
| 132 | There are several fundamental types of ICC profiles. <span |
| 133 | style="font-weight: bold;">Device</span> and <span |
| 134 | style="font-weight: bold;">Named</span> profiles represent color <span |
| 135 | style="text-decoration: underline;">anchor points</span>. <span |
| 136 | style="font-weight: bold;">Device Link</span> and <span |
| 137 | style="font-weight: bold;">Abstract</span> profiles represent <u>connections</u> |
| 138 | or journeys between anchor points.<br> |
| 139 | <br> |
| 140 | <span style="font-weight: bold;">Device</span><br> |
| 141 | <br> |
| 142 | These primarily provide a translation between |
| 143 | device space and PCS. They also typically provide a translation in |
| 144 | the reverse direction, from PCS to device space. They provide an |
| 145 | "color anchor" with which we are able to navigate our way around |
| 146 | device color. The mechanisms they use to do this are discussed in |
| 147 | more detail below.<br> |
| 148 | <br> |
| 149 | <span style="font-weight: bold;">Device Link</span><br> |
| 150 | <br> |
| 151 | A Device Link profile provides a transformation |
| 152 | from one Device space to another. It is typically the result of |
| 153 | linking two device profiles, ie. Device 1 -> PCS -> Device 2, |
| 154 | resulting in a direct Device 1 -> Device 2 transformation.<br> |
| 155 | <br> |
| 156 | <span style="font-weight: bold;">Abstract</span><br> |
| 157 | <br> |
| 158 | An abstract profile contains a transformation |
| 159 | define in PCS space, and typically represents some sort of color |
| 160 | adjustment in a device independent manner.<br> |
| 161 | <br> |
| 162 | <span style="font-weight: bold;">Named</span><br> |
| 163 | <br> |
| 164 | A Named profile is analogous to a device Profile, |
| 165 | but contains a list of named colors, and the equivalent PCS and |
| 166 | possibly Device values.<br> |
| 167 | <br> |
| 168 | Most of the time when people talk about "ICC profiles" they mean <span |
| 169 | style="font-weight: bold;">Device Profiles</span>. Profiles rely |
| 170 | on a set of mathematical models to define the translation from one |
| 171 | colorspace to another. The models represent a general framework, |
| 172 | while a specific profile will define the scope of the model as well |
| 173 | as it's specific parameters, resulting an a concrete translation. |
| 174 | Profiles are typically used by <span style="font-weight: bold;">CMM</span>s |
| 175 | (Color Management Modules), which are a piece of software (and |
| 176 | possibly hardware) that knows how to read and interpret an ICC |
| 177 | profile, and perform the translation it contains.<br> |
| 178 | <br> |
| 179 | Often the function of a CMM will be to take two device profiles, one |
| 180 | representing the starting point and the other representing the |
| 181 | destination, and create a transformation between the two and |
| 182 | applying it to image pixel values.<br> |
| 183 | <br> |
| 184 | Two basic models can be used in ICC profiles, a <span |
| 185 | style="font-weight: bold;">Matrix/shaper</span> model and a <span |
| 186 | style="font-weight: bold;">cLUT</span> (Color Lookup Table) model. |
| 187 | Models often contain several processing elements that are applied |
| 188 | one after the other in order to provide an overall transformation. <br> |
| 189 | <br> |
| 190 | The Matrix/Shaper model consists of a set of per channel lookup |
| 191 | curves followed by a 3x3 matrix. The curves may be defined as a |
| 192 | single power value, or as a one dimensional lookup table which |
| 193 | encodes a discretely represented curve (Lut). The matrix step can |
| 194 | only transform between 3 dimensional to 3 dimensional color spaces.<br> |
| 195 | <br> |
| 196 | The cLUT model consists of an optional 3x3 matrix, a set of per |
| 197 | channel one dimensional LUTs, an N dimensional lookup table (cLUT) |
| 198 | and a set of per channel one dimensional LUTs. It can transform from |
| 199 | any dimension input to any dimension output.<br> |
| 200 | <br> |
| 201 | All Lookup Tables are interpolated, so while they are defined by a |
| 202 | specific set of point values, in-between values are filled in using |
| 203 | (typically linear) interpolation.<br> |
| 204 | <br> |
| 205 | For a one dimensional Lookup table, the number of points needed to |
| 206 | define it is equal to its resolution.<br> |
| 207 | <br> |
| 208 | For an n-dimensional cLUT, the number of points needed to define it |
| 209 | is equal to it's resolution taken to the power of the number of |
| 210 | input channels. Because of this, the number of entries <span |
| 211 | class="st"><em></em></span>climbs rapidly with dimension and |
| 212 | resolution, and typical limited resolution tables are used to |
| 213 | constrain profile file size and processing time. cLUT's permit |
| 214 | detailed, independent control over the the transformation throughout |
| 215 | the colorspace, but may not be as smooth as a matrix.<br> |
| 216 | <br> |
| 217 | <span style="font-weight: bold;">Limitations of CIE XYZ</span><br> |
| 218 | <br> |
| 219 | Although CIE XYZ colorspace forms an excellent basis for connecting |
| 220 | what we can measure with what we see in regard to color, it has its |
| 221 | limitations. The primary limitation is that the visual match between |
| 222 | two colors with the same XYZ values assumes identical viewing |
| 223 | conditions. Our eyes are marvelously adaptable, automatically |
| 224 | adjusting to different viewing conditions so that we are able to |
| 225 | extract the maximum amount of useful visual information. There are |
| 226 | many practical situations in which the viewing conditions are not |
| 227 | identical - e.g. when evaluating an image against our memory of an |
| 228 | image seen in a different location, or in viewing images side by |
| 229 | side under mixed viewing conditions. One of the primary things that |
| 230 | can change is our adaptation to the white point of what we are |
| 231 | looking at. This can be accounted for in XYZ space by applying a |
| 232 | chromatic adaptation, which mimics the adaptation of the eye. The |
| 233 | ICC profile format PCS space by default adapts the XYZ values to a |
| 234 | common white point (D50), to facilitate ease of matching colors |
| 235 | amongst devices with different white points. Other viewing condition |
| 236 | effects (ie. image luminance level, viewing surround luminance and |
| 237 | flare/glare) can be modeled using (for example) CIECAM02 to modify |
| 238 | XYZ values.<br> |
| 239 | <br> |
| 240 | Another limitation relates to spectral assumptions. CIE XYZ uses a |
| 241 | Standard Observer to convert spectral light values into XYZ values, |
| 242 | but in practice every observer may have slightly different spectral |
| 243 | sensitivities due to biological differences, including aging. |
| 244 | (People with color deficient vision may have radically different |
| 245 | spectral sensitivities.) Our eyes also have a fourth receptor |
| 246 | responsible for low light level vision, and in the eye's periphery |
| 247 | or at very low light levels it too comes to play a role in the color |
| 248 | we perceive, and is the source of a difference in the eye's spectral |
| 249 | sensitivity under these conditions. <br> |
| 250 | <br> |
| 251 | Another spectral effect is in the practice of separating the color |
| 252 | of reflective prints from the light source used to view them, by |
| 253 | characterizing a prints color by it's reflectance. This is very |
| 254 | convenient, since a print will probably be taken into many different |
| 255 | lighting situations, but if the color is reduced to XYZ reflectance, |
| 256 | the effect of the detailed interaction between the spectra of the |
| 257 | light source and print will lead to inaccuracies.<br> |
| 258 | <br> |
| 259 | <br> |
| 260 | <br> |
| 261 | <br> |
| 262 | <br> |
| 263 | <br> |
| 264 | <br> |
| 265 | <br> |
| 266 | <br> |
| 267 | <br> |
| 268 | <br> |
| 269 | <br> |
| 270 | </body> |
| 271 | </html> |