A Novel Restoration Technique for the Elimination of Salt and Pepper Noise using 8-Neighbors based Median Filter

Similar documents
Removal of High Density Salt and Pepper Noise through Modified Decision based Un Symmetric Trimmed Median Filter

Removal of High Density Salt and Pepper Noise along with Edge Preservation Technique

Noise Adaptive and Similarity Based Switching Median Filter for Salt & Pepper Noise

A Fast Median Filter Using Decision Based Switching Filter & DCT Compression

Absolute Difference Based Progressive Switching Median Filter for Efficient Impulse Noise Removal

AN ITERATIVE UNSYMMETRICAL TRIMMED MIDPOINT-MEDIAN FILTER FOR REMOVAL OF HIGH DENSITY SALT AND PEPPER NOISE

High Density Salt and Pepper Noise Removal in Images using Improved Adaptive Statistics Estimation Filter

Hardware implementation of Modified Decision Based Unsymmetric Trimmed Median Filter (MDBUTMF)

INTERNATIONAL JOURNAL OF RESEARCH IN COMPUTER APPLICATIONS AND ROBOTICS ISSN

Exhaustive Study of Median filter

A Noise Adaptive Approach to Impulse Noise Detection and Reduction

International Journal of Computer Science and Mobile Computing

Survey on Impulse Noise Suppression Techniques for Digital Images

A New Method for Removal of Salt and Pepper Noise through Advanced Decision Based Unsymmetric Median Filter

High Density Salt and Pepper Noise Removal Using Adapted Decision Based Unsymmetrical Trimmed Mean Filter Cascaded With Gaussian Filter

An Efficient Noise Removing Technique Using Mdbut Filter in Images

A Global-Local Noise Removal Approach to Remove High Density Impulse Noise

C. Efficient Removal Of Impulse Noise In [7], a method used to remove the impulse noise (ERIN) is based on simple fuzzy impulse detection technique.

An Optimization Algorithm for the Removal of Impulse Noise from SAR Images using Pseudo Random Noise Masking

Samandeep Singh. Keywords Digital images, Salt and pepper noise, Median filter, Global median filter

High Density Impulse Noise Removal Using Robust Estimation Based Filter

Using Median Filter Systems for Removal of High Density Noise From Images

FILTER FIRST DETECT THE PRESENCE OF SALT & PEPPER NOISE WITH THE HELP OF ROAD

Image Enhancement Using Improved Mean Filter at Low and High Noise Density

A Modified Non Linear Median Filter for the Removal of Medium Density Random Valued Impulse Noise

An Efficient Component Based Filter for Random Valued Impulse Noise Removal

An Improved Adaptive Median Filter for Image Denoising

VLSI Implementation of Impulse Noise Suppression in Images

HIGH IMPULSE NOISE INTENSITY REMOVAL IN MRI IMAGES. M. Mafi, H. Martin, M. Adjouadi

Generalization of Impulse Noise Removal

International Journal of Scientific & Engineering Research, Volume 4, Issue 7, July ISSN

REALIZATION OF VLSI ARCHITECTURE FOR DECISION TREE BASED DENOISING METHOD IN IMAGES

An Efficient Impulse Noise Removal Image Denoising Technique for MRI Brain Images

Adaptive Bi-Stage Median Filter for Images Corrupted by High Density Fixed- Value Impulse Noise

A fuzzy logic approach for image restoration and content preserving

Noise Removal in Thump Images Using Advanced Multistage Multidirectional Median Filter

Advanced Modified BPANN Based Unsymmetric Trimmed Median Filter to Remove Impulse Noise

Impulse Noise Removal and Detail-Preservation in Images and Videos Using Improved Non-Linear Filters 1

Image Enhancement Using Adaptive Neuro-Fuzzy Inference System

Review of High Density Salt and Pepper Noise Removal by Different Filter

Simple Impulse Noise Cancellation Based on Fuzzy Logic

COMPARISON OF NONLINEAR MEDIAN FILTERS: SMF USING BDND AND MDBUTM

Removal of Salt and Pepper Noise from Satellite Images

Decision Based Median Filter Algorithm Using Resource Optimized FPGA to Extract Impulse Noise

Dept. of ECE, V R Siddhartha Engineering College, Vijayawada, AP, India

ADVANCES in NATURAL and APPLIED SCIENCES

AN EFFICIENT ALGORITHM FOR THE REMOVAL OF IMPULSE NOISE IN IMAGES USING BLACKFIN PROCESSOR

An Efficient DTBDM in VLSI for the Removal of Salt-and-Pepper Noise in Images Using Median filter

An Adaptive Kernel-Growing Median Filter for High Noise Images. Jacob Laurel. Birmingham, AL, USA. Birmingham, AL, USA

AN AMELIORATED DETECTION STATISTICS FOR ADAPTIVE MASK MEDIAN FILTRATION OF HEAVILY NOISED DIGITAL IMAGES

Detail preserving impulsive noise removal

Efficient Removal of Impulse Noise in Digital Images

Fuzzy Logic Based Adaptive Image Denoising

MEDIAN FILTER AND ITS VARIATIONS- APPLICATION TO SICKLE CELL ANEMIA BLOOD SMEAR IMAGES

Enhancement of Image with the help of Switching Median Filter

A HYBRID FILTERING TECHNIQUE FOR ELIMINATING UNIFORM NOISE AND IMPULSE NOISE ON DIGITAL IMAGES

Impulse Noise Removal Based on Artificial Neural Network Classification with Weighted Median Filter

A SURVEY ON SWITCHING MEDIAN FILTERS FOR IMPULSE NOISE REMOVAL

Detection and Removal of Noise from Images using Improved Median Filter

Design of Hybrid Filter for Denoising Images Using Fuzzy Network and Edge Detecting

FPGA IMPLEMENTATION OF RSEPD TECHNIQUE BASED IMPULSE NOISE REMOVAL

