An improved median filter.

A modified median filtering technique offering improved smoothing performance while maintaining the edge-preserving ability of the conventional median filter is presented. It is shown how a mean filter outperforms a median filter in noise reduction except on or near the image boundaries. Along with the edge-preserving ability of the median filter, this observation forms the basis of the three-stage filtering algorithm which is described.