1 Introduction

Digital images are common information carriers in human social and industrial activities. However, during the process of imaging, compression and transmission, images are usually polluted by various types of noise [1, 2]. The inevitable noisy image, especially with a strong noise, is usually annoying because it hinders the understanding of image information. For a better understanding and obtaining a detailed information of the image, noisy images must be denoised [3].

Image denoising has been attracting much attention in the past few years [4, 5]. There are numerous methods that have been proposed so far. Some of the common methods are smoothly filtered in the spatial domain. Among them, median filtering [6] and Wiener filtering [7] are based on a local neighborhood information of images, while non-local means here that the method is based on the whole image [8]. There are also some common methods of denoising in the transform domain [9], such as Fourier transform [10], discrete cosine transform [11] and wavelet transform [12]. Besides, the block-matching 3D method is proposed, which combines the idea of a spatial domain and a transform domain [13]. The method based on compressed sensing, which utilizes the prior knowledge of the sparsity difference between images and noise is used in [14]. In addition, a number of methods based on data-driven or model-driven deep learning have been used by researchers [15,16,17]. Although most of the above methods have a good performance, they mainly focus on eliminating rather than utilizing noise. Unfortunately, detail information might also be removed when they eliminate the noise of the image [18,19,20]. Furthermore, as the noise intensity increases, their denoising effects typically becomes unsatisfactory [21, 22].

Stochastic resonance (SR) can be used, as a well-known physical phenomenon, to enhance weak signals by utilizing a positive constructing role of noise [23,24,25]. There are already a multitude of promising applications of SR in machine fault detection and other fields [26,27,28]. With the development of applications of SR, researchers began to utilize SR in image processing as well [29, 30]. For example, Liu et al. [31] proposed an optimal adaptive bistable array SR-based gray-scale image restoration enhancement method. Sun et al. [32] restored pulse and high noisy images using SR. Gupta et al. [33] proposed a method for image enhancement by combining anisotropic diffusion with dynamic SR in discrete wavelet transform domain. Singh et al. [34] proposed a modified neuron model based SR approach applied for the enhancement of magnetic resonance imaging. Jha et al. [35] presented a dynamic SR-based technique in singular-value domain for contrast enhancement of dark images. Liu et al. [36] proposed a novel binary image enhancement scheme based on aperiodic SR technique. Yang et al. [37] developed an elementary theory of two-dimensional (2D) parameter-induced SR to contribute to nonlinear image processing. Chen et al. [38] proposed an algorithm of image denoising for Gaussian–Gaussian mixed noise based on SR. Fu et al. [39] presented an algorithm for enhancing the contrast of dark images based on the principle of SR in global feedback spiking network of integrate-and-fire neurons. Although the above SR-based methods can remove image noise to some extent, the image denoising method with better performance and higher efficiency is still worth of further study, especially the method for the image with strong noise. By analyzing the latest theoretical and applied research results, we find that stochastic resonance of periodic potential system has more advantages in the denoising of periodic signals than classical bitable stochastic resonance, no matter in terms of signal-to-noise ratio or processing speed [40, 41]. In addition, relevant advantages have been successfully applied to the engineering problems such as recovery of bearing fault signals under the background of strong noise [42,43,44]. Therefore, it is worth studying whether stochastic resonance of periodic potential system still has a leading advantage in image processing. Different from bearing fault signals, image signals cannot be expressed in periodic signals by dimensionality reduction, but always in complex aperiodic signals [31, 36]. In order to explore the application value of periodic potential stochastic resonance in the field of image denoising, this paper conducts an in-depth study.

The rest of this paper is organized as follows. In Sect. 2, all parameters of Gaussian white noise (GWN) are investigated to figure out their effect on image pollution degree. In addition, the distribution law of image noise is explored to prepare for reducing the image dimension. Then, SR of noisy aperiodic square wave signal (ASWS) is discussed to prepare for image denoising. In Sect. 3, an image denoising method by SR in a nonlinear system with a periodic potential (PSR) is proposed in further detail. Besides, adaptive SR is achieved to improve PSR performance. In Sect. 4, three typical comparative experiments are carried out to verify the superiority of the proposed adaptive PSR method. Finally, the main conclusions are provided in the Sect. 5.

2 Preliminaries

Taking the Lena binary graph as an example which explains our algorithm simply and clearly, we denote the normalized image as \(S_{0} (i,j)\). In addition, gray and color graphs are only additionally related to the selection of appropriate methods of image dimension reduction. As shown in Fig. 1, the original image contains only 0 and 1 pixels.

