712 The Camera

A photograph is treated as a record of what was in front of the lens. This subsection traces what the sensor measures and what the file reports, using a raw exposure (Canon CR2, \(3708\times 5568\)) and the standard open-source pipeline.

712.0.1 Two thirds of every pixel is generated

The sensor carries a colour filter array in the pattern RGBG. Each photosite records the intensity behind one filter only:

\[ \begin {array}{lr} \text {measured samples} & 20\,646\,144 \\ \text {reported values} & 61\,938\,432 \\ \text {interpolated} & 41\,292\,288 \quad (66.7\%) \\ \end {array} \]
Every pixel in the delivered image carries three numbers. One was measured; the other two were computed from neighbouring photosites that measured a different colour.

Before that, the counts are offset by a black level of \(2048\) against a saturation level of \(15\,490\). The offset is a stored constant, not a per-frame measurement.

712.0.2 The interpolation is not unique

Six demosaicing algorithms from the same library, applied to the identical file with identical white balance and gamma, against bilinear as reference:

\[ \begin {array}{lrrrr} \text {algorithm} & \text {mean }|\Delta |\,[\mathrm {DN}] & \max |\Delta | & \text {pixels differing} & >5\,\mathrm {DN} \\ \hline \text {linear} & 0.000 & 0 & 0.0\% & 0.0\% \\ \text {DCB} & 1.221 & 255 & 48.4\% & 4.4\% \\ \text {VNG} & 1.580 & 219 & 57.8\% & 6.1\% \\ \text {AHD} & 1.629 & 246 & 55.9\% & 6.7\% \\ \text {PPG} & 1.665 & 235 & 55.1\% & 7.3\% \\ \text {AAHD} & 1.934 & 255 & 59.0\% & 9.1\% \\ \end {array} \]
The maximum disagreement is \(255\) DN in an \(8\)-bit channel: the full range. Across all six, \(14.8\%\) of pixels differ by more than \(5\) DN from the reference and up to \(59\%\) differ at all.

None of the six is correct. Each is a rule for supplying the two channels that were not measured, and the rules disagree on more than half the image.

712.0.3 The illuminant is estimated

Converting sensor response to colour requires the spectrum of the illumination, which the camera does not measure. Six standard settings applied to the same file:

\[ \begin {array}{lrrrrr} \text {white balance} & R & G & B & R/B & \text {rms from as-shot} \\ \hline \text {as-shot (camera)} & 8.66 & 6.94 & 8.47 & 1.022 & 0.00 \\ \text {auto (grey world)} & 7.47 & 7.24 & 7.82 & 0.955 & 1.75 \\ \text {unit (no WB)} & 2.38 & 8.65 & 2.86 & 0.830 & 10.56 \\ \text {daylight} & 11.40 & 7.29 & 5.49 & 2.077 & 4.66 \\ \text {tungsten 2856\,K} & 1.31 & 12.66 & 13.06 & 0.100 & 12.92 \\ \text {shade 7500\,K} & 6.50 & 10.90 & 2.11 & 3.088 & 9.83 \\ \end {array} \]
The red-to-blue ratio spans \(0.100\) to \(3.088\), a factor of \(30.8\). The as-shot value is the camera’s own estimate, computed by an undisclosed algorithm from the same pixels; the auto setting implements the grey-world assumption, that the scene averages to neutral. That is a prior about the world, not a measurement of it.
712.0.4 The projection

Figure 914 shows one exposure, taken through a fisheye lens, rendered under six projection models. The pier railing is a straight object. Against a straight reference line drawn at its height, it bows above the line in the recorded frame, meets it near \(f = 0.80\,W\), and bows below it under an over-corrected model. The photons are identical in all six panels.

The distortion coefficients used in production are not derived from optics. They are fitted by photographing a checkerboard and adjusting \(k_1, k_2, k_3, p_1, p_2\) until the imaged lines are straight, under the assumption that the board is planar and its lines are straight. Straightness is the objective of the calibration, not a result of it.

712.0.5 No projection is undistorted

The word distortion names a departure from rectilinear projection. That choice of reference is a convention, and the alternatives preserve different quantities:

