A Comparative Analysis On Image Denoising Using Different Median Filter Methods
A Comparative Analysis On Image Denoising Using Different Median Filter Methods
Abstract: In denoising, separation of noise from signal is a main issue, but with improved filter elimination of noise becomes
easier. In this paper nonlinear median filter is used for multi resolution condition, once in full resolution and afterward with
half resolution, denoising turns out to be greater. This method is a nonlinear model and is observed to be helpful in removing
Impulse noise, Gaussian and Speckle noise. Further, it is recommended that utilization of a nonlinear adaptive median filter
(AMF) delivers more satisfying picture with better denoising. The experimental results are based on the parameters likes Peak
Signal Noise Ratio (PSNR) and Structural Similarity Matrix (SSIM). It is demonstrated that the enhanced strategy gives a high
level of noise removal while protecting the edges and other data in the picture. This research is based on threshold calculation
which enhances the PSNR of the framework when contrasted with combination of Discrete Wavelet Transform & Adaptive
Median Filter (DWT-AMF) and other median based methods.
Keywords— PSNR; Adaptive Median; Structural Similarity Matrix; Gaussian Noise; Impulse Noise; Speckle Noise; Median
Filter; Discrete Wavelet Transform
I. INTRODUCTION
In computer vision, image processing turned out to be a necessary field in daily life applications such as computer tomography,
satellite television, face recognition, license plate recognition (LPR), magnetic resonance imaging (MRI) and geographical
information systems etc [1-2]. Denoising during image processing is a great challenge in various applications such as spatial domain
that refers to a plane digital image in which manipulation is done directly on image pixels and frequency domain refers to the study
of mathematical functions or signals with respect to frequency rather than time [2]. Images are used in various areas such as
education and medical but a certain amount of noise always exhibits during image processing which degrades the quality of image.
An image gets corrupted by noise during acquisition, transmission or during reproduction. Several reasons by which noise can be
produced by storage media device, digital camera, sensor or scanner. Reproduction of image from noisy signal is a great challenging
task. Image denoising techniques may used to remove the most of the unwanted information from an image. Image denoising
technique is used to improve the quality of the image from the noisy image. Noise may be classified such as impulsive noise,
AWGN, and speckle noise etc. Here researchers focuses on AWGN model only Using the denoising techniques, we reduce the noise
level as well as most of the edges of image and information much as possible [3].
Malini.S et al. [10] presented a new denoising algorithm for gray and color image. The use of nonlinear median filters in multi
resolution environment, one with full resolution and then with half resolution, gives better image denoising and visual quality. This
algorithm works simply compared to other, and equally well for gray and color images. It is useful in removing impulse noise as
well Gaussian and SN.
Dhanushree et al. [11] presented AMF and adaptive wavelet thresholding shrinkage technique for image de-noising. The noisy
image is passed through pre-processing MF to remove the noise and two level DWT is applied which is passed through post-
processing median filter to remove noise. Finally, Bays thresholding shrinkage is applied to all sub-bands to obtain a de-noised
image. The Inverse DWT is applied to reconstruct the image. The Image quality is measured in terms of the PSNR and is observed
that the proposed method obtains better PSNR compared to the existing method.
Panetta et al. [12] shows picture denoising as trying issue in imaging frameworks, particularly imaging sensors. In spite of different
research, the calculation has been to diminish it. This algorithm presented another idea of grouping to-arrangement similitude. This
likeness measure is a proficient technique to assess the substance closeness for pictures, particularly for edge data. The approach
varies from conventional picture preparing procedures, which depend on pixel and piece similarity.
Xiaofeng et al. [13] presented a new method to reduce noise in ultra sound medical images. In this method enhance original median
filter by use of directional suit templates instead of the symmetrical template to fit the directions of edges and textures. To determine
which directional template should be used, a local direction filter was proposed. The simulation result of proposed work on the
synthetic image is better in removing noise from ultra sound images. The PSNR value of proposed is better from other wiener and
median filter.
V. FILTERING TECHNIQUE
A. Discrete Wavelet Transform (DWT)
Discrete Wavelet Transform allows good spatial localization and has multi resolution facets, which are alike to the social image
scheme. In a similar way, this procedure displays robustness to low-pass and center cleaning. The turn out to be is situated on
waves, called wavelets, of varying frequency and confined duration. It supplies each frequency and spatial description of an image.
The wavelet change into decomposes the image into three spatial instructional materials, i.e. Vertical, horizontal and diagonal. It
decomposes the image into special frequency stages corresponding to the low frequency, middle frequency, and high frequency. The
magnitude of DWT coefficients is excessive in the lowest bands (LL) at every stage of decomposition and is least for other high
bands [4].
Neighborhood values: 115, 119, 120, 123,124, 125, 126, 127, 150
Median value: 124
C. Adaptive Median Filtering (AMF)
The AMF has been presented to evaluate the noisy pixel in an image. The evaluation of pixel as noise is done by comparing every
pixel in an image to its surrounding neighbor pixels. The window size of the neighborhood is modifiable, as well as the threshold for
the comparison. Those pixels that are different from its neighbors and are not structurally aligned to its surrounding pixel are
defined as impulse noise. Such noisy are exchanged with pixels of the neighborhood by the median value of a pixel that clears noise
detection test [6].
VI. RESULT ANALYSIS
A. Take any image M X M which is represented by where IM denotes the pixel values of an image.
B. Assume k X k be filtering window size “W” which is obtained using dividing of an image.
C. Denote IM (X) the intensity value of image IM at pixel location x. For 8-bit gray images, the value of dmax = 0 and dmin = 255.
Impulse noise is as follows:
(1)
Where dx is uniformly distributed in [dmax, dmin] and k shows the level of impulse noise.
D. Let represents a noisy image which is obtained by adding AWGN and SN k to original image IM then it can be said
that:
(2)
E. Apply 1DWT on the input image to split into four sub-bands: LL, LH, HL, HH and apply AMF on each band of DWT.
F. Let the gray levels of any pixel value, in any window ( ) of size k, are denoted by and it
becomes after arranging in increasing or decreasing manner and k is even or odd:
(3)
G. Using Eq. (3), it has a kxk matrix. The gray level at any pixel (i, j) is denoted by X(i, j)
(3)
H. In this step, estimate the sum of rows and columns of W are utilized for threshold calculation in this research which prompts
proficient noise detection. In each W, Ymin (minimum) and Ymax (maximum) are assessed which are utilized to sudden changes
distinguish in pixel values. With a specific end goal to estimation threshold, as a matter of first importance, the components
midpoints in singular rows and columns are and of W which is computed using this equation.
(4) (5)
I. This '' 2k’’, different sum values will be helpful for finding Ymin and Ymax. It is given by:
.
(6)
. (7)
J. Now, checked noisy pixels at of W using comparing it with & . If value lies among and
then it is denoted by noise free pixel otherwise noisy and it is replaced by median value.
. (8)
If found as noisy, then noise removal method is applied to this pixel, and W is moved to the next pixel location. For noise
filtering step, calculate the median of the W which has been helping to alter the gray intensity of the found noisy pixel.
K. Reconstruct the matrix using inverse DWT after applying AMF.
L. Mean square error (MSE) - It is used to find the sum of the squares of the "errors", between the input image and output image.
)2 (9)
Where M, N denoted pixel values in the input image, represent input image pixels, represent denoised image pixels.
M. Peak Signal to Noise Ratio (PSNR) - It is used to estimate the robustness of denoising w.r.t. the noise. With the presence of
noise, the image will be degrading the quality of the image. The image quality of output and input image is estimated. It is
given by
PSNR = 10 * log (P2 / MSE) (10)
N. Where p= maximum value in input image.
O. Structural Similarity Matrix (SSIM) - It estimates the similarity measure between the input image and output image.
(11)
Where µx is the sum of x, µy is the sum of y, sigma is the covariance of x and y, c1 = (K1L) 2, c2 = (K2L) 2, K1= 0.01 and K2 = 0.03 by
default and L is the dynamic range of pixel values.
The experimental results are based on test gray scale image of the cameraman, Barbara, and Lena. This simulation is based on
MATLAB software. The density of impulse noise, AWGN and SN are maintained in the image by using standard MATLAB
function.
Fig. 2. Image (a) Result on Impulse Noise with 40% noise density
Fig. 3. Image (a) Result on Gaussian Noise with 30% noise density
TABLE I. PSNR (DB)VALUES OF DIFFERENT FILTERS FOR BARBARA IMAGE DEGRADED BY DIFFERENT
NOISE
Noise DWT - Median Filter Adaptive Median Filter DWT-AMF Method [6]
Impulse [40%] 35.1384 25.7221 45.4676
Gaussian [30%] 30.4546 11.8181 22.9338
Speckle 40.0286 20.9505 40.0263
TABLE II.SSIM VALUES OF DIFFERENT FILTERS FOR BARBARA IMAGE DEGRADED BY DIFFERENT NOISE
Noise DWT -Median Filter Adaptive Median Filter DWT-AMF Method [6]
Impulse [40%] 0.3599 0.8643 0.7679
Gaussian [30%] 0.2063 0.0775 0.1006
Speckle 0.5083 0.4842 0.4707
In this Fig. 7 and Fig. 8 blue bar shows that DWF-MF value, green shows that AMF PSNR value and yellow shows that DWT-AMF
PSNR. It performed on Barbara image.
TABLE III. PSNR COMPARISON BETWEEN SEVERAL METHODS FOR CAMERAMAN IMAGE DEGRADED BY DIFFERENT NOISE
VII. CONCLUSION
There are two main processes: first is Noise Detection and second is Noise Removal. In noise detection stage, the concept of DWT
with AMF is used which offers high noise detection ability and efficiency. In DWT process, apply AMF on each band of DWT. It
improvises vastly the de-noised image DWT-AMF filter quality from 45.4676% for impulse noise on 40% noise density, but it
degraded for 22.9338% for Gaussian Noise on 30% noise density and 40.0263% for SN. In the further analysis, we will apply DWT
with Adaptive Dual threshold median filter for improving the noise detection stage.
REFERENCES
[1] Jadhav P. B., Dr. Sangale. S. M., “Image Denoising Techniques”, IJARCSSE, 2015.
[2] Sandeep Kumar, Sukhwinder Singh, and Jagdish Kumar, “A Study on Face Recognition Techniques with Age and Gender Classification”, In IEEE
International Conference on Computing, Communication and Automation (ICCCA), 5th-6th May 2017.
[3] Parmar, Jignasa M., and S. A. Patil. "Performance evaluation and comparison of modified denoising method and the local adaptive wavelet image denoising
method." The IEEE International Conference on Intelligent Systems and Signal Processing (ISSP), pp. 101-105, 2013.
[4] Agrawal, K., and Rajesh Singh. "A Survey: Digital Watermarking with its Applications Using Different Methods." International Journal of Digital Contents and
Applications, Vol. 2, No. 1, pp. 17-24, 2015.
[5] Vijayalakshmi, A., C. Titus, and H. Lilly Beaulah. "Image Denoising for different noise models by various filters: A Brief Survey." International Journal of
Emerging Trends & Technology in Computer Science (IJETTCS), Vol 3, No. 6, 2014.
[6] Sandeep Kumar, Sukhwinder Singh & Jagdish Kumar, “Automatic Face Detection Using Genetic Algorithm for Various Challenges”, International Journal of
Scientific Research and Modern Education, Volume 2, Issue 1, Page Number 197-203, 2017.
[7] Jubair, Md Imrul, Md Mizanur Rahman, Syed Ashfaqueuddin, and Imtiaz Masud Ziko. "An enhanced decision based adaptive median filtering technique to
remove Salt and Pepper noise in digital images."The IEEE 14th International Conference on Computer and Information Technology (ICCIT), pp. 428-433,
2011.
[8] Jiang, Danchi. "A SOM algorithm based procedure for MRI image processing under significant Rician noise." The IEEE 3rd Australian Control Conference
(AUCC), pp. 14-19, 2013.
[9] Lu, Zhenzhen, Weiyu Liu, Dahai Han, and Min Zhang. "A PDE-based Adaptive Median Filter to process UV detection image generated by ICCD." The IEEE
International Conference on Audio, Language and Image Processing (ICALIP), pp. 543-546, 2014.
[10] Malini, S., and R. S. Moni. "Image Denoising Using Multiresolution Analysis and Nonlinear Filtering." The IEEE Fifth International Conference on Advances
in Computing and Communications (ICACC), pp. 387-390, 2015.
[11] Dhanushree, V., and M. G. Srinivasa. "Image de-noising using median filter and DWT adaptive wavelet threshold." IOSR Journal of VLSI and Signal
Processing, Vol. 5, 2015.
[12] Panetta, Karen, Long Bao, and Sos Agaian. "Sequence-to-Sequence Similarity-Based Filter for Image Denoising." IEEE Sensors Journal, Vol 16, No. 11, pp.
4380-4388, 2016.
[13] Xiaofeng Zhang; Shi Cheng; Hong Ding, Huiqun Wu, Nianmei Gong and Rengui Cheng “Ultrasound Medical Image Denoising Based on Multi-direction
Median Filter” 8th International Conference on Information Technology in Medicine and Education, IEEE, 2016.