I'm trying to do filter images using Majority filter in ArcGIS. My input images is a float point raster image in .img format. There is an error saying "Invalid parameters". What does it mean?

  • 3
    Majority statistics apply only to categorical variables which must be represented by integer, not floating point, rasters. – whuber Apr 28 '14 at 16:07

Following up on the Comment by @whuber, the Majority Filter (Spatial Analyst) documentation says (with my bolding):

The input raster to be filtered based on the the majority of contiguous neighboring cells.

It must be of integer type.

|improve this answer|||||

Majority filter is mostly used as a tool in post processing stage to reduce the salt and pepper effect caused by isolated pixels in a thematic map. So it should be used on categorial raster as a zonal analysis. This means that even for a satellite image with integer DN values, it's not meaningful to use the majority filter.

|improve this answer|||||
  • This argument is illogical: from the fact that a tool is "mostly" used for some purpose does not mean that its application elsewhere is "not meaningful"! In fact majority filters have many (meaningful) uses besides post-processing. For example, it can be used to implement transitions in cellular automata, to detect blank regions in aerial images, and much more. – whuber Apr 30 '14 at 18:17

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.