Efficient adaptive fuzzy-based switching weighted average filter for the restoration of impulse corrupted digital images

Similar documents
Iterative Removing Salt and Pepper Noise based on Neighbourhood Information

REMOVAL OF HIGH DENSITY IMPULSE NOISE USING MORPHOLOGICAL BASED ADAPTIVE UNSYMMETRICAL TRIMMED MID-POINT FILTER

Real-Time Impulse Noise Suppression from Images Using an Efficient Weighted-Average Filtering

Modified Directional Weighted Median Filter

A Fourier Extension Based Algorithm for Impulse Noise Removal

Fast restoration of natural images corrupted by high-density impulse noise

Implementation of efficient Image Enhancement Factor using Modified Decision Based Unsymmetric Trimmed Median Filter

Removing Salt and Pepper Noise using Modified Decision- Based Approach with Boundary Discrimination

DESIGN OF A NOVEL IMAGE FUSION ALGORITHM FOR IMPULSE NOISE REMOVAL IN REMOTE SENSING IMAGES BY USING THE QUALITY ASSESSMENT

IMPULSE NOISE REMOVAL USING IMPROVED PARTICLE SWARM OPTIMIZATION

A ROBUST LONE DIAGONAL SORTING ALGORITHM FOR DENOISING OF IMAGES WITH SALT AND PEPPER NOISE

A Decision Based Algorithm for the Removal of High Density Salt and Pepper Noise

CHAPTER 3 ADAPTIVE DECISION BASED MEDIAN FILTER WITH FUZZY LOGIC

SURVEY ON IMAGE PROCESSING IN THE FIELD OF DE-NOISING TECHNIQUES AND EDGE DETECTION TECHNIQUES ON RADIOGRAPHIC IMAGES

MULTICHANNEL image processing is studied in this

High Density Impulse Noise Removal Using Modified Switching Bilateral Filter

RESTORATION OF DEGRADED DOCUMENTS USING IMAGE BINARIZATION TECHNIQUE

An Effective Denoising Method for Images Contaminated with Mixed Noise Based on Adaptive Median Filtering and Wavelet Threshold Denoising

Fuzzy Weighted Adaptive Linear Filter for Color Image Restoration Using Morphological Detectors

An Iterative Procedure for Removing Random-Valued Impulse Noise

A Denoising Framework with a ROR Mechanism Using FCM Clustering Algorithm and NLM

Image denoising using curvelet transform: an approach for edge preservation

Patch-Based Color Image Denoising using efficient Pixel-Wise Weighting Techniques

A Switching Weighted Adaptive Median Filter for Impulse Noise Removal

High Density Salt and Pepper Noise Filter based on Shepard Interpolation Method

A DECISION BASED UNSYMMETRICAL TRIMMED MIDPOINT ALGORITHM FOR THE REMOVAL OF HIGH DENSITY SALT AND PEPPER NOISE

A Survey on Edge Detection Techniques using Different Types of Digital Images

Image Quality Assessment Techniques: An Overview

Enhanced Decision Median Filter for Color Video Sequences and Medical Images Corrupted by Impulse Noise

Texture Image Segmentation using FCM

Adaptive Median Filter for Image Enhancement

A new approach of hybrid switching median filter for very low level impulse noise reduction in digital images

Image denoising in the wavelet domain using Improved Neigh-shrink

CHAPTER 2 ADAPTIVE DECISION BASED MEDIAN FILTER AND ITS VARIATION

Image restoration. Restoration: Enhancement:

Denoising Method for Removal of Impulse Noise Present in Images

Fuzzy Mathematical Approach for the Extraction of Impulse Noise from Muzzle Images

Noise Reduction in Image Sequences using an Effective Fuzzy Algorithm

Filtering of impulse noise in digital signals using logical transform

An Optimum Adaptive Parameterized Mask NHA Based Image Denoising

Title. Author(s)Smolka, Bogdan. Issue Date Doc URL. Type. Note. File Information. Ranked-Based Vector Median Filter

An Efficient Switching Filter Based on Cubic B- Spline for Removal of Salt-and-Pepper Noise

Development of Video Fusion Algorithm at Frame Level for Removal of Impulse Noise

Digital Image Fundamentals

Image Processing Lecture 10

ADDITIVE NOISE REMOVAL FOR COLOR IMAGES USING FUZZY FILTERS

Filtering Images. Contents

A Combinatorial Algorithm with Transportation Map Regularization for Image Restoration from Salt and Pepper Noise

IMAGE DE-NOISING IN WAVELET DOMAIN

EE795: Computer Vision and Intelligent Systems

Efficient Image Denoising Algorithm for Gaussian and Impulse Noises

Enhanced Cellular Automata for Image Noise Removal

A Competent Segmentation of Volcanic Eruption Flow through Volcano Using Fuzzy C-Means and Texture Segmentation Filter

NEW HYBRID FILTERING TECHNIQUES FOR REMOVAL OF GAUSSIAN NOISE FROM MEDICAL IMAGES

