Image filtering is often applied as a post–process to an image in order to reduce noise. The usage of smoothing filters such as median may reduce noise. Unfortunately, these filters, apart from noise reduction, also introduce some distortions. I present the usage of a few median type filters.
Here, I present a view from my home. I called this image 'secret garden'. I don't use the most popular images (like 'Lena'), because its use isn't obvious. On the left is the original image, on the right with impulse noise. In all simulations, I used 8-bit mono images of dimension pixels with added impulse noise with density value 0.05.
The standard median filter (SM) is a simple non-linear smoothing operation that takes a median value of the data inside a moving square window centred at the pixel
where and are the input and output of median filter respectively. Below, there are two images, on the left original image with added noise, on the right with applied SM filter for .
Another commonly used filter is a star-shaped median filter (SSM) in which the filter output is defined as median of considered pixel and its four neighbours.
Here, I present the usage of SSM filter for .
Weighted median filter (WM) is an extension of median filter, which gives more weight to some values within the window.
where denotes weights for image coordinates and denotes duplication procedure.
A special case of WM filter is a centre-weighted median filter (CWM), in which more weight to the central value of a window is given. By adjusting the weight coefficients, it is possible to suppress the noise.
where is non-negative integer. When , the CWM filter becomes the standard median filter.
I show the usage of CWM filter for and for respectively.
Here, I present the usage of CWM filter for and for respectively.
Multistage median filter (MM) based on applying different subsets of pixels within a 2-D moving window:
where values with are median values of elements set inside square window.
Finally, I present MM filter for .
For more information, please check in following books and articles:
1. William K. Pratt, Digital Image Processing, 2001
2.Rafael C. Gonzalez, Richard E. Woods, Digital Image Processing, Addison-Wesley Publishing Company, 1993
3. L. Yin, R. Yang, M. Gabbouj, Y.Neuvo, Weighted Median Filters: a Tutorial, IEEETransactions On Circuits and Systems II: Analog and Digital Signal Processing, vol. 43, No. 3, March 1996, pp. 157-192.
4. Sung-Jea Ko, Yong Hoon Lee, Center weighted median filters and their applications to image enhancement, IEEE Transactions on Circuits and Systems, Volume: 38, Issue: 9, September 1991.
5. X. Wang, Adaptive Multistage Median Filter,IEEE Transactions on Signal Processing, vol.40, No 4, April 1992.