To apply the algorithms 2DPCA and 2DLDA on the feature extract on hyperspectral image, we window on the each pixel on the image. Then, each pixel could be turn into a small image patch, which could be treated as a two dimension matrix or an image. The advantages of 2DPCA and 2DLDA over other algorithms are to make use of both the spatial information and the spectral information of each pixel in the process of feature extracting of hyperspectral image.