A Gaussian approach to subspace based classification of hyperspectral images