Theme

The thread: Computed, not quoted — page 2

Every swatch begins as a spectral power distribution and is carried through the colour-matching functions as it is drawn. None is a hex code recalled from a table.
One palette under normal vision and two dichromacies. The same 7 colours simulated by the Brettel–Viénot–Mollon construction at severity 1.0. protanopia and deuteranopia collapse the red-green distinctions. This shows which discriminations survive, not what anybody sees. What the eye does

Three cones, two axes

The retina does not send three receptor signals down the optic nerve. It sends a sum and two differences, and the reason falls out of the statistics of natural light rather than out of anything the eye intended.

Three lightness scales, seventy years apart. Munsell value, CIELAB's L* and CIECAM16's J against luminance, all rescaled to run 0 to 100. Each is somebody's answer to how evenly spaced lightness steps map onto light. They put the midpoint of the scale at 19.8%, 18.4% and 28.0% of the white's luminance respectively — close enough to be three measurements of one thing, far enough apart to be three measurements rather than one restated twice. Matching and measuring

Colour by catalogue

A colour order system arranges physical samples on a regular lattice so a person can find one and name it. The space it samples is not regular, and everything interesting about such systems is what happens at that mismatch.

Four adaptation transforms, measured against CAT16 (D65 to D50). Twenty-seven colours moved from D65 to D50 by each transform, compared with the current recommendation. Bars are the worst disagreement in CIELAB, the number beside each is the mean. Plain XYZ scaling — still shipping, still called von Kries by people who have not read von Kries — misses by up to ΔE 13.7, which is many times any tolerance a supplier would be held to. What the brain does

Four ways to move a white point

Every chromatic adaptation transform is the same three lines with a different matrix. The matrices disagree by more than any tolerance a supplier is held to, and the oldest one — still shipping, still called von Kries — is not a cone basis at all.

A 20 nm bandpass, and what it does to the sample. The true reflectance, the same reflectance as a 20 nm instrument reporting every 20 nm returns it, and the slit function responsible, drawn at its own scale around 550 nm. The reconstruction is what every calculation downstream will use, and it differs from the truth by ΔE 2.97 under D65. Nothing in the file the instrument writes marks which values were measured and which were interpolated. Matching and measuring

What the instrument reports

A spectrophotometer sees a sample through a slit of finite width, at a finite number of wavelengths. What it writes down is the truth convolved with its own bandpass, and nothing in the file says which values were measured and which were invented.

The four unique hues, and the axes they are said to define. A constant-lightness, constant-chroma ring in CIECAM16, with the four unique hue anchors marked and CIELAB's a and b axes drawn through the same circle. If a* really were the red-green axis the anchors would fall on the crosshairs. Unique red sits 25° off, and the four are not 90° apart in any case. Hatched sectors are hues this display cannot reach at this chroma. What the brain does

Why there are four unique hues

Observers agree that four hues are elementary and that no colour is reddish green. Nothing in the three receptors predicts either fact, and the axes of every standard colour space miss the four by tens of degrees.

Luminous efficacy of a monochromatic source, under the 2° observer. Lumens per watt against wavelength. The curve is the luminous efficiency function scaled by 683, which is what luminous efficacy of radiation is — the 1979 redefinition of the candela fixed 555 nm at exactly 683 lm/W and everything else follows. Marked at 450 nm (26 lm/W), 500 nm (221 lm/W), 555 nm (683 lm/W), 600 nm (431 lm/W), 650 nm (73 lm/W). Under this observer the peak reaches 683 lm/W. What light is

What a lamp cannot give back

Six hundred and eighty-three lumens per watt is not a measurement of anything. It is the definition of the candela, it is a ceiling no white light can approach, and the distance between a lamp and that ceiling is mostly the price of being able to see what colour things are.

Dominant wavelength as a construction on the diagram, against equal-energy E. A ray is drawn from the white point through each sample and continued until it leaves the diagram. The sample at (0.28, 0.52) leaves through the spectral locus at 537 nm, at excitation purity 0.43. The sample at (0.36, 0.19) leaves through the line of purples, so it has no dominant wavelength at all and is written 544c nm — the crossing on the opposite side, marked with a c. The hatched region is colour this display cannot show and is not drawn as though it could. Matching and measuring

Not every colour has a wavelength

The question every reader arrives with is which wavelength a colour is. For close to a third of the directions on the chromaticity diagram the honest answer is that there is none, and the construction colorimetry offers instead is a statement about a diagram rather than about light.

