Dimension reduction of hyperspectral image with rare event preserving