
358 Unsupervised Classification
8.7.1 Segmenting a classified image
The ENVI Classic menu c ommand
C
lassification/Post Classification/Segmentation Image
provides a simple mechanism to convert a classification image into a segmented
image by means of blobbing, i.e., finding c onnected regions. Unfortunately, this
command does not r espect cla ss labels. The IDL program SEGMENT_CLASS_RUN,
which is described in Appendix C and an excerpt of which is shown in List-
ing 8.10, may be used as a replacement. In lines 2 to 1 2 of the listing, the
IDL function LABEL_REGION() is used to segment each selected class succes-
sively. Connected regions smaller than a user-defined ...