Next Article in Journal
Sensing of Transition Metals by Top-Down Carbon Dots
Next Article in Special Issue
TDGVRPSTW of Fresh Agricultural Products Distribution: Considering Both Economic Cost and Environmental Cost
Previous Article in Journal
Enhancement of a Spent Irrigation Water Recycling Process: A Case Study in a Food Business
Previous Article in Special Issue
BiTTM: A Core Biterms-Based Topic Model for Targeted Analysis
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Improved Image Filtering Algorithm for Mixed Noise

1
School of Geophysics, Chengdu University of Technology, Chengdu 610059, China
2
Education and Information Technology Center, China West Normal University, Nanchong 637002, China
3
Geomathematics Key Laboratory of Sichuan Province, Chengdu University of Technology, Chengdu 610059, China
4
School of Computer Science, China West Normal University, Nanchong 637002, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2021, 11(21), 10358; https://doi.org/10.3390/app112110358
Submission received: 8 October 2021 / Revised: 1 November 2021 / Accepted: 2 November 2021 / Published: 4 November 2021
(This article belongs to the Special Issue Soft Computing Application to Engineering Design)

Abstract

:
In recent years, image filtering has been a hot research direction in the field of image processing. Experts and scholars have proposed many methods for noise removal in images, and these methods have achieved quite good denoising results. However, most methods are performed on single noise, such as Gaussian noise, salt and pepper noise, multiplicative noise, and so on. For mixed noise removal, such as salt and pepper noise + Gaussian noise, although some methods are currently available, the denoising effect is not ideal, and there are still many places worthy of improvement and promotion. To solve this problem, this paper proposes a filtering algorithm for mixed noise with salt and pepper + Gaussian noise that combines an improved median filtering algorithm, an improved wavelet threshold denoising algorithm and an improved Non-local Means (NLM) algorithm. The algorithm makes full use of the advantages of the median filter in removing salt and pepper noise and demonstrates the good performance of the wavelet threshold denoising algorithm and NLM algorithm in filtering Gaussian noise. At first, we made improvements to the three algorithms individually, and then combined them according to a certain process to obtain a new method for removing mixed noise. Specifically, we adjusted the size of window of the median filtering algorithm and improved the method of detecting noise points. We improved the threshold function of the wavelet threshold algorithm, analyzed its relevant mathematical characteristics, and finally gave an adaptive threshold. For the NLM algorithm, we improved its Euclidean distance function and the corresponding distance weight function. In order to test the denoising effect of this method, salt and pepper + Gaussian noise with different noise levels were added to the test images, and several state-of-the-art denoising algorithms were selected to compare with our algorithm, including K-Singular Value Decomposition (KSVD), Non-locally Centralized Sparse Representation (NCSR), Structured Overcomplete Sparsifying Transform Model with Block Cosparsity (OCTOBOS), Trilateral Weighted Sparse Coding (TWSC), Block Matching and 3D Filtering (BM3D), and Weighted Nuclear Norm Minimization (WNNM). Experimental results show that our proposed algorithm is about 2–7 dB higher than the above algorithms in Peak Signal-Noise Ratio (PSNR), and also has better performance in Root Mean Square Error (RMSE), Structural Similarity (SSIM), and Feature Similarity (FSIM). In general, our algorithm has better denoising performance, better restoration of image details and edge information, and stronger robustness than the above-mentioned algorithms.

1. Introduction

Images are inevitably affected by noise during the process of acquisition, storage, recording, and transmission, which reduces the image contrast and seriously affects the application of images [1]. For most images, the noise mainly comes from Gaussian noise and impulse noise. In many cases, the two types of noise appear at the same time. Gaussian noise comes from electronic circuit noise and sensor noise caused by low lighting or high temperature. It has the characteristics of high density and a wide fluctuation range of noise intensity [2]. Impulse noise is also called salt and pepper noise, which is generated by the image sensor, transmission channel, decoder, etc., and appears as black and white spots on the image. In the process of image denoising, the main factor to be considered is to ensure the integrity of image features while removing noise. These features mainly include the information of image edge, image contour, image texture, and image color, etc.
Traditional filtering algorithms are mainly divided into two categories: spatial domain and frequency domain [3]. The spatial domain method processes the image pixels directly, and traditional spatial filtering includes median filtering, mean filtering, Gaussian filtering, and bilateral filtering. The frequency domain method transforms the original image into the frequency domain through integral transformation, then deals with the image in the frequency domain and finally transforms it into the spatial domain inversely to enhance the image and achieve the purpose of denoising. Traditional frequency domain filtering includes Fourier transform, discrete cosine transform, wavelet transform, and multi-scale geometric analysis, etc.
Among all the algorithms for removing salt and pepper noise in images, traditional median filtering is a commonly used and effective method. The algorithm uses the median value of pixels in the neighborhood of a small window to replace the gray value of each pixel in the original image, which has a good effect on suppressing impulse noise. The image edge and other details can be better maintained. The disadvantage is that the algorithm uses the neighborhood median to replace all pixels of the noise image, which makes the algorithm’s filtering performance drop sharply under the condition of high-density noise pollution, and even loses its denoising performance, and the edges are prone to shift and the texture details are not clear. For this reason, some improved median filtering algorithms [4,5,6,7,8] have been proposed. These algorithms improve the performance of median filtering to a certain extent and can filter out salt and pepper noise with high density; however, the protection of image edge details is still not ideal. Reference [9] is an improved Adaptive Median Filter (AMF) algorithm, which can adjust the size of the filter window according to the noise density, but it is easy to misjudge the extreme point as a noise point to filtering. Reference [10] is another improved adaptive median filtering algorithm. Based on the idea of maximum–minimum median filtering, the algorithm uses a two-level detection method to accurately divide pixels into signal points and noise points, so as to filtering image noise effectively. Reference [11] proposed an improved multilevel median filtering algorithm (VHWR). The algorithm can better maintain the image details, greatly improve the filtering effect of salt and pepper noise with high density. However, the denoising effect is not satisfactory when the noise density is too high.
Since Donoho et al. proposed the hard threshold function [12] and the soft threshold function [13], the wavelet threshold denoising algorithm has been widely used. However, the discontinuity of the hard threshold function will cause the reconstructed image signal to oscillate, and the fixed deviation of the soft threshold function will result in blurry or excessively smooth borders to the denoised image. A large number of scholars have proposed many improved wavelet threshold functions to achieve a more accurate denoising effect [14,15,16,17,18,19]. Reference [20] proposed a new wavelet threshold algorithm that overcomes the problems of fixed deviation and discontinuity in the traditional wavelet threshold function, and improves the wavelet threshold function and the threshold. Reference [21] combines the advantages of the joint regularization restoration method of spatial local threshold processing and wavelet domain processing and can achieve good results in effectively suppressing noise and artifacts. Reference [22] takes advantage of the merits of traditional Wiener filtering in the wavelet domain to deal with mixed noise, and it carries out improved Wiener filtering based on multi-directional weighting, so that the algorithm can well maintain the detailed features of the original image and further improve the peak signal-to-noise ratio of the output image. Reference [23] has studied the multi-resolution method of Haar wavelet transform for medical image denoising. It applies Haar transform to each two-dimensional image layer separately and evaluates the whole image using three-dimensional technology. This method benefits from the similarity between adjacent image layers and has a reasonable denoising effect. Reference [24] proposed a wavelet denoising method based on an unsupervised learning model. The method uses the advantages of wavelet transform and uses an unsupervised dictionary learning algorithm to create a dictionary for noise reduction, which shows very competitive denoising performance. Reference [25] presented improvements in image gap restoration through the incorporation of edge-based directional interpolation within multi-scale pyramid transforms and reconstructed two types of image edges. Reference [26] shows how to design a complex wavelet with good characteristics based on the important characteristics of dual-tree complex wavelet transform and explains a series of applications of dual-tree complex wavelet in signal and image processing.
Buades et al. [27] proposed the Non-local Means (NLM) denoising algorithm in 2005. By utilizing the repeatability and self-correlation within an image, the algorithm first calculates the weighted average value of the neighborhood of all pixels in the image and the neighborhood of the current pixel, then takes the average value as the Euclidean distance between the two points and assigns weights to them through the weight function. The sum of the product of the weight and all pixels is the denoised value of the current pixel. However, the NLM algorithm still has an unsatisfactory denoising effect on excessively high noise; therefore, many new algorithms have been proposed [28,29,30,31,32,33]. Reference [34] separates noise components from image information using Principal Component Analysis (PCA), improves the accuracy of similarity measurement of NLM algorithm, and achieves a good denoising effect. Reference [35] proposes a new NLM algorithm based on similarity confirmation. The algorithm first determines the threshold according to the distance distribution between image blocks, and it then uses the reserved image blocks to realize denoising. Reference [36] designed a new similarity weight function using the residual image information in the method noise and achieved good denoising effect. Reference [37] uses an improved NLM algorithm to solve the problems of long time-consuming, unreasonable weight distribution and failure to highlight the role of central pixels when calculating the similarity between neighborhoods by Euclidean distance. The algorithm can measure the neighborhood similarity more accurately and better retain the edge and detail information of the image when removing Gaussian noise. The denoising effect of noised images is further improved. In recent years, denoising algorithms based on sparse regularization have attracted the attention of many scholars due to their characteristics of over-completeness and sparsity. Elad et al. [38] proposed a denoising algorithm of sparse representation KSVD, which makes full use of the advantages of sparse representation and can well preserve the edge of the image while denoising. The algorithm assumes that the structural elements of the image can be expressed by a set of super-complete dictionary atoms. The dictionary atoms are used to reconstruct the image to remove redundancy and achieve the purpose of denoising. However, the algorithm is only suitable for removing slightly polluted noise images. In the case of serious noise pollution, the image denoising effect is not very satisfactory. In order to further improve the denoising effect, reference [39] proposed a Non-locally Centralized Sparse Representation (NCSR) algorithm. The algorithm introduces the concept of sparse coding noise to transform the solution target of the model from acquiring the original image to suppressing the sparse coding noise of the image, and it makes full use of the nonlocal self-similarity of the image to obtain a good estimate of the sparse coding coefficient of the original image. The algorithm can still achieve a good denoising effect when the noise pollution is serious. Reference [40] proposed a denoising algorithm, OCTOBOS, which can adaptively learn the structured incomplete sparse transform with block sparsity (or the equivalent union of square sparse transform), and cluster the data through sparse coding at the same time. Reference [41] proposed a Trilateral Weighted Sparse Coding (TWSC) scheme for real image denoising. TWSC introduces three weight matrices into the data and regularization terms of the sparse coding framework to describe the statistical characteristics of the real noise and image prior model, and it uses the alternating direction method of multiplier to solve the problem. TWSC also has a reasonable denoising performance. Although the denoising effect is good, the iteration and updating of dictionary learning lead to a large amount of calculation and high time cost. Considering the above problems, Dabov et al. [42] proposed a more efficient and higher sparsity transform domain sparse expression method, namely Block Matching and 3D Filtering (BM3D). BM3D utilizes the correlation between “blocks” to achieve a high degree of sparseness of images through joint filtering, with better denoising performance, higher operating efficiency, and more advantages than other methods.
Due to the development of convex and non-convex optimization methods, matrix low-rank approximation has also attracted the attention of many scholars, and many important models and algorithms have been proposed. Rank minimization is one of the important research directions. Because rank minimization is an NP-hard problem [43], it is easy to solve using the nuclear norm of the matrix as the convex relaxation optimization target of the matrix rank, and this method is called Nuclear Norm Minimization (NNM). NNM has developed rapidly, both in theory and in application. Gu et al. [44] proposed the Weighted Nuclear Norm Minimization (WNNM) algorithm to optimize NNM, which assigns different weights to singular values with different values, that is, the larger the singular value, the larger the weight, and the larger the proportion. The algorithm is more effective in removing the noise of natural images.
In view of the mentioned problems above and the status quo of denoising algorithms, this paper proposes a new denoising algorithm for salt and pepper + Gaussian noise based on reference [10], reference [20], and reference [37]. The algorithm first uses the improved median filter algorithm to denoise the original image with mixed noise, which can filter out most of the salt and pepper noise, and then performs n-scale wavelet decomposition on the filtered image. The high-frequency components of each subsequent layer are processed by the improved wavelet threshold algorithm to achieve preliminary removal of Gaussian noise. The processed high-frequency components and unprocessed low-frequency components are then reconstructed. After that, the wavelet decomposition on the reconstructed image is performed with 1-scale, and the improved NLM algorithm is used to process the low-frequency components, which can filter out the noise information remaining in the low frequency components. At the same time, the high-frequency components continue to be processed with the improved wavelet threshold algorithm to further filter out the noise remaining in the high-frequency components. Finally, the low-frequency components and the high-frequency components are again reconstructed to obtain the final denoised image. Experimental results show that the proposed algorithm has a better denoising effect and finer detail restoration ability, both from subjective evaluation and objective evaluation metrics, compared with the algorithms mentioned above.

