Abstract

In order to solve the defect that the threshold value of the NSCT transform method is too large or the real signal coefficients are directly lost during image denoising, an adaptive threshold method of genetic algorithm is used to optimize the NSCT image denoising method. The genetic algorithm is used to generate the initial population, and the genetic operator is determined by selection, crossover, and mutation operations to achieve NSCT threshold optimization. The obtained optimized NSCT threshold is used to process different directions. The coefficients of different scales are processed by using NSCT inverse transform to obtain the denoised image. The results of the case analysis show that the proposed method is used to denoise the image, the peak signal-to-noise ratio of the image after denoising is higher than 30 dB, the image contains rich edge information and detailed information, and the denoising performance is superior.

1. Introduction

Image denoising is an important processing method in the field of image processing. Images are easily contaminated by different noises during acquisition and propagation, which degrade the image quality [1]. Image denoising should preserve the original image details as well as edge information as the key to image process.

The translation invariance of image processing is extremely important to retain image information during image processing [25]. The wavelet transform method is usually used to implement the denoising process for images, and the wavelet transform method does not have translation invariance, and the square effect is easily formed when the wavelet transform method is used to process images, and the image edge information is easily lost in the denoising process. Subsampled contourlet transform (SCT) is a transform method with multidirectional, multiresolution, and translation without distortion. The nonsubsampled contourlet transform (NSCT) transform method is applied to the image denoising process, and the screening of transform coefficients and the selection of thresholds are the keys to the image denoising performance [6, 7]. The process of estimating the noise variance using the NSCT method is prone to error, resulting in a less precise selection of the threshold.

Liu et al. mainly study the image denoising method based on deep learning algorithm. Through repeated iteration of deep learning algorithm, the threshold value is obtained to make the image clearer [8]; according to Wang Q. et al., based on the optimized variational modal decomposition algorithm, the image is denoised to obtain a clearer image [9]. The above methods can optimize the threshold, but cannot quickly obtain the best threshold. Based on this, this paper proposes an NSCT image denoising method based on genetic algorithm optimization threshold. Genetic algorithm is an efficient optimization algorithm that realizes stochastic optimization by simulating genetic variation in biological evolution and natural selection and does not depend on a specific solution model with strong global search ability [10, 11]. The process has high threshold optimization efficiency. This paper optimizes the NSCT threshold using a genetic algorithm and uses the optimal NSCT threshold to achieve better image denoising.

In this paper, we propose an NSCT image denoising method based on genetic algorithm optimized threshold, which uses a genetic algorithm to optimize NSCT thresholds and achieves better image denoising using optimal NSCT thresholds.

2. NSCT Image Denoising Method Based on Genetic Algorithm Optimized Threshold

2.1. NSCT Transform

The NSCT transform method achieves image denoising by directional decomposition and scale decomposition of the image, and the overall structure of the NSCT transform is shown in Figure 1.

The NSCT transform first implements a multiscale transform of the image through a non-down sampled tower filter bank and then implements an orientation decomposition of the different scale subband images using a non-down sampled orientation filter [1214] to obtain subband images with different orientations as well as different scales.

2.1.1. Nonsubsampled Decomposition

The nonsubsampled decomposition of the NSCT transform is achieved by using a multistage iterative approach, and a set of filter formulas that can meet the reconstruction conditions during the nonsubsampled decomposition are as follows:

In Equation (1), and denote the low-pass decomposition filter and high-pass decomposition filter, respectively; and denote the low-pass reconstruction filter and high-pass reconstruction filter, respectively.

The image is divided into high-frequency subbands as well as low-frequency subbands after processing by the filtering of Equation (1), and the repeated iterative filtering of the low-frequency subbands can increase the filter structure.

2.1.2. NSCT Threshold Determination

NSCT uses set thresholds to achieve image denoising, and the selection of thresholds in the NSCT transform is extremely critical. The NSCT transform threshold is usually determined by the Visu shrinkage method with

In Equation (2), and denote the noise standard deviation and the number of coefficients, respectively. When the number of coefficients is large, the threshold value of NSCT transform will be large, and the large threshold value will cause the loss of the true signal coefficients. Based on Equation (2), the adaptive thresholding method is used to determine the NSCT threshold, and the interscale as well as intrascale subband coefficients obtained by the NSCT transform have a high correlation [15]. Based on the decomposition level, the variance of the difference scale noise can be approximated as an exponential distribution, and the noise in different directions is approximately equal within the same scale, and the difference scale noise variance equation can be obtained as

The equation for estimating the minimum scale image noise variance is as

The thresholds are set based on the differential scale noise scenario as

Equation (5) is a method for acquiring a nonlinear adaptive threshold with decreasing value. The threshold acquired by this method can sharply reduce the noise information as the scale increases. and , respectively, represent the difference scale direction noise standard deviation and the number of directions on the decomposition scale; and , respectively, represent the wavelet coefficient and image size. The threshold obtained by Equation (5) does not consider intrascale dependence, but only considers interscale dependence. According to the NSCT transformation method, the coefficient energy and noise energy of the image show larger, concentrated, smaller, and dispersed characteristics, respectively, [16, 17]. The target correction Equation (5) is to remove the noise coefficient and retain the image coefficient, and the formula can be obtained as

