Quiz: from a spectrum to three numbers

Before this unit: Day 12: Thresholding.

See also: Day 3: Bit depth and noise.

Short questions to test your understanding. Try each on paper first, then open the answer. A spectrum s(\lambda) is the power of light at each wavelength; the eye’s three cone responses L, M, S are weighted sums of it; x = X/(X+Y+Z), y = Y/(X+Y+Z).


Q1. Why is colour three numbers, when a spectrum needs dozens?

What does each cone measure?

Because we have three kinds of cones, and each one reports a single number: the spectrum weighted by its sensitivity curve and added up. Whatever else is in the spectrum is lost before the brain sees it. A camera with three filters does the same with its own three curves.


Q2. Two lamps have very different spectra but look the same white. What are they called, and what does that say about the difference of their spectra?

What do the three cones see of the difference?

They are metamers. Their difference adds light at some wavelengths and removes it at others in a way that leaves all three cone responses unchanged: each cone sees zero net change.


Q3. A shirt and a skirt match in the shop. At home, under a light bulb, they no longer match. Did the light bulb change the fabric?

What reaches the eye from a surface?

No. What reaches the eye is lamp spectrum × reflectance. The two fabrics have different reflectances that happen to give the same three numbers under the shop’s lamp. The light bulb weights the wavelengths differently (more red, less blue), and the two products no longer give equal numbers: metameric failure.


Q4. A person without M cones (a deuteranope) compares colours. Do they see more pairs of lights as identical, or fewer? Why?

Two numbers instead of three.

More. Only two numbers (L and S) must agree for a match, so every pair that differed only in the M response now matches as well. The set of invisible changes is larger.


Q5. Light 1 has (X, Y, Z) = (10, 10, 10), light 2 has (30, 20, 10). Where is their sum on the chromaticity diagram?

Add XYZ first, then divide.

Sum (40, 30, 20), total 90: x = 0.444, y = 0.333. Light 1 is at (0.333, 0.333) with total 30, light 2 at (0.5, 0.333) with total 60: the sum lies on the line between them, two thirds of the way towards light 2, because light 2 carries twice as much X + Y + Z.


Q6. Why is the colour range (gamut) of a screen a triangle on the chromaticity diagram?

What do mixtures of two lights do on the diagram?

The screen makes every colour as a mixture of its three primaries with non-negative amounts. Mixtures of two lights lie on the straight line between them, and mixtures of three fill the triangle spanned by the three chromaticities. Nothing outside it can be made without a negative amount of a primary.


Q7. Can a screen with three primaries show every colour we can see?

What is the shape of the region of all colours?

No. All colours fill the horseshoe, which is curved, and any triangle of real primaries (inside the horseshoe) leaves parts of it uncovered, for example the saturated cyans and spectral greens. Primaries on the horseshoe itself (lasers) cover the most, but still not all.


Q8. (math) The eye is a 3 \times 36 matrix A of rank 3. What is the dimension of the set of differences \mathbf s_2 - \mathbf s_1 between metamers, and why can’t every vector of that set be added to a given spectrum?

Rank–nullity; and what values can a spectrum take?

The differences are exactly \ker A, of dimension 36 - 3 = 33. Adding \mathbf d \in \ker A keeps A\mathbf s, but the result must still be a physical spectrum, \mathbf s + \mathbf d \ge \mathbf 0 in every bin. So only a bounded piece of the null space (around \mathbf s) is allowed; a dark spectrum has few metamers.