\[ \begin {array}{ll} \text {rectilinear (pinhole)} & \text {straight lines} \to \text {straight lines}; \text { angular scale not preserved} \\ \text {equidistant fisheye} & \text {radial distance} \propto \text {angle}; \text { straight lines} \to \text {curves} \\ \text {orthographic fisheye} & \text {solid angle at the centre} \\ \text {equisolid fisheye} & \text {area ratios} \\ \end {array} \]
No projection preserves all of them, and this is not a limitation of lens design. A sphere admits no isometry onto a plane — Gauss’s theorema egregium — so every mapping from the visual sphere to a sensor plane distorts something. Which quantity is preserved is chosen by the application: rectilinear for architecture, equidistant for all-sky photometry where angular position is what is wanted, equisolid where area ratios are.

“Distortion” therefore names the failure to preserve a chosen quantity, and the choice is made before the exposure. There is no undistorted rendering against which the six panels could be compared.

712.0.6 What a photograph is
\[ \begin {array}{ll} \text {recorded} & \text {one filtered intensity per photosite, as an ADC word} \\[3pt] \text {subtracted} & \text {a stored black level, } 2048 \\[3pt] \text {generated} & 66.7\% \text { of output values, by a rule that disagrees with alternatives} \\ & \text {on up to } 59\% \text { of pixels} \\[3pt] \text {estimated} & \text {the illuminant; } R/B \text { spans } 30.8\times \text { over standard settings} \\[3pt] \text {chosen} & \text {the projection; a straight railing renders as a curve, a line,} \\ & \text {or a curve the other way} \\[3pt] \text {then applied} & \text {colour matrix, gamma } 2.2,\ \text {noise reduction, sharpening,} \\ & \text {lossy DCT quantisation} \\ \end {array} \]

A photograph is the output of a chain in which most of the reported values were never measured, the colour follows from an assumption about the light, and the geometry follows from a model selected in advance. It is consistent with its own settings, and there is no setting-free image against which to check it.

PIC
Figure 914: One exposure, six projection models. The frame was recorded through a fisheye lens; the pier railing is straight in the world. The yellow line is a straight reference drawn at the railing’s height. In the recorded frame the railing bows above the line; under rectilinear reprojection it approaches the line as the assumed focal length increases, meeting it near \(f = 0.80\,W\); under an over-corrected model it bows the other way. The sensor data are identical in all six panels. Which rendering shows the railing correctly is fixed by the projection model. By the theorema egregium no projection \(S^2 \to \mathbb {R}^2\) preserves the metric, so every panel distorts something; the panels differ in what.

712.1 Colour I: The Observer

Colour is not a property of light. It is the image of a spectrum under a projection onto three numbers, and the projection is defined by a standard adopted in 1931 from the responses of seventeen observers.

712.1.1 The standard

The CIE 1931 colour-matching functions, which define every subsequent colour measurement, were constructed from two experiments: Wright’s, with ten observers, and Guild’s, with seven. The matching was done at a \(2^\circ \) field of view against monochromatic primaries. The resulting mean was adopted by the CIE in 1931 as the Standard Observer.

The CIE has since published alternatives — the 1964 \(10^\circ \) observer, and the 2015 \(2^\circ \) and \(10^\circ \) physiological observers — which are not revisions but parallel standards, all currently valid.

712.1.2 The choice of observer moves the coordinates

Computing chromaticity for standard illuminants under the 1931 \(2^\circ \) and 1964 \(10^\circ \) observers:

\[ \begin {array}{lrrrrr} \text {illuminant} & x_{1931} & y_{1931} & x_{1964} & y_{1964} & |\Delta | \\ \hline \text {A} & 0.44757 & 0.40744 & 0.45117 & 0.40594 & 0.00390 \\ \text {D50} & 0.34567 & 0.35850 & 0.34773 & 0.35952 & 0.00230 \\ \text {D65} & 0.31271 & 0.32901 & 0.31380 & 0.33098 & 0.00225 \\ \text {D75} & 0.29902 & 0.31485 & 0.29968 & 0.31740 & 0.00263 \\ \text {FL1} & 0.31306 & 0.33710 & 0.31810 & 0.33549 & 0.00529 \\ \text {FL11} & 0.38054 & 0.37691 & 0.38544 & 0.37109 & 0.00761 \\ \text {FL2} & 0.37207 & 0.37512 & 0.37927 & 0.36723 & 0.01069 \\ \end {array} \]
The just-noticeable difference in the \(xy\) plane is approximately \(0.002\). Six of the seven illuminants exceed it, and the fluorescent lamp FL2 exceeds it by a factor of five.

Whether two samples are the same colour therefore depends on which of two concurrently valid CIE standards is applied.

712.1.3 Metamerism: the projection discards almost everything