Fig. 1
figure 1

Left panel. The original image is a normalized binary graph, which is used as an object of study. Right panel. The corresponding histogram of the original image

2.1 Image evaluation index

Peak signal-to-noise ratio (PSNR) is introduced to evaluate images equality because of its good evaluation ability by comparing every pixel. Two m × n monochromatic images are denoted S(i, j) and W (i, j), where S(i, j) is the original reference image and W (i, j) is the image to be evaluated. Then, their mean square error (MSE) is

$$ {\text{MSE}} = \frac{1}{{m \cdot n}}\sum\limits_{{i = 1}}^{m} {\sum\limits_{{j = 1}}^{n} {[S(i,j) - W(i,j)]^{2} } } $$
(1)

PSNR is defined as

$$ {\text{PSNR}} = 10\log _{{10}} \left( {\frac{{{\text{MAX}}_{s}^{2} }}{{{\text{MSE}}}}} \right) $$
(2)

where \({\text{MAX}}_{S}\) represents the maximum gray level of the images. For pixel normalized images, the gray-scale range of images is within [0–1], \({\text{MAX}}_{S} = 1\). Combining the above two expressions, we give the PSNR of pixel normalization image as

$$ {\text{PSNR}} = 10\log _{{10}} \frac{{m \cdot n}}{{\sum\limits_{{i = 1}}^{m} {\sum\limits_{{j = 1}}^{n} {[S(i,j) - W(i,j)]^{2} } } }} $$
(3)

where m and n represent the number of images rows and columns.

2.2 Effects of different GWN parameters

To explore the effects of parameters of the Gaussian white noise (GWN), we consider the original image \(S_{0} (i,j)\) and denote the noisy image as \(S_{1} (i,j)\). The two parameters of GWN are the mean and the variance μ and σ, respectively. Much attention has been paid to the variance which relates to noise intensity; however, here the mean of GWN is considered as well. There are many ways to add a GWN to an image that in principle consists of adding random numbers to each pixel of the image.

As shown in Fig. 2, images with different GWN are described. Compared subplots by column, the mean values of the added GWN are the same, while their variances are different. In this case, the variance determines the image pollution degree. When the subplots are compared by row, the mean values of the GWN in images are different and the variances are the same. We can observe that not only the variance but also the mean of the GWN has a great influence on image pollution degree. In former works, little attention has been paid to analyze the influence of the mean of the GWN on image denoising.

Fig. 2
figure 2

Image is polluted by different GWN. From left to right, the values of (μ, σ) of the GWN in the first row are (0,0.1), (0.5,0.1) and (1,0.1), and the values of PSNR are − 4.3528, − 15.6920 and − 20.6097, respectively. In the second row, the values of (μ, σ) are (0,1), (0.5,1), (1,1), and the corresponding values of PSNR are − 11.6205, -14.5271, -17.8604, respectively

2.3 Distribution law of image noise

As well-known, an image can be regarded as a 2D matrix. Do the laws of physics corresponding to a one-dimensional signal still apply to 2D images? This question is worth of studying. For image denoising, we want to know whether the noise distribution law in the noisy image changes or not. To clarify the confusion, we subtract \(S_{0} (i,j)\) from \(S_{1} (i,j)\) to obtain the noise matrix.

As shown in Fig. 3, histograms of different noise matrices are exhibited. Besides, the corresponding fitting curves are given. It can be seen that noise of the image where we have added GWN does not obey a Gaussian distribution. Actually, images usually become noisy matrices after adding noise. The noisy matrices should be reset according to the computer imaging rules to obtain noisy images. That is, if the pixel value is greater than 1, it is reset to 1, and if is less than 0, it is reset to 0. Consequently, the noise distribution law is changed. Conversely, if the dimension of the image is reduced before computer processing after adding noise, the noise distribution law will not change. Although directly reducing image dimensions is usually operated in simulation experiments, it does not conform to the actual situation.

Fig. 3
figure 3

Histograms of noise matrices. The subplots represent six noise matrices which are obtained by subtracting \(S_{0} (i,j)\) by \(S_{1} (i,j)\) of Fig. 2

2.4 SR of noisy ASWS

The overdamped nonlinear system with a periodic potential can be described by the following Langevin equation

