BookNotesSlidesP-sets Syllabusdraft · v0.2.49.1
◀▲⌂▶
💬Comments welcome. To leave a note, select any text and click the note / highlight button that pops up — or open the panel with the tab at the top-right (‹). Notes are visible only inside our private review group.

4.0 COLOR SPACES AND COLOR TECHNOLOGY⧉

Part 3, Visual perception and color established what color is to an observer: a spectrum reduced to three cone responses and then processed by the visual system. That reduction makes reproduction possible. A display can match a light without reproducing its spectrum, provided the match lies within the display's gamut and we specify the observer and viewing conditions.

A camera measures light through its own spectral sensitivities, which need not match the observer's. A display emits mixtures of its primaries. Color technology connects these devices using standardized measurements, conversion rules, and viewing assumptions. We have to separate what was measured from how it will be shown. The history of color science often joins those questions, because the experiments that established color measurement were themselves reproduction experiments. That connection explains much of the terminology and some of the awkwardness of photographic pipelines.

Chapter 4.1, Linear color reproduction and CIE XYZ develops the measurement and reproduction equations. Chapter 4.2, White balance and white point separates corrections for scene illumination from the reference white of an encoding. Chapter 4.3, Encoding: linear, gamma or log and Chapter 4.4, RGB color spaces explain how color coordinates become stored values. The remaining chapters cover perceptual coordinates, sensor designs, displays and printing, and the managed path from a file to an output device.

The section Encoding: linear, gamma or log#Color and encoding in real pipelines compares what real implementations do: where raw editors change coordinates, why OpenCV's panorama and HDR examples treat camera response differently, how Hugin and Enfuse pursue different objectives, and what deblurring and rendering require from their inputs. These implementation choices are part of understanding color, not details to postpone until an ISP chapter.

Chapter 4.9, Color TLDR gives the practical decisions: identify the input, choose a suitable working representation, and export with enough information for the next application to interpret it.

💡 Big lesson (L4.1) — pixel numbers are meaningless on their own

An RGB triple needs a color-space definition and a transfer function. Processing also needs its scale and image state: camera measurements, scene-referred values, and display-referred values support different operations. Preserve this information alongside the array. A floating-point data type alone does not tell you whether the values are linear or what their primaries are.

Figure 4.0.1 offers a less restrained introduction to the terminology.

fig-xkcd-1882
Figure 4.0.1. xkcd #1882 "Color Models", Randall Munroe, xkcd.com/1882 (CC BY-NC 2.5).

Contents of this part

▸ full collapsible outline of this part