Semi supervised dimensionality reduction of hyperspectral images for classification