Literature DB >> 30365501

A two-stage filter for removing salt-and-pepper noise using noise detector based on characteristic difference parameter and adaptive directional mean filter.

Hongjin Ma1, Yufeng Nie1.   

Abstract

In this paper, a two-stage filter for removing salt-and-pepper noise using noise detector based on characteristic difference parameter and adaptive directional mean filter is proposed. The first stage firstly detects the noise corrupted pixels by combining characteristic difference parameter and gray level extreme, then develops an improved adaptive median filter to firstly restore them. The second stage introduces a restoration scheme to further restore the noise corrupted pixels, which firstly divides them into two types and then applies different restoration skills for the pixels based on the classification result. One type of pixels is restored by the mean filter and the other type of pixels is restored by the proposed adaptive directional mean filter. The new filter firstly adaptively selects the optimal filtering window and direction template, then replaces the gray level of noise corrupted pixel by the mean value of pixels on the optimal template. Experimental results show that the proposed filter outperforms many existing main filters in terms of noise suppression and detail preservation.

Entities:  

Mesh:

Year:  2018        PMID: 30365501      PMCID: PMC6203255          DOI: 10.1371/journal.pone.0205736

Source DB:  PubMed          Journal:  PLoS One        ISSN: 1932-6203            Impact factor:   3.240


1 Introduction

Digital images can be corrupted by impulse noise due to bit errors in the process of image acquisition and transmission [1-3]. Salt-and-pepper noise and random-valued noise are the two common types of impulse noise [4]. The salt-and-pepper noise can corrupt an image where each corrupted pixel takes either the maximum or minimum gray level. The salt-and-pepper noise can not only significantly deteriorate the quality of an image, but also bring some difficulty to the subsequent image analysis such as image segmentation [5], edge detection [6] and classification [7, 8]. The goal of image denoising is removing noise as much as possible meanwhile preserving more edges and details. Hence, how to effectively remove the salt-and-pepper noise from corrupted images, keeps to be an important research task in image processing. During the past several decades, many techniques have been developed to restore the corrupted image, such as the blind denoising method [9, 10] and total-variation denoising method [11, 12]. Among the traditional denoising methods, the standard median filter is one of the most popular nonlinear filters for the removal of salt-and-pepper noise in terms of its good denoising capability and computational efficiency [13]. The standard median filter uniformly replaces the gray level of each noise corrupted pixel by the median gray level of its neighborhood pixels. Hence, the standard median filter is effective in the case of low noise density. While the noise density is higher than 50%, the size of filtering window should to be enlarged to suppress serious noise which leads edges and details to be blurred. In order to improve noise suppression and detail preservation simultaneously, many modified median filters have been developed, such as the weighted median (WM) filter [14, 15], the adaptive median (AM) filter [16, 17] and the switching median (SM) filter [18-20]. The weighted median (WM) filter [14] is developed to improve the standard median filter by introducing the weighted technique. For all pixels in an image, the WM filter selects various weights for pixels at different positions in the window to restore the gray level of central pixel. Hence, the WM filter can achieve the better restoration result than the standard median filter. Different from the WM filter, the adaptive median (AM) filter [16] chooses the median gray level in an adaptive window for each pixel which overcomes the drawback of fixed window in standard median filter. Therefore, the AM filter can perform better than the standard median filter. The switching median (SM) filter [20] is a popular type of salt-and-pepper noise removing technique in recent years. The SM filter partitions the filtering process into two steps: noise detection and noise restoration. In the first step, the noise corrupted pixels are distinguished from the noise-free ones based on the noise detector. After noise detection, the gray level of each noise corrupted pixel will be replaced by the median gray level of its neighborhood pixels. The SM filter has a major drawback that the size of filtering window is fixed in the noise detection stage, which cannot effectively detect all noise corrupted pixels. In order to improve the image restoration result, many modified filters have been developed [21-23]. The modified decision based unsymmetric trimmed median (MDBUTM) [24] filter is proposed for removing salt-and-pepper noise which detects the noise corrupted pixels based on the gray level extreme and adaptively replaces the gray level of noise corrupted pixel by the mean or median variant according to the number of gray level extreme in the filtering window. The switching median filter with boundary discriminative noise detection (BDND) [25] is proposed to identify all noise corrupted pixels by adaptively selecting the filtering window of suitable size. The directional weighted median (DWM) filter [26] firstly takes into account the neighborhood information of each pixel along four directions, then uses the minimum sun of directional weighted gray level differences to detects the noise corrupted pixels, finally replaces the gray level of each noise corrupted pixel by the weighted median gray level of its neighboring pixels. The modified directional weighted median (MDWM) filter [27] is developed based on the DWM filter, which considers the neighborhood information of each pixel on more edge directions and selects the weighted median gray level excluding gray level extremes on the optimal direction as the restored gray level of the noise corrupted pixel. After deeply analyzing the DWM filter and MDWM filter, the modified directional weighted (MDW) filter [28] is proposed which firstly detects the noise corrupted pixels based on the directional gray level difference and gray level extreme, then restores each noise corrupted pixel by the weighted mean gray level of the neighborhood pixels. Besides, many other good filters are proposed in recent years. The adaptive iterative fuzzy (AIF) filter [29] is developed to restore the high density noise corrupted image which firstly detects the noise corrupted pixels with an adaptive fuzzy detector and then restores the noise corrupted pixels by a weighted mean filter. The three-values-weighted (TVW) approach [30] is proposed to restore the corrupted image, which firstly employs a variable-size local window to analyze each pixel with extreme values and classifies the non-extreme pixel as the maximum, the middle, or the minimum groups in the local window, then employs the ratios of these three groups to weight the non-extreme pixels, finally replaces the gray level of central pixel by the weighted gray level. The adaptive Type-2 fuzzy (ATF) approach [31] is proposed to remove salt-and-pepper noise which identifies the pixels based on their primary membership function values and then restores the noise corrupted pixels based on the detection results. After deeply analyzing the performance of the existing main filters appeared in the literatures, we can find two disadvantages of their denoising schemes. One disadvantage is that most of them fail to perform well in the case of various noise densities. The other one is that although they can remove the salt-and-pepper noise from the image corrupted by high noise density, they still lead some important edges and details to be blurred. For more details, you can check the corresponding experimental results in section 3. In order to overcome the drawbacks, we propose a new two-stage filter for removing salt-and-pepper noise using noise detector based on characteristic difference parameter and adaptive directional mean filter in this paper. The proposed filter can effectively and accurately identify the noise corrupted pixels by combining the characteristic difference parameter and gray level extreme. After noise detection, the noise corrupted pixels are firstly restored by the improved adaptive median filter while the noise-free pixels are left unchanged to maintain image features. The second restoration scheme can achieve the better restoration result by proposing the adaptive directional mean filter. Compared with the above introduced filters, the proposed filter can not only effectively and accurately detect the salt-and-pepper noise, but also provide better image restoration performance in the case of various noise densities. The other parts of this paper are organized as follows. In Section 2, we introduce the proposed method framework. Section 3 provides a number of experimental results to demonstrate the performance of the new method. Conclusions are finally drawn in Section 4.