Longitudinal chromatic aberration of the eye, focused at 555 nm. Thibos's chromatic eye, plotted as defocus in dioptres relative to 555 nm. The curve crosses zero exactly once, at the wavelength the eye is accommodating on, and everything else is out of focus — by -1.22 D at 420 nm and 0.50 D at 680 nm. Through a 3 mm pupil that first figure is a blur circle of 12.6 minutes of arc, against a foveal acuity limit of about one. The eye is never in focus across the spectrum and never can be. What the eye does

Nothing is in focus at both ends

The eye carries about two dioptres of chromatic aberration across the visible band, which is a strong reading prescription. Whatever it is focused on, most of the spectrum is landing somewhere other than the retina — and the cone class that gets the worst of it is the one the retina bothered least to sample.

Three retinas of different composition, making identical colour matches. Seeded mosaics at L:M ratios of 1, 4, 16 to one — the range found between people, and a 16-fold difference in what the retina is made of. A colour match is the claim that two spectra produce equal excitation in all three cone classes, and changing how many of a class there are multiplies that class's excitation by a constant, which cannot disturb an equality. The relation between the two test spectra is identical to twelve decimal places across the whole sweep. Luminance, which is a weighted sum rather than an equality, moves by 1.33× over the same range. That asymmetry is why a standard observer exists and why V(λ) has a much larger between-observer variance than the colour-matching functions do. What the eye does

The mosaic is not the observer

The ratio of long-wavelength to medium-wavelength cones varies between ordinary people by a factor of sixteen. Those people make the same colour matches, to twelve decimal places, and that single fact is the reason a standard observer can exist at all.

five greens, no neutral, under D65 — four guesses at the illuminant. The scene's surfaces as they reach the eye, and each estimator's angular error in degrees against the illuminant that actually lit them. Grey-world 43.1°, Max-RGB 27.7°, Shades-of-grey (p = 6) 31.4°, Grey-edge 34.4°. The best here is Max-RGB, which is best because this scene happens to satisfy its assumption — something reflects fully in every band — and not because it is the better algorithm. Any hatched patch is a surface this display cannot show under this light. What the brain does

The algorithms that guess the light

What reaches a sensor is an illuminant multiplied by a reflectance, and no arithmetic separates a product into its factors. Every white-balance algorithm therefore works by assuming something about the world — and the interesting content of each is not its formula but the assumption, because a scene can violate it.

Chromaticity-triangle area against CIELAB volume, both relative to sRGB. Two ratios for each space, both against sRGB. The upper bar is the area of the primary triangle on the CIE 1931 diagram; the lower is the volume of the gamut solid in CIELAB, computed by tetrahedral decomposition of the RGB cube at 24 cells per axis. Display P3 is 1.36× sRGB by area and 1.50× by volume; Rec. 2020 is 1.89× sRGB by area and 2.26× by volume. The chromaticity diagram divides luminance out, so its triangle is a projection along the axis the eye is most sensitive to — and a coverage percentage quoted on it is a statement about the shadow. Where the model breaks

The triangle is a shadow

A display's gamut is drawn as a triangle on the chromaticity diagram, and coverage is quoted as a percentage of that triangle's area. Chromaticity has luminance divided out, so the triangle is a projection along the axis the eye cares most about — and the ratios computed on the solid are not the ratios computed on its shadow.

How far a match comes apart when the observer changes. A broad source and a three-primary source, solved at each primary width so the pair is an exact tristimulus match for the CIE 1931 observer. The pair is then handed to the 1964 observer, and the gap between them is plotted. For the observer they were built for the gap is arithmetic noise at every width. For the other it grows as the primaries narrow, reaching 0.012 at 10 nm — and displays have been getting narrower for twenty years. Where the model breaks

Two degrees or ten

This site names the observer on every figure it draws, which was supposed to be the point. Measuring what it had actually done found two hundred and four figures naming the same observer, three naming the other, and sixty-two of sixty-four generators printing a string that had never once varied.

One stimulus, three rooms, three appearances. The same XYZ in a dark, a dim and an average surround. The stimulus does not change and is drawn identically in all three panels; what changes is what CIECAM16 says it looks like. Predicted lightness runs from 65.6 to 57.5 — a spread of 8.1 — with chroma and colourfulness moving too. Colorimetry returns one answer here because it has nowhere to put the room. What the brain does

