Theme

The thread: Computed, not quoted — page 9

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.
Every basis against both objectives at once. A scatter with the mean adaptation residual across the illumination census on the horizontal axis and the mean axis ratio of MacAdam's ellipses in a lightness–chroma space on the vertical. Lower is better on both. The two winners sit at the two ends of an empty diagonal: the basis that adapts best leaves 7.70 on the vertical and the basis that discriminates best leaves 1.79 on the horizontal, each worse on the other objective than every published transform. The basis built from the dichromat confusion points is at (1.65, 2.60) — best at neither and within a factor of two of both floors, which no other entry in the picture manages. What the brain does

No basis is good at both

The same nine numbers decide how well a von Kries gain reproduces a change of light and how nearly a lightness–chroma space makes the discrimination ellipses circles. Minimise either one and the other collapses. The basis built from the receptors is best at neither and is the only entry in the table respectable at both.

How far from circles every basis leaves the ellipses. Eight bases ranked on the mean ratio of the long to the short axis of MacAdam's twenty-five discrimination ellipses, measured in a lightness–chroma space built on that basis. The range runs from 1.61 for best for discrimination to 7.70 for best for adaptation. The ordering is not the ordering on the other objective and is nearly its reverse. What the brain does

One matrix doing two jobs

CIECAM16 adapts in CAT16 and then applies its response compression in the same axes, so a single matrix decides both how well the model handles a change of light and how uniform the space it produces is. The two jobs have different best answers, and the matrix was chosen against only one of them.

Five answers to how far the ellipses are from circles. Five mean axis ratios on the same twenty-five measured ellipses, measured the same way in every row: the boundary points carried through, the longest radius over the shortest, averaged. What differs is which class of map is allowed. The first two rows are chromaticity diagrams, which divide by a sum; CIE xy as printed leaves 2.95 and the best diagram there is leaves 2.02. The last three are lightness–chroma spaces, which divide by a white point; CIELAB as specified leaves 3.44, the best space with no compression leaves 2.33, and the best space with a cube root in it leaves 1.61. Neither family contains the other, and only the last one gets below two. Difference and uniformity

A compression goes below the floor

Elsewhere this collection minimised the anisotropy of MacAdam's ellipses over every chromaticity diagram there is, found 2.02, and called the residual a property of the eye. It is a property of the eye seen through a projective picture. A cube root after the right basis reaches 1.61 on the same twenty-five ellipses.

The floor as a function of the exponent, and the fixed basis beside it. Two curves against the compression exponent on a logarithmic axis from 1 to 10. The lower curve is the best mean ellipse axis ratio any basis can reach with that exponent applied after it, and it falls from 2.33 at no compression to 1.66 at a square root and 1.61 at a cube root, then hardly moves — 1.57 at a tenth root. The upper curve is CIELAB's own basis at the same exponents and gets steadily worse, from 3.57 to 3.77. Almost everything a compression buys arrives with the first step away from linearity, and after that the exponent is choosing between 1.66 and 1.61 while the basis is choosing between 1.61 and 3.44. Difference and uniformity

The exponent was never the argument

A century of colour science has argued about whether the eye's response is a cube root, a square root or a logarithm. Minimise the anisotropy of MacAdam's ellipses over every basis, at each of eight exponents, and the floor moves by under three per cent between a cube root and a tenth root — while the basis moves it by a factor of two.

Every change of light in the census, under three bases. Fourteen changes of illumination, each drawn three times: the residual left by a gain in the basis built from the dichromat confusion points, in CAT16, and in the basis that minimises the average. The ordering between the three is the same on nearly every row, and — the part an average hides — the worst row is the same row for every basis nobody fitted, which is two bounces off the same wall. The difficulty belongs to the change rather than to the choice of axes — except for the fitted winner, whose worst row is D65 to a triphosphor tube instead. What a fit buys is not a uniform improvement; it is the abandonment of the one change everybody else is beaten by. What light is

Which changes of light pay for it

A fitted adaptation basis beats the receptors by 0.68 units on average, and an average is a poor description of what it does. On six of fourteen changes of light it is worse, and the whole of its advantage comes from four — a tungsten lamp and three coloured walls.

