Abstract
We first establish a law of large numbers and a convergence theorem in distribution to show the rate of convergence of the non-local means filter for removing Gaussian noise. Based on the convergence theorems, we propose a patch-based weighted means filter for removing an impulse noise and its mixture with a Gaussian noise by combining the essential idea of the trilateral filter and that of the non-local means filter. Experiments show that our filter is competitive compared to recently proposed methods. We also introduce the notion of degree of similarity to measure the impact of the similarity among patches on the non-local means filter for removing a Gaussian noise, as well as on our new filter for removing an impulse noise or a mixed noise. Using again the convergence theorem in distribution, together with the notion of degree of similarity, we obtain an estimation for the PSNR value of the denoised image by the non-local means filter or by the new proposed filter, which is close to the real PSNR value.
Similar content being viewed by others
Notes
The code of our method and the images can be downloaded at
https://www.dropbox.com/s/oylg9to8n6029hh/to_j_sci_comput_paper_code.zip.
The images Lena, Peppers256 and Boats are originally downloaded from
http://decsai.ugr.es/~javier/denoise/test_images/index.htm; the image Peppers512 is from http://perso.telecom-paristech.fr/~delon/Demos/Impulse and the image Bridge is from www.math.cuhk.edu.hk/~rchan/paper/dcx/.
References
Akkoul, S., Ledee, R., Leconge, R., Harba, R.: A new adaptive switching median filter. IEEE Signal Process. Lett. 17(6), 587–590 (2010)
Bilcu, R.C., Vehvilainen, M.: Fast nonlocal means for image denoising. In: Proceedings of SPIE, Digital Photography III 6502, 65020R (2007)
Bovik, A.: Handbook of Image and Video Processing. Academic Press, London (2005)
Buades, A., Coll, B., Morel, J.: A review of image denoising algorithms, with a new one. Multiscale Model. Simul. 4(2), 490–530 (2005)
Castleman, K.: Digital Image Processing. Prentice Hall Press, Upper Saddle River (1996)
Chan, R., Hu, C., Nikolova, M.: An iterative procedure for removing random-valued impulse noise. IEEE Signal Process. Lett. 11(12), 921–924 (2004)
Chang, S.G., Yu, B., Vetterli, M.: Adaptive wavelet thresholding for image denoising and compression. IEEE Trans. Image Process. 9, 1532–1546 (2000)
Chen, T., Wu, H.: Adaptive impulse detection using center-weighted median filters. IEEE Signal Process. Lett. 8(1), 1–3 (2001)
Chow, Y., Teicher, H.: Probability Theory: Independence, Interchangeability, Martingales. Springer, Berlin (2003)
Coifman, R., Donoho, D.: Translation-invariant denoising. Wavel. Stat. 103, 125–150 (1995)
Dabov, K., Foi, A., Katkovnik, V., Egiazarian, K.: Image denoising by sparse 3-D transform-domain collaborative filtering. IEEE Trans. Image Process. 16(8), 2080–2095 (2007)
Delon, J., Desolneux, A.: A patch-based approach for random-valued impulse noise removal. In: 2012 IEEE international conference on acoustics, speech and signal processing (ICASSP), pp. 1093–1096. IEEE (2012)
Delon, J., Desolneux, A.: A patch-based approach for removing impulse or mixed gaussian-impulse noise. SIAM J. Imaging Sci. 6(2), 1140–1174 (2013)
Dong, Y., Chan, R., Xu, S.: A detection statistic for random-valued impulse noise. IEEE Trans. Image Process. 16(4), 1112–1120 (2007)
Donoho, D., Johnstone, J.: Ideal spatial adaptation by wavelet shrinkage. Biometrika 81(3), 425–455 (1994)
Durand, S., Froment, J.: Reconstruction of wavelet coefficients using total variation minimization. SIAM J. Sci. Comput. 24(5), 1754–1767 (2003)
Duval, V., Aujol, J., Gousseau, Y.: A bias-variance approach for the nonlocal means. SIAM J. Imaging Sci. 4, 760–788 (2011)
Elad, M., Aharon, M.: Image denoising via sparse and redundant representations over learned dictionaries. IEEE Trans. Image Process. 15(12), 3736–3745 (2006)
Garnett, R., Huegerich, T., Chui, C., He, W.: A universal noise removal algorithm with an impulse detector. IEEE Trans. Image Process. 14(11), 1747–1754 (2005)
Hu, H., Froment, J.: Nonlocal total variation for image denoising. In: Symposium on Photonics and Optoelectronics (SOPO), pp. 1–4. IEEE (2012)
Hu, H., Li, B., Liu, Q.: Non-local filter for removing a mixture of gaussian and impulse noises. In: Csurka, G., Braz, J. (eds.) VISAPP, vol. 1, pp. 145–150. SciTePress (2012)
Johnstone, I.M., Silverman, B.W.: Wavelet threshold estimators for data with correlated noise. J. R. Stat. Soc. B B 59(2), 319–351 (1997)
Kervrann, C., Boulanger, J.: Local adaptivity to variable smoothness for exemplar-based image regularization and representation. Int. J. Comput. Vis. 79(1), 45–69 (2008)
Li, B., Liu, Q., Xu, J., Luo, X.: A new method for removing mixed noises. Sci. China Inf. Sci. 54, 51–59 (2011)
López-Rubio, E.: Restoration of images corrupted by gaussian and uniform impulsive noise. Pattern Recognit. 43(5), 1835–1846 (2010)
Mahmoudi, M., Sapiro, J.: Fast image and video denoising via nonlocal means of similar neighborhoods. IEEE Signal. Process. Lett. 12(12), 839–842 (2005)
Mairal, J., Sapiro, G., Elad, M.: Learning multiscale sparse representations for image and video restoration. Multiscale Model. Simul. 7, 214–241 (2008)
Muresan, D., Parks, T.: Adaptive principal components and image denoising. In: IEEE International Conference on image processing (2003)
Nikolova, M.: A variational approach to remove outliers and impulse noise. J. Math. Imaging Vis. 20(1), 99–120 (2004)
Pratt, W.: Median filtering. Semiannual Report, Image Processing Institute, University of Southern California, Los Angeles, Tech. Rep pp. 116–123 (1975)
Pruitt, W.: Summability of independent random variables. J. Math. Mech. 15, 769–776 (1966)
Rudin, L.I., Osher, S., Fatemi, E.: Nonlinear total variation based noise removal algorithms. Phys. D Nonlinear Phenom. 60(1–4), 259–268 (1992)
Smith, S., Brady, J.: SUSAN—a new approach to low level image processing. Int. J. Comput. Vis. 23(1), 45–78 (1997)
Tomasi, C., Manduchi, R.: Bilateral filtering for gray and color images. In: Proceedings of the international confernce on computer vision, pp. 839–846. IEEE (1998)
Van De Ville, D., Kocher, M.: Sure-based non-local means. IEEE Signal Process. Lett. 16(11), 973–976 (2009)
Wen, Z.Y.: Sur quelques théorèmes de convergence du processus de naissance avec interaction des voisins. Bull. Soc. Math. Fr. 114, 403–429 (1986)
Xiao, Y., Zeng, T., Yu, J., Ng, M.: Restoration of images corrupted by mixed gaussian-impulse noise via l sub (1-l) sub (0) minimization. Pattern Recognit. 44(8), 1708–1720 (2011)
Xiong, B., Yin, Z.: A universal denoising framework with a new impulse detector and nonlocal means. IEEE Trans. Image Process. 21(4), 1663–1675 (2012)
Xu, H., Xu, J., Wu, F.: On the biased estimation of nonlocal means filter. In: International conference on multimedia computing and systems/international conference on multimedia and expo, pp. 1149–1152 (2008)
Yang, J.X., Wu, H.R.: Mixed gaussian and uniform impulse noise analysis using robust estimation for digital images. In: Proceedings of the 16th international conference on digital signal processing, pp. 468–472 (2009)
Yaroslavsky, L.P.: Digital Picture Processing. Springer, Secaucus (1985)
Yuksel, M.: A hybrid neuro-fuzzy filter for edge preserving restoration of images corrupted by impulse noise. IEEE Trans. Image Process. 15(4), 928–936 (2006)
Zhou, Y., Ye, Z., Xiao, Y.: A restoration algorithm for images contaminated by mixed gaussian plus random-valued impulse noise. J. Vis. Commun. Image Represent. 24(3), 283–294 (2013)
Acknowledgments
The work has been supported by the Fundamental Research Funds for the Central Universities in China (No.N130323016), the Research Funds of Northeastern University at Qinhuangdao (No. XNB201312, China), the Scientific Research Foundation for the Returned Overseas Chinese Scholars, State Education Ministry(48-2), the National Natural Science Foundation of China (Grant Nos. 11171044 and 11401590), and the Science and Technology Research Program of Zhongshan (Grant No. 20123A351, China). The authors are very grateful to the reviewers for their valuable remarks and comments which led to a significant improvement of the manuscript. They are also grateful to Prof. Raymond H. Chan and Dr. Yiqiu Dong for kindly providing the code of ROLD-EPR.
Author information
Authors and Affiliations
Corresponding author
Appendix
Appendix
In this appendix we will prove Theorems 1 and 2.
1.1 Convergence Theorems for Random Weighted Means
We first show a Marcinkiewicz law of large numbers (Theorem 3) and a convergence theorem in distribution for random weighted means (Theorem 4) for l-dependent random variables, which we will use to prove Theorems 1 and 2.
Theorem 3
Let \(\{(a_k, v_k)\}\) be a sequence of l-dependent identically distributed random variables, with \(\mathbb {E}|a_1|^p<\infty \) and \( \mathbb {E}|a_1v_1|^p<\infty \) for some \( p\in [1,2),\) and \(\mathbb {E} a_1\ne 0\). Then
We need the following lemma to prove it.
Lemma 2
[24] If \(\{X_n\}\) are l-dependent and identically distributed random variables with \( \mathbb {E}X_1=0\) and \(\mathbb {E}|X_1|^p<\infty \) for some \(p\in [1,2)\), then
This lemma is a direct consequence of Marcinkiewicz law of large numbers for independent random variables (see e.g. [9], p. 118), since for all \(k\in \{1,\ldots ,l+1\}, \{X_{i(l+1)+k}:i\ge 0\}\) is a sequence of i.i.d. random variables, and for each positive integer n, we have
where \(m,k_0\) are positive integers determined by \(n=m(l+1)+k_0, 0\le k_0 \le l\).
Proof of Theorem 3
Notice that
where
Since \(\mathbb {E}|a_1|\le (\mathbb {E}|a_1|^p)^{1/p}<\infty \), by Lemma 2 with \(p=1\), we have
Since \(\mathbb {E}a_1z_1=0\), and \(\mathbb {E}|a_1z_1|^p<\infty \), again by Lemma 2, we get
Thus the conclusion follows. \(\square \)
Theorem 4
Let \(\{(a_k,v_k)\}\) be a stationary sequence of l-dependent and identically distributed random variables with \(\mathbb {E}a_1\ne 0, \mathbb {E}a_1^2<\infty ,\) and \(\mathbb {E}(a_1v_1)^2<\infty \). Then
that is,
where \(\varPhi (z)\) is the cumulative distribution function of the standard normal distribution,
and
with \(\lambda =\sum _{k=1}^l\mathbb {E}a_1z_1a_{1+k}z_{1+k}, \; z_k=v_k \mathbb {E}a_1-\mathbb {E}a_1 v_1 \).
We need the following lemma to prove the theorem.
Lemma 3
[36] Let \(\{X_n\}\) be a stationary sequence of l-dependent and identically distributed random variables with \(\mathbb {E}X_1=0\) and \(\mathbb {E}X_1^2<\infty \). Set \(S_n=X_1+ \cdots +X_n (n\ge 1)\),
Then var\((S_n)=c_1n-c_2\) for \(n > l\), and as \(n\rightarrow \infty \),
Proof of Theorem 4
As in the proof of Theorem 3, we have
where
Notice that the l-dependence of \(\{(a_k,v_k)\}\) and the stationarity imply those of \(\{(a_k,z_k)\}\). Therefore by Lemma 3, we get
where
Since \(\mathbb {E}|a_1|\le (\mathbb {E}|a_1|^p)^{1/p}\), by Lemma 2 with \(p=1\), we obtain
Thus the conclusion follows with \(c=c_0 /(\mathbb {E}a_1)^2\). \(\square \)
1.2 Proofs of Theorems 1 and 2
We now come to the proofs of Theorems 1 and 2, using Theorems 3 and 4.
For Theorem 1, we need to prove that for any \(\epsilon \in (0,\frac{1}{2}]\), as \(n\rightarrow \infty \),
where
We will apply Theorem 3 to prove this. Note that the sequence \(\{{w^{0}}(i,j_k),v(j_k)\}\) \({(k=1,2,\ldots ,n)}\) is usually not l-dependent, since the central random variable \(v(\mathcal {N}^{0}_{i})\) is contained in all the terms. To make use of Theorem 3, we first take a fixed vector to replace the central random variable.
Proof of Theorem 1
Fix \(x\in \mathbb {R}^{|\mathcal {N}_i^0|}\). Let
Then \(a_{k}\) and \(v(j_k)\) are independent since \(j_k\not \in \mathcal {N}^{0}_{j_k}\), so that
By Lemma 1, the sequence \( \{v(\mathcal {N}_{j_k})\} \) is l-dependent for \( l=(2d-1)^2 -1\); thus the sequence \(\{\big (a_{k},v(j_k)\big )\}\) is also l-dependent. Since \(v=u+\eta \), with the range of u being bounded and \(\eta \) being Gaussian, we have \(\mathbb {E}|v(j_k)|^p<\infty \) for \(p\in [1,2)\). (In fact, it holds for all \(p\ge 1\).) Hence \(\mathbb {E}|a_{k}v(j_k)|^p<\infty \), as \(a_k\le 1\).
Applying Theorem 3, we have, for any fixed \(x=v(\mathcal {N}^0_i)\in \mathbb {R}^{|\mathcal {N}_i^0|}\) and any positive integer \(k_0\),
Let \(k_0 > l\), so that \(v(\mathcal {N}_i^0)\) is independent of \(v(\mathcal {N}^{0}_{j_k})\) for all \(k\ge k_0\). By Fubini’s theorem, we can replace \(w^{0}(x,j_k)\) in (36) by
That is,
To prove the theorem, we need to estimate the difference between the left-hand sides of (8) and (37). Let
Then as before, fixing \(x\in \mathbb {R}^{|\mathcal {N}_i^0|}\), applying Theorem 3 with \(p=1\) and Fubini’s theorem, and replacing x by \(v(\mathcal {N}_i^0)\), we obtain
Using this and the fact that
we see that
Therefore, (37) implies that
As (39) holds for any \(p \in [1,2)\), we see that (8) holds for all \(\epsilon \in (0,\frac{1}{2}]\). \(\square \)
We will prove Theorem 2, which demonstrates that as \( n\rightarrow \infty \),
where
and \(\mathcal {L}\) is a mixture of centered Gaussian laws in the sense that it has a density of the form (15).
Proof of Theorem 2
The procedure of the proof is similar to that of the proof of Theorem 1. Fix \(x\in \mathbb {R}^{|\mathcal {N}_i^0|}\), and set
Then \(a_{k}\) and \(v(j_k)\) are independent, \( {\mathbb {E}a_{k}v(j_k)}/{\mathbb {E}a_{k}}=\mathbb {E}v(j_k)=u(i)\), and \(\{(a_{k},v(j_k))\}\) is a sequence of l-dependent and identically distributed random vectors with \(l= (2d-1)^2 -1\), and \( \mathbb {E}|a_{k}v(j_k)|^2\le \mathbb {E}|v(j_k)|^2<\infty \). Hence applying Theorem 4, we get, for any fixed x and any positive integer \(k_0\),
where \(c_x>0\) will be calculated by the end of the proof. This means that for any \(t\in \mathbb {R}\),
Let \(k_0>l\) be the positive integer such that \(v(\mathcal {N}_i^0)\) is independent of \(v(\mathcal {N}^{0}_{j_k})\) for all \(k\ge k_0\). Then by Fubini’s theorem and Lebesgue’s dominated convergence theorem, we have
where
with \(\mu \) being the law of \(v(\mathcal {N}_i^0)\). In other words,
where \(\mathcal {L}\) is the law with density f. This together with (38) prove the equation (15) of Theorem 2.
We now turn to the calculation of \(c_x\). Let \(v_k=v(j_k)\) and \( z_k=v_k \mathbb {E}a_1-\mathbb {E}(a_1 v_1)\). Because of the independence of \(a_1\) and \(v_1\), we get \(z_k=(v_k-\mathbb {E} v_1)\mathbb {E}a_1\). Then, it follows that
and
Note that if \((a_1,a_k)\) is independent of \((v_1,v_k)\), it holds that
by the independence of \(v_1\) and \(v_k\). If \(v_1\) is not contained in \(v(\mathcal {N}^{0}_{j_k})\), then \((a_1,a_k)\) is independent of \((v_1,v_k)\). Notice that according to the order of \(I_i\) defined in Sect. 2.2, when \(k>d^2\), \(v_1\) is not contained in \(v(\mathcal {N}^{0}_{j_k})\), so that (40) holds; therefore by Theorem 4,
We finally give an approximation of \(c_x\). Recall that \(a_{k}=e^{-\Vert x-v(\mathcal {N}^{0}_{j_k})\Vert ^2/(2\sigma _r^2)}\), and \(v_k=v(j_k)\). Let \(\mathcal {T}(j)=j-j_1+j_k\) be the translation mapping \(j_1\) to \(j_k\) (thus mapping \(\mathcal {N}^{0}_{j_1}\) onto \(\mathcal {N}^{0}_{j_k}\)).
If \(v( j_1)\) is not contained in \(v(\mathcal {N}^{0}_{j_k})\), we have already seen that \(\mathbb {E} (a_1z_1a_kz_k)= 0\). If \(v(j_1)\) is contained in \(v(\mathcal {N}^{0}_{j_k})\), to make \((a_1,a_k)\) independent of \((v_1,v_k)\), we can remove \(v(j_1)\) from \(v(\mathcal {N}^{0}_{j_k})\) and the corresponding term \(v(\mathcal {T}^{-1}(j_1))\) from \(v(\mathcal {N}^{0}_{j_1})\); remove \(v(j_k)\) from \(v(\mathcal {N}^{0}_{j_1})\) and the corresponding term \(v(\mathcal {T}(j_k))\)from \(v(\mathcal {N}^{0}_{j_k})\). The obtained values of \(a_1,a_k\) are very close to the initial values of \(a_1,a_k\) respectively. Hence, we can consider that \(\mathbb {E} (a_1z_1a_kz_k)\approx 0\). Therefore
where \(v=v(\mathcal {N}^{0}_{j_k})\) and \(m=|\mathcal {N}_{j_k}^0|\). Recall that \(\mu (dv)\) is the law of \(v(\mathcal {N}^{0}_{i})\), so it is also the law of \(v(\mathcal {N}^{0}_{j_k})\). Let
then \(v\sim N(\nu , \sigma ^2Id_m)\), where \(Id_m\) denotes the identity matrix of size \(m\times m\). Since
we get
This ends the proof of Theorem 2. \(\square \)
Rights and permissions
About this article
Cite this article
Hu, H., Li, B. & Liu, Q. Removing Mixture of Gaussian and Impulse Noise by Patch-Based Weighted Means. J Sci Comput 67, 103–129 (2016). https://doi.org/10.1007/s10915-015-0073-9
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10915-015-0073-9