2 The proposed filter

The proposed filter is composed of two stages: primary filtering stage and second restoration stage. The primary filtering stage firstly detects the noise corrupted pixels by combining the characteristic difference parameter and gray level extreme and then restores them by the improved adaptive median filter. In order to achieve the better restoration result, the second stage introduces a restoration scheme to secondly restore the gray levels of noise corrupted pixels. The restoration scheme firstly divides all the noise corrupted pixels into two types based on the value of characteristic difference parameter and then applies two different restoration skills for the pixels based on the classification result. And one type of pixels is secondly restored by the mean filter while the other type of pixels is secondly restored by the proposed adaptive directional mean filter. Fig 1 is the flow chart of the proposed filter.
Fig 1

Flow chart of the proposed filter.

2.1 Primary filtering stage

2.1.1 Noise detection

In an image corrupted by salt-and-pepper noise, the gray level of noise corrupted pixel takes either the maximum or minimum gray level. Hence, the traditional switching median filter identifies the pixel with the maximum or minimum gray level as a noise corrupted pixel. However, the pixels with gray level extreme are not all the noise corrupted pixels. Therefore, the noise detector based on the judgement of gray level extreme cannot accurately detect the noise corrupted pixels. In order to achieve the better detection result, the proposed filter designs an improved noise detector by combining the characteristic difference parameter and gray level extreme. Before introducing the characteristic difference parameter, the gray level difference is firstly introduced to compare the gray levels of two pixels. For any one pixel P in a corrupted image, the gray level difference G between the pixel P and its neighborhood pixel is calculated as follows: where (s, t) ∈ Ω, Ω denotes a detection window whose radius is w. g and denote the gray level of pixel P and , respectively. After that, a parameter T is selected as the threshold to judge the value of gray level difference. Considering that the parameter has a close relation with the corrupted image, the value of the parameter is varying based on various images. And in the proposed filter, the parameter is selected based on the statistical result for the gray levels of all pixels in the corrupted image. Besides, the size of the detection window is a key factor of affection on noise detection performance. The size of the detection window should be small in the case of low noise density but be large in the case of high noise density. Hence, the detection windows with different sizes are used for the corrupted image. After a number of experiments, it can be seen that the sizes of 3 × 3 and 5 × 5 are suitable while the noise density is lower than 50%; while the noise density locates between 60% and 80%, size of 7 × 7 is usually the best choice, and the size of 9 × 9 is suitable for the 90% noise density. Then the gray level difference between central pixel P and its neighborhood pixel can be judged by comparing the values of G and T as follows: If G > T, it means that the gray level difference between pixel P and is large. If G ≤ T, it means that the gray level difference between pixel P and is small. Based on the above analysis, it can be judged that whether the gray level difference between central pixel and each neighborhood pixel in the detection window is large. However, the comprehensive gray level difference between central pixel and all neighborhood pixels in the detection window cannot be obtained. Hence, a characteristic difference parameter is introduced to solve the problem. For any one pixel P in the corrupted image, its characteristic difference parameter C is calculated as follows: According to formula (1), calculate the gray level difference G between central pixel P and its neighborhood pixel in the detection window one by one. Compare the values of gray level difference G and threshold T, if G > T, the characteristic difference parameter The characteristic difference parameter can reflect the comprehensive gray level difference between the central pixel and its neighborhood pixels in the detection window, which can be used to judge that whether the central pixel is a noise corrupted pixel. The detailed analysis is given as follows: If pixel P is an edge pixel, the gray level of pixel P is close to the gray levels of its neighborhood pixels on the edge direction but different from the gray levels of other neighborhood pixels in the detection window. Then the gray level difference between central pixel and its neighborhood pixel on the edge direction is small and less than the value of threshold T. But the gray level difference between central pixel and other neighborhood pixels is large and greater than the value of threshold T. Since the number of neighborhood pixels on the edge direction is less than the number of other neighborhood pixels, the characteristic difference parameter C is large. However, considering that the number of neighborhood pixels on the edge direction is at least 2w, the characteristic difference parameter C is less than or equal to 2w(2w + 1). If pixel P is a noise-free pixel in a flat region, the gray levels of all pixels in the detection window are close. Then the gray level difference between central pixel and each neighborhood pixel is much small and less than the value of threshold T. Hence, the value of characteristic difference parameter C is small and less than 2w(2w + 1). If the central pixel P is a noise corrupted pixel located on an edge, the gray level of pixel P is much different from the gray levels of its neighborhood pixels in the detection window while the gray levels of pixels on the edge direction are close. But the gray level difference between central pixel and each neighborhood pixel is large and greater than the value of threshold T. Hence, the characteristic difference parameter C is large and greater than 2w(2w + 1). If pixel P is a noise corrupted pixel in a flat region, the gray level of pixel P is much different from the gray levels of its neighborhood pixels in the detection window while the gray levels of its neighborhood pixels are close. Then the gray level difference between central pixel and each neighborhood pixel is large and greater than the value of threshold T. Hence, the characteristic difference parameter C is large and greater than 2w(2w + 1). From the above analysis, it can be learned that the characteristic difference parameter can be used to distinguish noise corrupted pixels from noise-free ones in a corrupted image. And the threshold is selected to judge the value of characteristic difference parameter. The value of the threshold to is equal to the number of all the pixels except for the pixels on the diagonal in the detection window. Then the proposed filter can effectively and accurately detect the noise corrupted pixels by combining characteristic difference parameter and gray level extreme. And for any one pixel P, its characteristic can be identified in the following way: where N and S denote the noise corrupted pixels and noise-free ones, respectively. w is the radius of the detection window. g is the gray level of pixel P. The pseudo codes of the process of noise detection are provided as follows: For each pixel P in the corrupted image: C = 0. For in Ω. . if G > T C = C + 1. end if C > 2w (2w + 1) and g ∈ {0,255} P ∈ N. else P ∈ S. end end

