1. A method comprising: decomposing a set of spectral images of a sample into an unmixed image set, wherein each member of the unmixed image set corresponds to a spectral contribution from a different component in the sample; and classifying different parts of the sample into respective classes based on an image stack comprising one or more of the unmixed images.