HSI works by using a combination of a spectrometer and a camera. The spectrometer splits the incoming light into its constituent wavelengths, and the camera captures this data. The resulting dataset is a three-dimensional cube, often called a hyperspectral data cube, where the x and y dimensions represent spatial information and the z dimension represents spectral information.