A SIMPLE ALGORITHM FOR REDUCTION OF BLOCKING ARTIFACTS USING SAWS TECHNIQUE BASED ON FUZZY LOGIC

IJRASET: All Rights are Reserved 7

COMPARISON BETWEEN K_SVD AND OTHER FILTERING TECHNIQUE

Distinguishing the Noise and image structures for detecting the correction term and filtering the noise by using fuzzy rules

Noise Suppression using Local Parameterized Adaptive Iterative Model in Areas of Interest

Comparative Analysis of Edge Detection Algorithms Based on Content Based Image Retrieval With Heterogeneous Images

Optimized Watermarking Using Swarm-Based Bacterial Foraging

Hybrid filters for medical image reconstruction

Robust Shape Retrieval Using Maximum Likelihood Theory

Image Processing. Traitement d images. Yuliya Tarabalka Tel.

FPGA Implementation of a Nonlinear Two Dimensional Fuzzy Filter

Available online at ScienceDirect. Procedia Computer Science 54 (2015 ) Mayank Tiwari and Bhupendra Gupta

Low Contrast Image Enhancement Using Adaptive Filter and DWT: A Literature Review

An Edge Based Adaptive Interpolation Algorithm for Image Scaling

MODIFIED ADAPTIVE CENTER EIGHTED MEDIAN FILTER FOR UPPRESSINGIMPULSIVE NOISE IN IMAGES

Automatic Detection of Texture Defects using Texture-Periodicity and Gabor Wavelets

A Fuzzy Impulse Noise Filter Based on Boundary Discriminative Noise Detection

WEINER FILTER AND SUB-BLOCK DECOMPOSITION BASED IMAGE RESTORATION FOR MEDICAL APPLICATIONS

Image Enhancement: To improve the quality of images

CHAPTER 7. Page No. 7 Conclusions and Future Scope Conclusions Future Scope 123

A NEW ROBUST IMAGE WATERMARKING SCHEME BASED ON DWT WITH SVD

PERFORMANCE MEASURE OF LOCAL OPERATORS IN FINGERPRINT DETECTION ABSTRACT

An Intelligent Recursive Algorithm for 95% Impulse Noise Removal in Grayscale and Binary Images using Lifting Scheme

A Comparative Analysis of Noise Reduction Filters in Images Mandeep kaur 1, Deepinder kaur 2

Express Letters. A Simple and Efficient Search Algorithm for Block-Matching Motion Estimation. Jianhua Lu and Ming L. Liou

Image Restoration and Reconstruction

Fig.1 Basic model for de-noising of image.

FPGA IMPLEMENTATION FOR REAL TIME SOBEL EDGE DETECTOR BLOCK USING 3-LINE BUFFERS

An Efficient Single Chord-based Accumulation Technique (SCA) to Detect More Reliable Corners

Fuzzy Inference System based Edge Detection in Images

Analysis of Image and Video Using Color, Texture and Shape Features for Object Identification

Removing a mixture of Gaussian and impulsive noise using the total variation functional and split Bregman iterative method

Image Enhancement in Spatial Domain (Chapter 3)

Image Restoration and Reconstruction

IMAGE RESTORATION VIA EFFICIENT GAUSSIAN MIXTURE MODEL LEARNING

Quaternion-based color difference measure for removing impulse noise in color images

Restoration of Images Corrupted by Mixed Gaussian Impulse Noise with Weighted Encoding

An Implementation of Spatial Algorithm to Estimate the Focus Map from a Single Image

Adaptive Wavelet Image Denoising Based on the Entropy of Homogenus Regions

New structural similarity measure for image comparison

A new predictive image compression scheme using histogram analysis and pattern matching

An Improved Approach For Mixed Noise Removal In Color Images

CHAPTER 6. 6 Huffman Coding Based Image Compression Using Complex Wavelet Transform. 6.3 Wavelet Transform based compression technique 106

SIMULATIVE ANALYSIS OF EDGE DETECTION OPERATORS AS APPLIED FOR ROAD IMAGES

INTERNATIONAL JOURNAL OF ELECTRONICS AND COMMUNICATION ENGINEERING & TECHNOLOGY (IJECET)

Robust Descriptive Statistics Based PSO Algorithm for Image Segmentation

Transcription:

Published in IET Image Processing Received on 19th April 2013 Revised on 27th June 2013 Accepted on 27th July 2013 ISSN 1751-9659 Efficient adaptive fuzzy-based switching weighted average filter for the restoration of impulse corrupted digital images Justin Varghese 1, Mohamed Ghouse 2, Saudia Subash 3, Madappa Siddappa 4, Mohamed Samiulla Khan 1, Omer Bin Hussain 1 1 College of Computer Science, King Khalid University, Abha, Kingdom of Saudi Arabia 2 Department of Computer Science and Engineering, Rayalseema University, Kurnool, AP, India 3 Centre for Information Technology & Engineering, Manonmaniam Sundaranar University, Tirunelveli, Tamil Nadu, India 4 Department of Computer Science & Engineering, Sree Siddartha Institute of Technology, Tumkur, Karnataka, India E-mail: justin_var@yahoo.com Abstract: This study proposes a new fuzzy adaptive filter for the restoration of impulse corrupted digital images. The proposed filter incorporates fuzzy functions to model the uncertainties, while detecting and correcting impulses. The traditional, SMALL fuzzy function is used to identify the non-impulsive nature of the detected corrupted pixels in the initial step. For the better restoration of detected impulsive pixels, a modified version of Gaussian function is utilised to determine the similarity among the detected uncorrupted pixels. The proposed correction scheme provides more weight to the uncorrupted pixels that show much similarity with other uncorrupted pixels in the window while replacing impulses. The proposed filter adapts to various noisy and image conditions and is capable of suppressing noise while preserving image details. The experimental results in terms of subjective and objective metrics favour the proposed algorithm than many other prominent filters in literature. 1 Introduction Impulse noise affects digital images when they are imaged by erroneous sensors or when they are transmitted through faulty communication channels. Salt and pepper is a type of impulse noise which corrupts randomly selected pixels of digital image into a very large value as positive impulse or a very small value as negative impulse [1]. Since this noise affects the true content of the image, the challenge in the image processing domain is to effectively reduce the effect of impulse noise while preserving the finer image details. Median filters are the popular non-linear filters extensively applied to eliminate salt and pepper noise because of its computational efficiency and simplicity. The Median filter uniformly replaces the gray values of all pixels in the image irrespective of whether they are corrupted or not by the median of respective pixels in the static neighbourhood and provides good noise suppression since the noise candidates falls in extreme ranges of a sorted array while determining median. The position-invariant nature of Median filter and its variants [1 3] during restoration consumes image details while removing impulses. Moreover, it does not address any corruption check for the determined median before replacing the pixels. These limitations met by median filter are addressed by many next generation filters like noise adaptive switching median filter (NASMF) [4], boundary discriminative noise detection filter (BDND) filter [5], adaptive switching median filter (ASMF) [6] by introducing decision/switching schemes during the filtering phase. As an extension to NASMF, the noise adaptive fuzzy switching median filter (NAFSM) [7] utilises the histogram of the corrupted image to identify noisy pixels and later uses fuzzy reasoning to restore the impulses that are detected. However, the noise detection stage is very simple and the possibility of misclassification of uncorrupted pixels as impulses is more. Hsien et al. [8] proposed the turbulent particle swarm optimisation (PSO) based fuzzy image filter (TPF) by incorporating fuzzy turbulent PSO, but the filter is computationally complex because of the numerous iterations performed by the optimisation. Fitri et al. [9] proposed fuzzy mean linear aliasing window kernel (FMLAWK) filter comprising of two filters wherein first filter detects the impulses and approximate initial result by replacing the impulses with the mean of uncorrupted pixels from a prefixed window, while the second filter aliases the approximation image by decomposing the pixels in 3 3 window centred at each corrupted pixels and then by interpolating them to give singular value. However, the image goes over blurred because of the numerous interpolations. Yildirim and Basturk [10] proposed a type-2 fuzzy logic-based filter by incorporating many directional masks to preserve the edge details. Although the filter performs well for images corrupted with smaller quantum of impulse noise, fails to perform better in cases where 199

image goes highly corrupted. The filter proposed by Xu et al. [11] use an S function to fuzzify the amount of corruption of individual pixels. However, the filter could not provide ample restoration since there is no adaptation in the window size. Numerous other filters [14 21] also introduced with different switching and optimisation schemes by meeting some requirements of impulse noise filtering but failed to simultaneously meet on other vital requirements like the computational efficiency, misclassification of pixels, maintaining fidelity in restored outputs and so on. This paper proposes a new adaptive fuzzy-based switching weighted average (AFSWA) filter for the detection and filtering of salt and pepper impulse noise. The proposed filter also concentrates to maintain fidelity in the restored images. This paper is organised in six sections. Section 2 introduces the new fuzzy-based impulse filter; Section 3 provides the experimental methodology used for comparing the performance of the proposed filter. The comparative analysis on the subjective and objective metrics of the proposed filter with other prominent filters is presented in Section 4. Section 5 and Section 6, respectively, makes the conclusion and future scope of the work. 2 AFSWA filter The proposed AFSWA filter works in two distinct stages of impulse detection and impulse correction. 2.1 Impulse detection stage First, a fuzzy flag image f is created to indicate the amount of corruption of each pixel in the given corrupted image of same size as the input image X of size M N to be filtered where f i and X i, respectively, denote the flag value and pixel value at position i=(i 1, i 2 ). We set f i = 0 to indicate the pixel value at spatial position i to be an impulse and f i = 1whenthe pixel value at i is not impulse. Initially this flag image, f is set to 0 at all its spatial locations assuming that all the pixels of the image, X are fully corrupted. f i is the fuzzy membership value allotted to the pixel at position i to indicate the impulsive or uncorrupted nature of the pixel. The value of f i ranging from 0 to 1 is the degree of the purity of the pixel that varies from impulsive to uncorrupted. An impulse corrupted pixel has characteristics very similar to that of an edge pixel. So, f i is determined through the following steps by using the fuzzy rules defined on minimum directional differences. The impulse detection scheme can be tracked through the following steps: Step 1: The set of non-impulsive pixels, ψ is initialised to ψ = φ and the window size, W for analysis of pixels is identified. A larger window size is better to decide the purity status of a pixel corrupted with salt and pepper noise, but we set W =3 since it reduces the computational complexity and we have additional refinement step to reduces the misclassifications of pixels. Step 2: The set of spatial positions within a square window W W, centred at each pixel position, i =(i 1, i 2 ), is defined by the set, V w i as V w i = {j = (j 1, j 2 )/i 1 (W 1)/2 j 1 i 1 + (W 1)/2 i 2 (W 1)/2 j 2 i 2 + (W 1)/2} (1) Here, W indicates the size of the local neighbourhood window under consideration. The phase begins by analysing the pixel-wise characteristics of the corrupted image, X in the local neighbourhood, W W. Step 3: We check the purity status of X i by comparing it with the minimum, M 1 and maximum, M 2 as where { f i=(i1, i 2 ) = 1 if M 1, X i, M 2 f i otherwise M 1 = min X j /j [ V W i M 2 = max X j /j [ V W i Step 4: We fuzzify the purity status of X i when X i is found not to lie strictly in between M 1 and M 2 since edge pixels are also having similar properties. To estimate the amount of corruption of detected corrupted pixels, the uncorrupted pixels in the neighbourhood around X i are caught in the impulse-free pixel set, ψ, that is, c = X j /j [ V W and M i 1, X j, M 2 (5) Step 5: If the cardinality of uncorrupted pixels, ψ is greater than a predefined threshold, T 1, it is easy to find whether the current pixel under consideration is an edge pixel similar to the noise. Hence, we find the directional distances, d k in each direction, k as defined in Fig. 1 as (see (6)) (2) (3) (4) Fig. 1 Directional weights d k i = 2 l 1 = 2 2 l 2 = 2 wk (3 + l, 3+ l ) X (i, i ) X (i + l, i + l ) 1 2 1 2 1 1 2 2 2 2 l 1 = 2 l 2 = 2 wk (3 + l 1, 3+ l 2 ) (6) 200

Fig. 2 Step 6: Lower values in any directional distances indicate the presence of an edge in the corresponding direction passing through the pixel under consideration. In order to model the uncertainty of the corruption status of these pixels, a fuzzy membership function SMALL is defined as in Fig. 2. Accordingly, we form the membership of purity as ( ( f i = SMALL min d k )) i, k = 1, 2...4 (7) Step 7: We move to the next pixel for processing and repeat step 1 through step 7 until all pixels in the image are processed. Since we incorporated fuzziness by considering directional distances, the chances of escaping of edge pixels similar to that of impulse counterparts from wrongly detected as impulses are more. 2.2 Fuzzy similarity among uncorrupted pixels We determine the fuzzy similarity of detected uncorrupted pixels with other uncorrupted pixels in the analysis window in order to make efficient replacement of detected corrupted pixels. This can be achieved if there is sufficient number of uncorrupted pixels in the neighbourhood. We determine the set of uncorrupted pixels in the correction window, W s as where Membership functions for SMALL c = Z j /j [ V W S i and f j. T 2 V W s i = {j = (j 1, j 2 )/i 1 (W s 1)/2 j 1 i 1 + (W s 1)/2 i 2 (W s 1)/2 j 2 i 2 + (W s 1)/2} (9) We set the analysis window, W s = 3 since smaller window gives much correlation among pixels. The increase in the cardinality of ψ indicates that there is sufficient number of uncorrupted pixels to determine fuzzy similarity among the pixels and hence we determine the fuzzy similarity of the pixel under consideration with other pixels by incorporating the modified Gaussian function as shown in Fig. 3. It can be mathematically defined by (8) ( (c m k = exp k ) 2 ) (c + 2s 2, c ) k [ c (10) Fig. 3 Modified Gaussian function for fuzzy similarity among uncorrupted pixels Here, c is a constant and σ is the standard deviation of ψ. For our algorithm we use c=0.001 to avoid divide by zero error. In order to identify the top similar membership values, we sort μ k in descending to obtain Sμ k such that such that Sm = Sm = sort(m) (11) Sm 1 Sm 2 Sm k (12) The final fuzzy similarity membership function is determined as f S i = n 1 Sm l1 l 1 =1 f i if k. T n 3 1 Otherwise (13) Here n 1 is a positive integer less than k and T 3 is a threshold. 2.3 Impulse correction stage The correction algorithm starts by taking the inputs of the flag image, f, fuzzy similarity image, f S and the input image, Z. The algorithm process each pixel in the image at position i =(i 1, i 2 ) such that (i 1, i 2 ) Domain(X ) and can be tracked through the following steps. Step 1: If the flag value, f i of the pixel X i is greater than a threshold T 2, it is retained in the restored image, U since the membership of X i is more towards non-corruption. Thus, U i = X i (14) Now the algorithm is continued from step 7. Step 2: Otherwise, if the flag value, f i is less than threshold T 2, the pixel position at i is decided to be impulse corrupted and so we start the process by initialising the uncorrupted pixel set, ψ = φ and the initial correction window, W C =3. Step 3: The pixel positions of the pixels within the impulse correction window, W C W C centred at the position i, are caught into the set V W C i V W C i = {j = (j 1, j 2 )/i 1 (W C 1)/2 j 1 i 1 + (W C 1)/2 i 2 (W C 1)/2 j 2 i 2 + (W C 1)/2} (15) 201

Step 4: The uncorrupted pixels identified by V W C i together with fuzzy similarity measure, f S are caught into the ordered set Fψ in accordance to the flag values assigned to them in the flag image, f as Fc = (X j, fj S )/j [ V W C i and f j. T 2 (16) and l 2 = Cardinality (Fc) (17) Step 5: if l 2 0 we replace the corrupted pixel by weighted mean of Fψ as U i = (x 1, y 1 )[Fc x 1 y 1 (x 1, y 1 )[Fc y 1 (18) Here U i is the signal restored at the impulse corrupted position, i. The algorithm is now continued from step 7. Step 6: Otherwise if l 2 = 0 then it indicates that no pixel in the current window is uncorrupted and hence we increase the correction window size W C to W C + 2 and process from step 3. Step 7: Move to the next pixel for processing from step 1. After the impulse correction stage, the grey levels in the impulse corrupted pixel positions are replaced by signals selected from the most appropriate neighbourhood and are similar to the original signal of that position. 3 Experimental methodology The proposed AFSWA filter is tested on a variety of digital images of which the 8 bit Lena, Boats and Allen images of size 512 512 are used in this paper for objective and subjective comparisons with the results of top-ranking other impulse filters: the ROM [12], the simple median filter [1], the centre weighted median filter (CWMF) [2], morphological median filter (MMF) [3], progressive switching median filter (PSMF) [13], long range correlation filter (LRCF) [14], BDND [5], NAFSM filter [7] and FMLAWK filter [9]. The objective metrics used for analysing the improved performance of the proposed impulse detection and correction stages of AFSWA are the miss-detection (MD), false alarm (FA), peak signal-to-noise ratio (PSNR) and the mean absolute error (MAE). MD of an impulse detection algorithm is the total number of occurrences involving the identification of an impulse as a signal. Conversely, FA is the total number of occurrences when uncorrupted pixels are misclassified as noise. A well designed impulse detection algorithm which differentiates high-frequency signal details and the equivalent impulses produces less number of MDs and FA. The MAE is the Fig. 4 Outputs of NAFSM, FMLAWK and the proposed AFSWA of Lena image, respectively, from the second column against varied impulse noise levels [(a) 10%, (e) 50%, (i) 90%] 202

average of the absolute differences between the input and output image pixels. The MAE between the restored image, U and the original noise-free image, X, both of sizes M N is MAE = 1 M N MN x=1 y=1 ( ) ( ) U x, y X x, y (19) A detail preserving impulse filtering algorithm generates outputs with high fidelity and hence the restored outputs will be similar to the original noise-free digital image with minimal mean-square error (MSE). PSNR is the measure for determining the quality of the restored output and is the ratio of the maximum signal intensity of the digital image to the power of noise which affects the fidelity of signal. Thus PSNR is defined as ( 2 n ) 2 1 PSNR = 10 log 10 MSE db (20) Here 2 n 1 correspond to the maximum grey level in the digital image that represents a pixel with n bits and MSE corresponds to the average of the square of the errors between the signal forecasts and the true signals MSE = 1 M N MN x=1 y=1 ( ) U x, y ( ) X x, y 2 (21) The percentage of not detected edges, ξ 1 is the percentage of edges present in the edge image of the impulse-free image but not present in the edge image of the impulse filter s output. The percentage of wrongly detected edges, ξ 2 is the percentage of edges that are present in the edge image of the restored output but are not present in the edge image of the impulse-free image. Canny edge detection algorithm is used for determining ξ 1 and ξ 2. 4 Experimental results and analysis The details-preserving aspect of the proposed filter together with other top-ranking filters is analysed through the visual comparison of the restored outputs in Figs. 4 6 and also emphasised numerically by calculating how well the edges are preserved using the edge details metrics: the percentage of not detected edges, ξ 1 and the percentage of wrongly detected edges, ξ 2. The subjective comparison made in Figs. 4 and 5, respectively, on images Lena and Allen for Fig. 5 Outputs of NAFSM, FMLAWK and the proposed AFSWA filter of Allen image, respectively, from the second column against varied impulse noise levels [(a) 10%, (e) 50%, (i) 90%] 203

Fig. 6 The edge detected image of the restored outputs from Lena image corrupted with 10% noise level for NAFSM, FMLAWK and the proposed AFSWA filters respectively, from the second column and (a) represents the edges produced from noise-free image impulse noise ratios 10, 50 and 90% favour the proposed AFSWA over the other top-ranking filters. Fig. 6 show the edge images of the restored outputs from Lena image corrupted with 10% noise level for NAFSM, FMLAWK and the proposed AFSWA filters. From Fig. 6, it is very clear that proposed AFSWA provides better edge preservation than other filters. More edge details are retained in the restored outputs of the proposed filter. The objective comparison made in Tables 1 6 for Lena and Boats images records the metrics, PSNR, MAE, ξ 1, ξ 2,MD and FA for the proposed AFSWA and other top-ranking filters for impulse noise ratios 10, 50 and 90%. It is noted that at all noise ratios, the objective and subjective metric values produced by the proposed filter outperform the comparative filters in terms of impulse detection, noise removal and details-preservation. 4.1 Parameter settings and analysis The values of the filtering parameters used in the proposed algorithm plays an important role in the behaviour of the filter. Behaviour of thresholds T 1 depends up on the noise levels and can be described in following four cases as can be viewed from Table 7 that shows the misclassifications of pixels for various T 1 against different noise ratios. Note that the total misclassifications used in Table 8 are calculated as the sum of MD and FA. Case 1: If the noise level is low and the threshold, T 1 is low, there will be many uncorrupted pixels in the window; all the pixels will participate in the refinement. Some rare cases where there will not be sufficient uncorrupted pixels in the current window may yield for wrongly detecting impulses as correct pixels. Case 2: If the noise is low and the threshold, T 1 is high, there will be many uncorrupted pixels in the window, these pixels cannot participate in the in the refinement. This will result in wrongly detecting correct pixels as impulses. Case 3: If the noise is high and the threshold, T 1 is low, there will be many uncorrupted pixels in the window; all Table 2 Objective metrics produced by different filters for Lena corrupted by 50% impulse noise ROM 7*7 26.934 6.001 4.532 3.614 12 118 324 Median 7*7 26.973 5.986 4.565 3.566 17 110 693 CWMF 7*7 27.139 5.573 4.305 3.500 81 96 078 MMF 5*5 27.545 5.718 4.289 5.099 0 124 657 PSMF 28.335 3.376 3.369 2.931 29 4061 LRCF 28.135 3.666 3.011 2.637 105 16 BDND 29.995 3.001 2.747 2.822 0 114 NAFSM 33.01 2.371 2.195 1.996 0 0 FMLAWK 33.346 2.288 2.315 1.852 0 0 AFSWA 33.887 2.184 2.055 1.713 0 0 Table 3 Objective metrics produced by different filters for Lena corrupted by 90% impulse noise ROM 9*9 9.892 54.018 5.992 12.315 44 159 25 168 Median 9*9 9.647 53.408 5.965 12.310 50 017 22 894 CWMF 9*9 9.410 56.000 6.028 12.640 69 175 18 762 MMF 9*9 12.330 49.871 6.384 8.499 4045 25 539 PSMF 12.360 31.884 6.379 5.143 4224 12 800 LRCF 7.356 85.775 6.203 10.473 536 763 BDND 16.181 13.354 6.182 5.064 102 539 NAFSM 24.600 7.265 5.213 5.944 549 0 FMLAWK 23.740 8.835 5.503 5.178 0 0 AFSWA 26.790 6.332 4.956 5.092 0 0 Table 1 Objective metrics produced by different filters for Lena corrupted by 10% impulse noise ROM 3*3 32.634 3.183 2.358 1.704 3 20 6269 Median 3*3 33.712 2.760 2.144 1.425 4 16 0492 CWMF 3*3 33.577 1.749 1.609 1.413 144 93 306 MMF 3*3 30.252 4.269 4.275 3.100 0 217 765 PSMF 33.961 0.794 0.936 1.320 11 76 LRCF 38.799 0.493 0.839 0.674 47 58 BDND 41.152 0.348 0.619 0.564 0 3 NAFSM 41.860 0.432 0.730 0.656 0 0 FMLAWK 42.331 0.380 0.608 0.547 0 0 AFSWA 42.520 0.377 0.595 0.528 1 0 Table 4 Objective metrics produced by different filters for boats corrupted by 10% impulse noise ROM 3*3 29.257 4.989 3.410 2.587 2 217 722 Median 3*3 29.764 4.517 3.385 2.242 11 175 824 CWMF 3*3 30.572 2.895 2.682 2.113 166 107 691 MMF 3*3 27.236 6.245 5.819 3.743 0 224 119 PSMF 32.796 0.986 1.459 1.263 35 677 LRCF 31.476 1.129 1.670 1.594 98 107 BDND 36.565 0.636 1.024 0.945 0 0 NAFSM 37.850 0.694 1.068 0.936 0 0 FMLAWK 37.145 0.785 1.173 1.119 0 8 AFSWA 38.258 0.590 0.986 0.915 0 0 204

Table 5 Objective metrics produced by different filters for boats corrupted by 50% impulse noise Table 9 PSNR obtained from Lena image for different T 3 values against various impulse noise levels Noise ratio PSNR for different T 3 values ROM 7*7 23.832 9.200 8.457 5.035 14 122 900 Median 7*7 23.767 9.187 8.410 5.118 20 116 372 CWMF 7*7 24.028 8.576 8.215 4.525 81 102 932 MMF 5*5 24.547 8.599 7.925 4.511 0 126 940 PSMF 24.127 6.167 6.119 4.340 72 8241 LRCF 24.100 6.473 5.313 4.758 230 589 BDND 26.433 4.706 4.657 3.692 0 264 NAFSM 29.161 3.719 3.452 3.004 0 0 FMLAWK 29.457 3.850 3.821 3.096 0 3 AFSWA 30.433 3.231 3.148 2.584 0 0 T 3 =3 T 3 =4 T 3 =5 T 3 =6 T 3 =7 10 42.512 42.528 42.497 42.492 42.411 20 39.612 39.627 39.689 39.717 39.659 30 37.097 37.191 37.132 37.033 37.031 40 35.167 35.352 35.265 35.244 35.212 50 33.603 33.887 33.508 33.184 33.171 60 32.275 32.309 32.289 32.180 32.175 70 30.698 30.784 30.634 30.634 30.934 80 29.051 29.067 29.067 29.067 29.067 90 26.756 26.790 26.779 26.759 26.756 Table 6 Objective metrics produced by different filters for boats corrupted by 90% impulse noise ROM 9*9 9.707 57.019 9.026 12.413 43 858 25 582 Median 9*9 9.462 57.192 8.957 12.380 51 471 23 569 CWMF 9*9 9.404 57.808 9.022 11.969 68 261 19 365 MMF 9*9 12.450 49.434 9.562 8.1680 2986 25 878 PSMF 12.101 34.838 9.268 4.837 665 14 878 LRCF 7.169 90.369 9.268 9.798 636 914 BDND 16.690 18.861 9.330 5.419 0 661 NAFSM 22.240 10.460 7.915 7.347 568 1 FMLAWK 20.635 14.578 8.786 6.724 0 2 AFSWA 23.401 9.332 7.156 6.491 0 0 Table 7 Misclassifications of Lena image pixels for different T 1 values against various impulse noise levels Noise ratio Number of misclassifications for various T 1 values T 1 =0 T 1 =5 T 1 =10 T 1 =15 T 1 =20 10 69 31 11 0 92 20 123 115 17 0 78 30 184 184 48 0 57 40 674 615 67 0 27 50 1825 1672 65 0 19 60 4610 4056 46 0 5 70 9707 6283 35 0 4 80 19 042 4902 10 0 0 90 31 622 914 0 0 0 the pixels will participate in the refinement of corrupted pixels. Majority of cases in which there will not be sufficient uncorrupted pixels in the current window will result in wrongly detecting many impulses as correct pixels. Case 4: If the noise is high and the threshold, T 1 is high: there will not be many uncorrupted pixels in the window; all the pixels will participate in the refinement of corrupted pixels. However, in some rare cases where there will be sufficient uncorrupted pixels in the current window will result in wrongly detecting some correct pixels as impulses. The threshold, T 2 used for deciding the participation of a pixel in the uncorrupted set, ψ although does not have much impact on the behaviour of the filtering scheme in the case of high impulse noise levels, provides much deviation in the restored image if its value is very less or very high as can be noted from Table 8. Table 9 shows the PSNR obtained from Lena image for different T 3 values against various impulse noise levels. It is to be noted that best PSNR values are obtained for T 3 = 4. For experimental purposes, we set the values of thresholds, T 1, T 2, T 3 as 15, 0.5 and 4, respectively. We set n 1 and k to 4 and the window size, W 2 and W S to 3. 5 Conclusion The proposed AFSWA filter is designed for the restoration of digital images that are corrupted with salt and pepper impulse noise. The initial part of the impulse detection scheme used min/max check for differentiating non-impulsive pixels from that of impulsive pixels. The detected impulsive pixels are once again refined by checking their edge nature by determining weighted directional distances. The fuzziness in the amount of impulse corruption and similarity among uncorrupted pixels is utilised by, respectively, using the traditional SMALL and modified Gaussian functions for better impulse detection, signal restoration and details-preservation. The experimental analysis favoured the proposed filter at all impulse noise ratios in terms of subjective and objective metrics. Table 8 PSNR obtained from Lena image for different T 2 values against various impulse noise levels Noise ratio PSNR for different T 2 values T 2 = 0.1 T 2 = 0.2 T 2 = 0.3 T 2 = 0.4 T 2 = 0.5 T 2 = 0.6 T 2 = 0.7 T 2 = 0.8 T 2 = 0.9 10 42.510 42.518 42.521 42.522 42.528 42.518 42.517 42.516 42.512 20 39.598 39.611 39.615 39.619 39.627 39.620 39.617 39.608 39.606 30 37.176 37.182 37.183 37.184 37.191 37.191 37.191 37.191 37.191 40 35.346 35.348 35.348 35.351 35.352 35.352 35.352 35.352 35.352 50 33.886 33.887 33.887 33.887 33.887 33.887 33.887 33.887 33.889 60 32.309 32.309 32.309 32.309 32.309 32.309 32.309 32.309 32.309 70 30.784 30.784 30.784 30.784 30.784 30.784 30.784 30.784 30.784 80 28.956 28.956 28.956 28.956 29.067 28.956 28.956 28.956 28.956 90 26.790 26.790 26.790 26.790 26.790 26.790 26.790 26.790 26.790 205

6 Future work The proposed filter is designed for the restoration of only salt and pepper impulse corrupted digital images. As a future work the proposed filter can be extended to restore the digital images corrupted by other impulse noise models that include the random valued impulses and the impulses following Cauchy or Gaussian distribution. This can be attempted by accommodating more intelligent hybrid soft-computing techniques into the domain of impulse restoration and by the homogeneity analysis of the corrupted image using the multi-resolution theory. Moreover, the optimisation of the parameters used in the proposed algorithm can be extended in the future. 7 References 1 Gonzalez, R. C.: Digital image processing (Prentice-Hall, Inc., 2002, 3nd edn., 2009) 2 Ko, S.J., Lee, Y.H.: Center weighted median filters and their applications to image enhancement, IEEE Trans. Circuits Syst., 1991, 38, pp. 984 993 3 Sedaaghi, M.H., Daj, R., Khosravi, M.: Mediated morphological filters. Proc. Int. Conf. Image Processing, October 2001, pp. 692 695 4 Eng, H.-L., Ma, K.-K.: Noise adaptive soft-switching median filter, IEEE Trans. Image Process., 2001, 10, (2), pp. 242 251 5 Ng, P.-E., Ma, K.K.: A switching median filter with boundary discriminative noise detection for extremely corrupted images, IEEE Trans. Image Process., 2006, 15, (6), pp. 1506 1516 6 Nallaperumal, K., Varghese, J., Saudia, S., et al.: Salt & pepper impulse noise removal using adaptive switching median filter. Proc. Conf. of Asia Pacific OCEANS 06, Singapore, 2006, pp. 1 8 7 Kal Vin Toh, K., Mat Isa, N A.: Noise adaptive fuzzy switching median filter for salt and pepper noise reduction, IEEE Signal Process. Lett., 2000, 17, (3), pp. 281 284 8 Hsien, H.C., Ling, Y.H., Hwai, T.U.: Turbulent PSO based fuzzy image filter with no reference measures for high density impulse noise, IEEE Trans. Cybern., 2013, 43, (1), pp. 296 307 9 Fitri, U., Uchimura, K., Koutaki, G.: High density impulse noise removal by fuzzy mean linear aliasing window kernel, IEEE Int. Conf. Signal Process. Commun. Comput., 2012, pp. 711 716 10 Yildirim, T., Basturk, A.: Impulse noise removal from digital images by a detail- perserving filter based on type -2 fuzzy logic, IEEE Trans. Fuzzy Syst., 2008, 16, (4), pp. 920 928 11 Xu, H., Zhu, G., Peng, H., Wang, D.: Adaptive fuzzy switching filter for images corrupted by impulse noise, Pattern Recognit. Lett., 2004, 25, (15), pp. 1657 1661 12 Singh, K.M., Bora, P.K., Singh, S.B.: Rank-ordered mean filter for removal of impulse noise from images. IEEE Int. Conf. Industrial Technology, December 2002, pp. 980 985 13 Wang, Z., Zhang, D.: Progressive switching median filter for the removal of impulse noise from highly corrupted images, IEEE Trans. Circuits Syst.-II, Analog Digit. Signal Process., 1999, 46, (1), pp. 78 80 14 Wang, Z., Zhang, D.: Restoration of impulse noise corrupted images using long-range correlation, IEEE Signal Process. Lett., 1998, 5, (1), pp. 4 7 15 Fabijanska, A., Sankowski, D.: Noise adaptive switching median based filter for impulse noise removal from extremely corrupted images, IET Image Process., 2011, 5, (5), pp. 472 480 16 Zhang, X., Xiong, Y.: Impulse noise removal using directional difference based noise detector and adaptive weighted mean filter, IEEE Signal Process. Lett., 2009, 16, (4), pp. 295 298 17 Naveen, Y., Gupta, S.: Removal of salt & pepper noise using sparse representation. Proc. Eighth Int. Conf. Signal Image Technology and Internet based Systems, 2012, pp. 58 63 18 Zhang, X., Zhan, Y., Ding, M., Huo, W., Yin, Z.: Decision based non-local means filter for removing impulse noise from digital Images, Signal Process., 2012, 93, (2), pp. 517 524 19 Zhou, Z.: Cognition and removal of impulse noise with uncertainty, IEEE Trans. Image Process., 2012, 21, (7), pp. 3157 3161 20 Wang, W., Lu, P.: An efficient switching median filter based on local outlier factor, IEEE Signal Process. Lett., 2011, 18, (10), pp. 551 554 21 Awad, A.S.: Standard deviation for obtaining the optimal direction in the removal of impulse noise, IEEE Signal Process. Lett., 2011, 18, (7), pp. 407 410 206