Image classification through spectral unmixing