2.1.2 First noise restoration

After noise detection, an improved adaptive median filter is introduced to firstly restore the gray levels of the noise corrupted pixels. And for each noise corrupted pixel, its gray level is replaced by the mean value of the gray levels of its neighboring pixels in the adaptive window. However, the noise-free ones are left unchanged to maintain the features of the original image. The primary filtering process is given as follows: For any one pixel p in the corrupted image, select a detection window of suitable size with a small radius w and set the maximum radius of the detection window to be wmax. Compare , and , which are the maximum value, minimum value and median value among the gray levels of the pixels in the detection window, respectively. If , then go to the step 5) and calculate the characteristic difference parameter C; Otherwise, w = w + 1. If w ≤ wmax, go to the step 2); Otherwise, the restoration gray level of the pixel , and stop. If and C > 2w(2w + 1), the pixel p is corrupted, and the restoration gray level of the pixel ; Otherwise, the pixel p is uncorrupted, , and stop. On this basis, according to the result of noise detection the primary restoration gray level of the pixel p is calculated as follows: where imadpmed() denotes the improved adaptive median filter.

2.2 Second restoration stage

2.2.1 Noise classification

Since the improved adaptive median filter cannot restore the corrupted image well in the case of high noise density, the second stage introduces a restoration scheme to secondly restore the gray levels of noise corrupted pixels. Considering that the characteristic difference parameter can reflect the comprehensive gray level difference between each pixel and its neighborhood pixels in a local window, then before the second restoration, the restoration scheme firstly divides all the noise corrupted pixels into two types based on the value of characteristic difference parameter in a 3 × 3 window. And then according to the classification result two different restoration skills are used to secondly restore the noise corrupted pixels. Besides, the gray levels of noise-free pixels are still left unchanged to maintain image features. Refer to the calculation process of the characteristic difference parameter in the previous section, for the noise corrupted pixel p, its characteristic difference parameter in the 3 × 3 window Ω3 centered at the position (i, j) is calculated as follows: According to the formula (1), calculate the gray level difference between central pixel p and its neighborhood pixel in the window Ω3 one by one. Compare the values of gray level difference and threshold T, if , the characteristic difference parameter . Since the radius of the 3 × 3 window is 1, the threshold for characteristic difference parameter is selected to be 6. Then based on the value of characteristic difference parameter , the comprehensive gray level difference between the noise corrupted pixel p and its neighborhood pixels after primary filtering is judged as follows: If , it means that after primary filtering the gray level of noise corrupted pixel p is not much different from the gray levels of its neighborhood pixels. If , it means that after primary filtering the gray level of noise corrupted pixel p is much different from the gray levels of its neighborhood pixels. According to the above judgement process, the comprehensive gray level differences between each noise corrupted pixel and all the neighborhood pixels in the 3 × 3 window can be judged. And based on the judgement result, all the noise corrupted pixels after primary filtering can be divided into two types. Among all the noise corrupted pixels, the noise corrupted pixels whose characteristic difference parameters in the 3 × 3 window are greater than 6 belong to one type and the rest of the noise corrupted pixels belong to the other type.

2.2.2 Second noise restoration

Based on the above noise classification result, two different restoration skills will be applied for the noise corrupted pixels. The noise corrupted pixels, whose characteristic difference parameters in the the 3 × 3 window are greater than 6, are secondly restored by the proposed adaptive directional mean filter. And the rest of the noise corrupted pixels are secondly restored by the mean filter in the 3 × 3 window. Then for any one pixel p, its second restoration gray level is calculated according to the following different situations: where mean3() denotes the mean filter with the filtering window of size 3 × 3. adpdir() is the proposed adaptive directional mean filter. The adaptive directional mean filter is developed to restore the gray levels of noise corrupted pixels based on the multi-directional image information. Firstly, the proposed filter designs four direction filtering templates in the filtering windows with different size, then adaptively selects the optimal filtering window and direction template according to the characteristics of pixels in the neighborhood, finally replaces the gray level of each noise corrupted pixel by the mean value of the gray levels of pixels on the optimal direction template. The detailed process of the adaptive directional mean filter is given as follows: Step 1: Establish a filtering window of size 3 × 3 as shown in Fig 2(A) and design four direction templates as shown in Fig 2(B).
Fig 2

3 × 3 filtering window and four direction templates.

(A) 3 × 3 filtering window. (B) Four direction templates.

3 × 3 filtering window and four direction templates.

(A) 3 × 3 filtering window. (B) Four direction templates. At first, it should be judged that whether the optimal direction template can be selected from the four direction templates in the 3 × 3 filtering window. And the judgement condition is that all the pixels except for the central pixel on each direction template are noise-free pixels or second restored pixels. Considering that the filtering order of the denoising method are from left to right and from top to bottom, pixels P1, P2, P3, P4 are noise-free pixels or second restored pixels. Then, only if all the pixels P6, P7, P8, P9 are noise-free pixels, the optimal direction template can be selected from the four templates in the 3 × 3 filtering window. Otherwise, the size of the filtering window need to be further enlarged as shown in the next step. The selection process of the optimal direction template is as follows: Calculate the absolute gray level difference a of the pixels on every direction template E except for the central pixel as follows: where l(1 ≤ l ≤ 4) is the direction index, and denote the gray levels of the pixels at the position (s1, t1) and (s2, t2) of the filtering template E, respectively. Identify the minimum gray level difference among the four absolute gray level differences as follows: Select the direction template with the minimum gray level difference as the optimal one, and denote it as . After selecting the optimal direction template, the noise-free pixels and the second restored pixels on the optimal direction template are selected to restore the gray level of the central pixel. And in this step, two pixels on the optimal direction template are selected to restore the gray level of the central pixel. Then the second restoration gray level is the mean gray level of the two pixels on the optimal direction template and it is calculated as follows: where and denote the gray levels of the pixels at the position (s1, t1) and (s2, t2) of the optimal direction template , respectively. Besides, if the pixels P6, P7, P8, P9 are not all noise-free pixels, the optimal direction template cannot be selected from the four templates in the 3 × 3 window and the next step will be performed. Step 2: Enlarge the size of filtering window to be 5 × 5 as shown in Fig 3(A) and design four direction templates as shown in Fig 3(B).
Fig 3

5 × 5 filtering window and four direction templates.

(A) 5 × 5 filtering window. (B) Four direction templates.

5 × 5 filtering window and four direction templates.

(A) 5 × 5 filtering window. (B) Four direction templates. Similar to the previous step, it should be judged that whether the optimal direction template can be selected from the four templates in the 5 × 5 filtering window. And the judgement condition is that except for the central pixel, there are at least two noise-free pixels or second restored pixels on each direction template. In other words, only if all the direction filtering template meet the condition, the optimal direction template can be selected from the four templates in the 5 × 5 filtering window. Otherwise, the size of filtering window need to be further enlarged as shown in the final step. From the previous step, it is known that the pixels P1, P2, P3, P4 are noise-free pixels or second restored pixels. Therefore, the characteristics of other pixels P6, P7, P8, P9, P10, P11, P12, P13 will be identified. And the first direction template as shown in Fig 3(B) is taken as an example to introduce the judgement process of pixels on the direction template as follows: The pixel P9 is firstly identified whether it is a noise-free pixel. If it is a noise-free pixel, pixel P1 and pixel P9 will be selected as the pixels on the direction template. Instead, if it is a noise corrupted pixel, the characteristic of pixel P13 will be judged. If the pixel P13 is a noise-free pixel, pixel P1 and pixel P13 will be selected as the pixels on the direction template. Otherwise, if it is a noise corrupted pixel, the size of filtering window need to be further enlarged to be 7 × 7. After judging the first direction template, the other three direction templates shown in Fig 3(B) will be judged that whether they can meet the condition. For all the four direction templates, if no need to enlarge the size of filtering window appears, the filtering window of size 5 × 5 can be used to restore the gray level of the central noise corrupted pixel. And similar to the step 1, the same selection process for the optimal direction template will be performed. Similarly, in this step two pixels are selected to restore the gray level of the central pixel. And according to the same calculated process as the step 1, the gray level of the central pixel will be replaced by the mean gray level of the selected pixels on the optimal direction template. Instead, if the optimal direction template cannot be selected from the four direction templates in the 5 × 5 filtering window, the final step will be performed. Step 3: Further enlarge the size of filtering window to be 7 × 7 and design four direction templates as shown in Fig 4.
Fig 4

Four direction templates in 7 × 7 filtering window.

From Fig 4, it can be seen that there are more pixels in every direction template in the 7 × 7 filtering window than the above two filtering windows. Hence, the filtering window will not be further enlarged up to now and the optimal direction template will be selected from the four direction templates as follows: Identify all the noise-free and second corrected pixels on every direction template E. For each direction template E, identify all the noise-free pixels and second restored pixels and then select the pixel with the maximum gray level and the pixel with the minimum gray level among all the noise-free pixels and second restored pixels. Calculate the absolute gray level difference a of and on every direction template as follows: where l(1 ≤ l ≤ 4) is the direction index. Identify the minimum gray level difference among the four absolute gray level differences by the following formula: Select the direction template with the minimum gray level difference as the optimal one, and denote it as . Similar to the above steps, after selecting the optimal direction template the noise-free pixels and the second restored pixels on the optimal direction template are selected to restore the gray level of the central pixel. And the gray level of the central pixel will be replaced by the mean gray level of the selected pixels on the optimal direction template. Then the second restoration gray level of the central pixel is calculated according to the following formula: where denotes the selected pixel on the optimal direction template. The value of n is equal to the number of the selected pixels.

3 Experimental results

