Rank filter

With ranking filters, the grey values of the pixels in a defined area around a pixel are collected, sorted by size and ranked. A grey value is then selected from this sorted list to replace the grey value of the current pixel.
The Radius setting defines the size of the area to collect the pixels gray values in.