$$ \frac{{{\text{d}}x}}{{{\text{d}}t}} = - U'(x) + S(t) + N(t) $$
(4)

where S(t) is the input signal and N(t) is the random noise. U(x) is the nonlinear periodic potential function, and

$$ U(x) = a\cos (bx)\quad a > 0,b > 0 $$
(5)

In order to denoise the image based on SR, the image needs dimension reduction. Considering the bipolarity requirement of the input signal of the nonlinear system, the one-dimensional signal obtained by dimensionality reduction is processed by dual polarization, and the obtained signal is ASWS [31, 36]. Therefore, in the simulation experiment, we take the ASWS as the input signal S(t) to verify the effectiveness of PSR for image denoising.

In research, an ASWS denoted as L(t) is generated based on a pseudo-random sequence. Then, GWN with μ = 0 and σ = 0.8 is added to L(t) to get S(t) which is used to simulate the noisy signal. GWN which contains all frequencies and obeys a Gaussian distribution is one of the most common image noise. Therefore, it is also used when we process a one-dimensional simulation signal.

According to Eq. (4), the optimal SR can be achieved when random noise, input signal and parameters of the nonlinear system reach the optimal match. Actually, the optimal SR is hard to obtain by adjusting the noise intensity because the optimal noise cannot be predicted prior. Hence, for a certain input signal, we achieve an optimal SR by adjusting the system parameters. If not specified, we take a noisy signal S(t) as the input and no longer consider the extra random noise N(t).

The simulation signal S(t) is substituted into Eq. (4) to observe the denoising output results. The parameters of the nonlinear system with a periodic potential is gradually changed at the same time. As shown in Fig. 4, one of the output results is presented. It can be seen that L(t) is recovered from a strong noise background. Besides, the amplitude of L(t) is amplified. It is believed that SR in a nonlinear system with a periodic potential can be used to recover ASWS signals from strong noise.

Fig. 4
figure 4

SR of ASWS in the nonlinear system with a periodic potential of Eq. (4). Subplots are the original signal L(t), the input signal S(t) and the recovered signal x(t) from top to bottom. Parameters of the periodic potential are a = 1.68, b = 0.52

The cross-correlation coefficient is introduced as an evaluation index of a one-dimensional signal, which can effectively measure the denoising performance. It is defined as

$$ C_{{Sx}} = \frac{{{\text{Cov}}(S,x)}}{{\sqrt {[{\text{Var}}(S)][{\text{Var}}(x)]} }} $$
(6)

where Cov(S, x) is the covariance of input signal S and system response x. Var(S) is the variance of S and Var(x) is the variance of x.

It is worth pointing out that PSNR can be used to evaluate images but not one-dimensional signals. Hence, \(C_{{Sx}}\) is used as the evaluation index when we process a one-dimensional signal.

As is well-known, parameters a and b of the periodic potential given by Eq. (5) determine the shape of the potential function. We will see that they have a great influence on our results. In addition, an input signal usually corresponds to a SR region in the nonlinear system, what means a range of system parameters corresponding to the optimal SR or nearly optimal SR. Next, we will find out the SR region of S(t) in the nonlinear system with a periodic potential of Eq. (4).

Figure 5 exhibits a 2D plot showing the values of \(C_{{Sx}}\) for different pairs of a and b values of the potential. The region with large \(C_{{Sx}}\) can be distinguished directly. It is believed that there is a larger likelihood of achieving the optimal SR when system parameters are in this region. In practical terms, choosing the optimal parameters is an important and complicated process. Therefore, obtaining a SR region is helpful because it greatly narrows the searching range for the population initialization of the optimization algorithm.

Fig. 5
figure 5

Cross-correlation coefficient \(C_{{Sx}}\) corresponding to different system parameters a and b. The region with higher values of \(C_{{Sx}}\) is considered as the region where a higher probability of optimal SR might occur

3 Adaptive PSR image denoising

The characteristics of a signal are often submerged in a strong noise background. It is well-known that the parameters of the nonlinear system are important factors affecting the SR performance. However, optimal system parameters are hard to be obtained, which is an optimization problem hindering wide application of SR. Fortunately, many algorithms have been proposed to solve this problem. Among them, the quantum particle swarm optimization (QPSO) algorithm is a kind of algorithm that has good ability for searching the optimal solution in the whole feasible region [45]. Therefore, the QPSO is used for the searching of optimal system parameters to achieve adaptive SR.

