I. Introduction
Ranked order filtering, which means extracting from a set of inputs, the one with the selected rank, is the generalized case of order statistic filtering. Usually the most important special cases of order statistic filtering are the extraction of the minimum, maximum or the median from a set of input values. These operations can be used for a variety of grayscale image processing functions such as median filtering, weighted median filtering and image processing techniques based on mathematical morphology, which require local minimum and maximum operations. In the case of soft morphology, also more general order statistics may be needed [1].