Computational techniques for spectral image analysis