In order to demonstrate the effectiveness of the proposed filter, the proposed filter is firstly compared with five representative denoising methods include the switching median (SM) filter [20], the directional weighted median (DWM) filter [26], the modified directional weighted median (MDWM) filter [27], the modified directional weighted (MDW) filter [28] and the three-values-weighted (TVW) filter [30]. Three typical gray level images with different image features include Lena, Boat and Zelda are selected as the test images. The performance of image restoration results is quantitatively evaluated by two measures, namely, PSNR (peak signal-to-noise ratio) [32] and MSSIM (mean structural similarity) [33]. The higher the value of PSNR is, the better the quality of the restored image is. PSNR can be expressed as where MAX is the maximum gray level of an image and its value is 255 for a gray level image. The MSE denotes the mean square error between the original noise-free image and the restored image, which can be calculated by where s and denote the original pixel and the restored pixel, respectively. M and N are the sizes of an image for the width and the height. MSSIM reflects the structural similarity between the restored image and the original noise-free image. The higher value of MSSIM means that the structures in the restored image can be preserved more completely. MSSIM is defined as where x and y denote the original noise-free image and the restored image, respectively. W is the number of local windows in the image. The SSIM denote the structural similarity between the original noise-free image and the restored image which is given by where μ and μ are the means of the input image and the restored image, respectively. σ is the covariance of the input image and the restored image. and are the variances of the input image and the restored image, respectively. C1 and C2 are the constants which can be calculated according to the paper [24]. Table 1 presents the performance comparisons for the different filters in terms of PSNR value for the test images. It can be seen that in the case of low noise corruption (noise density less than 30%), all the filters can perform well. In the case of medium noise corruption, such as 40%-70% noise density, the MDWM, MDW, TVW filters and the proposed filter reveal the superior denoising performance then the SM and DWM filters. As to the cases of heavy noise corruptions (noise density higher than 80%), the TVW filter and the proposed filter achieve the better results than the SM, DWM, MDWM and MDW filters. And compared to other filters, the proposed filter can obtain the higher value of PSNR in the cases of various noise densities. Hence, Table 1 indicates that the proposed filter is able to more effectively remove salt-and-pepper noise than other compared filters.
Table 1

Comparisons of restoration results in PSNR value for the test images.

ImageNoise density(%)Denoising algorithms
SMDWMMDWMMDWTVWProposed
Lena1036.1240.7841.5042.7142.5343.08
2033.4237.0238.1339.4939.1239.87
3031.3634.6336.1037.2836.9237.63
4029.8832.5134.1635.4135.1635.79
5028.5430.2332.6233.4433.8734.02
6026.7627.6931.2231.3432.2932.13
7024.4725.2329.7730.3530.9531.10
8019.5221.0027.9428.8129.1229.45
908.8015.4525.3426.5726.8427.16
Boat1032.8436.1938.6039.7839.4839.98
2030.0532.8135.4136.5336.3136.85
3028.1530.4433.1534.2134.0234.42
4026.7628.6131.3132.6032.5432.91
5025.0826.7029.8230.8531.1431.30
6023.1624.2528.3228.1529.5528.99
7020.5422.1026.8527.2028.1528.16
8013.2518.3625.0925.9426.4026.67
907.8314.4222.7323.8023.9824.38
Zelda1039.7243.3945.4947.2646.7347.61
2036.9039.8542.0443.8443.4744.15
3035.2637.7640.0041.5641.2241.97
4033.4835.2737.9339.5339.3740.18
5031.9833.3236.3936.2437.8537.42
6030.0530.9234.7934.9636.2536.28
7025.7927.2633.0533.8134.5734.74
8014.5522.8531.1231.8732.8332.99
908.4216.3328.3529.4130.2730.52
The performance comparisons for the different filters in terms of MSSIM value for the test images are shown in Table 2. One can observe that the MSSIM values of the restoration results of the SM and DWM filters are significantly less than the MDWM, MDW, TVW filters and the proposed filter in the case of various noise densities. It means that the MDWM, MDW, TVW filters and the proposed filter have stronger capability than the SM and DWM filters for preserving image structures. Besides, in the case of higher noise density, the TVW filter and the proposed filter can achieve the larger values of MSSIM than the MDWM and MDW filters. This indicates that the TVW filter and the proposed filter can preserve image structures better than the MDWM and MDW filters at heavy noise density. In addition, the proposed filter achieves the largest value of MSSIM among the different filters in the case of various noise densities. In other words, the structures in the restoration results of the proposed filter can be preserved more completely than other compared filters.
Table 2

Comparisons of restoration results in MSSIM value for the test images.

ImageNoise density(%)Denoising algorithms
SMDWMMDWMMDWTVWProposed
Lena100.99340.99080.99380.99750.99750.9976
200.99720.97390.98680.99430.99430.9955
300.96340.95110.97780.99020.99040.9921
400.94310.92030.96430.98360.98480.9877
500.92140.87720.94810.96780.97810.9801
600.88900.81780.92630.95600.96820.9700
700.80940.73280.89510.94070.95440.9616
800.61120.58650.84620.90650.92680.9397
900.24020.38160.75680.42230.87020.9007
Boat100.97270.98680.99320.99760.99750.9976
200.95010.96250.98510.99410.99410.9945
300.91610.93070.97360.98870.98910.9894
400.87130.88820.95900.98180.98350.9839
500.81890.83060.93850.96460.97530.9754
600.75060.75150.91120.93900.96390.9507
700.65190.64270.86950.91510.94620.9461
800.47030.50070.80780.87340.91120.9116
900.23760.31840.70120.36220.83410.8352
Zelda100.99160.99540.99650.99910.99910.9992
200.98240.98740.99230.99780.99780.9980
300.97000.97450.98670.99600.99620.9964
400.95630.95580.97830.99240.99370.9940
500.93480.92660.96730.97940.99050.9907
600.90620.88050.95150.97490.98570.9858
700.83380.78820.92450.96320.97720.9773
800.59340.62750.88950.93900.96130.9617
900.11650.36730.81030.88910.91980.9206
Tables 3 and 4 present the quantitative comparisons for the various filters in terms of the average PSNR value and the average MSSIM value for the three test images, respectively. According to Table 3, one can observe that the MDWM, MDW, TVW filters and the proposed filter achieve the larger average PSNR value than the SM and DWM filters in the cases of various noise densities. In the heavy noise corruption, the TVW filter and the proposed filter can perform better than the MDWM and MDW filters. And the proposed filter usually obtains the largest average PSNR value. From the quantitative comparisons as shown in Table 4, we can obtain the similar conclusions. Hence, the proposed filter can achieves the larger average values of PSNR and MSSIM than other filters which can indicate that the proposed filter outperforms than the other filters in image denoising and detail preservation.
Table 3