2. The Filtering Algorithm for Mixed Noise with Salt and Pepper + Gaussian Noise

In this section, we will introduce and analyze the proposed filtering algorithm with mixed noise in detail. This algorithm involves the improvement of three sub-algorithms:
  • We made improvement to the traditional median filtering algorithm. Compared with the Adaptive Median Filtering (AMF) algorithm, the weighted multilevel median filtering algorithm, and the multilevel nonlinear weighted mean median filtering algorithm, the improved algorithm has better filtering effect for salt and pepper noise.
  • We improved the wavelet threshold denoising algorithm’s threshold function and threshold. This improved algorithm has better removal effect on Gaussian noise than the traditional hard threshold denoising, soft threshold denoising, and semi-soft threshold denoising algorithms.
  • We made improvements in the Euclidean distance function that measures the similarity of image blocks in the NLM algorithm, and the distance weight function between similar image blocks. The improved algorithm performs better in filtering Gaussian noise than the NLM algorithm and can better preserve the edge and detail information of the image.
The three improved sub-algorithms are combined to denoise salt and pepper + Gaussian noise according to a certain process. Experimental results show that the algorithm is robust and has excellent denoising ability and detail recovery ability.

2.1. The Improved Median Filtering Algorithm

Median filtering is a classical nonlinear filtering method. It sets the gray value of a pixel point to the median gray value of all pixels in the neighborhood window centered on the point, which is very effective for eliminating salt and pepper noise. Traditional median filtering uses a fixed-size filtering window to sorts all the pixels in the window to find the median value, and it then replaces the center pixel value of the window with the median value. Even if the window center value is not noise, it is still replaced, resulting in the details and edge of image to be blurred.
The algorithm proposed in this paper improves the traditional median filtering algorithm. All pixels of the image are accurately divided into signal points and noise points by the method of two-level detection, and only noise points are processed. The algorithm uses 3 × 3 filtering windows. If the median value of the pixels in the window is not the noise value, the center noise is replaced by the median value; otherwise, the center noise is not processed. This is carried out repeatedly with the corresponding 3 × 3 window in the whole image until there is no noise in the image or the noise cannot be filtered out with a 3 × 3 window. If there are still large noise blocks in the image, the noise points in the noise blocks are replaced by the mean value of the adjacent signal points.
The boundary pixels of the noisy image are copied and filled out for the purpose of denoising, so that the size of the noisy image is expanded from M ∗ N to (M + 2) ∗ (N + 2). When the denoising process is finished, the extra pixels can be deleted to obtain the correct image size.

2.1.1. First-Level Detection of Noise Point

