Majority filter (MAJORITY)
The MAJORITY filters is a standard majority filter which works in a 3x3 environment. Of each 9 pixels considered, the predominant value or class name is assigned to the center pixel in the output map. If no predominant value is found, the value or class name which is encountered first is used as output.
When 9 pixel values encountered in the input map are:
9 |
3 |
9 |
|
11 |
5 |
7 |
|
7 |
7 |
13 |
The predominant value is 7; the value for the output pixel is thus 7. If you use the MAJORITY filter on a domain Class map, the predominant class name is selected.
See also: