A region growing algorithm has been developed to sample the training and test data. The
motivation for using region growing for sampling is to get a data set covering a relatively
homogeneous area. The spectral angle distance (SAD) [29] is used as the similarity criterion to
incorporate pixels to regions. Suppose X and Y are N dimensional spectral vectors for two pixels,
then the cosine value of the spectral angle