A patch is not a scene

A paint chip is the wrong size, on the wrong background, at the wrong luminance, in the wrong surround. Every one of those is a term in an appearance model, and the model says how much each of them moves the answer — which is the difference between a caution and a prediction.

sRGB, Display P3 and Rec. 2020 compared on the chromaticity diagram. Three nested triangles inside the horseshoe. sRGB covers 74 per cent of the area P3 covers. Rec. 2020's red and green primaries sit on the spectral locus itself, within 0.000 and 0.006 of it, meaning they are monochromatic. Matching and measuring

Six numbers make a space

An RGB colour space is eight numbers — three primary chromaticities, a white point, and a transfer function — and everything else about it is derived. Deriving it rather than copying the matrix is the difference between having a colour space and having a table somebody else computed.

Distinguishable colours in sRGB, counted under two difference formulae. The gamut volume divided by the volume of a ΔE = 1 ellipsoid, integrated over the solid because that ellipsoid changes size and orientation from place to place. Under the 1976 formula the answer is 195,720; under ΔE2000 it is 41,819 — 4.68 times fewer, from the same solid and the same lattice. Both assume perfect packing, which nothing achieves, so each is an upper bound rather than a count of anything. The gap between them is the result: "how many colours are there" is a question about a metric before it is a question about vision. Difference and uniformity

How many colours are there

Sixteen point seven million counts code values in a file format. Ten million distinguishable colours is a volume divided by the size of a just-noticeable difference — and the two difference formulae this site implements disagree about that size by a factor of nearly five.

Colour temperature, and the number nobody quotes beside it. The Planckian locus in the 1960 UCS diagram — the only diagram on which correlated colour temperature is well defined — with four sources and the perpendicular from each to its nearest point. The temperature is where the foot of the perpendicular lands; Duv is how long the perpendicular is. halophosphate sits 0.0246 off the locus at 4513 K, which is a visible green cast that its colour temperature does not mention. What light is

The sun is not one illuminant

Daylight is not a blackbody and is not one spectrum. It is a one-parameter family reconstructed from three measured basis functions, its chromaticities lie on a curve that is near the Planckian locus and not on it, and the difference is the reason a colour temperature needs a second number beside it.

The ΔE = 1 contour at points across the L* = 55 plane, magnified 14×. Each closed curve is the set of colours exactly one unit of difference from the dot at its centre, traced by bisection along 30 directions and drawn 14 times life size. Under ΔE2000 the contours run from 0.68 to 5.07 CIELAB units across this slice — a ratio of 7.44 — and they are not circles and not aligned with each other. A formula whose contours were circles of one radius everywhere would be claiming that CIELAB is uniform, which is what the 1976 formula claims and what the measurements refuse. Difference and uniformity

Where the formula is not smooth

A colour difference formula is a distance, and a distance ought to vary gently. CIEDE2000's does not everywhere — it carries a hue-rotation term with a hard edge in it, and the discontinuity sits where a great many industrial samples live.

A spectrum after 2 bounces off the same surface. The lamp's spectrum at the top, then the same spectrum multiplied by a reflectance peaking at 530 nm once for each bounce. Interreflection is elementwise multiplication, so light that reaches the eye by the long way round carries ρ raised to the number of surfaces it met. Each row's swatch is drawn at fixed luminance so only the chromaticity changes, and the distance from the D65 white point, printed at the right, rises from 0.000 to 0.235. The spectrum narrows every time, which is why a room painted in one colour is more saturated in its corners than on its walls. What a scene does

A bounce is a multiplication

Colorimetry multiplies an illuminant by a reflectance once and integrates. A surface in a room is lit by every other surface the lamp reached first, so the spectrum arriving at the eye has been multiplied several times — and the second multiplication is where the whole apparatus of matching starts to come apart.

A metameric match that a corner breaks. Two reflectances with identical XYZ under D65 — metamers, matching to ΔE00 = 5.4e-14, which is the numerical floor rather than an approximation. On a flat wall the light meets one of them once and the two patches are the same colour. In a corner, a fraction 0.200 of what leaves the surface returns to it, so part of what reaches the eye carries ρ twice — and the match fails by ΔE00 = 1.53. A metameric match is an identity between three integrals that are linear in ρ, and there is nothing linear left after a second bounce. The geometry, not the light and not the paint, is what breaks it. What a scene does

Two paints that stop matching

A metameric match is an identity between three integrals that are linear in reflectance. A second bounce carries reflectance squared, and no linear identity survives being squared — so two paints certified identical on a flat chart come apart in a corner, by an amount the geometry decides and the colorimetry cannot express.

The two components of daylight, computed from one radiator and one scattering law. A 5800 K radiator through the atmosphere at air mass 1. The direct beam is the radiator times e^{−τm}; the sky is what that extinction removed, so the two are complements and neither needs its own model. The sky is steeply blue because τ ∝ λ⁻⁴, and a surface in shadow is lit by that component alone. Open ground and shadowed ground therefore sit under two illuminants differing by ΔE00 = 21.4 — which is why a photograph of snow has blue shadows and why no single white balance fixes both halves of it. What a scene does

A shadow has its own illuminant

Outdoors there are two lights, not one. The direct beam is a radiator reddened by the atmosphere; the sky is precisely the power that reddening removed. A shadow is lit by the second alone, so shadowed ground and sunlit ground sit under illuminants 21 units of ΔE apart — before any surface, any eye or any opinion is involved.

A glossy surface returns two spectra, and only one of them is the paint. The dichromatic reflection model, computed rather than assumed. Light that enters a dielectric binder, scatters off pigment and comes back carries the reflectance — the body component, ΔE00 = 33.7 from the lamp. Light reflected at the interface never entered, so it carries the lamp's spectrum with only Fresnel's slight dispersion on it: ΔE00 = 1.06. The interface term is computed from Fresnel's equations on a Cauchy index at 55°, so its near-neutrality is a result here rather than an assumption. This is why a highlight is the one region of a photograph that tells a white balancer what the light was, and why removing highlights removes the evidence. What a scene does

The highlight is the lamp

Light reflected at the surface of a glossy material never entered it, so it never met a pigment. Fresnel's reflectance varies by 5.5% across the visible band and the paint underneath varies by a factor of twenty — which makes a highlight the one region of a photograph that reports what the light was rather than what the object is.

How far three channels drift from eighty-one, per bounce. One room, one geometry, one reduction to three channels, and the only thing changing is how many bounces of the Neumann series are kept. At one bounce the two agree to 2.5e-13 — the only reflectance in that path is the floor's, which is flat, and a flat reflectance is one of the few three numbers carry exactly. Every bounce after it multiplies another non-flat reflectance into the spectrum, and three numbers cannot carry a product they were never given the factors of. The curve levels off at ΔE00 = 2.38 because the light has run out, not because the disagreement has. What a scene does

Rendering in three numbers

Almost every renderer ever shipped bounces red, green and blue rather than a spectrum. The error that costs is exactly zero at the first product and grows at every one after it — because three numbers cannot carry a product they were never given the factors of, and each bounce is another product.

The interreflection gain of a room, band by band. A closed cavity of reflectance ρ returns 1/(1 − ρ) times the light that entered it, and because that is computed per band it amplifies the wall's colour along with its brightness. The wall here is only 5% off neutral — a paint anybody would call white — and at albedo 0.9 the room's white point has moved by ΔE00 = 50.7 against the lamp it was lit with. The gain is a geometric series, so the last few percent of albedo cost far more than the first: 1.64× at ρ = 0.4 against 8.41× at ρ = 0.9. What a scene does

What a white wall costs

A closed room returns 1/(1−ρ) times the light that entered it, computed band by band — so a paint that is five percent off neutral becomes a strongly coloured illuminant once the room has finished bouncing. The gain amplifies the tint along with the brightness, and the last few percent of albedo cost far more than the first.

The form-factor matrix of the box. F_ij is the fraction of everything leaving face i that arrives at face j. The diagonal is zero because a flat face sees none of itself; each row sums to exactly 1 because the cavity is closed; and A_i F_ij = A_j F_ji, which is reciprocity and is checked to 10⁻⁹. For a cube the opposite face takes 19.98% and each of the four adjacent faces 20.00%, and the near-equality of those two numbers is a coincidence of the cube rather than a rule. What a scene does

A corner is not a wall

A form factor is the fraction of everything leaving one surface that arrives at another, and it is the only place geometry enters the colour of a room. It is also the one number here with a published closed form to check against — and the check turned out to converge at two different rates for two cases that look identical.

463 essays on this thread, page 2 of 20 · all threads · all essays