Spectral imaging involves the collection of data across a wide range of wavelengths, from the ultraviolet to the infrared. This data is then processed to generate an image where each pixel contains a full spectrum. The technique can be employed using various modalities such as hyperspectral imaging and multispectral imaging. These modalities differ in the number of wavelengths they capture and the resolution of the spectral data.