Quantitative comparisons of restoration results in average PSNR value for the test images.

Noise density(%)Denoising algorithms
SMDWMMDWMMDWTVWProposed
1036.2340.1241.8643.2542.9143.56
2033.4636.5638.5339.9539.6340.29
3031.5934.2836.4237.6837.3938.01
4030.0432.1334.4735.8535.6936.29
5028.5330.0832.9433.5134.2934.30
6026.6627.6231.4431.4832.7032.47
7023.2624.8629.8930.4531.2231.33
8015.7720.7428.0528.8729.4529.70
908.3515.4025.4726.5927.0327.35
Table 4

Quantitative comparisons of restoration results in average MSSIM value for the test images.

Noise density(%)Denoising algorithms
SMDWMMDWMMDWTVWProposed
100.98590.99100.99450.99810.99800.9981
200.97660.97460.98810.99540.99540.9960
300.94980.95210.97940.99160.99190.9926
400.92360.92140.96720.98590.98730.9885
500.89170.87810.95130.97060.98130.9820
600.84860.81660.92970.95660.97260.9688
700.76500.72120.89640.93970.95930.9617
800.55830.57160.84780.90630.93310.9377
900.19810.35580.75610.55790.87470.8855
In order to explore the visual quality of the various filters, we show the restored images in the case of different noise density. Figs 5, 6 and 7 show the restoration results of various filters for the Lena, Boat and Zelda images, respectively. And the test images are corrupted by salt-and-pepper noise with 50% noise density. One can observe that the AM and DWM filters obtain the worst image restoration effect. Although they can remove the salt-and-pepper noise from the corrupted images, they still suffer from the blurred effect for the edges and details in the restored images. The MDWM, MDW, TVW filters and the proposed filter can efficiently remove the noise and be free from the blurred effect in the restored images. Besides, the TVW filter and the proposed filter achieve the better visual effect than other filters, because they can preserve more edges and contain less noise in the restoration images.
Fig 5

Restoration results of various filters for the Lena image with 50% noise density.

(A) Noise-free image. (B) Noise corrupted image. (C) Restoration result of SM filter. (D) Restoration result of DWM filter. (E) Restoration result of MDWM filter. (F) Restoration result of MDW filter. (G) Restoration result of TVW filter. (H) Restoration result of proposed filter.

Fig 6

Restoration results of various filters for the Boat image with 50% noise density.

(A) Noise-free image. (B) Noise corrupted image. (C) Restoration result of SM filter. (D) Restoration result of DWM filter. (E) Restoration result of MDWM filter. (F) Restoration result of MDW filter. (G) Restoration result of TVW filter. (H) Restoration result of proposed filter.

Fig 7

Restoration results of various filters for the Zelda image with 50% noise density.

(A) Noise-free image. (B) Noise corrupted image. (C) Restoration result of SM filter. (D) Restoration result of DWM filter. (E) Restoration result of MDWM filter. (F) Restoration result of MDW filter. (G) Restoration result of TVW filter. (H) Restoration result of proposed filter.

Restoration results of various filters for the Lena image with 50% noise density.

(A) Noise-free image. (B) Noise corrupted image. (C) Restoration result of SM filter. (D) Restoration result of DWM filter. (E) Restoration result of MDWM filter. (F) Restoration result of MDW filter. (G) Restoration result of TVW filter. (H) Restoration result of proposed filter.

Restoration results of various filters for the Boat image with 50% noise density.

(A) Noise-free image. (B) Noise corrupted image. (C) Restoration result of SM filter. (D) Restoration result of DWM filter. (E) Restoration result of MDWM filter. (F) Restoration result of MDW filter. (G) Restoration result of TVW filter. (H) Restoration result of proposed filter.

Restoration results of various filters for the Zelda image with 50% noise density.

(A) Noise-free image. (B) Noise corrupted image. (C) Restoration result of SM filter. (D) Restoration result of DWM filter. (E) Restoration result of MDWM filter. (F) Restoration result of MDW filter. (G) Restoration result of TVW filter. (H) Restoration result of proposed filter. Figs 8, 9 and 10 show the restoration results of various filters for the test images which are corrupted by salt-and-pepper noise with 80% noise density. It can be found that the SM and DWM filters fail to restore the heavy noise corrupted image. The restored images of MDWM filter suffer from a great quantity of blurred effects for edges and details. Although the DWM filter can restore image edges and details from the noise corrupted image, plenty of residual noise still exists in the restored images. The TVW filter and the proposed filter can distinguish the contours of the test images, but the TVW filter still has a few white noise and black noise in the restored images. Therefore, the above restoration results clearly indicate that the proposed filter obtains the best visual effect in terms of noise suppression and detail preservation especially when the noise density is high.
Fig 8

Restoration results of various filters for the Lena image with 80% noise density.

(A) Noise-free image. (B) Noise corrupted image. (C) Restoration result of SM filter. (D) Restoration result of DWM filter. (E) Restoration result of MDWM filter. (F) Restoration result of MDW filter. (G) Restoration result of TVW filter. (H) Restoration result of proposed filter.

Fig 9

Restoration results of various filters for the Boat image with 80% noise density.

(A) Noise-free image. (B) Noise corrupted image. (C) Restoration result of SM filter. (D) Restoration result of DWM filter. (E) Restoration result of MDWM filter. (F) Restoration result of MDW filter. (G) Restoration result of TVW filter. (H) Restoration result of proposed filter.

Fig 10

Restoration results of various filters for the Zelda image with 80% noise density.

(A) Noise-free image. (B) Noise corrupted image. (C) Restoration result of SM filter. (D) Restoration result of DWM filter. (E) Restoration result of MDWM filter. (F) Restoration result of MDW filter. (G) Restoration result of TVW filter. (H) Restoration result of proposed filter.

Restoration results of various filters for the Lena image with 80% noise density.