Literature Survey On Image Filtering Techniques Jesna Varghese M.Tech, CSE Department, Calicut University, India

A Novel Approach to Image Enhancement Based on Fuzzy Logic

Impulsive Noise Suppression from Images with the Noise Exclusive Filter

Image Noise Removal by Dual Threshold Median Filter for RVIN

Fuzzy Based Adaptive Mean Filtering Technique for Removal of Impulse Noise from Images

Neural Network with Median Filter for Image Noise Reduction

Two Stage Robust Filtering Technique to Remove Salt & Pepper Noise in Grayscale Image

Color Image Denoising Using Decision Based Vector Median Filter

STUDY AND ANALYSIS OF IMPULSE NOISE REDUCTION FILTERS

Robust Statistics Based Algorithm to Remove Salt and Pepper Noise in Images

Removal of Impulse Noise Using Eodt with Pipelined ADC

Implementation of Block based Mean and Median Filter for Removal of Salt and Pepper Noise

Elimination of Impulse Noise using Enhanced Mean Median Filter for Image Enhancement

Adaptive Denoising of Impulse Noise with Enhanced Edge Preservation

An Efficient Gaussian Noise Removal Image Enhancement Technique for Gray Scale Images V. Murugan, R. Balasubramanian

Image Denoising Using A New Hybrid Neuro- Fuzzy Filtering Technique

Tan-Hsu Tan Dept. of Electrical Engineering National Taipei University of Technology Taipei, Taiwan (ROC)

High density impulse denoising by a fuzzy filter Techniques:Survey

New Spatial Filters for Image Enhancement and Noise Removal

Image Denoising Using Interquartile Range Filter with Local Averaging

Direction based Fuzzy filtering for Color Image Denoising

Neural Networks Applied for impulse Noise Reduction from Digital Images

Application of Fuzzy Logic Detector to Improve the Performance of Impulse Noise Filter

A Spatial Mean and Median Filter For Noise Removal in Digital Images

A Novel Color Image Denoising Technique Using Window Based Soft Fuzzy Filter

INTERNATIONAL JOURNAL OF PURE AND APPLIED RESEARCH IN ENGINEERING AND TECHNOLOGY

Contrast Enhancement using Improved Adaptive Gamma Correction With Weighting Distribution Technique

A New Adaptive Method for Removing Impulse Noise from Medical Images

A New Method to Remove Noise in Magnetic Resonance and Ultrasound Images

Image Denoising Using Statistical and Non Statistical Method

Image Denoising using Filters with Varying Window Sizes: A Study

Performance Analysis of Local Adaptive Real Oriented Dual Tree Wavelet Transform in Image Processing

Image De-noising Using Linear and Decision Based Median Filters

Improved Median Filtering in Image Denoise

Removal of High Density Salt and Peppers Noise and Edge Preservation in Color Image Through Trimmed Mean Adaptive Switching Bilateral Filter

A Novel Multi-diagonal Matrix Filter for Binary Image Denoising

SEPD Technique for Removal of Salt and Pepper Noise in Digital Images

I. INTRODUCTION II. EXISTING AND PROPOSED WORK

An Efficient Nonlinear Filter for Removal of Impulse Noise in Color Video Sequences

Transcription:

Advances in Computational Sciences and Technology ISSN 0973-6107 Volume 10, Number 9 (2017) pp. 2851-2874 Research India Publications http://www.ripublication.com A Novel Restoration Technique for the Elimination of Salt and Pepper Noise using 8-Neighbors based Median Filter S. Samsad Beagum Research Scholar, Department of Computer Science, Karpagam University, Karpagam Academy of Higher Education, Coimbatore- 641021, India. Dr. S. Sheeja Associate Professor and Head, Department of Computer Applications, Karpagam University, Karpagam Academy of Higher Education, Coimbatore- 641021, India. Abstract Adaptive median filters are used for eliminating salt and pepper noise that occurs during acquisition and transmission of images by digital electronic devices. These filters remove details from images during restoration. In this paper, a novel 8-neighbors based restoration technique is introduced to improve their performance in terms of sharpness and edge preservation. The proposed method restores a noisy pixel using the connectivity or similarity of gray-levels of the uncorrupted 8-neighbors of the noisy pixel. It is integrated in the restoration stage of the adaptive median filter () and its performance is measured in terms of Peak Signal to Noise Ratio (PSNR), Mean Absolute Error (MAE), Mean Structural Similarity index measures (MSSIM), Image Enhancement Factor (IEF) and Edge Preservation Ratio in terms of accuracy (EPRa) and robustness (EPRr). The modified shows an improvement of 1-10% in PSNR, 2-28% in MAE, 1-7% in MSSIM, 1-19% in EPRa and 1-26% in EPRr for noise densities ranging from 10-90%. Additionally, the proposed restoration technique is also integrated with a recent variation of the adaptive median filter proposed by Haidi et al. [19] (_Haidi) and the results prove that the integrated filter outperforms the existing filter. It shows an improvement of 1-14% in PSNR, 3-37% in MAE, 1-2% in MSSIM, 4-22% in EPRa and 5-21% in EPRr for noise densities ranging from 10-90%. The performance of the improved and the improved _Haidi are also compared with some existing high density saltand-pepper noise removal algorithms. The improved _Haidi outperforms all the compared filters at all noise densities. The results imply that the integration of the proposed restoration technique with any variation of the

