Reassigns low probability pixels to unknown class
Reassigns low probability pixels in each class of a classified image to the unknown class. Inputs are a classified image, the corresponding maximum likelihood/chi-square image, and a statistics file that contains the histograms of class probabilities, which are obtained as the output from the program BAYES. It produces an output classified image with those pixels with maximum likelihood/chi-square values less than a specified threshold assigned to the "unknown" class.
- IN
- Input image. This is usually obtained from BAYES and must be BYTE and single band.
- INMAXCHI
- Maximum likelihood/chi-square image. This is produced from BAYES. Each pixel in this image represents the maximum likelihood value/chi-square "tail-rejection" area of the corresponding input classified image pixel.
- INSTAT
- Statistics file that contains class histograms. This is produced from BAYES. The percentage of pixels assigned to the unknown class are computed from the histograms in this file.
- OUT
- Output image. Specifies the output image with pixels lower than the specified threshold assigned to the unknown class.
- PIXVAL(255)
- Pixel value that will be assigned to the pixels whose maximum likelihood value/chi-square "tail-rejection" area is lower than the specified threshold. These belong to the unknown class.
- THRPERC(--)
- Threshold percentage. This percentage will be scaled to 0-255. The image pixels with their maximum likelihood value/chi-square "tail-rejection" area lower than this value will be defined as the unknown class. If THRPERC is defaulted, then prompts will be made to get the threshold percentage for each class in the input classified image.
All the pixels in the input classified image BAYES.CLASS whose values in the maximum likelihood image BAYES.MAX are less than 13 (=0.05 x 255) are classified as unknown with a value of 255 in the output classified image BAYES.UNK.
All the pixels whose values in the chi-square (tailrejection area) image are less than 6 (= 0.025 x 255) are classified as unknown with a value of 0 assigned to them. Thus, all pixels in the 2.5 percent tail-rejection area are classified as unknown.
INMAXCHI, the second output image from the program BAYES, is either a scaled maximum likelihood image or a scaled probability image based on the chi-square values (henceforth referred to as a "chi-square image"). The parameter THRPERC is specified as a percentage. All pixels whose values in the image INMAXCHI are less than the user-specified threshold THRPERC/100 X 255 (rounded to the nearest integer) are assigned to the unknown class. Thus for the maximum likelihood image, any pixel whose maximum likelihood value is less than the specified threshold is assigned to the unknown class.For the chi-square image, the values in the image INMAXCHI represent the scaled cumulative tail-rejection area for the corresponding pixels. For example, if all the pixels in the 5 percent tail-rejection region are to be assigned to the unknown class, the parameter THRPERC has to be set to 5. This means that all pixels whose values in the image INMAXCHI are greater than or equal to 13 (= 0.05 x 255) have a probability of at least 95 percent of correct classification.
The unknown pixels are assigned a value of PIXVAL. The number of pixels assigned to the unknown class and the percentage are printed out. The percentage is computed from the histograms in the statistics file INSTAT.
Use classified image from BAYES as input.
The statistics file output from BAYES must be used.
The statistics file output from BAYES must be used.
The statistics file output from BAYES must be used.
Do not specify window for input image.
Check input image name
Check output file name
Use statistics file from BAYES.
Check input file specification.
Check output file specification.
Use chi-square image from BAYES.
Use statistics file from BAYES.