A spectral power distribution sampled at \(5\) nm over \(380\)–\(780\) nm has \(81\) components. The tristimulus values impose three constraints. The null space has dimension \(78\).

Solving \(A\mathbf {s} = \mathbf {XYZ}\) for the D65 tristimulus \((0.95047, 1.00000, 1.08897)\) under non-negativity gives, without a smoothness penalty, a spectrum with three non-zero wavelength bins near \(445\), \(530\) and \(580\) nm; with a penalty, one occupying all eighty-one. Their tristimulus values agree to machine precision,

\[ \max |\Delta \mathbf {XYZ}| < 10^{-14}, \]
while the correlation between the spectra is \(\rho = +0.13\).

A three-line spectrum and a smooth daylight curve are the same colour. Colour is therefore not a measurement of the spectrum; it is a measurement of its projection onto a three-dimensional subspace chosen in 1931.

712.1.4 The space changes the numbers

Converting the same tristimulus values into different working spaces:

\[ \begin {array}{lrrrl} \text {space} & R & G & B & \\ \hline \text {sRGB} & -0.2147 & 0.7740 & 0.2067 & \text {out of gamut} \\ \text {Adobe RGB (1998)} & 0.4193 & 0.7687 & 0.2715 & \\ \text {DCI-P3} & 0.4025 & 0.7771 & 0.3844 & \\ \text {ITU-R BT.2020} & 0.4035 & 0.7162 & 0.2549 & \\ \text {ProPhoto RGB} & 0.3636 & 0.6777 & 0.3097 & \\ \end {array} \]
for a single green stimulus with \(XYZ = (0.2, 0.4, 0.1)\), reported after each space’s transfer-function encoding (linear values in parentheses: sRGB \(R_{\rm lin} = -0.0166\)).
712.1.5 White is a choice
\[ \begin {array}{lrrr} \text {white point} & x & y & \mathrm {CCT\ [K]} \\ \hline \text {A} & 0.44758 & 0.40745 & 2857 \\ \text {D50} & 0.34570 & 0.35850 & 5001 \\ \text {D65} & 0.31270 & 0.32900 & 6505 \\ \text {E (equal energy)} & 0.33333 & 0.33333 & 5459 \\ \text {FL2} & 0.37210 & 0.37510 & 4229 \\ \end {array} \]
sRGB defines white as D65; the printing standards define it as D50. The same file displays as a different colour under the two conventions, and neither is the white of any physical object.
712.1.6 Three dimensions is itself a projection

Dichromatic vision projects onto two dimensions rather than three. Computing the rank of the Machado (2009) colour-vision-deficiency matrices at full severity:

\[ \begin {array}{lrr} \text {condition} & \text {rank} & \text {eigenvalues} \\ \hline \text {Protanomaly} & 2 & (-0.0000,\ 0.9906,\ 1.0000) \\ \text {Deuteranomaly} & 2 & (0.0000,\ 1.0087,\ 1.0000) \\ \text {Tritanomaly} & 3 & (1.3104,\ 1.0000,\ 0.1798) \\ \end {array} \]
A zero eigenvalue means a direction in colour space that maps to nothing: pairs of colours distinguished by a trichromat collapse to one.

The trichromatic case is not the ground truth from which these are deviations. It is a three-dimensional projection of an infinite-dimensional signal, and the dichromatic case is a two-dimensional projection of the same signal. The difference is the dimension of the discard.

712.1.7 What is seen
\[ \begin {array}{lrrr} \text {band} & \lambda \ [\mathrm {m}] & \text {decades} & \text {fraction} \\ \hline \text {radio} & 10^{-1}\text {--}10^{3} & 4.00 & 22.2\% \\ \text {infrared} & 7\times 10^{-7}\text {--}10^{-3} & 3.15 & 17.5\% \\ \textbf {visible} & 3.8\times 10^{-7}\text {--}7\times 10^{-7} & \mathbf {0.27} & \mathbf {1.47\%} \\ \text {ultraviolet} & 10^{-8}\text {--}3.8\times 10^{-7} & 1.58 & 8.8\% \\ \text {X-ray} & 10^{-11}\text {--}10^{-8} & 3.00 & 16.7\% \\ \text {gamma} & <10^{-11} & 4.00 & 22.2\% \\ \end {array} \]
The visible band is \(1.47\%\) of the logarithmic range and \(3.2\times 10^{-10}\) of the linear one.
\[ \begin {array}{ll} \text {received} & S(\lambda ),\ \text {infinite-dimensional} \\ \text {recorded} & \text {three numbers} \\ \text {projection} & \text {fixed by the mean of 17 observers, 1931} \\ \text {null space} & 78\ \text {dimensions at } 5\ \mathrm {nm} \text { sampling} \\ \text {alternatives} & \text {four concurrent CIE observers; differences exceed the JND} \\ \text {representation} & \text {five working spaces, five triples, some unrepresentable} \\ \text {white} & \text {a convention (D50 or D65)} \\ \end {array} \]

The projection that defines colour is an average over seventeen people in two laboratories in the late 1920s. It has not been superseded, it has been supplemented; the supplements disagree with it by more than the eye can distinguish; and what the projection discards is seventy-eight of eighty-one dimensions.

Data and code

CIE colour-matching functions, illuminant spectral power distributions, working space primaries and white points were taken from the colour-science Python package (v0.4), which distributes the CIE-published tables verbatim. Colour-vision-deficiency matrices are those of Machado, Oliveira and Fernandes (2009) as implemented in the same package.

pict
Figure 915: Colour as a projection fixed by convention. (a) The CIE 1931 colour-matching functions, constructed from the mean responses of seventeen observers — ten of Wright’s and seven of Guild’s — at a \(2^\circ \) field of view. (b) Chromaticity displacement of eight standard illuminants under four concurrently valid CIE observers (1931 \(2^\circ \), 1964 \(10^\circ \), 2015 \(2^\circ \), 2015 \(10^\circ \)), relative to the 1931 observer, with the diameter of a just-noticeable difference (\(0.002\)) drawn at the origin. The spread exceeds it for every illuminant, from \(0.0024\) for D65 to \(0.0122\) for the fluorescent lamp FL2 — six times the JND. Which of two samples counts as the same colour depends on which standard is applied. (c) Two spectral power distributions with the same tristimulus values as D65 to machine precision (\(<10^{-14}\)). One consists of three narrow lines at \(445\), \(530\) and \(580\) nm; the other is a smooth curve occupying all eighty-one wavelength bins. Their correlation is \(+0.13\). The projection onto three numbers has a null space of dimension \(78\) at \(5\) nm sampling. (d) The stimulus \(XYZ = (0.2, 0.4, 0.1)\) (star) against the spectral locus and the primaries of five working spaces. It lies outside the sRGB triangle: the linear red component is \(-0.017\) (\(-0.215\) after encoding) and the colour cannot be represented. (e) Smallest eigenvalue of the Machado (2009) colour-vision-deficiency matrices as a function of severity. The protan and deutan matrices reach rank \(2\) at full severity — a direction in colour space maps to nothing, and colour pairs distinguished by a trichromat collapse to one. The tritan curve does not reach zero because that model is a shift approximation over a different parameter domain, as the package documentation notes. (f) The visible band against the electromagnetic spectrum on a logarithmic wavelength axis: \(1.47\%\) of the range shown, and \(3.2\times 10^{-10}\) of it linearly.

712.2 Colour II: The Camera

Two people photograph the same object with different phones and obtain different pictures. The difference is not a defect. This subsection follows where it comes from.

712.2.1 Two thirds of the pixels are not measured

A colour sensor is a monochrome array behind a colour filter mosaic. Each photosite records one of red, green or blue; the other two channels at that location are interpolated from neighbours. A twelve-megapixel image contains twelve million measurements and thirty-six million output values, so

\[ \frac {36 - 12}{36} = 66.7\% \]
of the delivered colour data is generated by an interpolation algorithm. The rawpy interface exposes eleven such algorithms; the choice is a parameter.
712.2.2 The matrix that assigns the colour

A sensor response is three numbers with no colorimetric meaning until they are mapped to a device-independent space. The map is a \(3\times 3\) matrix stored in a lookup table indexed by camera model. The LibRaw table contains \(812\) entries across \(36\) manufacturers, and its header reads:

All matrices are from Adobe DNG Converter unless otherwise noted.

The provenance annotations resolve to four sources:

\[ \begin {array}{lr} \text {Adobe DNG Converter} & 715 \\ \text {DJC (Dave Coffin)} & 89 \\ \text {LibRaw} & 7 \\ \text {Samsung DNG} & 1 \\ \end {array} \]
Of the world’s camera colour transformations as implemented in the open-source stack, \(88\%\) come from one commercial product and \(11\%\) from measurements made by one individual. Twelve further entries are commented out; no reason is recorded.
712.2.3 The same neutral, different colours

Feeding an identical sensor response \((1,1,1)\) through each matrix and reading off the chromaticity:

\[ \begin {array}{lrr} \text {camera} & x & y \\ \hline \text {Apple QuickTake} & 0.3747 & 0.3025 \\ \text {Samsung Galaxy S6} & 0.2775 & 0.4208 \\ \text {Samsung Galaxy S9} & 0.2615 & 0.4480 \\ \text {Samsung Galaxy S7 / S8} & 0.2430 & 0.4711 \\ \text {Canon EOS 5DS} & 0.2194 & 0.4765 \\ \text {Nikon D3X} & 0.2014 & 0.4523 \\ \text {Sony ILCE-7} & 0.1873 & 0.4565 \\ \end {array} \]
Over all \(812\) entries the neutral response maps to \(x \in [0.119, 0.407]\) and \(y \in [0.233, 0.610]\), with median \((0.234, 0.450)\). The D65 white point is \((0.3127, 0.3290)\), and none of the cameras places its neutral there. The matrices are not calibrated to agree on a stimulus; they are corrections applied downstream of an assumed illuminant, and their spread is not an error to be reduced.
712.2.4 Two devices, one matrix

The Galaxy S7 and the Galaxy S8 carry identical matrices to four decimal places:

\[ \begin {pmatrix} +0.9927 & -0.3704 & -0.1024 \\ -0.3935 & +1.2758 & +0.1257 \\ -0.0389 & +0.1512 & +0.4993 \end {pmatrix} \]
as do the Galaxy S9 and the Galaxy Note 9. The source comments record the practice explicitly — same CMs: "Galaxy S7", "Galaxy S7 Edge" — and similar sharing appears throughout the table.

Successive Galaxy generations do not converge. The S6 neutral sits at \((0.2775, 0.4208)\), the S7/S8 at \((0.2430, 0.4711)\), the S9 at \((0.2615, 0.4480)\): the sequence moves and returns. Whatever the revisions track, it is not approach to a fixed value.

712.2.5 Two tables, one camera

The dcraw and LibRaw tables were compared on \(424\) models matched by name. Of these, \(378\) agree exactly and \(46\) do not, with a maximum element difference of \(0.3375\). The disagreements cluster in early Canon bodies:

\[ \begin {array}{lr} \text {Canon EOS-1Ds} & 0.1453 \\ \text {Canon EOS 1500D} & 0.1409 \\ \text {Canon EOS D60} & 0.1389 \\ \text {Canon PowerShot G2} & 0.1383 \\ \text {Canon EOS 10D / 300D} & 0.1378 \\ \end {array} \]
Against matrix elements whose typical magnitude is order unity, a discrepancy of \(0.14\) is a \(10\)–\(15\%\) difference in a coefficient. Two widely used open-source decoders assign different colours to the same raw file from the same camera, and neither records why.
712.2.6 The illuminant is not measured

Even with the matrix fixed, the sensor response is the product of the object’s reflectance and the illuminant’s spectrum. The two enter multiplicatively and cannot be separated from a single observation — the colour constancy problem. An estimate is therefore required, and the standard estimators are:

\[ \begin {array}{ll} \text {grey world} & \text {the scene average is neutral} \\ \text {max-RGB} & \text {the brightest response is neutral} \\ \text {shades of grey } (p) & \text {the Minkowski } p\text {-mean is neutral} \\ \text {grey edge} & \text {the average edge is neutral} \\ \text {percentile} & \text {the } q\text {th percentile is neutral} \\ \end {array} \]
Each is an assumption about the scene, not a measurement of the light. Manufacturers ship proprietary estimators, and the as-shot white balance recorded in a raw file is that estimator’s output rather than a property of the illumination.
712.2.7 The chain
\[ \begin {array}{ll} \text {photons} & \\ \quad \to \ \text {one channel per photosite} & \leftarrow \text {CFA layout (Bayer, X-Trans, RYYB)} \\ \quad \to \ \text {integer counts} & \leftarrow \text {black level, white level, bit depth} \\ \quad \to \ \text {three channels per pixel} & \leftarrow \text {demosaicing, } 66.7\%\ \text {interpolated} \\ \quad \to \ \text {illuminant-corrected} & \leftarrow \text {white-balance estimator} \\ \quad \to \ \text {XYZ} & \leftarrow \text {a matrix from a lookup table} \\ \quad \to \ \text {display values} & \leftarrow \text {tone curve, gamma, output colour space} \\ \quad \to \ \text {JPEG} & \leftarrow \text {noise reduction, sharpening, semantic processing} \\ \end {array} \]

Only the second line is measured, and it is the integer of §701 — a count above a threshold. Everything below it is a choice, and the matrix that assigns a colour to that count is an entry in a table of \(812\) rows, of which \(715\) trace to a single commercial converter and \(89\) to one person’s measurements.

\[ \boxed { \begin {aligned} &\text {measured} && \text {one channel per photosite, as integer counts} \\ &\text {interpolated} && 66.7\%\ \text {of the delivered colour data} \\ &\text {estimated} && \text {the illuminant, from an assumption about the scene} \\ &\text {looked up} && \text {the } 3\times 3\ \text {matrix, from a table of } 812 \\ &\text {measured spread} && (1,1,1) \mapsto x \in [0.119,\,0.407],\ y \in [0.233,\,0.610] \\ & && \text {dcraw vs LibRaw: } 46/424\ \text {disagree, up to } 0.34 \\ & && \text {Galaxy S7 and S8 share one matrix exactly} \end {aligned}} \]

Two phones photographing one object return different pictures because the colour of a sensor response is not a property of the response. It is assigned by a table, and the table is not the same table.

pict
Figure 916: The colour assigned to a sensor response is fixed by a lookup table. (a) The \(812\) camera colour matrices in LibRaw’s colordata.cpp, applied to the neutral sensor response \((1,1,1)\) and plotted in CIE \(xy\). The resulting chromaticities span \(x \in [0.119, 0.407]\) and \(y \in [0.233, 0.610]\); the D65 white point is marked. A response that is numerically neutral at the sensor is assigned a different colour by every entry. (b) Provenance of the entries, as recorded in the source itself: \(715\) (\(88.1\%\)) carry no attribution beyond the file header’s statement that all matrices come from the Adobe DNG Converter unless otherwise noted, \(89\) (\(11.0\%\)) are attributed to Dave Coffin’s dcraw, \(7\) to LibRaw and \(1\) to a Samsung DNG. No entry records the measurement from which its values were obtained. (c) Four successive generations of one manufacturer’s flagship sensor. The Galaxy S7 and S8 carry an identical matrix, as do the S9 and Note 9; the chromaticity assigned to a neutral response moves by \(\Delta x = 0.0345\), \(\Delta y = 0.0503\) across the four generations. (d) The same \(424\) cameras as decoded by LibRaw and by dcraw: \(378\) carry identical matrices, \(46\) differ, with a maximum element difference of \(0.338\). Two decoders reading the same file assign different colours to the same camera. (e) The distribution of each matrix element across all \(812\) entries. Six of the nine elements take both signs. (f) The stages between photons and a JPEG. One is a measurement.
Data and source availability

All figures in this subsection are extracted from two published source files, both open-source and version-controlled:

Matrix elements are stored as integers scaled by \(10^{4}\) and are divided by that factor throughout. Chromaticities are computed as \(x = X/(X{+}Y{+}Z)\), \(y = Y/(X{+}Y{+}Z)\) with \((X,Y,Z)^{\!\top } = M\,(1,1,1)^{\!\top }\).

The demosaicing algorithm count is the enumeration exposed by rawpy.DemosaicAlgorithm (LibRaw bindings). The white-balance estimators are the standard forms: grey world, max-RGB, shades of grey (Minkowski \(p\)-mean), grey edge, and percentile.

Derived tables are provided as libraw_matrices.csv (\(812\) rows: maker, model, black level, white level, nine matrix elements, provenance annotation, commented-out flag) and camera_matrices.csv (\(509\) rows from dcraw).

712.3 No Projection Is Undistorted

The word distortion names a departure from some reference rendering. This subsection states what the reference can be, and shows that no choice of it is privileged.

712.3.1 The setting

An imaging system maps directions to points on a plane,

\[ P: S^2 \longrightarrow \mathbb {R}^2 . \]
Write \(\mathcal {I}(P)\) for the set of geometric quantities that \(P\) preserves. The standard families and what each preserves:
\[ \begin {aligned} \text {pinhole} \qquad & r = f\tan \theta , && \text {straight lines} \in \mathcal {I} \\ \text {equidistant} \qquad & r = f\theta , && \text {angular distance from the axis} \in \mathcal {I} \\ \text {stereographic} \qquad & r = 2f\tan (\theta /2), && \text {angles between curves} \in \mathcal {I} \\ \text {orthographic} \qquad & r = f\sin \theta , && \text {the orthographic radial relation} \in \mathcal {I} \\ \text {equal-area} \qquad & r = 2f\sin (\theta /2), && \text {area ratios} \in \mathcal {I} \end {aligned} \]
For \(\theta \neq 0\) these disagree pointwise,
\[ f\tan \theta \neq f\theta \neq 2f\tan (\theta /2) \neq f\sin \theta , \]
so \(\mathcal {I}(P_i) \neq \mathcal {I}(P_j)\) for \(i \neq j\).
712.3.2 No projection preserves the metric

