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?

  • What tool are you using? Have you reviewed it's documentation? Is this a homework question? – PolyGeo Dec 13 '18 at 12:36
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.

|improve this answer|||||
  • thanks this is correct and was really what I was looking for. – shibu Dec 14 '18 at 4:58
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.

|improve this answer|||||
  • so for focal statistics the majority would then return null but the max would be 20 and range 17 etc – shibu Dec 13 '18 at 12:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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