3.1 QPSO algorithm

The QPSO algorithm endows particles with quantum behavior, so that they can search for the optimal solution in the whole feasible region without falling into local convergence. The main optimization principle is as follows.

Firstly, the search of the range of the optimal target is defined as a D-dimensional space, in which initial population is composed of H particles. The position of the ith particle in the space is denoted as \(X_{i} = (X_{{i1}} ,X_{{i2}} , \ldots ,X_{{iH}} )^{T}\). In fact, the updated position vectors of each particle constitute a potential solution. Next, positions of particles are substituted into a fitness function to obtain the fitness value which can be used to evaluate the whole result. Then, the individual position of each particle is updated by tracking the individual extremum \(P_{i}\) and the population extremum \(P_{g}\), where \(P_{i}\) refers to the optimal fitness position calculated from the positions experienced by a single particle.\(P_{g}\) refers to the optimal fitness position of all particles in the population. Finally, the optimal result is obtained when the search reaches the preset condition.

The position equation is

$$ X(T) = P \pm \frac{L}{2}\ln (1/v) $$
(7)

where v is a random number within [0,1] and T is the number of iterations. P is the attractor, \(P = uP_{i} + \left[ {1 - u} \right]P_{g}\), in which u is a random number within [0,1]. The transformation law of L is

$$ L(T + 1) = 2\alpha |M - X(T)|, $$
(8)

where M is the average value of the individual extremum corresponding to the particle position under the current iteration times \(M = \frac{1}{H}\sum\limits_{{i = 1}}^{H} {P_{i} }\), and α is the coefficient of contraction and expansion. The position equation of the particle is obtained by substituting Eq. (8) into Eq. (7), that is,

$$ X(T + 1) = P \pm \alpha |M - X(T)|\ln (1/v), $$
(9)

The QPSO algorithm can be used to find the optimal target quickly and efficiently, which provides a basis for the realization of the adaptive image denoising.

3.2 Adaptive PSR

Here, the image denoising by SR in the system given by Eq. (4) is proposed in detail. Besides, the QPSO algorithm is utilized to obtain the optimal system parameters in order to achieve the adaptive denoising. Adaptive PSR image denoising contains the following steps:

  1. (1)

    Normalize image

    The noisy image to be processed are normalized firstly. The result is denoted as \(I_{0} \;(i,j)\), in which pixel values are distributed within [0,1].

  2. (2)

    Dual-polarize image

    The normalized image \(I_{0} \;(i,j)\) is dual-polarized. Then, the result is denoted as \(I_{1} \;(i,j)\). For simplicity, \(I_{1} \;(i,j)\) is obtained by subtracting 0.5 from \(I_{0} \;(i,j)\). The pixel values of \(I_{1} \;(i,j)\) are distributed within [− 0.5, 0.5].

  3. (3)

    Reduce dimensionality

    \(I_{1} \;(i,j)\) is reduced by the row-major order to obtain S(k). Firstly, the first line of \(I_{1} \;(i,j)\) is scanned, which is traversed from the first element to the last element. Then, the second line is scanned from the first element. The operation is repeated until the last element of the last line.

  4. (4)

    Acquire optimal SR adaptively

    Firstly, S(k) is input into the system of Eq. (4). Then, the optimal system parameters are obtained with the help of the QPSO algorithm. Finally, the optimal x(k) is obtained through achieving the optimal SR.

  5. (5)

    Reshape image

    x(k) is reshaped to obtain \(W\;(i,j)\).

  6. (6)

    Binarize image

    \(W\;(i,j)\) is binarized to obtained the image \(W_{0} \;(i,j)\).

  7. (7)

    Statistical analysis

Steps (4), (5) and (6) are repeated for n times to get images \(W_{1} \;(i,j)\),\(W_{2} \;(i,j)\),…, \(W_{n} \;(i,j)\). Based on Gibbs rules, the image with a large PSNR deviation is removed [46]. Then, the required image is obtained by averaging rest images.

It has to be noted that not every step is necessary in applications. Steps (1), (2) and (3) are for preprocessing. Steps (4) and (5) are the core of the algorithm. Steps (6) and (7) are for post-processing. The post-processing steps are presented to test the denoising result, which are not necessary in practical applications. In addition, if the image is scanned both in positive and transpose direction in step (3), the average of their final results will be better.

4 Experimental results and performance analysis

