Zero-Majority filter (MAJZERO)
The MAJZERO filter is a standard majority filter which works in a 3x3 enviroment. Of each 9 pixels considered, the predominant value or class name of the other 8 pixels is assigned to the center pixel in the output map, only if the center pixel in the input map has value zero.
If the central pixel in the input map does not have value 0, the value or class name remains the same in the output map.
When 9 pixel values encountered in the input map are:
9 |
3 |
9 |
|
11 |
0 |
7 |
|
7 |
7 |
13 |
The predominant (most frequently occurring) value is 7. The value for the output pixel is thus 7. If you use the MAJZERO filter on a domain Class map, the predominant class name is selected.
See also: