101 Striking the colour layer on recorded mosaics

The monochrome records of Section 476.3 carry no colour filter, so colour could only be imposed on them. To strike colour where it was actually recorded, the same chain was applied to two camera raw files that store the sensor mosaic before demosaicing. Both are public-domain samples (CC0) from the raw.pixls.us archive [965]; files whose DNG had already been demosaiced (two smartphone samples) were detected and discarded automatically.

Table 248: Mosaic inputs.
Camera Recorded filter pattern Scene
Canon EOS 5D Mark III Bayer, \(2\times 2\) (RGGB) wall telephone and coiled cord
Fujifilm X100S X-Trans, \(6\times 6\) (not Bayer) colour reference chart

pict

Figure 220: Canon EOS 5D Mark III mosaic, struck layer by layer as in Fig. 215. In the colour row the recorded pattern is marked “recorded”. Raw sample from raw.pixls.us [965], CC0.

pict

Figure 221: Fujifilm X100S X-Trans mosaic, struck layer by layer. No \(2\times 2\) interpretation matches the recorded \(6\times 6\) pattern. Raw sample from raw.pixls.us [965], CC0.

Table 249: Colour obtained from the same recorded integers under each interpretation.
Interpretation Canon (Fig. 220) Fujifilm (Fig. 221)
grey, no demosaicing filter grid visible as a dot pattern dot pattern
RGGB yellow–green (recorded pattern) grey, chart colours lost
BGGR teal–cyan grey
GRBG magenta grey
GBRG magenta–violet grey
RGGB, channels permuted blue grey
RGGB, white balance \((2.2,1,0.45)\) orange orange

Three results follow. First, the same integers give five different overall colours depending only on which filter pattern is assumed and how the channels are ordered and weighted. Second, even the recorded pattern does not produce a “natural” colour: without a white balance and a colour matrix the Canon scene is yellow–green, so the colour normally seen is the product of those later steps, not of the mosaic alone. Third, when the assumed pattern does not match the recorded one, as for the X-Trans sensor, the colours of a reference chart disappear entirely and only grey remains. The remaining rows (readout, sampling, tone and object boundary) behave as in Section 476.3: \(D \bmod 2\) leaves pure noise, \(D \bmod 256\) turns the scene into contour bands, the reciprocal and \(\max D - D\) invert light and dark, \(\gamma =2.5\) renders the scene black, and each threshold rule draws different objects.

Remark 101.1. The operations here act on the recorded integers alone and do not depend on what was photographed. A Gram-stained slide recorded as a mosaic would pass through the same interpretations, and its violet and red would change in the same way, so the Gram call and every colour-based classification built on it would follow the chosen rule rather than the specimen.

PIC

Figure 222: The same abscess material under two stains: (A) Gram, (B) modified Kinyoun. Reproduced from [960], CC BY 4.0.

PIC

Figure 223: The same tissue under two stains: (A) periodic acid–Schiff, (B) Gomori methenamine silver. Reproduced from [946], CC BY 4.0.

Each panel presents an object: branching filaments in Fig. 222, ribbon-like hyphae in Fig. 223. Before any integer was written by the detector, a series of choices had already fixed what light would reach it, and hence what object could appear.

Table 250: What is fixed before the analog-to-digital converter.
Stage

Fixed at the time of recording

Specimen preparation

which material is taken, how it is fixed, smeared or cut, and how thick the layer is

Staining

which reagents, in what order, for how long, with what decolouriser and counterstain; this decides which regions absorb which wavelengths

Illumination

lamp and its spectrum, condenser setting, field and aperture stops

Optics

objective, immersion, magnification, focal plane; through the eyepiece, also the camera lens and its position

Filter mosaic

transmission of the red, green and blue filters over each pixel

Photodiode

conversion of light into charge, its efficiency at each wavelength, saturation

Exposure and readout

exposure time, gain, offset, bit depth of the converter

A change at any of these stages changes the integers themselves. Under the Gram procedure the material yields violet-red filaments on a magenta field; under the Kinyoun procedure the same material yields filaments on a blue field. Under periodic acid–Schiff the hyphae are pink-violet rings; under silver they are black tubes on a yellow ground. The object did not change between the panels; what changed is which stage-one choice was made, and the object visible in each panel is the one that choice allows. Neither report names the microscope, camera, illumination or exposure [946, 960], so for these figures every stage in Table 250 except the stain is unrecorded. Everything after the converter was struck in Section 476.3; everything before it is fixed in the integers and cannot be undone from the published picture. The object these figures show is therefore not given by the specimen alone, but by the specimen together with all of these unrecorded choices.

Neither report names the microscope or camera used [946, 960]. Both images are colour photographs and so passed through the full chain given above, from the colour filter mosaic and the converter to demosaicing, white balance, tone curve, compression, figure assembly and journal production; but which camera, which settings and which processing produced them is not recorded, so none of the earlier layers can be recovered or checked from the published figures.