org.n52.wps.ags.spatialanalyst.math.generalization.majorityfilter MajorityFilter_sa Replaces cells in a raster based on the majority of their contiguous neighboring cells. Uses ArcObjects library - Spatial Analyst in_raster in raster The input raster that Majority Filter will be applied to. It must be of integer type. application/img application/GeoTIFF application/img number_neighbors number neighbors The number of neighboring cells to use in the kernel of the filter. FOUR — The kernel of the filter will be the four direct (orthogonal) neighbors to the present cell. This is the default. EIGHT — The kernel of the filter will be the eight nearest neighbors (a 3 by 3 window) to the present cell. FOUR EIGHT majority_definition majority definition The number of contiguous (spatially connected) cells that must be of the same value before a replacement will occur. MAJORITY — A majority of cells must have the same value and be contiguous. Three out of four or five out of eight connected cells must have the same value. HALF — Half of the cells must have the same value and be contiguous. Two out of four or four out of eight connected cells must have the same value. Using the Half setting will have a more smoothing effect. MAJORITY HALF out_raster out raster The raster to be created. application/img application/GeoTIFF application/img