The question is whether some \(P\) preserves everything. It does not, and the obstruction is not technological.

The round sphere and the plane carry the metrics

\[ g_{S^2} = d\theta ^2 + \sin ^2\!\theta \, d\phi ^2, \qquad g_{\mathbb {R}^2} = dr^2 + r^2 d\phi ^2 , \]
with Gaussian curvatures
\[ K_{S^2} = \frac {1}{R^2}, \qquad K_{\mathbb {R}^2} = 0 . \]
Suppose \(P\) were an isometry, \(P^{*}g_{\mathbb {R}^2} = g_{S^2}\). By the theorema egregium, Gaussian curvature is an intrinsic invariant and is preserved by isometries, so
\[ P^{*}g_{\mathbb {R}^2} = g_{S^2} \;\Longrightarrow \; K_{S^2} = K_{\mathbb {R}^2} \;\Longrightarrow \; \frac {1}{R^2} = 0 , \]
which is false for finite \(R\). Hence
\[ \nexists \, P : S^2 \to \mathbb {R}^2 \quad \text {with}\quad P^{*}g_{\mathbb {R}^2} = g_{S^2} , \]
and consequently
\[ \forall P : S^2 \to \mathbb {R}^2, \;\; \exists \, I \;\; \text {with} \;\; I \notin \mathcal {I}(P) . \]
712.3.3 Consequence for the word

Distortion under \(P\) is the non-preservation of whatever quantity was selected as the reference. Since every \(P\) fails to preserve something, and since different \(P\) preserve different things, the assignment

\[ P \;\longrightarrow \; \mathcal {I}(P) \;\longrightarrow \; \text {what counts as distortion} \]
runs from the choice of projection to the definition, not the other way. Calling the fisheye frame in Figure 914 distorted is the statement that straightness was chosen as the invariant. Calling the rectilinear frame distorted — which an all-sky photometrist would — is the statement that angular distance was chosen.

The lens calibration of §712 is the same choice made operationally: coefficients are fitted until imaged lines are straight, so straightness is the objective of the fit and cannot also be its confirmation.

712.4 The Reference Is the Eye

The rectilinear convention is not arbitrary in origin. It is chosen because its output matches what a human observer reports seeing. That grounds the standard in the visual system, which raises the question of what the visual system itself preserves.

712.4.1 Spectral coverage

The electromagnetic spectrum spans, in wavelength, from below \(10^{-12}\) m to above \(10^{3}\) m. Human photopic sensitivity runs approximately \(380\)–\(700\) nm. On a logarithmic scale covering \(10^{-12}\) to \(10^{3}\) m,

\[ \frac {\log (700/380)}{\log (10^{3}/10^{-12})} = \frac {0.265}{15} = 1.8\times 10^{-2} , \]
under two percent of the decades available. The remaining ninety-eight percent is not dark; it is not transduced.
712.4.2 Spectral projection

Within the visible band, the reduction is more severe than the band limit suggests. An incident spectrum is a function \(S(\lambda )\) on \([380, 700]\) nm, an element of an infinite-dimensional space. The retina integrates it against three cone sensitivity functions,

\[ (L, M, S) = \left ( \int S(\lambda )\,\bar {l}(\lambda )\,d\lambda , \; \int S(\lambda )\,\bar {m}(\lambda )\,d\lambda , \; \int S(\lambda )\,\bar {s}(\lambda )\,d\lambda \right ), \]
a linear map \(\Pi \) from an infinite-dimensional space to \(\mathbb {R}^3\). Its kernel is infinite-dimensional: for any perceived colour there is an infinite-dimensional family of physically distinct spectra producing it. This is metamerism, and it is not a failure of the eye but the definition of what a colour is.

The comparison with the projections above is exact. There, \(P\) discarded some geometric invariant; here, \(\Pi \) discards all of \(S(\lambda )\) except three numbers. A photographic pipeline that reproduces \((L,M,S)\) correctly reproduces the colour and says nothing about the spectrum, and there is no setting at which it could.

