Fig. 2

Schematic of the hypercube reconstruction process. a Three types of image deformation occur during flexible endoscopic imaging: translation, rotation and magnification. b To account for these deformations in composing the hypercube from the line-scan hyperspectral data (from sCam in Fig. 1), geometric transformation matrices (GM1…n) are estimated using co-registration of the independently acquired wide-field images w1…n (from wCam in Fig. 1). Scale arrows are 60 pixels. c 2D spectral images (S1…n) obtained at different positions contain spatial information on one axis (y) and spectral information on the second axis (wavelength). The spectrum encoded in the white dashed line on the image (left) is shown in the graph (right). d Applying the calculated geometric transformation matrices obtained in b to the spectral images c yields the reconstructed hypercube