I was wondering if someone could help me write a majority filter for GRASS GIS. I have this map (see below) which I need to run a filter over to make the red areas a bit more dominant. I know I can use r.mapcalc but I'm just not sure of the formula.
The GRASS equivalent of a majority filter can be computed with the
But r.neighbors supports many other options in addition to this. Depending on what you're trying to accomplish, you could also do this by taking the values of interest and classifying them into a new raster, then perform