(A) Noise-free image. (B) Noise corrupted image. (C) Restoration result of SM filter. (D) Restoration result of DWM filter. (E) Restoration result of MDWM filter. (F) Restoration result of MDW filter. (G) Restoration result of TVW filter. (H) Restoration result of proposed filter.

Restoration results of various filters for the Boat image with 80% noise density.

(A) Noise-free image. (B) Noise corrupted image. (C) Restoration result of SM filter. (D) Restoration result of DWM filter. (E) Restoration result of MDWM filter. (F) Restoration result of MDW filter. (G) Restoration result of TVW filter. (H) Restoration result of proposed filter.

Restoration results of various filters for the Zelda image with 80% noise density.

(A) Noise-free image. (B) Noise corrupted image. (C) Restoration result of SM filter. (D) Restoration result of DWM filter. (E) Restoration result of MDWM filter. (F) Restoration result of MDW filter. (G) Restoration result of TVW filter. (H) Restoration result of proposed filter. The enlarged restoration results of various filters for the details of test images with 50% noise density are shown in Figs 11, 12 and 13, respectively. From Fig 11, one can observe that the details such as the tassels of Lena image, are blurred in the restored results of the SM and DWM filters. The MDWM and MDW can preserve the details, but some residual noise still exists in the restored images. The TVW filter and the proposed filter can preserve the details better than the MDWM and MDW filters. From Figs 12 and 13, the similar conclusions as Fig 11 can be obtained. The enlarged restoration results of various filters for the details of test images with 80% noise density are shown in Figs 14, 15 and 16, respectively. From Fig 14, it can be seen that the details are seriously blurred in the restored results of the SM and DWM filters. Although the details in the restored images of MDWM are blurred, the contours still can be judged from the restored images. The MDW and TVW filters can preserve the details, but some residual noise still exists in the restored images. The proposed filter can preserve the details better than the other filters. The similar conclusions as Fig 14 can be obtained from Figs 15 and 16. All of these results indicate that the proposed filter can obtains the best visual effect in terms of noise suppression and detail preservation in the cases of various noise densities.
Fig 11

Enlarged restoration results of various filters for the details of Lena image with 50% noise density.

(A) Noise-free image. (B) Noise corrupted image. (C) Restoration result of SM filter. (D) Restoration result of DWM filter. (E) Restoration result of MDWM filter. (F) Restoration result of MDW filter. (G) Restoration result of TVW filter. (H) Restoration result of proposed filter.

Fig 12

Enlarged restoration results of various filters for the details of Boat image with 50% noise density.

(A) Noise-free image. (B) Noise corrupted image. (C) Restoration result of SM filter. (D) Restoration result of DWM filter. (E) Restoration result of MDWM filter. (F) Restoration result of MDW filter. (G) Restoration result of TVW filter. (H) Restoration result of proposed filter.

Fig 13

Enlarged restoration results of various filters for the details of Zelda image with 50% noise density.

(A) Noise-free image. (B) Noise corrupted image. (C) Restoration result of SM filter. (D) Restoration result of DWM filter. (E) Restoration result of MDWM filter. (F) Restoration result of MDW filter. (G) Restoration result of TVW filter. (H) Restoration result of proposed filter.

Fig 14

Enlarged restoration results of various filters for the details of Lena image with 80% noise density.

(A) Noise-free image. (B) Noise corrupted image. (C) Restoration result of SM filter. (D) Restoration result of DWM filter. (E) Restoration result of MDWM filter. (F) Restoration result of MDW filter. (G) Restoration result of TVW filter. (H) Restoration result of proposed filter.

Fig 15

Enlarged restoration results of various filters for the details of Boat image with 80% noise density.

(A) Noise-free image. (B) Noise corrupted image. (C) Restoration result of SM filter. (D) Restoration result of DWM filter. (E) Restoration result of MDWM filter. (F) Restoration result of MDW filter. (G) Restoration result of TVW filter. (H) Restoration result of proposed filter.

Fig 16

Enlarged restoration results of various filters for the details of Zelda image with 80% noise density.

(A) Noise-free image. (B) Noise corrupted image. (C) Restoration result of SM filter. (D) Restoration result of DWM filter. (E) Restoration result of MDWM filter. (F) Restoration result of MDW filter. (G) Restoration result of TVW filter. (H) Restoration result of proposed filter.

Enlarged restoration results of various filters for the details of Lena image with 50% noise density.

(A) Noise-free image. (B) Noise corrupted image. (C) Restoration result of SM filter. (D) Restoration result of DWM filter. (E) Restoration result of MDWM filter. (F) Restoration result of MDW filter. (G) Restoration result of TVW filter. (H) Restoration result of proposed filter.

Enlarged restoration results of various filters for the details of Boat image with 50% noise density.

(A) Noise-free image. (B) Noise corrupted image. (C) Restoration result of SM filter. (D) Restoration result of DWM filter. (E) Restoration result of MDWM filter. (F) Restoration result of MDW filter. (G) Restoration result of TVW filter. (H) Restoration result of proposed filter.

Enlarged restoration results of various filters for the details of Zelda image with 50% noise density.

(A) Noise-free image. (B) Noise corrupted image. (C) Restoration result of SM filter. (D) Restoration result of DWM filter. (E) Restoration result of MDWM filter. (F) Restoration result of MDW filter. (G) Restoration result of TVW filter. (H) Restoration result of proposed filter.

Enlarged restoration results of various filters for the details of Lena image with 80% noise density.

(A) Noise-free image. (B) Noise corrupted image. (C) Restoration result of SM filter. (D) Restoration result of DWM filter. (E) Restoration result of MDWM filter. (F) Restoration result of MDW filter. (G) Restoration result of TVW filter. (H) Restoration result of proposed filter.

Enlarged restoration results of various filters for the details of Boat image with 80% noise density.

(A) Noise-free image. (B) Noise corrupted image. (C) Restoration result of SM filter. (D) Restoration result of DWM filter. (E) Restoration result of MDWM filter. (F) Restoration result of MDW filter. (G) Restoration result of TVW filter. (H) Restoration result of proposed filter.