712.4.3 The circularity

The chain of §712 terminates here:

\[ \begin {array}{ll} \text {colour correctness} & \leftarrow \text {sRGB / CIE standard} \\ \text {CIE standard} & \leftarrow \text {colour-matching functions} \\ \text {matching functions} & \leftarrow \text {human observers matching patches, 1931} \\ \text {geometric correctness} & \leftarrow \text {rectilinear projection} \\ \text {rectilinear} & \leftarrow \text {agreement with human report of straightness} \\ \end {array} \]
Both branches terminate in the human visual system, and the visual system is a projection with the properties established above: a \(1.8\times 10^{-2}\) fraction of the spectrum by decade, and within that fraction a map to \(\mathbb {R}^3\) with infinite-dimensional kernel.

Correcting an instrument so that its output matches what we see is a coherent procedure. What it establishes is agreement with a particular projection. It does not establish that the projection preserves what is there, and by §712.3 no projection does.

712.5 The reference cannot be validated

The question is whether the human visual projection is the correct one. The question is well-posed and the answer is that it cannot be settled, for a reason that is structural rather than practical.

Let \(\Pi \) denote the visual projection, and suppose we wish to establish that \(\Pi \) preserves what is there. Any such demonstration requires a comparison between \(\Pi \)’s output and the thing itself. Three routes are available and each closes.

(i) Comparison with direct observation. The comparison would be made by looking, which is an application of \(\Pi \). The result is \(\Pi = \Pi \), which holds for any \(\Pi \) whatever.

(ii) Comparison with instrumental measurement. A spectrometer resolves \(S(\lambda )\) far beyond three numbers, and a radio telescope records wavelengths \(\Pi \) does not transduce at all. But the instrument’s output is read — as a number on a display, a curve on a plot, a printed table — and the reading is an application of \(\Pi \). The instrument extends what can be brought into \(\Pi \)’s domain; it does not provide an exit from it. Sections 701 and 712 established the same point from the other side: the instrument’s own output is fixed by thresholds, interpolation rules and projection models chosen in advance.

(iii) Comparison with another observer. Two observers agreeing establishes that \(\Pi _1\) and \(\Pi _2\) have similar kernels. Since the kernel of a colour-matching projection is infinite-dimensional (§712.4), agreement in \(\mathbb {R}^3\) places no constraint on \(S(\lambda )\). Universal agreement among humans would establish that the human kernel is uniform, which is a fact about humans.

Formally: to validate \(\Pi \) one requires access to \(\ker \Pi \), and every available comparison is composed with \(\Pi \). The composition annihilates \(\ker \Pi \) by construction. The claim

\[ \Pi \text { preserves what is there} \]
is therefore not false; it is not a claim that any procedure can bear on.
712.5.1 What follows and what does not

Three things do not follow, and are stated to bound the conclusion.

It does not follow that vision is unreliable. A projection with a large kernel is exactly as reliable as its invariants: \(\Pi \) determines colour, and colour is what \(\Pi \) determines. Nothing above suggests that two people looking at the same wall will disagree about it.

It does not follow that instruments are useless. They enlarge the set of quantities that can be rendered into \(\Pi \)’s range, which is a substantive gain — a radio map contains information no eye receives. What they do not do is provide a rendering that is not a rendering.

It does not follow that there is nothing there. The argument concerns access, not existence.

What does follow is narrower. Statements of the form

\[ \text {this image shows what was there} \]
presuppose a projection, and §712.3 showed that every projection discards some invariant while preserving others. Which invariant is preserved is a choice, made before the exposure, and the choice conventionally made is the one whose output agrees with \(\Pi \). That convention is defensible on grounds of usefulness. It is not defensible on the grounds that \(\Pi \) is correct, because the correctness of \(\Pi \) is not a quantity to which any measurement has access.

The chain traced through this work terminates here. The redshift rests on a wavelength scale carried by a spectral line; the temperature rests on a thermometer scale fixed by convention; the count rests on a threshold; the image rests on a projection; and the projection is chosen to agree with a transduction that covers under two percent of the spectrum by decade and maps what it does cover onto three numbers. At no level does the sequence terminate in a comparison with the thing itself, because every comparison is made in the same medium.

\begin{equation} \boxed {\text {Reality (infinite-dim)} \xrightarrow {\;\Pi \;} \text {Percept (finite-dim)}} \tag{24642}\end{equation}