Every change of light in the census, under three bases. Fourteen changes of illumination, each drawn three times: the residual left by a gain in the basis built from the dichromat confusion points, in CAT16, and in the basis that minimises the average. The ordering between the three is the same on nearly every row, and — the part an average hides — the worst row is the same row for every basis nobody fitted, which is two bounces off the same wall. The difficulty belongs to the change rather than to the choice of axes — except for the fitted winner, whose worst row is D65 to a triphosphor tube instead. What a fit buys is not a uniform improvement; it is the abandonment of the one change everybody else is beaten by. What light is

Everyone is beaten by the same wall

Eight candidate adaptation bases, fourteen changes of light, and seven of the eight have their worst row in the same place — not a lamp, but a green wall reflecting twice. The one that does not is the one that was fitted, and what its fit bought was permission to give up on that row.

Three published primary sets, and a fourth chosen for how it adapts. The spectral locus with four triangles inside it. sRGB covers 33.5% of the diagram and leaves an adapted observer 2.36 ΔE00; Display P3 covers 45.4% at 1.22; Rec. 2020 covers 63.3% at 1.09. The fourth triangle is the best adaptation basis available to a display asked to cover 63.5% of the diagram, at 1.02 — and it is a different triangle from Rec. 2020's rather than a smaller one. The largest triangle that fits at all covers 73.9%, which is where the axis of this argument ends. What it takes to deliver it

Primaries chosen for their inverse

Moving a display's white point is a gain on its R, G and B, so a display adapts in the inverse of its own primary matrix — a basis chosen by committees for gamut coverage and phosphor availability. Pose the design problem properly and the answer costs one per cent of the gamut argument and reaches within two per cent of the best basis there is.

A display's primaries, scored as the adaptation basis they are. Four primary sets ranked by the mean ΔE00 an adapted observer is left with when the white point moves — which for a display is a gain on R, G and B, and so a von Kries adaptation in the inverse of its own primary matrix. sRGB leaves 2.36, as much as scaling XYZ directly and therefore as much as having no cone basis at all. Rec. 2020 leaves 1.09, better than every published adaptation transform fitted to corresponding-colour data. Nobody chose that: it is what wanting a wider gamut does to a primary's spectral selectivity. Matching and measuring

The gamut race chose the basis

Twenty years of arguing about how much of the diagram a display should cover has produced primaries whose inverse is a better adaptation basis than any transform ever fitted to corresponding-colour data. On the invariant count of what those displays can actually show, the same twenty years produced nothing at all.

The dyes a camera has, and the dyes an adaptation basis would want. Three sensor sensitivities drawn twice: faintly, the silicon-and-filter-array set this collection models, and boldly, three Gaussian dyes chosen to make the inverse of their own response matrix a good basis for a white-balance gain. The designed dyes sit at 610, 542, 449 nm with widths of 35, 26, 30 nm — narrower and further apart than the real ones, which is what sharpening looks like when a search rather than a committee does it. They leave 0.97 ΔE00 against the real sensor's 1.62, and they are held within 0.28 of the Luther condition so that the result is still a camera. What a camera does

A sensor designed for its inverse

A camera's white balance is a gain in a basis made from its own dyes and the light in the room. Choose the dyes for that basis instead of for cost and quantum efficiency, hold the sensor within a stated distance of the Luther condition, and the design reaches the best adaptation figure any basis achieves — and then the room moves it.

Four cameras that all satisfy the Luther condition exactly. Four sensors whose sensitivities are linear combinations of the colour-matching functions — the theoretical ideal, satisfying the condition to machine precision, each with an adaptation basis that does not move when the light does. They differ only in which linear combination, which the condition does not constrain, and they leave 2.46, 0.97, 1.65, 2.37 ΔE00 after a white balance. The best of them reaches 0.974, which is the best any basis at all achieves. Being a perfect colorimeter costs nothing in adaptation; what costs is the mixing matrix, and the control measured here carries one nobody chose. What a camera does

The condition chooses no axes

It has long been said here that a sensor satisfying the Luther condition exactly adapts worse than a silicon one, and offered a reason — that its channels are the matching functions, and a gain on those is the oldest mistake in the subject. The measurement was of one sensor. The condition leaves the axes entirely free.

