587 Dimensionality: Which Three

The haematoxylin analysis is limited in a way that only became visible on reconstruction: a scanned slide carries three numbers per pixel, and reconstructing thirty-one spectral bands from them produced an array of rank three. Varying the reconstruction within the null space of the colour-matching functions changed nothing that any subsequent step could see, because every subsequent step read only the three measured dimensions.

The question this leaves is what is lost, and it cannot be answered from a three-channel image. It can be answered where the spectrum was actually measured.

587.0.1 A scene measured in 200 bands

The AVIRIS scene over Indian Pines, Indiana comprises \(145 \times 145\) pixels in \(200\) retained bands spanning roughly \(400\) to \(2500\) nm. The data matrix has rank \(200\): every band carries information not present in the others.

Integrating the cube against three Gaussian sensitivities, as a colour camera does, reduces the rank to three and discards \(197\) dimensions. Five such three-channel cameras were constructed, differing only in where their sensitivities sit:

\[ \begin {array}{lrr} \text {camera} & \text {mean} & \text {s.d.} \\ \hline \text {RGB-like } (600/550/450) & 0.305 & 0.137 \\ \text {shifted } (700/600/500) & 0.306 & 0.143 \\ \text {NIR } (900/800/650) & 0.445 & 0.182 \\ \text {narrow } (620/540/470) & 0.303 & 0.146 \\ \text {SWIR } (2200/1650/1100) & 0.290 & 0.279 \\ \end {array} \]
587.0.2 The metamer set, with the spectra actually present

For the centre pixel, the null space of the three-channel map has dimension \(197\). Constructing spectra within it that reproduce the measured three channels exactly gives six admissible \(200\)-dimensional spectra differing by up to \(0.054\) in reflectance, with a residual in the three channels of \(2\times 10^{-16}\).

587.0.3 Partitioning the scene

Clustering the pixels into eight groups, under seven representations of the same data:

\[ \begin {array}{lrrrr} \text {representation} & \text {dims} & \text {silhouette} & \text {largest region} & \text {regions} > 1\% \\ \hline \text {full 200 bands} & 200 & 0.297 & 18.4\% & 8 \\ \text {RGB 3 channels} & 3 & 0.490 & 21.0\% & 8 \\ \text {SWIR 3 channels} & 3 & 0.393 & 22.7\% & 8 \\ \text {PCA 2} & 2 & 0.397 & 18.8\% & 8 \\ \text {PCA 5} & 5 & 0.364 & 18.2\% & 8 \\ \text {PCA 30} & 30 & 0.307 & 18.4\% & 8 \\ \end {array} \]
and comparing the resulting partitions by adjusted Rand index:
\[ \begin {array}{lrrrrr} & \text {full 200} & \text {RGB 3} & \text {SWIR 3} & \text {PCA 2} & \text {PCA 30} \\ \hline \text {full 200} & 1.000 & 0.362 & 0.435 & 0.912 & 0.993 \\ \text {RGB 3} & 0.362 & 1.000 & 0.207 & 0.368 & 0.363 \\ \text {SWIR 3} & 0.435 & 0.207 & 1.000 & 0.437 & 0.435 \\ \end {array} \]

Three results follow. Reducing to two principal components preserves the partition almost entirely (\(\mathrm {ARI}=0.912\)), so the number of dimensions is not what matters. Reducing to three fixed bands does not (\(0.362\) for the visible, \(0.435\) for the shortwave infrared), so which three does. And two three-channel representations of the same scene agree at \(\mathrm {ARI}=0.207\) — barely better than unrelated partitions.

The silhouette coefficient runs the other way. The visible three-channel representation scores \(0.490\), the highest of the seven; the full \(200\)-band data scores \(0.297\), the lowest. By the measure conventionally used to judge whether a clustering is well separated, discarding \(197\) dimensions improves the result.

587.0.4 Back to the section

A scanned histology slide is the three-channel case. The partition it supports — nucleus against cytoplasm, and the counts are the partition available in whichever three dimensions the scanner’s filters selected. Whether a different three, or the full spectrum, would divide the same tissue differently is not answerable from the file, and the apparent cleanness of the separation is not evidence that it would not.

pict