Enlarged restoration results of various filters for the details of Zelda image with 80% noise density.

(A) Noise-free image. (B) Noise corrupted image. (C) Restoration result of SM filter. (D) Restoration result of DWM filter. (E) Restoration result of MDWM filter. (F) Restoration result of MDW filter. (G) Restoration result of TVW filter. (H) Restoration result of proposed filter. In order to further demonstrate the effectiveness of the proposed filter, the proposed filter is compared with some state-of-the-art filters for noise removal as the adaptive weighted mean (AWM) filter [22], the adaptive decision based kriging interpolation (ADKI) filter [23], the adaptive iterative fuzzy (AIF) filter [29] and the adaptive Type-2 fuzzy (ATF) filter [31]. Table 5 presents the performance comparisons for the different filters in terms of PSNR for Lena image. It can be seen that the proposed filter can obtain the higher value of PSNR than AWM filter in the case of different noise density. Compared with the AIF and ATF filters, the proposed filter can achieve the higher value of PSNR in the case of heavy noise corruption (noise density higher than 80%). Although the ADKI filter can obtain the higher value of PSNR than the proposed filter in the case of different noise density, the operating conditions of the ADKI filter are stricter than the proposed filter. Hence, Table 5 shows that the proposed filter can perform better than some state-of-the-art filters.
Table 5

Quantitative comparisons of restored results in PSNR value for Lena image.

Noise density(%)Denoising algorithms
AWMAIFATFADKIProposed
2036.3039.9240.7541.2539.87
5032.6234.1034.8835.8534.02
8027.6728.8428.9230.1229.45
Table 6 presents the performance comparisons of the proposed filter in error rate for the test images. It can be seen that the error rate of the proposed filter increases with the noise density. However, in the case of low noise corruption (noise density less than 30%), the error rate of the proposed filter does not exceed 30. And in the case of medium noise corruption, such as 40%-70% noise density, the error rate of the proposed filter is less than 65. As to the cases of heavy noise corruptions (noise density higher than 80%), the error rate of the proposed filter is less than 85. Therefore, Table 6 indicates that the proposed filter is able to effectively and accurately detect the salt-and-pepper noise.
Table 6

Performance comparisons of the proposed filter in error rate for the test images.

ImageNoise density(%)
102030405060708090
Lena8.4517.0625.6234.3142.9851.9560.6370.4980.82
Boat9.0617.7226.3134.9843.5652.6361.2571.1481.45
Zelda7.6316.3225.0333.7542.3051.2860.0269.8780.16

4 Conclusion

A new two-stage filter for removing salt-and-pepper noise using noise detector based on characteristic difference parameter and adaptive directional mean filter is proposed in this paper. There are three main contributions of the proposed filter. The first one is that the proposed filter introduces the noise detector based on the characteristic difference parameter and gray level extreme to effectively and accurately identify the noise corrupted pixels. The second one is that the proposed filter introduces a restoration scheme to secondly restore the noise corrupted pixels after primary filtering by two different restoration skills. The third one is that a new adaptive directional mean filter is developed in the restoration scheme which can effectively remove noise in the case of various noise densities meanwhile preserve some important edges and details especially at the high noise density. Experimental results on a series of images with varying noise densities show that the proposed method can perform better than many other existing main filters in terms of image denoising and detail preservation.
  10 in total

1.  Image quality assessment: from error visibility to structural similarity.

Authors:  Zhou Wang; Alan Conrad Bovik; Hamid Rahim Sheikh; Eero P Simoncelli
Journal:  IEEE Trans Image Process       Date:  2004-04       Impact factor: 10.856

2.  The iDUDE framework for grayscale image denoising.

Authors:  Giovanni Motta; Erik Ordentlich; Ignacio Ramírez; Gadiel Seroussi; Marcelo J Weinberger
Journal:  IEEE Trans Image Process       Date:  2011-01       Impact factor: 10.856

3.  Salt-and-Pepper noise removal by median-type noise detectors and detail-preserving regularization.

Authors:  Raymond H Chan; Chung-Wa Ho; Mila Nikolova
Journal:  IEEE Trans Image Process       Date:  2005-10       Impact factor: 10.856

4.  A switching median filter with boundary discriminative noise detection for extremely corrupted images.

Authors:  Pei-Eng Ng; Kai-Kuang Ma
Journal:  IEEE Trans Image Process       Date:  2006-06       Impact factor: 10.856

5.  Adaptive median filters: new algorithms and results.

Authors:  H Hwang; R A Haddad
Journal:  IEEE Trans Image Process       Date:  1995       Impact factor: 10.856

6.  Noise adaptive soft-switching median filter.

Authors:  H L Eng; K K Ma
Journal:  IEEE Trans Image Process       Date:  2001       Impact factor: 10.856

7.  A multiple-kernel fuzzy C-means algorithm for image segmentation.

Authors:  Long Chen; C L Philip Chen; Mingzhu Lu
Journal:  IEEE Trans Syst Man Cybern B Cybern       Date:  2011-04-05

8.  Hierarchical Feature Extraction With Local Neural Response for Image Recognition.

Authors:  Hong Li; Yantao Wei; Luoqing Li; C L P Chen
Journal:  IEEE Trans Cybern       Date:  2013-03-07       Impact factor: 11.448

9.  Group sparse multiview patch alignment framework with view consistency for image classification.

Authors:  Jie Gui; Dacheng Tao; Zhenan Sun; Yong Luo; Xinge You; Yuan Yan Tang
Journal:  IEEE Trans Image Process       Date:  2014-07       Impact factor: 10.856

10.  Adaptive marginal median filter for colour images.

Authors:  Samuel Morillas; Valentín Gregori; Almanzor Sapena
Journal:  Sensors (Basel)       Date:  2011-03-15       Impact factor: 3.576

  10 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.