The thread: Three numbers — page 6
A size is not a direction
An audit that reports magnitudes cannot say what two of them cost together. Over two and a half thousand pairs of observer departures the angle between them in the local metric runs from one degree to a hundred and seventy-nine, and on forty-three per cent of them the two together cost less than the larger of the two alone. Adding the angle predicts the composition to one and a quarter per cent; Pythagoras is out by twenty-eight.
The straight piece under the cube root
CIELAB's lightness is described everywhere as a cube root and below a stated luminance it is a straight line, spliced on with two constants chosen so the join is exact in value and in slope. Every black a delivery chain reaches is inside that straight piece — a press black at L* 2.4, a projected black at 1.1 — where the compression does not compress, the price of a deviation is flat to two parts in a thousand, and the second derivative the composition of two departures needs does not exist.
What one number accepts
A delivery tolerance is written as a single colour difference and it acts on three tristimulus values, so what it actually accepts is a closed surface. Measured over sixty-four colours in the sRGB cube, the volume inside that surface varies by a factor of a hundred thousand and its longest axis is between three and thirty times its shortest. The same contract, applied to a dark colour and a light one, is two different requirements.
A lattice has no derivative
Every departure priced here was priced by perturbing something and reading the answer, which requires the thing being perturbed to have a derivative. A file written on a code lattice does not have one — its output is flat almost everywhere and jumps on a set of measure zero — so quantisation can be bounded and never propagated. The bound is 1.15 colour differences at eight bits per channel against a mean of 0.19, and it is worst where the encoding spends fewest codes.
The mixture line bows
Grassmann's second law says an additive mixture is exactly linear in tristimulus values, and tested here it is exact to floating point. Nothing downstream of the three numbers preserves it. The physical half-and-half mixture of two colours sits a median of 5.5 colour differences from the midpoint of their two readings and up to thirty; on a green and a blue display primary it is twenty-one, which is a quarter of the distance between them.
The order is not in the documentation
A raw converter performs a white balance, a colour matrix, a tone curve and a clip, and every account of the process lists them in that order without saying the order decides anything. Exchanging the first two moves the picture by nine colour differences at the mean and thirteen at the worst patch. The twenty-four arrangements collapse into five outcomes running out to sixty-five, and nothing a converter ships says which of them it is.
One step has no choice
Four of a raw converter's operations can be arranged twenty-four ways. The reconstruction cannot be arranged at all — a colour matrix needs three numbers and a mosaic site has one, so filling in the mosaic is forced to the front by arithmetic rather than by convention. What is not forced is whether it happens in linear light or after the curve, and that decision costs 5.8 colour differences at an ordinary edge and nothing at all four sites away from it.
A contrast control is three controls
A tone curve is a function of one number at a time and knows nothing about hue. Applied to each channel separately it rotates a hue circle by up to seventeen degrees, raises chroma by a factor of 1.27 at ordinary strength, and lifts lightness — so a photographer who moves a contrast slider has moved three things and the interface names one of them. All three scale with the curve's strength, monotonically, and the hue rotation depends on which hue it is.
A stop is not a stop afterwards
Doubling the light is exactly a factor of two in raw values and in tristimulus values, which is the one thing about exposure everybody is sure of. A stop taken after the tone curve is a factor of something else, and matching the two on an eighteen per cent grey leaves the rest of the frame between three and four colour differences apart at the mean and up to eleven at the worst patch. The gain that matches one stop is 2.47 rather than 2.
The hue scale has four corners
CIECAM16 reports hue twice — as an angle in its own opponent plane, and as a quadrature interpolated through four unique hues with four fitted weights. The second is the one hue tolerances and hue-preserving mappings are written in, and it is piecewise — its slope jumps at each of the four anchors, by a factor of 1.74 at green and by 0.41 at blue, and it runs 4.1 times faster near yellow than near blue.
The audit, read as appearances
The previous round priced six observer departures in a matching unit and left them there. Read in the appearance unit an appearance prediction would actually be judged by, they are not the same six numbers scaled by a constant — the model amplifies the smallest by 1.58 and the largest by 1.03, so the range between the largest and smallest term narrows from 3.34 to 2.17. The published ranking survives in the mean and changes on fourteen of the forty-two surfaces it was averaged over.
An average on the stored values
A resize, an antialiased edge, a transparency composite and a chroma subsample are all averages, and in almost every pipeline they are taken on the numbers as stored. The numbers as stored are encoded, the encoding is a compression, and a half-and-half blend of black and white taken that way lands 18.7 colour differences from the half-and-half blend of the light — 22.7 units of lightness darker, on every pair, always in the same direction.
A tolerance has a grain
A colour tolerance pulled back into tristimulus values is a long thin shape, and across the whole sRGB cube its shortest axis points the same way, fifteen degrees off at the median — the direction in which X rises as Y falls, which is the direction of a*. So what one colour difference allows depends on which way a delivery drifts. An instrument's X filter may age 1.4 per cent before the tolerance is used up, its Z filter 5.1, and the light on the sample 9.3.
Which mixture bows most depends on the ruler
The physical half-and-half mixture of two lights misses the midpoint of their two readings in any unit a person is shown, and the share it misses by is about the same in ΔE₀₀ and in the appearance model's own space — 12.8 and 14.6 per cent at the median. Which mixtures miss most is not. The rank correlation between the two units is 0.57, a display's blue and yellow is the worst pair in one and the mildest in the other, and the smaller number usually quoted for the appearance model is its power correction rather than a straighter line.
A distance raised to a power has no length
CAM16-UCS's colour difference is its Euclidean distance raised to the power 0.63 and multiplied by 1.41. That is still a metric — the triangle inequality holds on every one of four thousand random triples — and it has no length. A grey ramp from black to white measures 25 units in one step, 137 in a hundred and 755 in ten thousand, growing as the number of steps to the power 0.37, and halving the size of a step triples the number of steps that fit.
The corner of the frame has another filter
A camera's infrared-cut filter is an interference stack, and light crossing it at an angle sees its edge moved towards the blue — from 665 nm at the centre of a frame to 646 at twenty-five degrees. The corner's red channel loses a tenth of its response under daylight and a sixth under tungsten. A grey-card gain map makes the corner exactly right under the lamp it was made under; under a tungsten lamp the same grey is 2.6 colour differences wrong, under a white LED 4.2, and even under its own lamp the coloured patches are not corrected, because a moved edge is not a gain.
A black level is multiplied by the balance
Every raw value carries a pedestal that is subtracted before anything else, and a white balance is then a different gain in each channel. Subtracting a constant and multiplying by one commute only when the constant is zero or the gains are equal. So a pedestal left three thousandths of white too high becomes 2.4 colour differences in a two per cent grey, most of it chroma, in the colour the lamp starves — and pushing that shadow four stops in editing makes it 8.9. An offset in proportion to the lamp's own white is the exception, and it is exactly grey.
A chain measured in a unit that cannot add
A delivery chain's four stages, measured in the power-corrected appearance difference, sum to 7.66 while the chain end to end measures 5.05, and the shortfall was read as the stages partly cancelling. A chain whose four stages lay in a straight line and added exactly would still read 0.74 of its sum in that unit, because a distance raised to the power 0.63 cannot add. Measured in the model's own Euclidean space the same chain reaches 0.84 of its sum. Three quarters of the published shortfall was the exponent.
A resize with a negative weight in it
A blend taken on stored values is always darker than the blend of the light, because the encoding is concave and a convex combination of a concave function's values lies below the function of the combination. A bicubic or Lanczos resize is not a convex combination. Beside an edge its negative weights make the stored-value result lighter than the light's own — by up to 6.1 colour differences with bicubic and 12.2 with Lanczos on skin against its shadow — and on edges between full-scale values the clip hides the overshoot and the old guarantee appears to hold.
The line can be in the sample
The rule for which tabulation defect to fix compares the light's narrowest feature with the grid's step, and it named its own failure case — a sample with structure narrower than the step. Given one, a two-nanometre notch under a thermal source with no feature at all costs 2.1 colour differences at five nanometres and moves 2.0 when the grid slides, which is what a fluorescent tube costs on a smooth pigment. Under that tube a notch twelve nanometres wide, more than twice the step, moves 8.1 when it sits on the mercury line.
Clipped noise does not average away
Noise on a raw reading is as likely to fall below the true value as above it, which is why averaging an area removes it. A converter that sets negative readings to zero keeps the upper half and throws the lower away, and the mean of what is left is the signal plus a pedestal. With no black level error anywhere, a half per cent grey under a tungsten lamp comes out 1.04 colour differences off at high gain, 8.98 after a four-stop push — and a blur that removes every trace of the noise leaves the tint where it was.
A corner is corrected by one row
A grey-card gain map makes the corner of a frame exactly right on grey and leaves coloured patches 1.86 colour differences wrong at twenty-five degrees. A three-by-three matrix fitted at that position halves it — and six of its nine numbers do nothing, because the moved filter edge is in one channel. The three that matter rebuild the lost red from green and blue, they carry to another lamp better than a gain map in eleven cases of twelve, and in the twelfth, a row fitted under tungsten and used in daylight, they leave the grey 9.2 off.
Two matrices do not reach a white LED
A camera profile's two matrices, blended by the scene's colour temperature, are as good as a matrix fitted anywhere along daylight. Under a white LED or a fluorescent tube the same blend leaves colours twice as far off as a matrix fitted under that lamp, and no weight inside the profile's range repairs it. What decides it is not how far the lamp sits from the Planckian locus — a triphosphor tube sits nearly on it and fares worst — but whether its spectrum has lines in it, which a white balance reading cannot see.
The cost of a steep notch repeats every step
A Gaussian notch is safe on a five-nanometre grid once it is a couple of steps wide. A flat-bottomed notch with steep sides never is. Its cost on the grid rises and falls with its width, with the step as its period — 0.02 colour differences at ten nanometres, 1.99 at twelve and a half, 0.03 at twenty — and it does not die away as the notch widens. What sets its size is how fast the edges rise, and an interference filter's edges rise in under a nanometre.
207 essays on this thread, page 6 of 9 · all threads · all essays