ENVI分类介绍
ENVI does not provide a KNN classification tool except as an option in the Feature Extraction module's object-based classification. In core ENVI, K-means is not the same as KNN. There is the Mahalanobis distance classifier, which is a similar distance-based classification. In fact, KNN can employ the Mahalanobis distance to determine the k nearest neighbors among the training data. But ENVI's Mahalanobis distance classifier doesn't choose the class for each pixel based on a KNN algorithm, where the chosen class would be the majority class of the k nearest neighbors to the given pixel among the training pixels. Instead, it chooses the class for each pixel based on the minimum Mahalanobis distance from that pixel to the mean of each training class. In the Feature Extraction module to ENVI, the KNN classifier is used on objects, or segments calculated in a previous step from the input image. So, it isn't individual pixels that are classified, it's objects. |