2852 S. Samsad Beagum and Dr. S. Sheeja adaptive median filter may improve its performance in terms of noise suppression, sharpness and edge preservation. Keywords: Adaptive median filter, 8-neighbors based restoration technique, High density salt and pepper noise removal, Improved adaptive median filter INTRODUCTION Salt and pepper noise or bipolar impulse noise is caused by analog to digital conversion errors [1], [2] bit errors during transmission [1], [2] and due to leakage of currents in photodiodes in digital cameras. It is commonly removed using median filtering. The median filter which replaces every pixel in the image with the median of its neighborhood pixels is predominantly effective in eliminating salt and pepper noise [3], [4] but it removes substantial image detail when the noise density becomes high [3], [5]. The adaptive median filter [6] is a variation of the median filter that has been introduced to preserve sharpness and detail in images corrupted with salt and pepper noise [3] but it also eliminates image details at higher noise ratios since it uses median filtering to restore the noisy pixels [7]. Many variations of the median filter have been proposed [1], [8] [38] in the literature to remove salt and pepper noise with edge preservation at higher noise densities. Trivedi and Nilkanthan [28] proposed a mixture of adaptive median filtering technique and edge preserving regularization algorithm to eliminate high density salt and pepper noise without image blurring. Dash and Sathua [30] proposed a cascading algorithm for eliminating high density salt and pepper noise. The noisy image is processed first with the Decision Based Median filter [31] to reduce the noise. It is then processed with a slightly modified version of Decision based Partial Trimmed Global Mean Filter [32] or Modified Decision Based Unsymmetric Trimmed Median Filter [33] to eliminate the noise and improve the image. The modification involved substituting the noisy pixel with the mean of the filtering window if all the pixel values in the filtering window are either 0 or 255. Wei et al. [34] and Kumar et al. [35] have proposed improved median filters using slight modifications of the unsymmetric trimmed median filter [33]. Cohen [24] proposed the use of the median of N nearest good pixels to restore a corrupted pixel. Beagum et al. [18] proposed a restoration technique that restores a noisy pixel with the median of only its uncorrupted 4-neighbors, provided at least two of its 4-neighbors are uncorrupted. If more than two 4-neighbors of the noisy pixel are corrupted, the corrupted pixel is restored with the median of the filtering window. It was shown that their proposed technique gave enhanced edge preservation than the median filter.