To evaluate the image denoising performance of the adaptive PSR, three contrast experiments are presented. Just for convenience, we report that all the experiments have been implemented on a laptop, whose main configuration is CPU: AMD Ryzen 7 2700 eight-core Processor 3.2 GHz, GPU: NVIDIA GeForce GTX1660, RAM: 6 GB.

4.1 The comparison with the adaptive BSR method

Among traditional SR-based methods, SR in a nonlinear system with a bistable potential is often used. The potential function of the bistable system is given by

$$ U_{0} (x) = - \frac{c}{2}x^{2} + \frac{d}{4}x^{4} \quad c > 0,d > 0, $$
(10)

which corresponds to the periodic potential function U(x) in Eq. (5). In the numerical experiment, we use this bistable potential into Eq. (4) in order to achieve SR, while other conditions remain unchanged to avoid interference from other factors. Hence, the adaptive SR in a bistable system (BSR) method is utilized to compare with the proposed adaptive PSR method by denoising the same image with different GWN parameters.

Figure 6 depicts denoising results of Fig. 2 by using the adaptive BSR and the adaptive PSR. The images to be denoised are polluted by having used a GWN with different parameters. The GWN mean which has an influence on image pollution degree is considered besides the GWN variance. It can be seen that the results of the adaptive PSR method have a better visual feedback and a higher PSNR.

Fig. 6
figure 6

Denoising results of images shown in Fig. 2 by either using the adaptive BSR method or the adaptive PSR method. From top to bottom, we show in the first row, the figures of the noisy images, in the second row, the results of the adaptive BSR, and in the third row, the results of the adaptive PSR. In the first row, (μ,σ) of GWN are (0,0.1), (0.5,0.1), (1,0.1), (0,1), (0.5,1) and (1,1), respectively. PSNR of the second row are − 3.1085, − 3.2947, − 3.5037, − 9.1659, 1.4717 and − 1.5204. PSNR of the third row are − 1.3095, 3.8906, 2.0120, − 8.7280, 3.3406 and − 0.3751

To further compare the adaptive BSR and the adaptive PSR under different noise intensity, Fig. 7 presents denoising results of other images by the two methods. The images to be denoised are polluted by having used a GWN with different variances. The variances of GWN added to the image are 0.5, 1, 1.5, 2, 2.5 and 3. It can be seen that the results of the adaptive PSR method have better visual feedback in all the noise background.

Fig. 7
figure 7

Denoising results of the same image with different GWN parameters by either using the adaptive BSR method or the adaptive PSR method. From top to bottom, we show in the first row, the figures of the noisy images, in the second row, the results of the adaptive BSR, and in the third row, the results of the adaptive PSR. The variances of GWN added in the images are 0.5, 1, 1.5, 2, 2.5 and 3, respectively, while the mean is 0.5 in all cases

To objectively evaluate the image denoising performance of the two methods mentioned above, we record the PSNR of the denoised images by the two methods. The image to be processed is polluted by GWN with μ = 0.5, σ = 1. Table 1 exhibits the key indexes including computation time T, the optimal PSNR and the number of convergent iterations I of the optimization algorithm. As shown in Table 1, compared with the adaptive BSR, the proposed adaptive PSR method not only improves the PSNR but also has a faster convergence speed and less computation time. In applications, if the data volume is larger, the advantage of faster convergence speed and less computation time of the adaptive PSR method will be greater.

Table 1 Comparison of critical indices of the adaptive BSR and the adaptive PSR

4.2 A comparison with four other common methods

Here, we compare the adaptive PSR method with four common image denoising methods including arithmetic mean filter, geometric mean filter, median filter and Wiener filter by processing the same image with a GWN. These common methods are realized directly through calling functions in MATLAB. The arithmetic mean filter uses imfilter. The geometric mean filter uses exp(imfilter(log(I)). The median filter uses medfilt2. The Wiener filter uses wiener2. Figure 8 shows the results of all the mentioned methods.

Fig. 8
figure 8

Results by the proposed method and four traditional denoising methods. From left to right, the first line are the noisy image with GWN (μ = 0.5,σ = 1), geometric mean filtering and arithmetic mean filtering. The second line is the median filtering, Wiener filtering and the result of the proposed method

Table 2 exhibits the PSNR values of denoised images by different methods. The noisy image used for denoising is Lena with GWN (μ = 0.5,σ = 1). From the graphs in Fig. 8 and the PSNR values in Table 2, we can see that the adaptive PSR method is better than the common image denoising methods including arithmetic mean filter, geometric mean filter, median filter, Wiener filter and BSR method.

Table 2 PSNR of denoised images by different methods

To intuitively and objectively compare all image denoising methods mentioned above, Fig. 9 provides PSNR of different denoised images by different methods. Six different methods are compared by denoising the same noisy image, which is obtained by adding a GWN to the raw image. PSNR of noisy images before processing are also shown. As shown in the figure, adaptive PSR method has the best performance in both weak and strong noise background.

Fig. 9
figure 9

PSNR of the noisy image denoised by different methods. The parameter σ represents the variance of the GWN

4.3 Denoising results of images with four other common noises

Image noise can be classified into different types according to its probability distribution. We have already proved the superiority of the proposed adaptive PSR method in denoising images with GWN. In order to verify the universality of the adaptive PSR, four other common types of noise, we perform experiments using other types of noise to simulate image noise including gamma noise, uniform noise, Rayleigh noise and exponential noise. The denoised images are shown in Fig. 10.

Fig. 10
figure 10

Denoised results of the image polluted by different types of noise including gamma noise, uniform noise, Rayleigh noise and exponential noise. The first row represents noisy images, while the second row represents the corresponding denoised results

Table 3 presents the PSNR values corresponding to subplots of Fig. 10. From the graphs in Fig. 10 and the PSNR values in Table 3, it can be seen that the proposed adaptive PSR method can also remove other types of image noise effectively.

Table 3 Value of the PSNR for different noise images before and after being processed by the adaptive PSR

In the above comparative experiments, Lena is used as the research object to simulate image denoising under different noise intensity backgrounds, where the denoising effects of PSR, BSR and four common traditional methods are, respectively, compared. At the same time, PSR method is verified to denoise images with different types of noise. In order to fully validate the productivity of the proposed adaptive PSR method, we select another new research object, Cameraman, to carry out a new set of comparative experiments, and the results are as follows.

4.4 The comparison with the adaptive BSR method for another image

Figure 11 depicts denoising results of noisy images of Cameraman by using the adaptive BSR and the adaptive PSR. The images to be denoised are polluted by having used a GWN with different parameters, including the GWN mean and variance. It can be seen that the results of the adaptive PSR method have a better visual feedback and a higher PSNR.

Fig. 11
figure 11

Denoising results by either using the adaptive BSR method or the adaptive PSR method. From top to bottom, we show in the first row, the figures of the noisy images, in the second row, the results of the adaptive BSR, and in the third row, the results of the adaptive PSR. In the first row, (μ,σ) of GWN are (0,0.1), (0.5,0.1), (1,0.1), (0,1), (0.5,1) and (1,1), respectively. PSNR of the first row are 9.8051, − 11.0134, − 16.6968 − 6.9624, − 11.4650 and − 12.6377. PSNR of the second row are − 3.9679, 3.6910, − 1.7225, − 6.4821, 1.3481 and − 5.8723. PSNR of the third row are − 1.1249, 7.4676, 1.3014, − 3.0563, 3.2001 and − 0.8666

To further compare the adaptive BSR and the adaptive PSR under different noise intensity, Fig. 12 presents denoising results of other images by the two methods. The images to be denoised are polluted by using a GWN with different variances. The variances of GWN added to the image are 0.5, 1, 1.5, 2, 2.5 and 3. It can be seen that the results of the adaptive PSR method have better visual feedback in all the noise background.

Fig. 12
figure 12

Denoising results of the same Cameraman with different GWN parameters by either using the adaptive BSR method or the adaptive PSR method. From top to bottom, we show in the first row, the figures of the noisy images, in the second row, the results of the adaptive BSR, and in the third row, the results of the adaptive PSR. The variances of GWN added in the images are 0.5, 1, 1.5, 2, 2.5 and 3, respectively, while the mean is 0.5 in all cases. PSNR of the first row are − 10.0846, − 11.4650, − 13.5891, − 14.5666, − 15.2292 and − 15.6377. PSNR of the second row are 3.9679, 1.3910, 1.1450, − 1.5592, − 4.2518 and − 4.8723. PSNR of the third row are 5.3987, 3.2676, 2.2761, − 0.6563, − 3.2001 and − 4.2518

To objectively evaluate the image denoising performance of the two methods mentioned above, we record the PSNR of the denoised images by the two methods. The image to be processed is polluted by GWN with μ = 0.5, σ = 1. Table 4 lists the key indexes including computation time, the optimal PSNR and the number of convergent iterations of the optimization algorithm. As shown in Table 4, compared with the adaptive BSR, the proposed adaptive PSR method not only improves the PSNR but also has a faster convergence speed and less computation time. In applications, if the data volume is larger, the advantage of faster convergence speed and less computation time of the adaptive PSR method will be greater.

Table 4 Comparison of critical indices of the adaptive BSR and the adaptive PSR

4.5 A comparison for another image with four other common methods

As shown in Fig. 13, we compare the adaptive PSR method with four common image denoising methods including arithmetic mean filter, geometric mean filter, median filter and Wiener filter by processing the same Cameraman with a GWN. These common methods are realized directly through calling functions in MATLAB. The arithmetic mean filter uses imfilter. The geometric mean filter uses exp(imfilter(log(I)). The median filter uses medfilt2. The Wiener filter uses wiener2. Figure 13 shows the results of all the mentioned methods.

Fig. 13
figure 13

Results by the proposed method and four traditional denoising methods. From left to right, the first line are the noisy image with GWN (μ = 0.5,σ = 1), geometric mean filtering and arithmetic mean filtering. The second line is the median filtering, Wiener filtering and the result of the proposed method

Table 5 exhibits the PSNR values of denoised images by different methods. The noisy image used for denoising is Cameraman with GWN (μ = 0.5,σ = 1). From the graphs in Fig. 13 and the PSNR values in Table 5, we can see that the adaptive PSR method is better than the common image denoising methods including arithmetic mean filter, geometric mean filter, median filter, Wiener filter and BSR method.

Table 5 PSNR of denoised images by different methods

To intuitively and objectively compare all image denoising methods mentioned above, Fig. 14 provides PSNR of different denoised images by different methods. Six different methods are compared by denoising the same noisy image, which is obtained by adding a GWN to the raw image. PSNR of noisy images before processing are also shown. As shown in the figure, adaptive PSR method has the best performance in both weak and strong noise background.

Fig. 14
figure 14

PSNR of the noisy image denoised by different methods. The parameter σ represents the variance of the GWN

4.6 Denoising results of images with four other common noises

Image noise can be classified into different types according to its probability distribution. We have already proved the superiority of the proposed adaptive PSR method in denoising images with GWN. In order to verify the universality of the adaptive PSR, four other common types of noise, we perform experiments using other types of noise to simulate image noise including gamma noise, uniform noise, Rayleigh noise and exponential noise. The denoised images are shown in Fig. 15.

Fig. 15
figure 15

Denoised results of the image polluted by different types of noise including gamma noise, uniform noise, Rayleigh noise and exponential noise. The first row represents noisy images, while the second row represents the corresponding denoised results

Table 6 presents the PSNR values corresponding to subplots of Fig. 15. From the graphs in Fig. 15 and the PSNR values in Table 6, it can be seen that the proposed adaptive PSR method can also remove other types of image noise effectively.

Table 6 Value of the PSNR for different noise images before and after being processed by the adaptive PSR

As shown above, we reproduce the comparison experiment with another image, i.e., Cameraman. As shown in the above figures and tables, the new object has same experimental comparison results with Lena. In fact, adaptive PSR has no special requirements for handling objects. In other words, adaptive PSR method has universality to a certain extent.

5 Conclusion

This work proposes an adaptive PSR image denoising method based on the use of the constructive role of noise played by a simple nonlinear system with a periodic potential. Further, the method achieves adaptive denoising by utilizing the QPSO algorithm. Through numerical experiments, the superiority of the proposed adaptive PSR method is verified. It can be concluded that the method has a stable performance in both weak and strong noise background.

In addition, all the GWN parameters including variance and mean are considered to clarify their roles on polluted images. It is found that the mean of GWN also has a great influence on image pollution degree besides the variance. The noise of images where a GWN has been added are explored as well. It is known that the noise no longer obeys a Gaussian distribution because images should be reset after adding noise. That is, image dimension should not be reduced directly after adding noise. Besides, noise in a one-dimensional signal is not in a GWN form even if the signal is obtained by reducing the image after having added the GWN.

To sum up, this study not only provides an adaptive PSR denoising method with a higher efficiency and a better performance for images with a strong noise, but also presents some new insights of image noise. The paper may also provide some ideas for other types of image processing.