Evolution algorithm for spectral image analysis