A Novel Restoration Technique for the Elimination of Salt and Pepper Noise 2853 Several other filters [39] [44] using different techniques including fuzzy mean filtering, filtering based on non-uniform sampling and autoregressive model, vector filtering, morphological mean filtering, filtering based on sparse representation model have also been proposed recently for removing high density salt and pepper noise. In this paper, a new restoration technique using median filter has been proposed for better sharpness and edge preservation of images corrupted with salt and pepper noise. It has been integrated with the adaptive median filter [6]. [6] is the first adaptive median filter in literature and the several existing adaptive median filters [1], [8] [38] are variations of it. It is shown that the [6] integrated with the new restoration technique performs better than the original filter at higher noise ratios also. The resultant restored images show better edge preservation and sharpness. To prove the efficiency of the proposed restoration technique, it is also integrated with a recent variation of the adaptive median filter (_Haidi) proposed by Haidi et al. [19]. The results show that the improved filter (_Haidi_New) outperforms the existing filter. It is also shown that the improved algorithm performs better than some existing high density salt and pepper removal algorithms. The rest of the paper is organized as follows. The next section reviews the adaptive median filter and _Haidi followed by the explanation of the proposed technique. Then the improved algorithm for the adaptive median filter and _Haidi are presented. The qualitative and quantitative experimental results and conclusions are presented in the final sections. REVIEW OF ADAPTIVE MEDIAN FILTER AND ITS VARIATION Let X denote the original image and Y denote the image added with salt and pepper noise. Let the size of X be of size R C. If Gmin and Gmax denote the minimum and maximum pixel values that a corrupted pixel Y(i,j) can take, then Y(i,j) may have a gray-level as follows. G min, with probability a Y(i, j) = { G max, with probability b X(i, j), with probability 1 a b where a b denotes the noise level. Now, let the filtering window be denoted by FWw with size FW FW centered at Y(i,j) and FW FW = (2 M) + 1 and (2) FW = (2 L) + 1 (3) where L and R are non-negative integers, L>0 and M>0. Let B be the impulse detection matrix of size R C, used to hold the corruption status of all pixels in the (1)

2854 S. Samsad Beagum and Dr. S. Sheeja corrupted image. After the impulse detection stage, the value of D(i,j)=1 indicates that the pixel Y(i,j) is noisy. Initially D(i,j) = 0 for all (i,j). : The adaptive median filter compares every pixel in the image to its neighboring pixels in the filtering window. A pixel whose value does not lie between the minimum and maximum values of the filtering window is considered as impulse noise. The pixels identified as noisy are replaced by the median of the filtering window if the median value is not noisy. If the median value is noisy, the size of the filtering window is increased and the process is repeated until a noise-free median is found or the maximum window size is reached. Let the maximum size of the detection window used by the filter be FWmax FWmax. The adaptive median filter is presented in two stages. For each pixel Y(i,j) in the corrupted image, the first stage [14] to detect impulse by the adaptive median filter is given in the steps below. Step 1: Initialize L = 1, hence FW = 2L+1 = 3. Step 2: Calculate the minimum, median and maximum pixel values of the filtering window FWw as FWmin,w, FWmed,w, FWmax,w. Step 3: FWmed,w is not an impulse, if FWmin,w < FWmed,w < FWmax,w and go to step 5. Otherwise increase the window size, set L = L + 1, hence FW = FW+2. Step 4: Check if the window size FW has reached the maximum window size FWmax. Go to step 2, if FW FWmax. Y(i,j) is an impulse if FW FWmax and hence set the binary flag image D at location (i,j) to 1. Step 5: Y(i,j) is not an impulse, if FWmin,w < Y(i,j) < FWmax,w. Y(i,j) is an impulse otherwise and hence set the binary flag image D at location (i,j) to 1. The output of the impulse detection stage is the impulse detection matrix D which is given by 1, if Y(i, j)is an impulse D(i, j) = { from step 4 or 5 0, otherwise The second stage of adaptive median filter restores the noisy pixels with the median of the detection window. The restored image produced by the adaptive median filter is given by, Y(i, j), if D(i, j) = 0. Z(i, j) = { FW med,w (i, j), otherwise. (4) (5)

A Novel Restoration Technique for the Elimination of Salt and Pepper Noise 2855 _Haidi: The variation of adaptive median filter proposed by Haidi et al. [19] works in two stages. The first stage detects the noisy pixels in the original image using a simple procedure and produces an impulse matrix D as given by the following equation. 1, if Y(i, j) == 0 or D(i, j) = { Y(i, j) == 255 0, otherwise. i.e., if the pixel value has the minimum intensity 0 or maximum intensity 255, the pixel is marked as noisy. The second stage uses an adaptive median filter to restore the noisy pixels from stage 1. The second stage works only on the noisy pixels. The procedure begins with a FW=3 3 filtering window. For each noisy pixel, it counts the number of noise-free pixels in the filtering window. The same procedure used in the first stage is used to determine if a neighboring pixel is noise-free, i.e., if a neighboring pixel has a value > 0 and < 255, it is considered as noise-free. If the restoration stage can find atleast 8 noise-free pixels, the noisy pixel is replaced with the median of the 8 noise-free neighbors. If it could not find 8 noise-free neighbors, the window size is increased by 2. This step is repeated until it could find 8 noise-free pixels or a maximum window size of FWmax=39 is reached. When maximum window size is reached, the noisy pixel is replaced with the median of the filtering window. The restoration procedure is explained in the following steps. For each noisy pixel Y(i, j), Step 1: Initialize FW = 3 3. Step 2: Count the number of noise-free pixels goodn in the neighborhood. goodn = no. of noise-free pixels in FW FW Step 3: If goodn 8, replace the noisy pixel with the median of the noise-free pixels GFW med (i, j) and go to process the next pixel. Y(i, j) = median(noisefree pixels in FW FW) = GFW med (i, j) (8) Step 4: If goodn 8, increase the window size by 2, i.e., FW = FW + 2. Step 5: If the window size FW > maximum window size FWmax, replace the noisy pixel with the median of the filtering window FW med (i, j)and go to process the next pixel. Y(i, j) = median(all pixels in FW max FW max ) = FW med (i, j) (9) (6) (7)

2856 S. Samsad Beagum and Dr. S. Sheeja Step 6: If the window size FW > maximum window size FWmax, go to step 2. The restored image produced by _Haidi is given by, Z(i, j) = Y(i, j), if D(i, j) = 0; Otherwise GFW med (i, j), if goodn 8 and FW < FW max ; FW med (i, j), if goodn 8 { and FW > FW max (10) THE PROPOSED 8-NEIGHBORS BASED RESTORATION TECHNIQUE The 8-neighbors of a pixel along the four directions are classified as horizontal neighbors, vertical neighbors, main diagonal neighbors and anti-diagonal neighbors as shown in Figure 1. Figure 1. 8-Neighbors of a pixel The proposed restoration technique uses the concept of connectivity. Connectivity between pixels is defined as follows. Two pixels are connected, if they are neighbors and their gray-levels satisfy a specified criterion of similarity say, if their gray levels are equal. [3]. The proposed restoration technique is based on the fact that if the neighbors of a noisy pixel along any of the four directions {H, V, AD, MD} have the same gray-level, then there is a higher probability that the noisy pixel also has the same gray-level in the original image i.e., there is a higher probability that the noisy pixel is connected to its neighbors in the original image. This is explained with few examples below. (a) (b)

A Novel Restoration Technique for the Elimination of Salt and Pepper Noise 2857 (c) (d) Figure 2. (a), (b), (c), (d) - Four different 3 3 windows Figure 2 shows the 8-neighbors of the center pixel, in four different 3 3 windows, having three gray-levels - a, b, and c. The black pixel areas shown in these windows are supposed to have different gray-levels other than a, b and c. Let the center pixel be a pixel identified as noisy by the impulse detection stage. In Figure 2a, there is a higher probability that the center pixel has the value b in the original image similar to its two horizontal neighbors. If the center pixel is restored with the value b rather than the median of the filtering window, better edge preservation is obtained. In Figure 2b, the center pixel can be restored with either the value c or b rather than the median of the filtering window to produce a sharper output. In Figure 2c, either a or b is a better choice for restoration. In Figure 2d, there are no neighbors with similar gray-level along any of the four directions. In this case, the median of the good 8-neighbors is a better choice than the median of the filtering window. Based on the above facts, a new restoration technique is formulated for adaptive median filters that yields significantly better results in edge preservation, noise reduction and sharpness. The proposed technique is shown in Figure 3 and is explained as follows. 1. For each noisy pixel from the impulse detection stage, the proposed technique examines the 8-neighbors of the noisy pixel and their corruption status. 2. If at least two 8-neighbors of the noisy pixel are uncorrupted, the proposed technique analyses the gray levels of the 8-neighbors along the four directions and restores the noisy pixel as follows. a) If the gray levels of the neighbors along only one of the four directions are same, the proposed technique assigns this gray level to the noisy pixel. b) If the gray levels of the neighbors along more than one direction are same, the proposed technique assigns the median of all these similar gray levels to the noisy pixel. c) If the neighbors along no direction have the same gray level, it assigns the median of the gray levels of the uncorrupted 8-neighbors to the noisy pixel. 3. Otherwise, the noisy pixel is replaced with the median of the filtering window.

2858 S. Samsad Beagum and Dr. S. Sheeja Figure 3. Flowchart of the proposed method. Improved adaptive median filters integrated with 8-Neighbors based restoration technique The following are the variables used in the proposed restoration technique. goodn8 the number of uncorrupted pixels among the 8-neighbors of the noisy pixel Y(i,j). matchcnt the number of pairs of neighbors with similar gray-level along the four directions. For example if only the horizontal neighbors of the noisy pixel have the

A Novel Restoration Technique for the Elimination of Salt and Pepper Noise 2859 same gray-level, then the value of matchcount is 1. The value of matchcount = [0..4] where 0 specifies that the gray levels are not similar along any direction. glvlmatch the gray-level of the matching pair of neighbors when matchcount = 1. glvlmatchmed the median of the gray-level values of all matching pairs of neighbors when matchcount > 1. glvlneighmed the median of the gray-level values of all uncorrupted 8-neighbors. Now the restored image generated by the adaptive median filter integrated with 8- neighbors based restoration technique (N8-) is given by, Y(i, j), if D(i, j) = 0; Otherwise, FW med,w (i, j), if goodn8 < 2; glvlmatch, if goodn8 2 Z(i, j) = and matchcnt = 1; glvlmatch med, if goodn8 2 and matchcnt > 1; glvlneigh med, if goodn8 2 { and matchcnt = 0. (11) The restored image generated by the _Haidi integrated with 8-neighbors based restoration technique (N8-_Haidi) is given by, Z(i, j) = Y(i, j), if D(i, j) = 0; Otherwise glvlmatch, if goodn8 2 and matchcnt = 1; glvlmatch med, if goodn8 2 and matchcnt > 1; glvlneigh med, if goodn8 2 and matchcnt = 0; GFW med (i, j), if goodn8 < 2 and goodn 8 and FW < FW max ; FW med (i, j), if goodn8 < 2 and goodn 8 { and FW > FW max. (12)

2860 S. Samsad Beagum and Dr. S. Sheeja EXPERIMENTAL SETUP, RESULTS AND DISCUSSION Setup The algorithms are implemented in MATLAB version 7.6.0.324 (R2008a), installed in a PC with Intel Core i5 processor with 6 GB RAM. Several standard 8-bit gray scale images are used for testing the filters including the Bridge, the Camera-man, Lena, the Living-room and the Mandril, of size 512 512, with dynamic range [0, 255]. The test images are added with equal probability of salt and pepper noise (refer to Eq. (1)). and its improved algorithm N8-, _Haidi and its improved version N8-_Haidi are tested for all noise ratios from 10% to 90%. The maximum size of the detection window used by the to restore different noise levels [14] is shown in Table 1. Table 1. Maximum window size used in implementation Noise level < 25% 5 5 25% to 40% 7 7 41% to 60% 9 9 61% to 70% 13 13 71% to 80% 17 17 81% to 85% 25 25 86% to 90% 39 39 Wmax Wmax The performance of the algorithms is quantitatively determined using PSNR [36], MAE [36], MSSIM [45], IEF, EPRa [46] and robustness EPRr [46] measures. PSNR = 10 log 10 255 2 1 R C i,j (Z(i,j) X(i,j)) 2 (13) MAE = 1 R C i,j Z(i, j) X(i, j) (14) IEF = i,j (Y(i,j) X(i,j))2 i,j(z(i,j) X(i,j)) 2 (15) 1 MSSIM(X, Z) = NW i SSIM(x i, z i ) (16)

A Novel Restoration Technique for the Elimination of Salt and Pepper Noise 2861 where i,j denotes the pixel position; X, Y and Z denote the original, noisy and restored images respectively; R C gives the size of the images; NW is the number of windows used in MSSIM calculation; xi and zi are the portions of the original and restored images at window i; and SSIM(x, z) = (2 avg(x) avg(z)+c 1)(2 cov(x,z)+c 2 ) (avg(x) 2 +avg(z) 2 +C 1 )(σ 2 (x)+σ 2 (z)+c 2 ) (17) where avg refers to average; σ 2 refers to variance and cov refers to covariance; C1=(0.01 G max ) 2 and C2=(0.03 G max ) 2 by default [45]. MSSIM = [-1..1] where 1 specifies that the two images being compared are identical. The Edge Preservation Ratio is a quantitative measure for edge preservation in terms of accuracy and robustness and is given by, EPRa = EP X EP Z EP Z EPRr = EP X EP Z EP X EP Z (18) (19) where EPX and EPZ are the edge points extracted from the original image and the restored image respectively using the Canny Edge detector with a high threshold of 0.1 for strong edges and a low threshold of 0.04 for weak edges. RESULTS AND DISCUSSION The MAE, MSSIM, PSNR, IEF, EPRa and EPRr results given by and N8- for five of the test images are shown in Table 2, Figures 4 and 5 as bar graphs, Figure 6 and 7 as line graphs and Table 3 respectively. Figure 4 shows that for some images MSSIM remains the same for both filters at very low noise densities around 20% whereas for higher noise densities N8- has shown better results than. Table 2 and Figure 5 show that the MAE and PSNR results produced by N8- are better than those produced by the original filter at all noise ratios.

2862 S. Samsad Beagum and Dr. S. Sheeja Table 2. MAE values given by and N8- for various images Lena Bridge CameraMan LivingRoom Mandril N8- N8- N8- N8- N8-10% 0.96 0.93 2.41 2.39 0.56 0.53 1.59 1.56 1.46 1.45 20% 1.29 1.14 3.09 2.85 0.89 0.74 2.09 1.86 2.25 1.99 30% 1.74 1.45 4.16 3.60 1.31 1.02 2.81 2.36 3.23 2.64 40% 2.33 1.85 5.51 4.53 1.89 1.40 3.71 3.00 4.52 3.48 50% 3.07 2.36 7.08 5.68 2.59 1.86 4.79 3.84 6.07 4.51 60% 3.94 3.04 8.96 7.20 3.38 2.48 6.22 4.96 7.89 5.94 70% 5.09 4.03 11.30 9.35 4.55 3.47 7.76 6.39 10.16 7.96 80% 6.77 5.83 14.48 12.72 6.30 5.33 10.14 8.89 13.37 11.41 90% 9.73 9.24 19.44 18.54 9.17 8.63 13.98 13.34 17.91 16.96 Figure 4. Plot of MSSIM given by and N8- for 5 test images at all noise densities. (a) Lena (b) Bridge (c) CameraMan (d) LivingRoom (e) Mandril

A Novel Restoration Technique for the Elimination of Salt and Pepper Noise 2863 Figure 5. Plot of PSNR given by and N8- for 5 test images at all noise densities. (a) Lena (b) Bridge (c) CameraMan (d) LivingRoom (e) Mandril Figure 6. Plot of IEF given by and N8- for 5 test images at all noise densities. (a) Lena (b) Bridge (c) CameraMan (d) LivingRoom (e) Mandril

2864 S. Samsad Beagum and Dr. S. Sheeja Figure 7. Plot of EPRa given by and N8- for 5 test images at all noise densities. (a) Lena (b) Bridge (c) CameraMan (d) LivingRoom (e) Mandril Table 3. EPRr values given by and N8- for various images Lena Bridge CameraMan Living Room Mandril Noise N8- N8- N8- N8- N8-10% 0.787 0.797 0.718 0.724 0.839 0.853 0.751 0.756 0.816 0.817 20% 0.734 0.775 0.660 0.687 0.770 0.816 0.695 0.729 0.740 0.776 30% 0.650 0.715 0.586 0.641 0.695 0.759 0.619 0.675 0.666 0.734 40% 0.573 0.667 0.508 0.590 0.624 0.716 0.542 0.630 0.588 0.675 50% 0.495 0.613 0.440 0.530 0.533 0.643 0.464 0.562 0.497 0.608 60% 0.411 0.521 0.370 0.458 0.450 0.562 0.383 0.488 0.424 0.530 70% 0.322 0.419 0.294 0.364 0.344 0.447 0.305 0.390 0.334 0.422 80% 0.234 0.282 0.225 0.263 0.246 0.296 0.222 0.266 0.249 0.298 90% 0.147 0.160 0.162 0.172 0.157 0.167 0.146 0.156 0.175 0.186

A Novel Restoration Technique for the Elimination of Salt and Pepper Noise 2865 The percentage of improvement in PSNR, MAE, MSSIM, EPRa and EPRr measures given by N8- is calculated for the entire test images at all noise densities. It is found that the N8- shows 1-10% improvement in the PSNR measure, 2-28% improvement in the MAE measure, 1-7% improvement in the MSSIM index measure, 1-19% in EPRa and 1-26% in EPRr when compared to that of the original filter. This is a significant improvement in the performance of. The improvement in performance between the existing and the new methods is calculated as Percentage of improvement = (Result new method Result existing method ) Result existing method 100 (20) where Result is PSNR, MAE, MSSIM EPRa or EPRr measure. (a) (b) (c) (d) (e) (f) (g) Figure 8. Lena image (a) Original (b) Corrupted with 80% impulse noise (c) Restored by (d) Restored by N8- (e) Corrupted with 70% impulse noise (f) Restored by (g) Restored by N8-

2866 S. Samsad Beagum and Dr. S. Sheeja (a) (b) (c) (d) Figure 9. Camera-man image (a) Original (b) Corrupted with 60% impulse noise (c) Restored by (d) Restored by N8- (a) (b) (c) (d) Figure 10. Living-room image (a) Original (b) Corrupted with 50% impulse noise (c) Restored by (d) Restored by N8- Figures 8 to 10 show the various original, corrupted and restored test images by and N8- at various noise densities. The restored images clearly show that N8- achieves better edge preservation and sharpness than the original at all noise densities. The PSNR, MAE, IEF, MSSIM, EPRa and EPRr results given by _Haidi and N8-_Haidi are shown for all noise densities for the Lena image in Figure 11. Figure 12 shows the Lena image restored by _Haidi and N8-_Haidi at 80% noise ratio. The results clearly show that N8-_Haidi outperforms _Haidi at all noise ratios for all test images. It is found that the N8-_Haidi shows an improvement of 1-14% in PSNR, 3-37% in MAE, 1-2% in MSSIM, 4-22% in EPRa and 5-21% in EPRr than the original filter _Haidi for noise densities ranging from 10-90%. Also, as _Haidi is a recent filter that outperforms, N8- _Haidi also outperforms N8-.

A Novel Restoration Technique for the Elimination of Salt and Pepper Noise 2867 Figure 11. Plot of (a) PSNR (b) MAE (c) IEF (d) MSSIM (e) EPRa and (f) EPRr measures given by _Haidi and N8-_Haidi

2868 S. Samsad Beagum and Dr. S. Sheeja (a) (b) (c) (d) Figure 12. Lena image (a) Original (b) Corrupted with 80% noise. Restored by (c) _Haidi (d) N8-_Haidi 50 45 40 35 30 N8- DBA PSMF MDBUTMF _Haidi N8-_Haidi 25 20 15 10 5 0 10% 20% 30% 40% 50% 60% 70% 80% 90% Figure 9. Plot of PSNR values given by various high density salt and pepper noise removal filters for Lena image The performance of N8- and N8-_Haidi are compared with some existing high density salt and pepper noise elimination algorithms including [14], PSMF [37], DBA [38], and MDBUTMF [33] and _Haidi [19]. The plot of PSNR results given by the various filters for the Lena image is shown in Figure 9 and MAE results are shown in Table 4. The results show that N8-_Haidi performs better than all the other filters at all noise densities whereas N8- performs better at higher noise densities ranging from 40-70%. Above 70% -Haidi and N8-

A Novel Restoration Technique for the Elimination of Salt and Pepper Noise 2869 _Haidi performs better whereas for lower noise densities ranging from 10-30% MDBUTMF and N8-_Haidi gives better performance than all the other filters. Table 4. Comparison of MAE values given by various high density salt and pepper noise removal filters for Lena image Noise Density N8- _ Haidi N8- _ Haidi PSMF DBA MD BUTMF 10% 0.96 0.93 0.57 0.35 0.71 0.89 0.34 20% 1.29 1.14 0.90 0.76 1.54 1.62 0.75 30% 1.74 1.45 1.38 1.21 2.47 2.13 1.21 40% 2.33 1.85 1.90 1.70 3.59 2.84 1.76 50% 3.07 2.36 2.48 2.26 4.98 4.18 2.43 60% 3.94 3.04 3.15 2.88 6.71 7.22 3.29 70% 5.09 4.03 3.99 3.60 9.32 11.98 4.56 80% 6.77 5.83 5.18 4.79 13.33 23.23 6.89 90% 9.73 9.24 7.07 6.80 22.11 40.38 13.71 (a) (b) (c) (d) (e) (f)

2870 S. Samsad Beagum and Dr. S. Sheeja (g) (h) (i) Figure 10. Lena image (a) Original (b) Corrupted with 80% noise. Restored by (c) PSMF (d) DBA (e) (f) MDBUTMF (g) N8- (h) _Haidi (i) N8- _Haidi Figure 10 shows the Lena image restored by the various filters at 80% noise density. N8-_Haidi gives sharper restoration than all the other filters whereas N8- gives sharper restoration than all the other filters except _Haidi and N8- _Haidi. CONCLUSION In this paper, a novel 8-neighbors based restoration technique using median filter is proposed for eliminating salt and pepper noise. It restores a noisy pixel based on the similarity of gray levels among its good 8-neighbors. The proposed technique was integrated in the restoration stage of the and _Haidi. The integration improved their performance in suppressing salt and pepper noise with better sharpness and edge preservation at higher noise ratios also. It is shown that the improved N8- _Haidi outperforms some existing algorithms for eliminating high density salt and pepper noise. The results imply that the proposed technique can be combined in the second stage of any adaptive median filter algorithm to produce better restoration. In future, it is planned to integrate the proposed restoration technique with various adaptive median filters and compare their performance based on noise suppression and edge preservation. REFERENCES [1] Bovik, A., 2005, "Handbook of Image and Video Processing," Academic Press. [2] Shapiro, L. G., Stockman, G. C., 2001, "Computer Vision," Prentice-Hall.

A Novel Restoration Technique for the Elimination of Salt and Pepper Noise 2871 [3] Rafael, C. G., Richard, E., 2002, "Digital Image Processing," 2nd ed. Pearson Education. [4] Astola, J., Kuosmanen, P., 1997, "Fundamentals of Nonlinear Digital Filtering," CRC Press. [5] Hwang, H., Haddad, R. A., 1995, "Adaptive Median Filters: New Algorithms and Results," IEEE T. Image Process., 4, pp. 499-502. [6] Lin, H. M., Wilson Jr., A. N., 1988, "Median filters with adaptive length," IEEE T. Circuits Syst., 35, 675-690. [7] Ko, S-J., Lee, Y-H., 1991, "Center Weighted Median Filters and Their Applications to Image Enhancement," IEEE T. Circuits Syst., 38, 984-993. [8] Arce G. R., McLoughlin M. P., 1987, "Theoretical Analysis of max/median Filters," IEEE T. Acoust. Speech., 35, 60-69. [9] Nieminen, A., Heinonen, P., Neuvo Y., 1987, "A new class of detailpreserving filters for image processing," IEEE T. Pattern Anal., 9, 74-90. [10] Heinonen, P., Neuvo, Y., 1987, "FIR-median hybrid filters," IEEE T. Acoust. Speech., 35, 832-838. [11] Arce, G. R., Foster, R. E., 1989, "Detail preserving ranked-order based filters for image processing," IEEE T. Acoust. Speech., 37, 83-98. [12] Ding, R., Venetsanopoulos, A. N., 1987, "Generalized homomorphic and adaptive order statistic filters for the removal of impulsive and signaldependant noise," IEEE T. Circuits Syst., 34, 948-955. [13] Bernstein, R., 1987, "Adaptive non-linear filters for simultaneous removal of different kinds of noise in images," IEEE T. Circuits Syst., 34, 1275-1291. [14] Chan, R. H., Ho, C-W., Nikolova, M., 2005, "Salt-and-pepper noise removal by median-type noise detectors and detail-preserving regularization," IEEE T. Image Process., 14, 1479-1485. [15] Juneja, M., Sandhu, P. S., 2009, "Design and Development of an Improved Adaptive Median Filtering Method for Impulse Noise Detection," Int. J. Comput. Elec. Eng., 1, 627-630. [16] Kumar, V. R. V, Jothibasu, P., 2010, "Decision based adaptive median filter to remove blotches, scratches, streaks, stripes and impulse noise in images," Proc. IEEE 2010 Int. Conf. Image Process., pp. 117-120. [17] Lin, T. C., Yu, P-T., 2004, "Adaptive Two-Pass Median Filter Based on Support Vector Machines for Image Restoration," Neural Comput., 16, 333-354. [18] Beagum, S., Sathik, M. M., Hundewale, N., 2015, "Improved adaptive median filters using nearest 4-neighbors for restoration of images corrupted with fixed-valued impulse noise," IEEE Int. Conf. Computational Intelligence and Computing Research, pp. 1-8. [10.1109/ICCIC.2015.7435673]

2872 S. Samsad Beagum and Dr. S. Sheeja [19] Ibrahim, H., Kong, N. S. P., Ng, F., 2008, "Simple Adaptive Median Filter for the Removal of Impulse Noise from Highly Corrupted Images," IEEE T. Consum. Electr., 54, 1920-1927. [20] Nallaperumal, K., Varghese, J., Saudia, S., Mathew, S. P., Krishnaveni, K., Kumar, P., 2007, "A New Adaptive Class of Filter Operators for Salt & Pepper Impulse Corrupted Images," Int. J. Imaging Sci. Eng., 1, 44-50. [21] Eng, H-L., Ma, K-K., 2001, "Noise adaptive soft-switching median filter," IEEE T. Image Process., 10, 242 251. [22] Zhang S., Karim M. A., 2002, "A new impulse detector for switching median filters," IEEE Signal Proc. Lett., 9, 360 363. [23] Chen, T., Wu, H. R., 2001, "Adaptive Impulse Detection Using Center- Weighted Median Filters," IEEE Signal Proc. Lett., 8, 1-3. [24] Cohen, H. A., 1996, "Image Restoration via N-nearest neighbour classification," Proc. IEEE Int. Conf. Image Process., pp. 1005-1008. [25] Veerakumar, T., Esakkirajan, S., Vennila, I., 2014, "Edge preserving adaptive anisotropic diffusion filter approach for the suppression of impulse noise in images," AEU-Int. J. Electron. C., 68. [26] Luo, W., 2006, "Efficient removal of impulse noise from digital images, IEEE T. Consum. Electr., 52, 523-527. [27] Song, Y. H., Han, Y. S., Oh, J. S., Lee, S., 2013, "Edge Preserving Impulse Noise Reduction," J. Imaging Sci. Techn. [28] Trivedi, H. C., Nilkanthan, U., 2015, "Development of salt-and-pepper denoising techniques," Proc. IEEE Int. Conf. Electron. Computing and Communication Techn. [29] Nikolovo, M., 2004, "A variational approach to remove outlier and impulse noise," J. Math. Imaging Vision, 20, 99-120. [30] Dash, A., Sathua, S. K., 2015, "High Density Noise Removal By Using Cascading Algorithms," Proc. IEEE Int. Conf. Adv. Computing and Communication Technologies. [31] Balasubramanian, S., Kalishwaran, S., Muthuraj, R., Ebenezer, D., Jayaraj, V., 2009, "An efficient non-linear cascade filtering algorithm for removal of high density salt and pepper noise in image and video sequence," Proc. IEEE Int. Conf. Control Automation Communications and Energy Conservation, pp. 1-6. [32] Raza, M. T, Sawant, S., 2012, "High density salt and pepper noise removal through decision based partial trimmed global mean filter," Proc. IEEE Nirma University Int. Conf. Eng., pp. 1-5. [33] Esakkirajan S., Veerakumar T., Subramanyam A. N., PremChand C. H., 2011, "Removal of High Density Salt and Pepper Noise Through Modified Decision Based Unsymmetric Trimmed Median Filter," IEEE Signal Proc. Lett. 2011,

A Novel Restoration Technique for the Elimination of Salt and Pepper Noise 2873 18, 287-290. [34] Wei, Y., Yan, S., Yang, L., Fu, Y., 2014, "An improved median filter for removing extensive salt and pepper noise," Proc. IEEE Int. Conf. Mechatronics and Control. [35] Kumar, R. R., Vasanth, K., Rajesh, V., 2014, "Performance of the decision based algorithm for the removal of unequal probability salt and pepper noise in images," Proc. IEEE Int. Conf. Circuit Power and Computing Technologies. [36] Chen, T., Wu, H. R., 2001, "Space variant median filters for the restoration of impulse noise corrupted images," IEEE T. Circuits Syst-II, 48, 784 789. [37] Wang, Z., Zhang, D., 1999, "Progressive switching median filter for the removal of impulse noise from highly corrupted images," IEEE T. Circuits Syst-II, 46, 78-80. [38] Srinivasan, K. S., Ebenezer, D., 2007, "A new fast and efficient decisionbased algorithm for removal of high-density impulse noises," IEEE Signal Proc. Lett., 14, 189-192. [39] Wang, Y., Wang, J., Song, X., Han, L., 2016, "An Efficient Adaptive Fuzzy Switching Weighted Mean Filter for Salt-and-Pepper Noise Removal," IEEE Signal Process. Lett., 23(11), pp. 1582-1586. [10.1109/LSP.2016.2607785] [40] Wang, X., Shi, G., Zhang, P., Wu, J., Li, F., Wang, Y., Jiang, H., 2016, "High quality impulse noise removal via non-uniform sampling and autoregressive modelling based super-resolution," IET Image Process., 10(4), pp. 304-313. [10.1049/iet-ipr.2015.0216] [41] Roig, B., Estruch, V.D., 2016, "Localised rank-ordered differences vector filter for suppression of high-density impulse noise in colour images," IET Image Process., 10(1), pp. 24-33. [10.1049/iet-ipr.2014.0838] [42] Lin, P. H., Chen, B. H., Cheng, F. C., Huang, S. C., 2016, "A Morphological Mean Filter for Impulse Noise Removal," J. Display Tech., 12(4), pp. 344-350. [10.1109/JDT.2015.2487559] [43] Chen, C. L. P., Liu, L., Chen, L., Tang, Y. Y., Zhou, Y., 2015, "Weighted Couple Sparse Representation With Classified Regularization for Impulse Noise Removal," IEEE Trans. Image Process., 24(11), pp. 4014-4026. [10.1109/TIP.2015.2456432] [44] Bai, T., Tan J., 2015, "Automatic detection and removal of high-density impulse noises," IET Image Process., 9 (2), pp. 162-172. [10.1049/ietipr.2014.0286] [45] Wang, Z., Bovik, A. C., Sheikh, H. R., Simoncelli, E. P., 2004, "Image quality assessment, From error visibility to structural similarity," IEEE T. Image Process., 13, 600-612. [46] Yu, S., Li, R., Zhang, R., An, M., Wu, S., Xie, Y., 2016, "Performance

2874 S. Samsad Beagum and Dr. S. Sheeja Evaluation of Edge-directed Interpolation Methods for Noise-free Images," Proc. Fifth Int. Conf. Internet Multimedia Computing and Service, ACM, Huangshan, China, pp. 268-272. [10.1145/2499788.2499859]