How to filter-out small pixels of a classified image?

Hi, I would like to filter-out small pixels from a 2-classes classified image (Sentinel-2 data was used). What type of filter should I use?
Thanks

Please try right-clicking on the band > Create filtered band > Median

The name indicates that it creates a float number (e.g. 1.5 as an average between 1 and 2), but in my case it produced integer results (suitable for categorical rasters)
The following shows a classified image (left) compared to a median filtered classification of 3 (middle) and 7 (right) pixels.

1 Like