1

enter image description here

Here both 12 and 13 are equal so would the neighborhood majority be null for this 3 by 3 neighborhood?

1
  • What tool are you using? Have you reviewed it's documentation? Is this a homework question?
    – PolyGeo
    Commented Dec 13, 2018 at 12:36

2 Answers 2

3

According to the documentation, no replacement will be done in your example:

The Majority Filter tool replaces cells based on the majority value in their contiguous neighborhoods. The tool has two criteria to satisfy before a replacement can occur. First, the number of neighboring cells with the same value must be large enough to be the majority value, or at least half the cells must have the same value (depending on the parameter specified). That is, three out of four or five out of eight connected cells must have the same value with the majority parameter and two out of four or four out of eight are needed for the half parameter. Second, those cells must be contiguous to the center of the specified filter (for example, three out of four cells must be the same). The second criteria concerning the spatial connectivity of the cells minimizes the corruption of cellular spatial patterns. If these criteria are not met, no replacement occurs, and the cell retains its value.

1
  • so for focal statistics the majority would then return null but the max would be 20 and range 17 etc
    – shibu
    Commented Dec 13, 2018 at 12:48
1

Input:

enter image description here

Focal statistics output:

enter image description here

Conclusion: If no solution found cell values replaced by NO DATA value.

1
  • thanks this is correct and was really what I was looking for.
    – shibu
    Commented Dec 14, 2018 at 4:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.