The same border signal, filled in with a boundary and without one. Two fields, each 6 degrees across. The signal is injected along a ring just inside a contour and varies around it, brightest on one side and dimmest on the other. On the left the signal diffuses and the contour is impermeable: the interior settles to 1.000 against a border mean of 1.000, which is the mean-value property of a harmonic function arriving as a prediction about appearance. On the right the same signal is handed to a Gaussian pool of 0.5°, which has no notion of inside: it reaches 0.040 at the centre, because a kernel weights the near rim more than the far one and a filled region does not. What a scene does

A pool with an edge

A Gaussian pool says how much of a stabilised image survives and can say nothing about what the remainder looks like, because a Gaussian has no edge. Give the pool a boundary and the interior of a faded region takes the average of its own border — exactly, by the mean value theorem, arriving as a prediction about appearance.

A gap in the wall and a gap in the drive are not the same gap. What the centre of a region settles to under three conditions. With the contour closed it reaches its border's value exactly. Open a 16% hole in the barrier and leave the border signal unbroken and it still reaches it, to 1e-8 — a ring of driven cells encloses the centre whatever the wall outside it is doing, so nothing can escape. Break the signal too and it falls to 0.960. All of what a gap costs is the piece of border that stopped driving, and none of it is the hole. What a scene does

A gap in the drive, not in the wall

Break the contour around a region and leave its border signal unbroken, and the interior does not move by one part in a million — a ring of driven cells encloses a centre whatever the wall outside it is doing. Break the signal too and the shortfall goes as the square of what is missing. All of what a gap costs is the piece of border that stopped driving.

The same optimum, along its narrowest direction and its widest. The adaptation objective along two straight lines through its own minimum, both of unit length in the nine coefficients. Along one of them the cost rises steeply; along the other the same step costs 8.0 times less, and a design constrained to move that way gives up almost nothing. That is why restricting the nine numbers to be the inverse of three realisable primaries — three degrees of freedom gone — costs about one per cent, while requiring them to hit the three dichromat confusion points costs seventy. Counting what a constraint removes predicts neither number; what matters is which way it points. Where the model breaks

A constraint costs what it points at

Three primary chromaticities remove three of the nine numbers in an adaptation basis and cost one per cent. Three dichromat confusion points remove six and cost seventy. Counting what a constraint removes predicts neither, because an optimum is a long bowl and what matters is which way the constraint points.

The points a ratio needs are proportional to the ratio. A scatter of 133 points on logarithmic axes, one per MacAdam ellipse under each of six coordinate systems. The horizontal position is that ellipse's true axis ratio; the vertical is the smallest sample size, from a sequence of doublings, at which the sampled ratio comes within one per cent and stays there. A line of slope 0.94 runs through them, against a predicted 1 — the minimum's notch is 0.88 σ₂/σ₁ radians wide, so resolving it takes a number of points proportional to σ₁/σ₂, and nothing about the basis or the ellipse enters beyond that. An ellipse with a ratio of two needs seventeen points and one with a ratio of twenty-six needs a hundred and ninety-two. Where the model breaks

An extremum is not a sample

Three separate measurements in this collection took a maximum or a minimum over a sample of a set — forty-eight points round an ellipse, twenty-four directions out of an optimum, fourteen changes of light off a list. All three are wrong, all three are wrong in the same direction, and the error in each grows with the very quantity being measured.

The minimum sits in a notch the width of the answer's reciprocal. The distance from the centre to the boundary, all the way round one MacAdam ellipse mapped into a lightness–chroma space built on the CIE RGB primaries. The curve has two broad maxima and two very narrow minima: the dip is about 2.5 degrees wide at a third above its floor, because the width of the minimum of an ellipse's radius is the reciprocal of its axis ratio, and this ratio is 41. Forty-eight sample points, marked, are spaced 7.5 degrees apart, so none of them lands in either notch and the smallest one found is 2.2 times the true minimum. The ratio comes out 18.59 where it is 40.76. Difference and uniformity

An ellipse is not a ring of points