The neighborhood average value is obtained by analyzing the neighborhood of NSCT coefficients, and the neighborhood window is set to . The can be obtained by comparing the coefficients at this scale as

In Equation (7), and , respectively, represent the average value of the neighborhood coefficient after NSCT transformation and the maximum value of the coefficient under the subband, and represents the average value of the coefficient under the subband. Through the analysis and statistics of the NSCT coefficients in the scale, the characteristics of the coefficients in the entire scale and the coefficients in the neighborhood window are compared to obtain the precise positioning of the noise. The absolute value of the coefficient in the noise area and the absolute value of the coefficient in the image information area are the smallest and the largest [18]. For the noise area and the image signal area, increasing the threshold and reducing the threshold can remove more noise and retain more useful information.

2.2. Genetic Algorithm Optimizes NSCT Threshold
2.2.1. Genetic Algorithm

A genetic algorithm is a global search algorithm with high parallelism and effectiveness. The genetic algorithm uses the simulated biological evolution process to search for the optimal solution, uses to represent the entire operator, and uses the genetic operator to obtain the new group . The main operations of the genetic algorithm are as follows: (1)Choice

According to certain rules and different individual fitness, select good individuals in the generation group , and inherit them into the next generation group . (2)Cross

For random collocation of individuals in , use a fixed probability to exchange part of the chromosomes between each body. (3)Variation

Use a fixed probability to convert the gene value at the individual locus in the population into other alleles.

The flow chart of genetic algorithm optimization is shown in Figure 2.

The genetic algorithm needs to use the symbol string to encode the individual, and select the binary encoding method to encode the individual. Randomly select the starting search point as the initial population data. Determine the strengths and weaknesses of different individuals based on their fitness, and use the acquired fitness to determine genetic opportunities. Inherit individuals with higher fitness in a population to the next population, according to a fixed rule which is a selection operation [19, 20], and a proportional selection method is selected to implement the selection operation of the genetic algorithm. The crossover operation in the genetic algorithm is the process of forming a new individual. The crossover operation exchanges chromosomes between different individuals according to a fixed probability, and the single-point crossover method is selected to implement the genetic algorithm crossover operation. Randomly pair the population, set the position of the intersection, and pair some genes between the chromosomes. Mutation calculation is an operation method to form a new individual, to determine the genetic mutation position of all individuals, and to reverse the original gene value of the mutation point according to a fixed probability.

2.2.2. NSCT Threshold Optimization

Genetic algorithms are optimization methods that use biogenetic concepts to obtain optimal solutions to problems and determine the optimal threshold of NSCT using genetic algorithms.

The fitness function is the core of the genetic algorithm, and the fitness function needs to be determined based on the objective function of the problem to be solved, and the fitness function is used to clarify the advantages and disadvantages of individuals within the population group [21], which is an important basis for the natural selection of the genetic algorithm. The image information entropy after denoising is set as the threshold to optimize the objective function, so that the amount of image information after denoising contains image detail information as well as texture information.

represents the NSCT threshold, and represents the image after denoising. The available fitness function formula is

The genetic algorithm optimizes the NSCT threshold process as follows:

(1) Generate an Initial Population. Real number coding is used as the coding scheme, and real number coding is highly effective for function optimization problems [22]. Generate the initial population, set the adaptive threshold range to [0.5, 0.8], randomly generate a population uniformly distributed in this range, denoted by , and select the optimal to maximize the information entropy of the denoised image.

(2) Determination of Genetic Operator. The genetic operator is determined by selection, crossover, and mutation operators. Use the replication process to complete the operator selection, select individuals with higher fitness in the population, and obtain the independent individual probability formula as

Crossover operations are realized by reorganizing individuals, and crossover operations are the main part of forming new individuals. Select the number of pairs of to generate the individual pairs in the form of . The number of individual pairs is , and the intermediate recombination method is selected to be used in the real-valued encoding process. The operating formula is

In Equation (10), represents the conversion factor uniformly generated in the interval.

The mutation operator is used to randomly generate a new value in the range and disturb the original gene value, and the mutation operation formula is as follows:

In Equation (11), and , respectively, represent the postmutation threshold and the randomly formed range of variable asynchronous length within [-1,1].

The process of the NSCT image denoising method based on genetic algorithm optimization threshold is as follows: (1)Use NSCT transform to process images containing noise(2)Obtain the noise variance of images of different scales according to formula (3), and use Equation (5) to set the threshold of each subband(3)Use formula (6) to obtain the modified adaptive threshold(4)Use genetic algorithm to obtain optimal adaptive threshold(5)Use the obtained optimal adaptive threshold to process coefficients in different directions and different scales, and obtain the denoised image through inverse transformation

3. Example Applications

The CoPhIR dataset, a commonly used image processing dataset in the network, is selected as the experimental test dataset, which contains classical images such as Lena, fruits, horse, and airplane. The weighted variational method and the mathematical morphological filtering method are selected as the comparison methods. The image denoising performance of the method in this paper is verified by both qualitative analysis as well as quantitative analysis.

3.1. Qualitative Analysis

The original standard test image Lena image containing Gaussian white noise in the test dataset is shown in Figure 3.

The final image obtained by using the proposed method in this paper to denoise the image is shown in Figure 4.

The experimental comparison results in Figures 3 and 4 show that the proposed method in this paper can effectively remove the noise contained in the original image and effectively retain the image edge information as well as the detail information, and the image contrast is higher after denoising. This verifies that the method in this paper has a high image denoising effect.

3.2. Quantitative Analysis

The methods in literature [8] and literature [9] are selected as comparison methods to process images together with the method in this paper. The smoothness index, peak signal-to-noise ratio, edge retention index, and image information entropy indexes after denoising are compared to prove the advancement of the method in this paper.

The smoothing index is chosen as the evaluation of the smoothing ability of the method in this paper on noise, and the smoothing index is calculated as

In Equation (12), and are, respectively, the standard deviation of all pixels and the average value of all pixels in a certain area after image denoising. The higher image-smoothing index, the higher the smoothing effect of the denoising method.

The comparison results of the smoothing index of the denoised images under different decomposition layers are shown in Figure 5.

From the experimental results in Figure 5, it can be seen that with the increase of the number of image decomposition layers, the smoothness index of the image increases. In the case of different decomposition layers, the smoothness index of the method in this paper is the highest, which is better than the comparison method, which effectively verifies that the method in this paper has high image denoising performance.

The peak signal-to-noise ratio is selected as another indicator to evaluate the effect of image denoising. The formula for calculating the peak signal-to-noise ratio is

In Equation (13), and , , respectively, represent the maximum gray value of the image and the number of image rows and columns; and , respectively, represent the gray value of the pixel before denoising and the pixel after denoising grayscale value.

The comparison results of the peak signal-to-noise ratio of 10 images in the test dataset of different methods are shown in Table 1.

The edge retention index is used to measure the horizontal and vertical edge retention of the original image after denoising. The calculation equation for the horizontal and vertical edge retention index is as follows:

The smoothing index is chosen as the evaluation of the smoothing ability of the method in this paper on noise, and the smoothing index is calculated in Table 2.

The experimental results in Tables 1 and 2 show that, compared with the methods in [8, 9], the peak signal-to-noise ratio of denoised images is higher than 30 dB, and the horizontal and vertical edge retention indices of denoised images are higher than 1.5, the peak signal-to-noise ratio and image edge index of the denoised test image are both optimal, and the experimental results show that this method has high image denoising performance. The processed images contain rich edge information, indicating that the method has high denoising performance.

The image information entropy can measure the detail information contained in the denoised image, and the higher the image information entropy result, the more detail information is contained in the image, and the better the image denoising performance is. The comparison results of image information entropy obtained by using three methods for image denoising are shown in Table 3.

The experimental results in Table 3 show that the entropy of different image information obtained by denoising the image with this method is higher than that of the other two methods, which indicates that the denoising of the image with this method can effectively retain the image detail information and make the denoised image information richer. This method can clearly present the overall information of the image and retain more details, which verifies that this method has high image denoising performance and can meet the demand of image denoising to maximize the detail retention.

4. Conclusion

The genetic algorithm is applied to the NSCT image denoising method, and the genetic algorithm has a high global optimizing performance to implement threshold optimization for the NSCT image denoising method. By obtaining the optimal denoising thresholds for each NSCT image subband, image denoising is achieved by processing the decomposed NSCT coefficients with the obtained thresholds. The proposed method can achieve effective optimization of the threshold value of NSCT image denotation method, which can be applied in practical applications of image processing. The example analysis verifies that the proposed method has high image denoising processing performance. Using the method to denoise the image can effectively remove the Gaussian white noise of the image, so that the processed image has a higher peak signal-to-noise ratio. After denoising, the image retains the edge information and detail information of the original image, gives full play to the displacement invariance property of NSCT, and satisfies the position shift requirements of image denoising, and the edge information is kept intact. This effectively improves the blurring of the image texture and enhances the visual effect of the image.

Data Availability

The data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest

The authors declare that there are no conflicts of interest regarding the publication of this paper.

Acknowledgments

This paper was supported by the Jilin Provincial Department of Education Project: Research on Remote Sensing Image Fusion Enhancement Algorithm Based on Improved NSCT (Grant JJKH20210047KJ), Beihua University Project: Cloud Platform Construction of Shanxi New Era Civilization Practice Center (Grant 202003015), Development Plan Project of Jilin Provincial Science and Technology Department (Grant 20210203050SF), and Jilin Provincial Department of Education Project (Grant JJKH20220056KJ). Also thanks are due to Mingjie Ma and Yingjian Shao for editing this paper.