Salt and pepper noise points generally represent the maximum or minimum value of the local area of the image, the positions of the contaminated pixels are randomly distributed, and the probability of positive and negative noise points is usually equal. Image noise points are often extreme points in local areas, but extreme points in local areas are not necessarily noise points. As shown in Figure 1a, the central pixel is the maximum value of the 3 × 3 neighborhood. It differs greatly from the surrounding pixel value and can be considered as a noise point, while the central pixel value in Figure 1b is still the maximum value. It has little difference from the surrounding pixel values and should be considered as a signal point.
Set f i , j is the gray value of the center pixel of the 3 × 3 window and w 3 , w m a x 3 and w m i n 3 represent, respectively, the maximum gray value and the minimum gray value of all pixels in window w 3 . If f i , j = w m a x 3 or f i , j = w m i n 3 , f i , j is marked as the possible noise point; otherwise, f i , j is marked as the signal point. The following formula is constructed:
f l a g ( i , j ) = { 1 ,                       f i , j = w m a x 3   or     f i , j = w m i n 3 0 ,                   f i , j w m a x 3   and   f i , j w m i n 3

2.1.2. Second-Level Detection of Noise Point

As mentioned above, local extreme points are not necessarily noise points. If all local extreme points are taken as noise points for median value replacement, the details will inevitably be lost. For a natural smooth image, the pixel values of the smooth area are similar or even equal. Only at the edge of the image, or in the area with rich details, are the difference of image pixel values relatively large. According to human visual characteristics, it is more sensitive to the noise in the smooth area than the noise in the detailed area. If the possible noise point is still an extreme point in a larger window, this point is considered as a noise point. Using a larger window to judge noise points can effectively improve the accuracy of noise detection.
In this paper, a 7 × 7 window is used for secondary confirmation of possible noise points. The 7 × 7 window is marked as w 7 ; w m a x 7 and w m i n 7 represent the maximum value and the minimum value of window w 7 , respectively, and f i , j represents the possible noise of window w 3 . If f i , j = w m a x 7 or f i , j = w m i n 7 , then f i , j is marked as the noise point; otherwise, f i , j is marked as the signal point.
The following formula is constructed:
                        f l a g ( i , j ) = { 1 , ( f i , j = w m a x 3   and   f i , j = w m a x 7 )   or   ( f i , j = w m i n 3   and   f i , j = w m i n 7 ) 0 ,                                                                                                           otherwise

2.1.3. The Selection for Window Size

The selection of filtering window size will affect the filtering effect. A large window has a strong filtering ability but a weak detail preservation ability; a small window can retain many details of the image, but its filtering performance is bad. Selecting the filter window adaptively according to the size of the noise density can alleviate the contradiction between filter performance and detail preservation, but it also increases the time complexity of the algorithm.
If the median value in the 3 × 3 neighborhood window of a noise point is still noise, the filtering fails. If the neighborhood window is enlarged to 5 × 5 and the median value in the window is no longer noise, the filtering is successful after replacing the noise point with the median value. In fact, if a noise point cannot be successfully filtered using a 3 × 3 window, it can be put aside and used to process those noise points that can be successfully filtered using a 3 × 3 window. Once all noise points that can be filtered by a 3 × 3 window have been replaced with their corresponding median values, those noise points can no longer be processed before being filtered. Therefore, the filtering results of these two methods are the same. In our proposed algorithm, the size of the filtering window is selected as 3 × 3.

2.1.4. Processing of Noise Blocks

If the image is slightly polluted by noise, filtering with a 3 × 3 filtering window repeatedly can deal with all the noise. However, if the image is seriously polluted by noise, the larger noise blocks cannot be filtered by a 3 × 3 filtering window. As shown in Figure 2, 0 represents signal point and 1 represents noise point. The experimental results show that, when the noise density is less than 0.5, all noise can be removed by repeated filtering with a 3 × 3 filtering window.
For the noise in the noise block, the algorithm deals with it with mean filtering. For the noise outside the noise block, the algorithm replaces it with the mean gray value of its adjacent pixels. Figure 3 shows the four cases in which noise points are replaced by the mean gray values of adjacent pixels. Similarly, 1 represents noise point and 0 represents signal point.
Formula (3) shows the calculation method of noise point in the first case in Figure 3.
f i , j = 1 3 ( f i 1 , j 1 + f i 1 , j + f i , j 1 )

2.1.5. The Implementation Process of the Algorithm

  • Mark all the noise points in the image. If the (i,j) pixel is a noise point, then set f l a g ( i , j ) = 1 and replace = 0.
  • If f l a g ( i , j ) = 1 , obtain the median value Med of all pixels in the 3 × 3 window centered on point (i,j); If the median value Med is not noise, replace the central pixel of the 3 × 3 window with Med, set f l a g ( i , j ) = 0 and replace = 1 ; otherwise, the center pixel will not be processed.
  • Finish processing all points with f l a g ( i , j ) = 1 and output the results as the image to be processed.
  • If replace = 1 , repeat steps (2) and (3); otherwise, it means that there is no noise in the image or there are large noise blocks but they cannot be processed by a 3 × 3 window.
  • If f l a g 0 , it indicates that there are still noise blocks in the image, and then the noise f i , j is replaced by the mean value of the adjacent signal points.
  • Output the filtering results.

2.2. The Improved Wavelet Threshold Denoising Algorithm

Since Donoho et al. proposed the hard threshold function [12] and the soft threshold function [13], the wavelet threshold denoising algorithm has been widely used. However, the discontinuity of the hard threshold function will cause the reconstructed image signal to oscillate, and the fixed deviation of the soft threshold function will result in blurry or excessively smooth borders of the denoised image. Based on the soft and hard threshold functions, this algorithm proposes an improved threshold function that overcomes the discontinuity of hard threshold and the fixed deviation of soft threshold, reduces the compression of wavelet coefficients, and solves the problems of image oscillation and boundary blur to a certain extent. At the same time, the new threshold can change with the noise level of the high-frequency components in each layer of wavelet decomposition, which has strong flexibility and adaptability.

2.2.1. The Theory of Wavelet Threshold Denoising

Wavelet transform is a linear operation. After wavelet transform, the wavelet coefficients of noise image are equal to the sum of wavelet coefficients of the original image and the wavelet coefficients of noise. Separating noise means removing the wavelet coefficients of noise and retaining the wavelet coefficients of the original image in the wavelet domain.
After multi-scale wavelet decomposition, the wavelet coefficients of effective information of the image and the wavelet coefficients of noise have different characteristics. The part of low-frequency is wavelet approximation; the part of high-frequency is wavelet details. The effective information of image is mainly distributed in wavelet approximation; the high-frequency part mainly contains image edge and noise. The effective information of image is mainly concentrated in larger wavelet coefficients, while noise is mainly concentrated in smaller wavelet coefficients. With the increase of wavelet decomposition scale, the wavelet coefficients of the effective signal of the image become increasing larger, while the wavelet coefficients of noise information become increasing smaller. Therefore, the wavelet coefficients of the image between effective information and noise information tend to separate after repeated decomposition. According to this principle, image signal and noise signal can be separated.
Therefore, the process of wavelet threshold denoising can be summarized as follows: first decompose the original image with appropriate wavelet basis, and then select a proper threshold value to deal with noise, and finally reconstruct the wavelet coefficients to obtain an ideal denoised image.
It is very important to construct an appropriate threshold function and select a proper threshold. The threshold function commonly used is the one proposed by Donoho; the hard threshold function [12] and the soft threshold function [13] are shown in Formulas (4) and (5), respectively.
W ˜ j , k = { W j , k   ,                                                                               | W j , k | λ 0 ,                                                                   | W j , k | < λ  
W ˜ j , k = { s i g n ( W j . k ) ( | W j , k | λ ) ,                             | W j , k | λ 0 ,                                                                   | W j , k | < λ  
where W j , k is the k-th wavelet coefficient under the j-th scale of noise image after wavelet decomposition; W ˜ j , k is the wavelet coefficients obtained through threshold processing; λ is the threshold selected by the algorithm; and sign is the symbolic function.
When | W j , k | λ , the hard threshold function will not compress the wavelet coefficients, so the edges and details of the image will be preserved. When | W j , k | = λ , the discontinuity of the function will distort the restored image. The soft threshold function is continuous when | W j , k | = λ , and the image is smoother after threshold processing. When | W j , k | λ , the wavelet coefficients will shrink to zero. There is a constant deviation between the estimated wavelet coefficients and the real wavelet coefficients, resulting in the blurred edge of the reconstructed image. Both the threshold functions can result in the loss of details and some important features of image.

2.2.2. The Improved Wavelet Threshold Function

Aiming at the discontinuity and constant deviation of the traditional threshold function, this paper proposes a new wavelet threshold function. When the new threshold function is used to process the wavelet coefficients, the wavelet coefficients after denoising are closer to the wavelet coefficients of the original image, so the distortion of the restored image is smaller.
The threshold function expression is:
W ˜ j , k = { s i g n ( W j . k ) ( | W j , k | 2 ( 1 ρ ) λ 1 + e α ( | W j , k | λ ) n )                             | W j , k | λ s i g n ( W j , k ) ρ | W j , k | 2 λ                                                       | W j , k | < λ  
where ρ , α , and n are adjustable parameters. When | W j , k | < λ , the function value is not directly set to 0, but is expressed as a quadratic function, which avoids the oscillation caused by the direct truncation of the threshold function and overcomes the problem of constant deviation between the wavelet coefficients of the traditional threshold function and the estimated wavelet coefficients.
The following is a mathematical analysis to the properties of the improved threshold function:
  • The continuity analysis of the function
lim W j . k λ + W ˜ j , k = lim W j . k λ + s i g n ( W j , k ) ( | W j , k | 2 ( 1 ρ ) λ 1 + e α ( | W j , k | λ ) n ) = lim W j . k λ + ( | W j , k | 2 ( 1 ρ ) λ 1 + e α ( | W j , k | λ ) n ) = λ ( 1 ρ ) = ρ λ
lim W j . k λ W ˜ j , k = lim W j . k λ s i g n ( W j , k ) ρ | W j , k | 2 λ = lim W j . k λ ρ | W j , k | 2 λ = ρ λ
Therefore, lim W j . k λ + W ˜ j , k = lim W j . k λ W ˜ j , k , thus it can be seen that the improved threshold function is continuous at λ.
lim W j . k λ W ˜ j , k = lim W j . k λ s i g n ( W j , k ) ( | W j , k | 2 ( 1 ρ ) λ 1 + e α ( | W j , k | λ ) n ) = lim W j . k λ ( | W j , k | 2 ( 1 ρ ) λ 1 + e α ( | W j , k | λ ) n ) = ( λ ( 1 ρ ) λ ) = ρ λ
lim W j . k λ + W ˜ j , k = lim W j . k λ + s i g n ( W j , k ) ρ | W j , k | 2 λ = lim W j . k λ + ρ | W j , k | 2 λ = ρ λ
Therefore, lim W j . k λ W ˜ j , k = lim W j . k λ + W ˜ j , k , thus it can be seen that the improved threshold function is continuous at −λ.
Therefore, it is concluded that the improved threshold function is continuous at ±λ.
  • The asymptotic property analysis of the function
When W j , k + :
lim W j . k + W ˜ j , k W j , k = lim W j . k + s i g n ( W j , k ) ( | W j , k | 2 ( 1 ρ ) λ 1 + e α ( | W j , k | λ ) n ) W j , k = 1 lim W j . k + 2 ( 1 ρ ) λ 1 + e α ( | W j , k | λ ) n W j , k = 1
when W j , k :
lim W j . k W ˜ j , k W j , k = lim W j . k s i g n ( W j , k ) ( | W j , k | 2 ( 1 ρ ) λ 1 + e α ( | W j , k | λ ) n ) W j , k = lim W j . k ( | W j , k | 2 ( 1 ρ ) λ 1 + e α ( | W j , k | λ ) n ) W j , k = 1 lim W j . k 2 ( 1 ρ ) λ 1 + e α ( | W j , k | λ ) n W j , k = 1
when W j , k :
lim W j . k ( W ˜ j , k W j , k ) = lim W j . k [ s i g n ( W j , k ) ( | W j , k | 2 ( 1 ρ ) λ 1 + e α ( | W j , k | λ ) n ) W j , k ] = lim W j . k [ s i g n ( W j , k ) | W j , k | W j , k ] = 0
Thus, the asymptote of the improved threshold function is W ˜ j , k = W j , k .
  • The deviation analysis of the function
lim W j . k + ( W ˜ j , k W j , k ) = lim W j . k + [ s i g n ( W j , k ) ( | W j , k | 2 ( 1 ρ ) λ 1 + e α ( | W j , k | λ ) n ) W j , k ] = lim W j . k + [ ( | W j , k | 2 ( 1 ρ ) λ 1 + e α ( | W j , k | λ ) n ) W j , k ] = lim W j . k + ( W j , k W j , k ) = 0
lim W j . k ( W ˜ j , k W j , k ) = lim W j . k [ s i g n ( W j , k ) ( | W j , k | 2 ( 1 ρ ) λ 1 + e α ( | W j , k | λ ) n ) W j , k ] = lim W j . k [ ( | W j , k | 2 ( 1 ρ ) λ 1 + e α ( | W j , k | λ ) n ) W j , k ] = lim W j . k ( | W j , k | W j , k ) = lim W j . k ( W j , k W j , k ) = 0
Therefore, lim W j . k + ( W ˜ j , k W j , k ) = lim W j . k ( W ˜ j , k W j , k )
The deviation between W ˜ j , k and W j , k will gradually decrease when W ˜ j , k , which indicates that the improved threshold function overcomes the deviation of the traditional threshold function.
  • Higher-order differentiability of the function
When | W j , k | λ , the improved threshold function is highly differentiable, which is beneficial to the subsequent mathematical processing of the function.
  • The adjustable factors ρ , α , and n of the threshold function
When ρ = 0 and n , the improved threshold function becomes the hard threshold function.
When ρ = 0 and α = 0 , the improved threshold function becomes the soft threshold function.
Because of the adjustable factors, the function can be adjusted between the soft threshold function and the hard threshold function. The reason why the wavelet coefficients at | W j , k | < λ are retained instead of being set to zero is that it can deal with noise coefficients in high-frequency components more flexibly.
To sum up, by analyzing the continuity, asymptotic property, deviation, and adjustable factors of the function, it is concluded that the improved threshold function of the algorithm is continuous and high-order derivable. It solves the deviation problem and has a relatively high flexibility.

2.2.3. The Selection of Wavelet Threshold

It is important to construct a good threshold function, and it is crucial to select an appropriate threshold. The wavelet coefficient of the signal after wavelet decomposition is larger, the wavelet coefficient of the noise is smaller, and the wavelet coefficient of the noise is smaller than the wavelet coefficient of the signal. Therefore, by selecting an appropriate threshold, wavelet coefficients larger than the threshold are considered to be generated by the signal and should be retained, and wavelet coefficients smaller than the threshold are considered to be generated by noise and should be removed. This is the basic principle of wavelet threshold denoising.
If the threshold is too large, some important features of the image will be filtered out. If the threshold is too small, there will be more residual noise and the denoising effect is not ideal. Donoho proposed a general threshold [12]:
λ = σ 2 ln ( M × N )
where σ represents the standard deviation of noise and M × N represents the size of image.
Equation (16) is a global threshold, which is a unified threshold used for denoising the whole image. However, the local threshold can determine the threshold of each image block according to its own noise level. Compared with the global threshold, the local threshold can be adjusted according to different noise blocks, and the value is more flexible.
Noise components are mainly concentrated in the high-frequency coefficients and decrease with the increase of decomposition scale. Effective signal components are mainly concentrated in the low-frequency coefficients and increase with the increase of decomposition scale. Therefore, the threshold should gradually decrease as the decomposition scale increases.
In this algorithm, the threshold is set as:
λ = σ 2 ln ( M × N ) m × j 1
where m is an adjustable parameter, j ( 1 j n ) is the corresponding wavelet decomposition scale, σ is the noise standard deviation, and σ is defined as:
σ = m e d i a n ( | W 1 , k | ) 0.6745
where m e d i a n ( x ) is the median operation, m e d i a n ( | W 1 , k | ) is the median value of absolute value of the wavelet decomposition coefficient of the first layer, and 0.6745 is the adjustment coefficient of the standard deviation of Gaussian noise.
The proposed threshold can be adjusted according to the value of the current decomposition scale, so as to obtain an adaptive threshold for different decomposition scales, and the threshold meets the condition of “gradually decreasing with the increase of the decomposition scale”.

2.3. The Improved NLM Denoising Algorithm

Buades [27] et al. proposed the Non-Local Means (NLM) denoising algorithm in 2005, which takes advantage of the repeatability and self-correlation in an image. Firstly, it calculates the weighted average value of the neighborhood of all pixels in an image and the neighborhood of the current pixel. It then takes the average value as the Euclidean distance between the two points and assigns weights to them through the weight function. Finally, the sum of the product of the weight and all pixels is the denoised value of the current pixel.
Many scholars have made improvement on the problems that exist in NLM, but as for the current research status, there still exists problems such as the running time being too long, unreasonable weight distribution, and the failure to highlight the role of central pixels when using Euclidean distance to calculate the similarity between neighborhoods.
To solve the problems mentioned above, we improved the NLM algorithm. The improved algorithm uses integral image technology to change the neighborhood similarity disposal of each pixel to the unified disposal of the whole image matrix. Moreover, it uses the accumulation of Gaussian kernel functions with different radii to increase the weight of the central pixel in the neighborhood, aiming to enhance the weight role of the central pixel in the neighborhood. Finally, the weight function to measure the similarity between neighbors is improved by the power operation of the Gaussian function. Experiment results show that the improved algorithm can significantly save the running time of the algorithm and can better retain the edge and detail information of the image after denoising, and the denoising effect is significantly improved.

2.3.1. The Improved Euclidean Distance Function

In the traditional NLM algorithm, the similarity of two pixels is calculated by using the Gaussian kernel function to calculate the Euclidean distance of the neighborhood matrix centered on the two pixels. The formula of the Gaussian kernel function is shown below:
G ( i , j ) = 1 2 π σ 2 e x p i 2 + j 2 2 σ 2 ,   ( r i , j r )
where σ is the variance of the Gaussian kernel function. The Gaussian kernel function is used mainly because the distance between each pixel in the neighborhood and the center pixel point is different, and the impact on the center point is different. The closer the distance, the greater the impact, and the farther the distance, the smaller the impact [45]. However, there is a problem that the role of the central pixel does not pay enough attention to, so that the weight of the central point is too low when using Gaussian kernels to calculate. The ideal distance function should highlight the weight of the central pixel, and the closer to the central pixel, the greater the weight distribution, and the farther from the central pixel, the more obvious the weight drops. In that way, the similarity of the two pixels calculated will be more accurate.
The Euclidean distance function designed by the algorithm is based on the Gaussian kernel function and accumulates Gaussian kernels with different radii. The radius ranges from 1 to r; the time of accumulation is also r, and the size of the Gaussian kernel matrix obtained is (2r + 1) × (2r + 1). The calculation formula is as follows:
G ( i , j ) = t = 1 r 1 2 π σ 2 e x p ( i 2 + j 2 2 σ 2 ) , ( t i , j t )
In order to unify the size of each Gaussian kernel matrix, the elements around the matrix with a radius less than r are filled with 0. Each Gaussian kernel calculated needs to be normalized, and the final normalization is performed after accumulation.

2.3.2. The Improved Distance Weight Function

When the similarity of two pixels, i.e., the Euclidean weighted distance of two neighboring blocks is calculated, the NLM algorithm needs to assign a corresponding weight value to the distance. The smaller the distance, the greater the similarity between the two neighboring blocks, and the greater the weight value assigned. The weight value and the distance are similar to the inverse relationship. At the same time, the weight function also requires that the weight value assigned can drop rapidly when the distance increases, and its purpose is to ignore the effect of neighboring pixels that are not similar to the current pixel structure as much as possible.
The weight function in the traditional NLM algorithm is the Gaussian function, and the weight value follows Gaussian distribution. Based on the Gaussian function, the weight function of the proposed algorithm is set as the power function of the Gaussian function (power value n 2 ). The value of power can be flexibly set according to the noise variance of the noised image and the smoothing coefficient h. In this way, the weight function is increased from one parameter (smoothing coefficient h) to two parameters (smoothing coefficient h and power value n ). Although the increase of parameters increases the complexity of the algorithm to a certain extent, it also makes the distribution of weight values more flexible and accurate. Moreover, the improved weight function drops faster than the original weight function, which is more in line with the definition standard of the weight function.
The improved weight function is defined as follows:
w ( i , j ) = 1 Z ( i ) e x p ( d ( i , j ) h 2 ) n ,   ( n 2 )
where Z ( i ) is a normalized factor, which is the sum of all weights, that is, the sum is 1 after each weight and is divided by the factor. The power function of the Gaussian function corresponding to formula (21) is y = e x p ( x 2 h 2 ) n . Figure 4 shows the values of the weight function when h = 1.2 and n = 1, 2, 3, and 4 in order to clearly reflect the comparison of function values when n takes different values.
It can be seen from Figure 4 that the curve corresponding to n = 1 is the Gaussian function used by the original weight function, and the corresponding weight value decreases gradually with the increase of Euclidean distance. However, its weight decreases more slowly compared with the weight function curve when n = 2, 3, and 4. The larger the n value is, the faster its weight decreases. However, experiments have proved that a larger value of n is not necessarily better; it should be considered comprehensively according to the noise level of the image, the variance σ of the Gaussian kernel function, and the smoothing coefficient h. At the same time, the running time of the algorithm should also be considered.

2.4. The Complete Process of the Proposed Algorithm

The mixed noise filtering algorithm with salt and pepper + Gaussian noise proposed in this paper is composed of the above three improved algorithms. The specific process of the algorithm is shown below:
Step 1. Input the original image and add mixed noise to the image: Density (salt and pepper noise)/Variance (Gaussian noise) = ρ / σ ;
Step 2. Use the improved median filter algorithm to filter the noise image and obtain the preliminary denoised image;
Step 3. Perform wavelet decomposition with n-scale on the preliminary denoised image; the selection of decomposition scale n will be explained in the experiment part.
Step 4. Use the new threshold function and the new threshold to process the high-frequency components obtained from each layer of wavelet decomposition.
Step 5. Reconstruct the high-frequency components after threshold processing and the unprocessed low-frequency components to obtain a reconstructed image1.
Step 6. Perform wavelet decomposition with 1-scale on the reconstructed image1, and then process the low-frequency components with the improved NLM algorithm to filter out the Gaussian noise remaining in the low-frequency components. At the same time, continue to perform the new wavelet threshold function to process the high frequency components.
Step 7. Reconstruct the low-frequency components and the high-frequency components that have been processed individually to obtain the reconstructed image2, which is the final denoised image.
The whole process of the proposed algorithm in this paper is shown in Figure 5.

3. Experiment

The equipment configuration of this experiment is: Intel(R) Core(TM) I5-6200, Memory 8.00 GB, WIN10 operating system with 64-bit, and the processing software is MATLAB R2014a.

3.1. Parameter Setting

In our proposed algorithm, both the improved wavelet threshold algorithm and the improved NLM algorithm involve the setting of parameters. After adding different noise levels to different test images and comparing the experimental results repeatedly, the following parameter setting can, at present, ensure the best denoising effect.
For the improved wavelet threshold algorithm, after trying and verifying different wavelet bases and different scale values, it was finally found that when the wavelet base is sym15 and scale value n = 4, the image denoising can achieve the best effect. For the high-frequency components obtained by the wavelet decomposition of each layer, the proposed threshold function and threshold are used for denoising, with the following parameter settings: ρ = 0.3 , α = 21 , n = 1.9 , and m = 3.09 . When the reconstructed image1 is decomposed by 1-scale wavelet, the wavelet base is still sym15, and then the low-frequency components obtained by decomposition are processed by the improved NLM algorithm. In order to achieve the best filtering effect and balance the relationship with running time, the radius of the search block is set to 7 and the radius of the search window is set to 9. When calculating the Euclidean distance function, the times of accumulating the Gaussian kernels with different radius is set to 7, i.e., the parameter r = 7 , the variance of the Gaussian kernel function σ = 300 , and when calculating the distance weight function, the smoothing coefficient h is set to 0.12 and the power value n is set to 2. Meanwhile, the high-frequency components continue to be processed through the new wavelet threshold function; ρ = 0.3 , α = 21 , n = 1.9 , and m = 1.13 is the best setting.

3.2. Experimental Results and Analysis

In order to verify the suppression effect of the algorithm in this paper on mixed noise with salt and pepper + Gaussian noise, 6 classic images were selected in the field of image processing as experimental objects to test the denoising effects and record their data. They are lena, boat, barbara, with 512 × 512 pixel; and cameraman, hill, peppers, with 256 × 256 pixel. These images are shown in Figure 6. At the same time, those algorithms, including KSVD [38], NCSR [39], OCTOBOS [40], TWSC [41], BM3D [42], and WNNM [44], are introduced to compare the denoising effect with the algorithm we proposed.
During the experiment, the following salt and pepper noise density/Gaussian noise variance ( ρ / σ ) were added to the six images used in the test algorithms: 0.03/0.01, 0.06/0.02, 0.09/0.03, 0.12/0.04, 0.15/0.05.
At the same time, some specific metrics are used, including PSNR, RMSE, SSIM, and FSIM, to evaluate the denoising effect of each algorithm. Among these metrics, the larger the PSNR, the SSIM, and the FSIM, the better the denoising effect, while the smaller the RMSE, the better the denoising effect. The values of SSIM, FSIM, and RMSE range from 0 to 1.
Table 1, Table 2, Table 3 and Table 4 show PSNRs, RMSEs, SSIMs and FSIMs of the 6 images corresponding to different algorithms and different salt and pepper noise density/Gaussian noise variance ( ρ / σ ). The setting of parameters in each algorithm is specified by the author in the original article.
In the tables, the optimal value of the denoising effect for each row is expressed in bold and the sub-optimal value is expressed in italics. As can be seen from the data of each metric in the four tables, the algorithm proposed in this paper has the best denoising effect among the denoised images with various noise levels, while the metric value of the BM3D algorithm is relatively high due to its strong ability to denoise Gaussian noise. The denoising effect of the BM3D algorithm is closer to the proposed algorithm when the noise level is relatively low, but as the noise increases, especially as the density of salt and pepper noise increases, its limitation in removing salt and pepper noise is highlighted. Because the extreme gray value of the salt and pepper noise point will destroy the self-similarity of image, resulting in an invalid filtering result [46], the denoising effect is significantly reduced. However, it should be pointed out that the BM3D algorithm performs quite well in FSIM, especially when the noise level is relatively low; its FSIM value is the largest in the six test images compared with other algorithms. It fully illustrates that the block-matching mode of the BM3D algorithm is helpful for improving the feature similarity of denoised images, but when the noise level increases, the matching accuracy of similar blocks decreases. Excessive noise interferes with the feature search and block matching between blocks, so the FSIM value decreases significantly as the noise level increases. At the same time, the FSIM of our algorithm is obviously better when the noise increases, which fully shows that the algorithm has stronger denoising ability and detail restoration ability for images with serious noise interference, and the data totally demonstrates that the algorithm is very robust.
Relatively speaking, NCSR, TWSC, and WNNM also show good performance. Their metric values are relatively close, but the denoising effect of the NCSR algorithm is generally better. As described above, the KSVD algorithm has a relatively good denoising ability at low noise level, but its denoising effect decreases rapidly with the increase of noise level. Among all the algorithms, the denoising effect of OCTOBOS, relatively speaking, is the worst of the four metrics.
In order to feel the denoising effect of each algorithm on the noise images intuitively, the denoised images of lena, boat, and peppers, when ρ / σ is 0.09/0.03, were randomly selected for comparison and analysis, and they are shown in Figure 7, Figure 8 and Figure 9. At the same time, Figure 10 shows the line charts of the lena image on PSNR, RMSE, SSIM, and FSIM with different algorithms to help us make further comparison and analysis.
From these denoised images, we can see that, for the mixed noise with salt and pepper + Gaussian noise, several other algorithms, of which KSVD and OCTOBOS are the most prominent, cannot remove the noise cleanly, except for BM3D and our algorithm, and a certain number of spots remain on the image. It also shows that these algorithms have extremely limited ability to remove mixed noise and cannot maintain the effective restoration of image detail information. Moreover, they cannot well retain image edge information. The overall picture of the denoised image is slightly rough. The BM3D algorithm can effectively remove the mixed noise, but it is still insufficient to restore the details of the image. It damages the edge of the image to a certain extent, making the edge part look fuzzy and thus losing more details, which reflects the limited ability of the BM3D algorithm to remove the mixed noise. Relatively speaking, the denoised image of our algorithm is clean. On the premise of ensuring the overall quality of the image, it can successfully remove the mixed noise and can retain the details and edge information of the image more completely. Compared with other algorithms, it has the strongest image restoration ability.
Furthermore, we can find that, from Figure 10, PSNR, SSIM, and FSIM are steadily decreasing and RMSE is steadily increasing with the rise in noise level. The four trend lines are displayed approximately as a straight line with a low slope, which fully illustrates the robustness and stability of our algorithm. However, we still need to point out that, compared with other algorithms, our algorithm has better denoising ability, but when the noise level increases, the denoised images will inevitably show over-smoothness and a reduced ability to restore details, which is what we need to improve on in our future work.

4. Conclusions

This paper proposes a filtering algorithm for mixed noise with salt and pepper + Gaussian noise combined with the improved median filter algorithm, the improved wavelet algorithm, and the improved NLM algorithm. The algorithm makes full use of the advantages of the median filter in removing salt and pepper noise, improving the original median filter algorithm, and utilizing two-level detection to accurately divide the pixel points into signal points and noise points, which can filter salt and pepper noise effectively. In addition, the algorithm also improved the two algorithms by virtue of the good performance of wavelet threshold algorithm and NLM algorithm in filtering Gaussian noise. The improved wavelet threshold algorithm has a more scientific threshold function than the original algorithm; the improved threshold is also more reasonable, and the denoising effect is far better than the hard threshold function and the soft threshold function. The improved NLM algorithm can measure the similarity between image blocks more accurately and match similar image blocks more accurately, for the purpose of achieving a better denoising effect.
Compared with some other algorithms mentioned in this paper, the denoising effect of the proposed algorithm is the best for the mixed noise with salt and pepper + Gaussian noise, the restoration ability of image edge and detail information is the strongest, and the robustness is also the best. However, the denoised images possess the phenomenon of over-smoothness and a weakened ability to restore detail with the increase of noise level. In addition, the experimental images used in this study are standard test images in the field of image processing. How to extend this research to hyperspectral images and achieve real-time processing results in a short time will be an urgent problem that needs to be solved in the next research. At the same time, how to combine this algorithm with the latest research technologies, such as sparse representation and neural networks, to obtain a more stable and better denoising effect is also where we need to make further efforts in future work.

Author Contributions

Conceptualization, C.H. and K.G.; data curation, C.H. and H.C.; methodology, C.H.; formal analysis, C.H. and K.G.; writing—original draft preparation, C.H.; writing—review and editing, C.H., K.G. and H.C. All authors have read and agreed to the published version of the manuscript.

Funding

This research received the funding of Open fund of Geomathematics Key Laboratory of Sichuan Province (scsxdz2018yb08) and Applied Basic Research Project of Sichuan Province (NO.2020YJ0364).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

No data were used to support this research.

Acknowledgments

The first author would like to thank Han Hongwei for the helpful discussions on some of the image denoising algorithms involved in this paper in Chengdu University of Technology.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Mafi, M.; Izquierdo, W.; Cabrerizo, M.; Barreto, A.; Andrian, J.; Rishe, N.D.; Adjouadi, M. Survey on mixed impulse and Gaussian denoising filters. IET Image Process. 2020, 8, 1–12. [Google Scholar]
  2. Mafi, M.; Martin, H.; Cabrerizo, M.; Andrian, J.; Barreto, A.; Adjouadi, M. A comprehensive survey on impulse and Gaussian denoising filters for digital images. Signal Process. 2019, 157, 236–260. [Google Scholar] [CrossRef]
  3. Jeevan, K.M.; Krishnakumar, S. An algorithm for wavelet thresholding based image denoising by representing images in hexagonal lattice. J. Appl. Res. Technol. 2018, 16, 103–114. [Google Scholar]
  4. Jain, P.; Tyagi, V. A survey of edge-preserving image denoising methods. Inf. Syst. Front. 2016, 18, 159–170. [Google Scholar] [CrossRef]
  5. Mehdi, M.; Rajaei, H.; Cabrerizo, M.; Adjouadi, M. A Robust Edge Detection Approach in the Presence of High Impulse Noise Intensity through Switching Adaptive Median and Fixed Weighted Mean Filtering. IEEE Trans. Image Process. 2018, 27, 5475–5490. [Google Scholar]
  6. Roy, A.; Singha, J.; Manam, L.; Laskar, R.H. Combination of adaptive vector median filter and weighted mean filter for removal of high-density impulse noise from color images. IET Image Process. 2017, 11, 352–361. [Google Scholar] [CrossRef]
  7. Shrestha, S. Image denoising using new adaptive based median filters. Signal Image Process. 2014, 5, 1–13. [Google Scholar] [CrossRef]
  8. Das, J.; Das, B.; Saikia, J.; Nirmala, S.R. Removal of salt and pepper noise using selective adaptive median filter. In Proceedings of the International Conference on Accessibility to Digital World (ICADW), Guwahati, India, 16–18 December 2016. [Google Scholar]
  9. Hwang, H.; Haddad, R. Adaptive median filters: New algorithms and results. IEEE Trans. Image Process. 1995, 4, 499–502. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  10. Huang, B.G.; Lu, Z.T.; Ma, C.M. Improved adaptive median filtering algorithm. J. Comput. Appl. 2011, 7, 1835–1837. [Google Scholar]
  11. Shen, D.H.; Liu, D.C.; Xing, T. Multilevel Median Filter Algorithm Based on Vertical and Horizontal Windows Relation. Comput. Sci. 2012, 39, 246–248. [Google Scholar]
  12. Donoho, D.L.; Johnstone, I.M. Ideal spatial adaptation via wavelet shrinkage. Biometrika 1994, 81, 425–455. [Google Scholar] [CrossRef]
  13. Donoho, D.L. Denoising by soft-thresholding. IEEE Trans. Inf. Theory 1995, 41, 613–627. [Google Scholar] [CrossRef] [Green Version]
  14. Wang, Q.; Cheng, B.; Du, J.; Xu, G. An improved method for image denoising based on wavelet thresholding. Comput. Mod. 2015, 4, 65–69. [Google Scholar]
  15. Chen, Z.A.; Hu, Z.F. Remote sensing image denoising based on improved wavelet threshold algorithm. Bull. Surv. Mapp. 2018, 4, 28–31. [Google Scholar]
  16. Cui, J.G.; Chen, B.Q.; Xu, Q.; Deng, B. A wavelet threshold image denoising algorithm based on a new kind of sign function. Telecommun. Sci. 2017, 33, 45–52. [Google Scholar]
  17. Guo, X.K.; Jian, T.; Dong, Y.L. Radar one-dimensional range profile recognition based on improved wavelet denoising. Radar Sci. Technol. 2019, 17, 360–364+370. [Google Scholar]
  18. Zhang, Z.F.; Wei, H.; Tan, B.W. An improved wavelet threshold denoising method. Study Opt. Commun. 2018, 2, 75–78. [Google Scholar]
  19. Zhang, X.; Li, J.; Xing, J.; Wang, P.; Yang, Q.; He, C. A Particle Swarm Optimization Technique-Based Paramctric Wavelet Thresholding Function for Signal Denoising. Circuits Syst. Signal Process. 2016, 35, 1–23. [Google Scholar]
  20. Jia, W.L.; Chen, Y.; Chen, Q. Image denoising algorithm based on improved wavelet threshold. Microelectron. Comput. 2020, 37, 24–29. [Google Scholar]
  21. Zhu, H.; Wang, X. Image Denoising by Wavelet Transform Based on New Threshold. In Proceedings of the International Conference on Big Data Analytics for Cyber-Physical-Systems, Singapore, 28 December 2020. [Google Scholar]
  22. Chakraborty, S.; Shaikh, S.H.; Chakrabarti, A.; Ghosh, R. An Image Denoising Technique using Quantum Wavelet Transform. Int. J. Theor. Phys. 2020, 59, 3348–3371. [Google Scholar] [CrossRef]
  23. Hostalkova, E.; Vysata, O.; Prochazka, A. Multidimensional biomedical image de-noising using Haar transform. In Proceedings of the 15th International Conference on Digital Signal Processing, Cardiff, UK, 1–4 July 2007. [Google Scholar]
  24. Bnou, K.; Raghay, S.; Hakim, A. A wavelet denoising approach based on unsupervised learning model. EURASIP J. Adv. Signal Process. 2020, 1, 1–26. [Google Scholar] [CrossRef]
  25. Langari, B.; Vaseghi, S.; Prochazka, A.; Vaziri, B.; Aria, F.T. Edge-Guided Image Gap Interpolation Using Multi-scale Transformation. IEEE Trans. Image Process. 2016, 25, 4394–4405. [Google Scholar] [CrossRef] [Green Version]
  26. Selesnick, I.W.; Baraniuk, R.G.; Kingsbury, N.C. The dual-tree complex wavelet transform. IEEE Signal Process. 2005, 22, 123–151. [Google Scholar] [CrossRef] [Green Version]
  27. Buades, A.; Coll, B.; Morel, J.M. A non-local algorithm for image denoising. In Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, San Diego, CA, USA, 20–26 June 2005. [Google Scholar]
  28. Tasdizen, T. Principal components for non-local means image denoising. In Proceedings of the 15th IEEE International Conference on Image Processing, San Diego, CA, USA, 12–15 October 2008. [Google Scholar]
  29. Vignesh, R.; Oh, B.T.; Kuo, C.C.J. Fast non-local means (NLM) computation with probabilistic early termination. IEEE Signal Process. Lett. 2010, 17, 277–280. [Google Scholar] [CrossRef]
  30. Brox, T.; Kleinschmidt, O.; Cremers, D. Efficient non-local means for denoising of textural patterns. IEEE Trans. Image Process. 2018, 17, 1083–1092. [Google Scholar] [CrossRef] [PubMed]
  31. Van, D.; Ville, D.; Kocher, M. Non-local means with dimensionality reduction and SURE-based parameter selection. IEEE Trans. Image Process. 2011, 20, 2683–2690. [Google Scholar]
  32. Chaudhury, K.N.; Singer, A. Non-local Euclidean medians. IEEE Signal Process. Lett. 2012, 19, 745–748. [Google Scholar] [CrossRef] [Green Version]
  33. Sun, Z.; Chen, S. Analysis of non-local Euclidean medians and its improvement. IEEE Signal Process. Lett. 2013, 20, 303–306. [Google Scholar] [CrossRef]
  34. Tasdizen, T. Principal neighborhood dictionaries for nonlocal means image denoising. IEEE Trans. Image Process. 2009, 18, 2649–2660. [Google Scholar] [CrossRef] [PubMed]
  35. Sharifymoghaddam, M.; Beheshti, S.; Elahi, P.; Hashemi, M. Similarity validation based nonlocal means image denoising. IEEE Signal Process. Lett. 2015, 22, 2185–2188. [Google Scholar] [CrossRef]
  36. Zhong, H.; Yang, C.; Zhang, X. A new weight for nonlocal means denoising using method noise. IEEE Signal Process. Lett. 2012, 19, 535–538. [Google Scholar] [CrossRef]
  37. He, C.; Song, G.Q.; Guo, K. An Improved Non-local Means Denoising Algorithm. J. China West Norm. Univ. 2020, 41, 86–93. [Google Scholar]
  38. Aharon, M.; Elad, M.; Bruckstein, A. K-SVD: An Algorithm for Designing Overcomplete Dictionaries for Sparse Representation. IEEE Trans. Signal Process. 2006, 54, 4311–4322. [Google Scholar] [CrossRef]
  39. Dong, W.S.; Zhang, L.; Shi, G.M.; Li, X. Non-locally centralized sparse representation for image restoration. IEEE Trans. Image Process. 2012, 22, 1620–1630. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  40. Wen, B.H.; Ravishankar, S.; Bresler, Y. Structured Overcomplete Sparsifying Transform Learning with Convergence Guarantees and Applications. Int. J. Comput. Vis. 2015, 114, 137–167. [Google Scholar] [CrossRef]
  41. Xu, J.; Zhang, L.; Zhang, D. A Trilateral Weighted Sparse Coding Scheme for Real-World Image Denoising. In Proceedings of the European Conference on Computer Vision, Munich, Germany, 8–14 September 2018. [Google Scholar]
  42. Dabov, K.; Foi, A.; Katkovnik, V.; Egiazarian, K. Image denoising by sparse 3-D transform-domain collaborative filtering. IEEE Trans. Image Process. 2007, 16, 2080–2095. [Google Scholar] [CrossRef] [PubMed]
  43. Gillis, N.; Glineur, F. Low-rank matrix approximation with weights or missing data is NP-hard. SIAM J. Matrix Anal. Appl. 2011, 32, 1149–1165. [Google Scholar] [CrossRef] [Green Version]
  44. Gu, S.; Zhang, L.; Zuo, W.; Feng, X. Weighted nuclear norm minimization with application to image denoising. In Proceedings of the Computer Vision and Pattern Recognition, Columbus, OH, USA, 24–27 June 2014. [Google Scholar]
  45. Budianto, B.; Lun, D.P.K. Discrete Periodic Radon Transform Based Weighted Nuclear Norm Minimization for Image Denoising. In Proceedings of the International Symposium on Computing & Networking, Aomori, Japan, 19–22 November 2017. [Google Scholar]
  46. Noor, A.; Zhao, Y.; Khan, R.; Wu, L.; Abdalla, F.Y. Median filters combined with denoising convolutional neural network for Gaussian and impulse noises. Multimed. Tools Appl. 2020, 79, 489–503. [Google Scholar] [CrossRef]
Figure 1. 3 × 3 neighborhood pixel value: (a) The center of the neighborhood is a noise point; (b) The center of neighborhood is a signal point.
Figure 1. 3 × 3 neighborhood pixel value: (a) The center of the neighborhood is a noise point; (b) The center of neighborhood is a signal point.
Applsci 11 10358 g001
Figure 2. Noise blocks.
Figure 2. Noise blocks.
Applsci 11 10358 g002
Figure 3. Relative position of noise points and the adjacent pixels.
Figure 3. Relative position of noise points and the adjacent pixels.
Applsci 11 10358 g003
Figure 4. Comparison of the weight function.
Figure 4. Comparison of the weight function.
Applsci 11 10358 g004
Figure 5. The flow chart of this proposed algorithm.
Figure 5. The flow chart of this proposed algorithm.
Applsci 11 10358 g005
Figure 6. The test images.
Figure 6. The test images.
Applsci 11 10358 g006
Figure 7. Denoising effect of different algorithms on lena ( ρ / σ = 0.09/0.03).
Figure 7. Denoising effect of different algorithms on lena ( ρ / σ = 0.09/0.03).
Applsci 11 10358 g007
Figure 8. Denoising effect of different algorithms on boat ( ρ / σ = 0.09/0.03).
Figure 8. Denoising effect of different algorithms on boat ( ρ / σ = 0.09/0.03).
Applsci 11 10358 g008
Figure 9. Denoising effect of different algorithms on peppers ( ρ / σ = 0.09/0.03).
Figure 9. Denoising effect of different algorithms on peppers ( ρ / σ = 0.09/0.03).
Applsci 11 10358 g009aApplsci 11 10358 g009b
Figure 10. Line charts of denoised metrics of lena by different algorithms.
Figure 10. Line charts of denoised metrics of lena by different algorithms.
Applsci 11 10358 g010
Table 1. Denoising data of mixed noise by different algorithms on test images (PSNR).
Table 1. Denoising data of mixed noise by different algorithms on test images (PSNR).
PSNR ρ / σ KSVDNCSROCTOBOSTWSCBM3DWNNMOurs
lena0.03/0.0123.9424.0620.6022.4725.6921.9829.74
0.06/0.0221.5721.9618.6120.9924.7620.2428.61
0.09/0.0320.1320.6317.5519.9323.6419.3827.40
0.12/0.0419.0719.6616.7919.0322.5218.8125.99
0.15/0.0518.2118.7716.0918.3421.6918.1224.84
boat0.03/0.0123.4823.9320.7122.4325.0721.8726.69
0.06/0.0221.1621.5218.7120.7124.0220.1525.92
0.09/0.0319.8720.1717.5419.6622.5619.3425.04
0.12/0.0418.7319.3016.7518.8821.8418.6824.23
0.15/0.0517.9418.5916.1918.1520.8418.1123.26
barbara0.03/0.0123.0323.4120.0522.1324.5621.7024.50
0.06/0.0220.6421.2817.8420.3823.3619.7823.84
0.09/0.0319.3519.8716.7219.1722.1818.7723.27
0.12/0.0418.2718.7316.0218.2821.2018.0122.58
0.15/0.0517.4017.9615.4217.5220.3217.5721.88
cameraman0.03/0.0122.4722.8620.1521.5523.0021.1224.94
0.06/0.0220.2720.9317.7619.7222.1919.1424.14
0.09/0.0318.8719.4416.6518.6221.2518.3123.34
0.12/0.0417.6318.2916.0317.9620.4617.4722.52
0.15/0.0516.9417.5015.2117.1719.6317.0221.75
hill0.03/0.0122.8923.4320.0121.4124.3221.6325.26
0.06/0.0220.7521.0517.8920.2623.0219.6924.61
0.09/0.0319.0919.7617.0519.0222.0318.8523.89
0.12/0.0418.1718.7516.1818.0920.9617.9823.18
0.15/0.0517.3717.9615.6817.4320.0417.5822.42
peppers0.03/0.0123.0123.7720.4322.3425.0322.0426.20
0.06/0.0220.7521.7218.2520.2023.4920.1425.07
0.09/0.0319.5620.0717.2219.0322.1418.9423.92
0.12/0.0418.4619.0016.3918.4321.1418.1422.99
0.15/0.0517.5417.9815.7317.5020.1017.6221.96
Table 2. Denoising data of mixed noise by different algorithms on test images (RMSE).
Table 2. Denoising data of mixed noise by different algorithms on test images (RMSE).
RMSE ρ / σ KSVDNCSROCTOBOSTWSCBM3DWNNMOurs
lena0.03/0.010.06350.06270.09330.07520.05190.07960.0326
0.06/0.020.08350.07980.11740.08920.05780.09730.0371
0.09/0.030.09850.09300.13260.10090.06570.10740.0427
0.12/0.040.11130.10400.14470.11180.07480.11470.0502
0.15/0.050.12280.11520.15680.12110.08230.12410.0573
boat0.03/0.010.06700.06360.09210.07560.05580.08060.0463
0.06/0.020.08750.08400.11600.09210.06300.09830.0506
0.09/0.030.10150.09800.13280.10400.07450.10790.0560
0.12/0.040.11580.10840.14540.11380.08090.11630.0615
0.15/0.050.12680.11760.15510.12370.09070.12440.0687
barbara0.03/0.010.07050.06750.09940.07830.05910.08220.0596
0.06/0.020.09290.08630.12820.09570.06790.10250.0643
0.09/0.030.10770.10150.14590.11010.07780.11530.0686
0.12/0.040.12200.11580.15810.12200.08710.12570.0743
0.15/0.050.13480.12650.16950.13300.09640.13230.0805
cameraman0.03/0.010.07520.07190.09830.08360.07080.08790.0566
0.06/0.020.09690.08990.12940.10330.07770.11040.0621
0.09/0.030.11390.10670.14710.11720.08660.12150.0680
0.12/0.040.13130.12180.15790.12650.09480.13380.0748
0.15/0.050.14220.13340.17360.13860.10440.14100.0817
hill0.03/0.010.07170.06740.09990.08500.06080.08290.0546
0.06/0.020.09180.08860.12750.09700.07070.10370.0588
0.09/0.030.11100.10290.14050.11200.07920.11420.0639
0.12/0.040.12350.11550.15520.12460.08950.12610.0694
0.15/0.050.13540.12650.16450.13450.09950.13210.0757
peppers0.03/0.010.07070.06480.09520.07640.05600.07900.0490
0.06/0.020.09170.08200.12230.09770.06690.09850.0558
0.09/0.030.10520.09920.13770.11180.07810.11300.0637
0.12/0.040.11940.11220.15150.11980.08770.12390.0709
0.15/0.050.13280.12620.16350.13340.09890.13150.0798
Table 3. Denoising data of mixed noise by different algorithms on test images (SSIM).
Table 3. Denoising data of mixed noise by different algorithms on test images (SSIM).
SSIM ρ / σ KSVDNCSROCTOBOSTWSCBM3DWNNMOurs
lena0.03/0.010.50980.59390.35130.54210.65380.50570.8178
0.06/0.020.36770.46680.25470.45450.56720.38460.7945
0.09/0.030.29470.38490.20890.39590.48870.32700.7566
0.12/0.040.24370.33940.17830.36140.41670.29040.7010
0.15/0.050.20890.31360.15430.33800.36310.24910.6358
boat0.03/0.010.52060.58970.40990.54980.64190.51270.6911
0.06/0.020.38850.45790.30090.45200.55210.40220.6682
0.09/0.030.31860.38730.24490.39850.46230.34740.6381
0.12/0.040.26260.34010.21210.36190.41570.30740.5962
0.15/0.050.22900.30450.18720.33160.35560.27270.5444
barbara0.03/0.010.57420.66650.43820.62640.69600.60350.7040
0.06/0.020.43500.53610.31340.51910.60470.47320.6655
0.09/0.030.36060.45750.25580.44740.51940.40050.6312
0.12/0.040.30410.39480.22070.40240.45870.34690.5815
0.15/0.050.26090.32800.19390.35700.40000.31600.5255
cameraman0.03/0.010.49370.62440.39440.55050.61400.51570.7491
0.06/0.020.37660.54940.28640.43760.53880.38940.7184
0.09/0.030.30780.47440.24190.38120.46850.33750.6767
0.12/0.040.25490.39390.21090.35570.39720.29670.6073
0.15/0.050.22500.36320.18380.32830.35300.26850.5462
hill0.03/0.010.54840.58320.43710.52540.62470.53850.6004
0.06/0.020.40950.45730.31160.45060.52490.40800.5791
0.09/0.030.32140.37810.26730.37860.45890.34960.5445
0.12/0.040.27080.31390.22540.32870.39390.30520.5103
0.15/0.050.23470.27350.19680.29360.34270.27210.4736
peppers0.03/0.010.56020.66740.44660.60740.70430.58880.7998
0.06/0.020.43370.55280.33800.49260.60440.46630.7587
0.09/0.030.36890.46650.28530.42440.52520.39310.6983
0.12/0.040.31030.39540.24910.40550.46670.34690.6393
0.15/0.050.27040.36380.21880.35590.39500.32070.5782
Table 4. Denoising data of mixed noise by different algorithms on test images (FSIM).
Table 4. Denoising data of mixed noise by different algorithms on test images (FSIM).
FSIM ρ / σ KSVDNCSROCTOBOSTWSCBM3DWNNMOurs
lena0.03/0.010.99120.99190.98220.98920.99410.98800.9933
0.06/0.020.98470.98620.96900.98290.99070.97910.9927
0.09/0.030.97870.97990.95730.97680.98660.97270.9907
0.12/0.040.97280.97340.94820.97010.98220.96710.9874
0.15/0.050.96750.96960.93860.96440.97850.95940.9810
boat0.03/0.010.99230.99280.98760.99110.99360.98980.9825
0.06/0.020.98710.98620.97800.98470.98970.98280.9829
0.09/0.030.98260.98120.96910.97970.98600.97710.9848
0.12/0.040.97810.97690.96060.97530.98270.97190.9828
0.15/0.050.97350.97120.95280.97000.97820.96690.9791
barbara0.03/0.010.99200.99230.98440.99020.99380.98900.9922
0.06/0.020.98510.98600.97180.98230.99050.98070.9918
0.09/0.030.98030.98030.95970.97770.98610.97210.9905
0.12/0.040.97340.97280.95050.97110.98190.96500.9869
0.15/0.050.96890.96640.94200.96330.97670.96030.9815
cameraman0.03/0.010.97520.98140.96960.97480.98300.97350.9771
0.06/0.020.96470.97030.95590.96540.97640.96110.9765
0.09/0.030.95600.96120.94680.95800.96970.95540.9740
0.12/0.040.94680.95160.93940.95370.96430.95040.9705
0.15/0.050.93930.94610.93310.94660.95780.94310.9646
hill0.03/0.010.98190.98360.97440.98070.98470.98320.9594
0.06/0.020.96860.97190.95880.97210.97790.97000.9622
0.09/0.030.95640.96180.95020.96400.97250.96090.9651
0.12/0.040.94890.95130.94070.95490.96490.95190.9671
0.15/0.050.94060.94310.93340.94870.95810.94470.9638
peppers0.03/0.010.97790.98380.96970.98200.98730.98090.9868
0.06/0.020.96310.97210.95350.96850.97810.96680.9846
0.09/0.030.95470.95990.94240.95780.97230.95400.9792
0.12/0.040.94390.94980.93310.95350.96270.94410.9734
0.15/0.050.93430.93960.92390.94040.95590.93990.9659
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

He, C.; Guo, K.; Chen, H. An Improved Image Filtering Algorithm for Mixed Noise. Appl. Sci. 2021, 11, 10358. https://doi.org/10.3390/app112110358

AMA Style

He C, Guo K, Chen H. An Improved Image Filtering Algorithm for Mixed Noise. Applied Sciences. 2021; 11(21):10358. https://doi.org/10.3390/app112110358

Chicago/Turabian Style

He, Chun, Ke Guo, and Huayue Chen. 2021. "An Improved Image Filtering Algorithm for Mixed Noise" Applied Sciences 11, no. 21: 10358. https://doi.org/10.3390/app112110358

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop