1. A method comprising using one or more processors to perform the following steps: 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; generating a composite image based on the set of spectral images of the sample, wherein the spatial intensities of two or more different members of a group consisting of the spectral images and the unmixed images are weighted differently and combined to produce the composite image, and classifying different parts of the sample into respective classes based on an image stack comprising one or more of the unmixed images and further comprising the composite image.