TY - JOUR AU - Mo, Hongwei AB - 1. Introduction With the development of the times, digital images have become one of the ways for people to obtain important information from their daily lives. However, in image propagation and information acquisition, the noise can affect the image blurring, distortion, and even loss of important information [1, 2]. This also means that the quality of digital images will directly affect the accuracy of information transmission in the image, so it is necessary to perform certain denoising processing on the image before using digital images [3]. How to denoise images has become a difficult problem, which has attracted the attention of many scholars. Scholars have proposed statistical filtering and adaptive filtering methods to denoise images. In addition, Khmag A et al. proposed an image denoising method based on improved wavelet transform (WT) to improve the main structure of the original model image. This method could remove noise from natural images corrupted by Gaussian white noise and compress image signals. The results showed that the performance of this algorithm was significantly better than other algorithms [4]. Khmag A et al. proposed to implement pre-classification using clustering based on invariant moments and hidden Markov models to capture the wavelet transform dependence between additive Gaussian white noise pixels and their neighbors. Experimental results show that this method has great advantages in terms of peak signal-to-noise ratio and structural similarity under higher noise levels [5]. At the same time, some scholars have proposed that traditional methods such as standardization, enhancement (randomization), and data aggregation training can be used to overcome the standardization risks and modal differences in traditional denoising methods. However, when using these methods, it cannot be guaranteed that the obtained images can retain complete image information. The flourishing development of artificial intelligence technology provides a new direction for the innovation of image denoising technology. Hard threshold algorithm (Hard TA), and Soft threshold algorithm (Soft TA) are commonly used threshold processing functions in signal processing. The Hard TA refers to the threshold that cannot be exceeded by the detected data. The Soft TA refers to specifying a range of changes for the detected data. Semi-soft threshold algorithm (Semi-Soft TA) is a combination of Soft TA and Hard TA, which can maintain continuity near the threshold point, but there is a slope below the threshold point. The above three parameters play a crucial role in the effectiveness of image denoising, which can be collectively referred to as the improved threshold function. The improved threshold function is a continuous function that can effectively remove the interference of noise in images during image processing. This experiment proposes an image denoising method that integrates an improved threshold function and WT, aiming to removing noise information from the image and fully preserving the image information. The contribution of this research is mainly in two aspects. Firstly, aiming at the problems existing in the traditional image denoising algorithm when dealing with complex noise types, it adopts the fused improved threshold function and WT, and combined with WT and ridge algorithm. Therefore, the denoising algorithm can better adapt to images with different noise types. Secondly, the setting method of threshold algorithm is improved, which further improves the denoising quality in the image denoising. The research has four parts. The first is a literature review on image denoising methods that integrate improved threshold functions with WT. It mainly introduces the application of the improved threshold and WT algorithm in other fields, as well as the research history of image denoising. The second part has two sections. The first section mainly introduces the core algorithm of the fusion algorithm and the method of obtaining key parameters. The second section introduces the optimization methods of the fusion algorithm and the running ideas of the algorithm. The third part has two sections. The first section discusses the denoising performance of the fusion algorithm in different demand environments such as color images, black and white images, and fingerprint images. The second section mainly introduces the stability, computational speed, and application performance of the algorithm in complex environments with fused noise. The fourth part summarizes the first three parts, and analyzes the specific performance of the fusion algorithm and the shortcomings in the research process. 2. Related work WT, as a change analysis method, can effectively remove the correlation between different extracted features. It has fast computing speed, which is favored by scholars. S. Ramakanth and other scholars designed a new algorithm based on continuous WT to achieve automatic target recognition using jet engine modulated radar signals. It is applied to simulated signals affected by noise. Coiflet and complex Morlet wavelets are used for research. Compared with the improved Hilbert Huang Transform, the improved algorithm has better performance [6]. Khmag A et al. also proposed a nonlinear filtering method based on a two-step switching scheme to eliminate salt-and-pepper noise and additive Gaussian white noise [7]. Khmag A and Ramli’s team also used a combination of wavelet denoising algorithm and statistical principal component analysis algorithm to denoise images. This algorithm integrates (PCA) to exploit the subjective and objective quality of the observed images produced by the filtering process [8]. Y. Xu et al. used an improved empirical WT initialized multi-scale fluctuation dispersion entropy method to study the characteristics in active distribution network (ADN) models under grid connection, interruption, and islanding conditions. Disturbance signals in high permeability ADN were detected and classified. The research results indicated that the improved method had robustness and good accuracy [9]. Gao L et al. proposed a signal denoising method that combined mathematical morphology and wavelet adaptive threshold to accurately diagnose ECG signals. The signal-to-noise ratio was used to adjust the threshold parameters, and mathematical morphology was used to eliminate low-frequency noise. Then an innovative denoising method was obtained. The results showed that the root mean square difference and signal-to-noise ratio of this algorithm were significantly improved. The denoising effect was significant [10]. As the mainstream way of information dissemination nowadays, digital image transmission has received a lot of attention and research on the noise processing. Khare S K et al. used adaptive tunable Q-WT for automatic selection when studying emotional recognition of EEG signals. Grey Wolf Optimization was applied to obtain the optimal tuning parameters. Compared with traditional methods, the improved method had strong advantages in accuracy, computational speed, and other aspects [11]. Qiao W et al. adopted a combination prediction model based on WT, short-term memory, and stacked automatic encoder when dealing with strategic planning issues in power generation. The research results indicated that the model had higher prediction accuracy and faster prediction speed [12]. FU Q et al. proposed an image denoising method based on an improved threshold function to eliminate the deviation between different threshold functions. The improved threshold function was combined to process low-frequency noise and reconstruct the image. The results showed that the PSNR of this algorithm was significantly improved by about 5%. The mean square error (MSE) was significantly reduced, and the performance was superior [13]. M. Begum’s team proposed a digital image encryption method based on discrete cosine transform and wavelet transform to ensure the security of images during network transmission. During the process, Arnold mapping is used to encrypt the transmitted image, followed by generating the image through multiple operations. The results indicate that the improved method has good performance and can effectively enhance security [14]. H. Xu et al. adopted a new method based on structural matrix restoration on reducing noise in hyperspectral images. The research results indicated that it exceeded other methods in visual and quantitative indicators such as PSNR and spectral angular distance (SAD) [15]. In summary, high noise levels have a negative impact on image quality, resulting in blurred image details, unclear edges, etc., thereby reducing the image perception quality. It may also cause the effective information in the image to be submerged or destroyed, and even lead to important details in the image can not be accurately identified and utilized. Image denoising has high research value. Currently, a large number of scholars have participated in the research on this issue. However, few scholars have combined improved threshold functions with wavelet algorithms to solve image denoising. Therefore, an image denoising method combining improved threshold function and WT is used to improve the quality of reconstructed images. Combining the improved threshold function with WT algorithm, it is expected to improve the denoising ability of the algorithm by combining the excellent performance of the two algorithms in image denoising. The improved threshold function can better adapt to the noise variety of the image, and can adjust the relevant parameters to adjust the threshold selection range according to the actual situation. The WT algorithm greatly improves the denoising ability of the fusion algorithm by segmenting the image. 3. Design of image denoising methods In the image denoising, the threshold parameters will affect the denoising performance. Combining ridge wave algorithm with wavelet algorithm, and absorbing the characteristics of Hard TA and Soft TA, an TA is proposed to obtain the parameters required in the image denoising. 3.1. The main structure design of denoising algorithm During the process of obtaining and transmitting images, they are easily affected by the environment, leading to the doped noise in the output image. The signal of the image itself is mixed with noise signals, resulting in blurred image details. This can cause problems such as image information loss during the decoding [16]. Therefore, the removal of image noise has received widespread attention from scholars for a long time. The noise in images is reduced by integrating improved threshold algorithms with wavelet algorithms. A brief introduction is given to the optimization ideas and parameter selection of improved threshold algorithm and wavelet algorithm. The noise processing of images is the foundation of image processing. The relationship between the two is shown in Fig 1. Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 1. Correlation between image denoising and image processing. https://doi.org/10.1371/journal.pone.0306706.g001 In Fig 1, the relationship between image denoising and image processing can be divided into three parts, namely image understanding, image analysis and image processing. The three parts complement each other and are related to each other. Image processing can be mainly divided into four steps. Firstly, the images are collect and obtain. Then the selected technology is used to denoise the image. Different image information is segmented and relevant information is fused. Finally, image processing is implemented. Compression and encoding are used to achieve image denoising effect. The denoised image can better reflect the objective data and real information of the original image, providing strong support for image analysis and understanding processes. The WT is extensively applied in the image denoising, which has good denoising effects. However, traditional wavelet algorithms still have discontinuity at the threshold point of the Hard TA. The Soft TA has drawbacks such as deviation from the real signal. Therefore, improvements are made to the threshold and threshold function [17]. The output image of the finite ridge transform and the improved threshold wavelet algorithm are combined to improve the denoising performance. The specific flowchart of ridge wave transformation is shown in Fig 2. Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 2. Ridge wave transformation flowchart. https://doi.org/10.1371/journal.pone.0306706.g002 In Fig 2, the ridgelet transform can be mainly divided into two steps, namely Radon transform and WT. Specifically, after obtaining an original image, the subspace domain image is used to undergo ridgelet transformation to obtain the image ridgelet coefficients (containing noise). Then, the coefficients higher than the threshold are retained. The coefficients lower than the threshold are removed. The ridgelet transform of the final image is inversely transformed into a spatial domain image. If the transformed image has warping distortion, it needs to be removed by Vienna transformation. The experiment assumes that ψ(t) represents a one-dimensional wavelet, then the two-dimensional ridgelet can be expressed as Eq (1). (1) In Eq (1), . θ is the directional parameter. This equation is relatively complex. Therefore, the expression of two-dimensional ridge waves is transformed to reduce the mathematical difficulty. The modified two-dimensional function ridge wave transformation is shown in Eq (2). (2) In Eq (2), the conic curve function is converted into an integral. f(x) is the weight parameter change function in the direction of y. The continuous Radon transformation of the two-dimensional function can be obtained by the two-dimensional ridge-wave transformation. The continuous Radon transform and discrete form of the two-dimensional ridge-wave transform can be expressed, as shown in Eq (3). (3) In Eq (3), Rf(θ,t) represents the continuous Radon transformation of the two-dimensional ridge-wave transformation. t is the time parameter. After obtaining the Radon transformation expression of the two-dimensional function ridge transform expression, the form can be rewritten to obtain the expression of the two-dimensional ridge transform. R(n,m) represents the discrete value of the two-dimensional ridge-wave transform result. F(n,m) represents the transformation result of the two-dimensional discrete function in the frequency domain. The discrete form of the ridge transform of the two-dimensional function indicates that the discrete value R (n,m) of the ridge transform result is equal to the amplitude value of the corresponding position in the frequency domain minus the amplitude value of the adjacent positions above and below [18]. This formula can be used to detect the structure of the ridged wave in the two-dimensional function. By calculating the discrete value of the ridged wave transform result, the ridged sign and edge information in the function can be found. The specific form of a two-dimensional ridge wave is shown in Eq (4). (4) In Eq (4), . ψa,b(t) is the Fourier transform form of one-dimensional ridge waves. The one-dimensional ridged wave in the form of Fourier transform refers to the spectrum obtained after the one-dimensional signal is Fourier transformed, which represents the distribution of the signal in the frequency domain [19]. One-dimensional ridged wave transform based on Fourier transform frequency domain analysis method, by calculating the spectrum amplitude and phase information of the signal, the frequency characteristics and periodic structure of the signal can be revealed. One-dimensional ridge transform can highlight the ridge structure and suppress other frequency components by Fourier transform and spectrum processing, such as threshold processing or spectrum amplitude filtering, and can extract the ridge structure and edge information in the signal. The result obtained by substituting two-dimensional ridged wave into the two-dimensional functional ridged wave transform is shown in Eq (5). (5) In Eq (5), the final ridge transformation expression can be obtained by performing Radon transformations on the obtained transformation expressions. The specific form of this expression is shown in Eq (6). (6) In Eq (6), ψ(⋅) is a projection of the one-dimensional wavelet in the θ direction. The ridge wave transformation process is as follows. The transformation method obtained by performing Radon transform first and then WT processing. The image size I(i,j) is p × p. p represents a prime number. The transformation definition of finite Radon is shown in Eq (7). (7) In Eq (7), Lk,l represents a straight line. The slope is k and the intercept is l. This line is shown in Eq (8). (8) In Eq (8), the finite Radon transform is considered as the sum of pixel values of lines in different directions. rk(l) is the matrix of ridge wave transformation. The image has multiple blocks. It is expressed as a term in the matrix. There are p+1 directions in the matrix. Each direction covers p pixel values. Therefore, the ridge transform matrix can cover the entire pixel of the image, and then perform WT on each column in the matrix, resulting in finite ridge coefficients. By performing Radon transform and WT on the initial image, the processed image is obtained. Among them, the inverse transform signal obtained through finite Radon transform is a very important part of the signal reconstruction process. This part needs to be obtained through finite ridge inverse transformation. The definition of the finite back projection operator is shown in Eq (9). (9) In Eq (9), I(i,j) stands for the pixel value at the corresponding coordinate of the image. rk(l) stands for the finite Radon coefficient. Based on this method, the finite back projection operator is restored to the original image. The finite Radon transform uses modular p-operation, which sometimes leads to the "wrapping" in the image. The output image shows streaks, which affect the output image quality. Therefore, the main improvement direction for the ridge algorithm is to reduce the surround phenomenon of the algorithm and improve the quality of the output image. 3.2. Optimization of fusion algorithm Threshold denoising method of WT is widely used in signal and image processing. WT has the characteristics of multi-scale analysis, which can provide information in both frequency domain and time domain. This gives it an advantage in capturing local details and overall trends. In addition, the WT can compress the signal, remove redundant information and retain the main features. The WT mainly achieves denoising by setting a threshold. The WT coefficients that are less than the threshold are considered noise. The remaining coefficients are retained as effective signals. It has the simple principle, small computational complexity, and good denoising effect. Fig 3 displays the specific denoising process. Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 3. Flow of wavelet threshold denoising. https://doi.org/10.1371/journal.pone.0306706.g003 In Fig 3, WT decomposes the signal to obtain wavelet coefficients. The obtained wavelet coefficients are subjected to threshold processing to obtain an estimated value [20]. The difference between the two is minimized by continuously adjusting the threshold. Then, the estimated value is reconstructed through inverse WT to obtain the estimated signal, which is the original denoised signal. The signal is . s(t) refers to the original signal. n(t) refers to the noise. Taking this signal as an example, discrete sampling is performed on the signal to obtain the discrete signal. The WT coefficients of f(t) can be obtained. The specific form is shown in Eq (10). (10) In Eq (10), the calculation method for Wf(j,k) is relatively complex. ψ(t) is the analytical expression. Therefore, the WT coefficients are transformed through a dual scale equation. The original coefficient of change is transformed, as shown in Eq (11). (11) In Eq (11), h stands for the low-pass filter of the scaling function φ(t). g is a high-pass filter for the ψ(t). Sf(0,k) stands for the initial signal. Sf(j,k) stands for the approximation coefficient on the j scale. Wf(j,k) stands for the wavelet coefficient. After obtaining a recursive implementation method for the coefficient, the equation is reconstructed. The specific form of the reconstructed WT is shown in Eq (12). (12) In Eq (12), the coefficient is ωj,k. After performing discrete WT of signal f(k), the coefficients consist of two parts. s(k) stands for the real signal, corresponding to the coefficient Ws(j,k). The noise n(k) corresponds to the coefficient Wn(j,k). At this point, the construction of WT equation is completed. After obtaining the denoised image output by WT, ridge wave transform is used to denoise the image. The outputs of the last two algorithms are fused to improve the denoising effect. The denoising method using ridge transform is similar to WT. Namely, threshold processing is performed through finite ridge coefficients to get ridge transformation coefficients obtained from noise and signal transformation. Ridged denoising is applied to reduce image noise and improve signal-to-noise ratio. The specific process is as follows. Firstly, the image is preprocessed, and the image size is adjusted to the prime size. Next, the image is decomposed by finite ridge transform and the ridge coefficient is obtained. Then, the ridge coefficient is filtered by setting the threshold to remove the noise in the image. Finally, the processed ridged coefficients are synthesized into reconstructed images by using the inverse transformation of finite ridged waves. After the reconstructed image is obtained, the image can be processed using the Wiener filter to reduce the surround effect that may be caused by the ridge denoising, which further enhances the image quality. In the wavelet threshold denoising, setting the threshold value is a very important step, which will directly affect the quality of the image after denoising. The classical threshold selection methods include universal threshold method, SUREShrink threshold method, heuristic threshold method and minimax threshold method. The most extensively applied method is the universal threshold. The selected method is simple, which has been widely used in practical life. After determining the threshold selection method, the TA is used to obtain the threshold. Among them, Hard TA and Soft TA are the most common methods. The specific expression is shown in Eq (13). (13) In Eq (13), ωj,k stands for the wavelet coefficient. stands for the new coefficient after denoising. T refers to the threshold. The constructed Hard TA and Soft TA are displayed in Fig 4. Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 4. The diagram of Hard TA and Soft TA. https://doi.org/10.1371/journal.pone.0306706.g004 In Fig 4, each of the two TAs has the own advantages. For example, the denoising process of the Hard TA can better preserve the original features, while the denoising process of the Soft TA can make the signal smoother. Among them, Soft TA zeros signal components below a certain threshold, and scale the components that are greater than the threshold. Hard TA zeros signal components below a certain threshold and keeps components above that threshold unchanged. Semi-Soft TA is a combination of Soft TA and Hard TA. In Semi-Soft TA, the retained component larger than the threshold is scaled, while the component smaller than the threshold is zeroed directly. When facing the problem of image denoising with larger image scales, the energy amplitude of the noise decreases due to the larger image scale. The traditional universal threshold method to reduce noise can lead to excessive denoising, resulting in the information being removed as noise. The quality of denoised images decreases. Among them, the image reconstructed by the Hard TA generates pseudo Gibbs lines due to discontinuity at the threshold points, resulting in image oscillation. The Soft TA has a constant difference between the denoised signal and the real signal, which leads to blurring and quality degradation of the reconstructed output image. In order to overcome such shortcomings, a more effective and applicable TA is constructed based on the understanding of the limitations and shortcomings of traditional TA, in-depth understanding of mathematical principles, and in-depth thinking and exploration of practical problems, as shown in Eq (14). (14) In Eq (14), n stands for the adjustment parameter. The improved TA combines the characteristics of Hard TA and Soft TA to enhance the flexibility of threshold changes. It has better noise reduction performance for larger scale images. The improved Hard TA and Soft TA are shown in Fig 5. Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 5. The improved Hard TA and Soft TA. https://doi.org/10.1371/journal.pone.0306706.g005 In Fig 5, the improved TA still maintains continuity at ±T. When adjusting parameter n = 0, the denoised wavelet coefficients will not change. When the adjustment coefficient approaches positive infinity, the form of the denoised wavelet coefficient is shown in Eq (15). (15) In Eq (15), the improved TA can change the wavelet parameters of the TA as the adjustment parameters change. Increasing the value of the adjustment parameter can gradually bring the TA closer to the Soft TA. Adjusting parameters not only makes the improved TA continuous, but also reduces the mathematical processing difficulty. It also adjusts the adjustability of the parameters. By repeatedly fitting, the optimal denoising effect is obtained through optimization. WT is highly effective in describing the singularity. However, there is a lack of ability to describe lines. Therefore, the WT in image denoising inevitably leads to blurring and distortion of the image. Ridge wave transform has better performance than WT in processing images, edges, or linear contours. Compared with WT, ridge transform can provide sparse representation of edges, thus better preserving the linear features of the image. The specific content of the segmented ridge denoising algorithm is shown in Fig 6. Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 6. Block ridge wave denoising flowchart. https://doi.org/10.1371/journal.pone.0306706.g006 In Fig 6, the first step is to divide the image into equally sized square blocks. Then, the size of each small square block is converted to a prime size. The ridge wave transform decomposition is applied. A threshold is selected for denoising based on each square block. Finally, each square block is reconstructed using inverse ridge wave transform. The denoised square blocks are restored to their original size, and then concatenated to obtain a complete image. From this, the steps of the algorithm can be obtained, which includes a total of 7 steps. (1) The noise image of size N × N is divide into square image blocks of size b × B (b