For eleven rounds of argument the distortion a colour space does to MacAdam's ellipses by mapping forty-eight points round each one and dividing the longest radius by the shortest. The minimum sits in a notch whose width is the reciprocal of the answer, so the method was accurate wherever the answer was small and short by a factor of two where it was large.

Three numbers for one set of ellipses, and which of them is which. Two curves and a horizontal line, against the size the ellipses are drawn at. The line is the analytic axis ratio — the ratio of the singular values of the map's own derivative, which is what "does this space make discrimination contours circles" means. The upper curve is a very finely sampled ring, which sits 0.6 per cent above the line at full size and converges onto it as the ellipse shrinks, because the gap between them is the second-order distortion of the map across a real ellipse rather than an error. The lower curve is the forty-eight-point sample used for this until now: it does not converge onto anything, because its error is set by the sample and not by the size. Difference and uniformity

Three numbers for one ellipse

How far a colour space is from making a discrimination contour circular has three different answers — what a coarse sample of the boundary reports, what a converged sample of a contour of stated size reports, and what the map's own derivative says. They differ by up to a factor of two, they mean different things, and only one of them is what the question is asking.

Nine eigenvalues, six of which exist. Nine points on a logarithmic vertical axis: the eigenvalues of the Hessian of the adaptation residual at its own optimum, largest to smallest. The first six run from 6.8×10² down to 7.6×10⁻¹, a condition number of 890. Then the axis drops: the seventh is 1.9×10⁻⁴, and the last three are separated from the sixth by a factor of 4.0×10³. Those three are not small curvatures. They are the finite-difference truncation error on directions along which the objective is exactly constant, and a shaded band marks them as the numbers the objective does not have. What the eye does

The rank is the invariance

A von Kries gain cannot see the scale of a row of its basis. That is an identity, proved in a line, and it can be measured instead — as the rank of a second-derivative matrix. Both objectives this collection minimises over the observer's nine free numbers have a Hessian of rank exactly six, and the three directions they cannot see are the three scalings, to a hundredth of a degree.

The bowl the eigenvalues describe and the bowl a sample found. Six points on a logarithmic vertical axis — the distance from the optimum of the adaptation residual to a 5 per cent rise along each of the six directions the objective can see — with a shaded band behind them showing the whole range 24 random directions reported. The eigen-radii run from 1.2e-2 to 3.6e-1, a factor of 29.8. The band runs from 2.2e-2 to 1.8e-1, a factor of 8.0, and sits entirely inside the ends of the true range: a random direction in nine dimensions carries a share of every eigenvector and so reports the middle of the bowl, never an end of it. Matching and measuring

How long is the bowl

The optimum of an adaptation objective is twenty-nine times longer one way than another, and the two ends have names — the stiffest direction is almost entirely the short-wavelength row of the basis, the flattest almost entirely the long-wavelength one. Twenty-four random directions reported a factor of eight, and no number of them would have done better.

What a constraint costs is how far it pushes, in the directions that are seen. A scatter of every constraint imposed here on the nine free numbers. The horizontal axis is the length of the displacement from the optimum measured only in the six directions the objective can see; the vertical, on a logarithmic scale, is the excess cost that displacement actually carries. Requiring the basis to be the inverse of three realisable display primaries sits at the bottom left, at 0.068 and 0.022 ΔE00 — it removes three degrees of freedom and moves the answer almost nowhere. Requiring it to hit the three dichromat confusion points removes six and pushes 13 times as far, for 0.68. The vertical spread at similar horizontal positions is the part a count of parameters cannot predict. Where the model breaks

A constraint is a direction and a distance

Four restrictions on the same nine numbers cost nothing, nothing, two per cent and seventy. How many parameters each removes predicts none of it. What does is the quadratic form evaluated along the displacement — and showing that it does means walking in towards the optimum rather than arguing at the edge, because at the edge the prediction is out by a factor of three.

The cheapest direction to give ground in is the flattest one. Six bars, one per direction the adaptation objective can see, showing how much of the other objective a fixed budget of adaptation buys if it is spent along that direction. The rate is the slope of the second objective divided by the square root of the first's curvature, so it rewards a direction the second objective wants and punishes one the first is stiff in. The flattest direction wins at 10.68 against 3.29 for the next best and 0.54 for the stiffest — a factor of 20. Spending 1 per cent of the adaptation optimum there moves the anisotropy from 7.70 to 5.02. What the brain does

The trade only runs one way

Standing at the basis that adapts best, one per cent of adaptation buys forty-four per cent of the way to the discrimination floor. Standing at the basis that discriminates best, the same one per cent buys under two. The scatter that shows two objectives pulling apart looks symmetric and is not, and the asymmetry is what a committee choosing between them would most want to know.

The worst case is wherever the box stops. Four horizontal tracks, one per parameter of a painted wall. Each track spans the range an ordinary paint is allowed to occupy, with a second, wider range drawn behind it, and two markers show where the search for the worst change of light came to rest under each. Under the narrower box the answer sits on the wall in centre and width; under the wider one, in centre, width, base. The residual rises monotonically towards a narrower notch at a shorter wavelength on a darker wall, so there is no interior maximum to find. The worst change of light is 21.3 ΔE00 under one box and 28.4 under the other, and the census's own worst row is 3.37. What a scene does

The worst case is where the box stops

The worst change of light this collection quotes is two bounces off a green wall, and it is the worst of fourteen changes somebody wrote down. Searching the family those fourteen were drawn from reaches six times further — and does not stop, because the residual rises monotonically towards a narrower notch on a darker wall. There is no worst case in this family, and the number anybody quotes for one is a number about their own constraint.

Best on the average, undefined at the edge. Two rows of bars sharing one set of labels. On the left, each adaptation basis's mean residual over the fourteen changes of light the census lists — Bradford is the shortest bar at 1.14 ΔE00 and is what colour management uses. On the right, the same bases against the worst change the same family of painted rooms can produce. Three of the five have no bar there at all, marked instead with the gain that replaced it: under a deep narrow notch their reading of the white passes through zero, so the diagonal is a division by nothing and the model stops being defined rather than merely doing badly. Bradford's middle gain reaches -1.0e+19. CAT16, which exists because CAT02 was withdrawn for going negative in practice, is one of the two that survives. What it takes to deliver it

Best on the average, undefined at the edge

Bradford has the lowest mean residual of any adaptation transform over the census of illumination changes, which is why colour management uses it. Inside the family that census was drawn from, its middle row's reading of the white passes through zero — so the gain is a division by nothing, and the model stops being defined rather than merely doing badly. CAT16, which exists because its predecessor did this, does not.

A template that cannot place a point, fitted three ways. Three rows, one per set of stimuli the pigment template's cone matrix can be fitted over, each listing the three confusion points that matrix implies. The protanope's point wanders from (0.99, 0.20) to (0.76, 0.13) against a measured (0.75, 0.25), and the deuteranope's moves by 22.5 in chromaticity — further than the whole diagram is wide. A copunctal point is where two nearly parallel planes meet, so a template good to a few per cent, which is far more than enough to place a spectrum, is nowhere near enough to place this. It is why the population is built by moving the measured points rather than by deriving them. What the eye does

A template cannot place a point

This collection's model of an eye is good to a few tenths of a per cent at predicting what a cone catches, which is far more than enough to place a spectrum. Asked where that eye's confusion points are, it puts the protanope's at (0.99, 0.20) against a measured (0.75, 0.25) and the deuteranope's anywhere from (1.1, −0.5) to (−18, 11) depending on which stimuli the fit was made over.

What the confusion points charge, across a population. A histogram of 200 members of a population of eyes, each scored by what the adaptation basis their own confusion points determine leaves after the gain. It runs from 1.22 to 2.24 ΔE00 with a median of 1.78. Vertical marks show the unconstrained floor at 0.97, the published transforms, and the single observer this site quotes at 1.65. The distribution straddles Hunt–Pointer–Estévez and reaches below CAT16: 18 per cent of members are better served by their own receptors than by a matrix built to make a gain behave, and 2 per cent than by the current recommendation. Where the model breaks

The price is also the person

The receptor construction costs seventy per cent above the unconstrained floor, which is a number usually quoted as a property of the construction. Propagated across a population of eyes it runs from a quarter above the floor to a hundred and thirty per cent above it, and the population's own spread is wider than the entire gap between the published transforms the seventy per cent was being compared against.

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