Coupling local and nonlocal diffusion equations for image denoising

https://doi.org/10.1016/j.nonrwa.2021.103362Get rights and content

Abstract

Due to the strong ability of restoring textures and details in images, nonlocal equations have attracted an extensive interest for image denoising. However, the lack of regularity causes residual noise in the restored images. In this paper, we propose and study an evolution equation consisting of the weighted local and the weighted nonlocal p-Laplacian equations. The existence and uniqueness of solutions for the proposed equation are proven under the assumption that the weights vanish in sets of positive measure. We also show that solutions of the proposed equation converge to the solution of the usual p-Laplacian equation if the kernel is rescaled appropriately. Comparisons with local and nonlocal diffusion equations for removing Gaussian noise in images are presented.

Introduction

In this paper, we investigate the properties of the evolution equation ut=div1g(x)|u|p2u+λΩg(x)+g(y)2×J(xy)|u(y,t)u(x,t)|p2u(y,t)u(x,t)dy,(x,t)ΩT,(1g(x))|u|p2un=0,(x,t)Ω×(0,T),u(x,0)=f(x),xΩ,and discuss its applications in image restoration under Gaussian noise. Here ΩRN (N2) is a bounded domain with smooth boundary Ω, n is the unit outward normal on Ω, ΩT=Ω×(0,T), T>0, λ>0 is a constant and 1<p<+. The kernel J:RNR is a nonnegative continuous radial function with compact support, J(0)>0, and RNJ(z)dz=1. Given a noisy image f(x), the solution u(x,t) is the restored image with scale variable t.

Eq. (1) is coupled with a weighted p-Laplacian equation and a weighted nonlocal p-Laplacian equation. The p-Laplacian equation ut=div|u|p2u,1p<,has been widely investigated for image processing. If p=2, this is the heat equation, whose solution is given as the convolution of the initial value f with a Gaussian Kernel [1]. That is to say, image denoising by the heat equation is equivalent to the Gaussian filter and always causes over-smoothness in the restored images. For edge-preserving, it is straightforward to consider nonlinear equations. The total variation (TV) flow (p=1 in Eq. (2)) [2], which comes from the gradient descent scheme of the famous ROF model [3], has been thoroughly studied in the past two decades. The main advantage of the TV flow for image denoising is the powerful ability to restore edges and homogeneous regions. However, it utilizes only the image’s local information, which means that it fails to preserve textured structures and repeated patterns in images.

The nonlocal diffusion equation ut=ΩJ(xy)|u(y,t)u(x,t)|p2u(y,t)u(x,t)dy,1p<,was proposed as a remedy [4], [5], [6]. It is often referred to as the nonlocal p-Laplacian equation, since the solutions of Eq. (3) converge strongly in Lp(ΩT) to the solution of Eq. (2) with homogeneous Neumann boundary condition if the kernel J is rescaled appropriately [7]. In image denoising problems, the kernel J represents the nonlocal weight that measures the similarity between two patches [8]. Consequently, Eq. (3) avoids the drawbacks of Eq. (2) and restores textures and details in images effectively. It is noticed that a main difference between the usual p-Laplacian equation (2) and the nonlocal p-Laplacian equation (3) is the lack of regularizing effect [9] of the latter. As a result, Eq. (3) causes residual noise in homogeneous regions of the restored images.

Inspired by the local method and the nonlocal method mentioned above, we propose Eq. (1) to reduce artifacts of each method for image denoising. The local p-Laplacian equation and the nonlocal p-Laplacian equation in (1) are coupled through a space varying function g(x). In regions with rich textures and repeated structures, we let g(x)=1, which leads to nonlocal diffusion λΩ1+g(y)2J(xy)|u(y,t)u(x,t)|p2u(y,t)u(x,t)dy.In regions with cartoon structures, we let g(x)=0, which leads to div|u|p2u+λΩg(y)2J(xy)|u(y,t)u(x,t)|p2u(y,t)u(x,t)dy.If g(y)J(xy)=0 for any yΩ (recall that J has a compact support), then the nonlocal term in the above disappears and it becomes local diffusion. At last, g(x)(0,1) shall be used for complex regions.

In the nonlocal part of Eq. (1), the diffusion coefficient is constructed as g(x)+g(y)2. The authors of [10] suggested using g(x+y2) as the weight for nonlocal equations. As we shall see in Theorem 9, both of them are well-defined in the sense that the nonlocal problem converges to the local problem if the kernel J is rescaled appropriately. Note that our construction has the nice symmetric property ΩΩg(x)+g(y)2J(xy)|u(y)u(x)|pdydx=ΩΩg(y)J(xy)|u(y)u(x)|pdydx=ΩΩg(x)J(xy)|u(y)u(x)|pdydx.Then we could define weak solutions for Eq. (1) straightforwardly. Besides, our construction is a more appropriate approach for digital images, since x+y2 is not necessary on the grid.

The weighted p-Laplacian equation in Eq. (1) has a smoothing effect. It can be replaced by other weighted nonlinear diffusion equations for image denoising. In this paper, we also consider the evolution equation ut=div1g(x)u1+|uσ|2K2+λΩg(x)+g(y)2J(xy)u(y,t)u(x,t)dy,(x,t)ΩT,(1g(x))un=0,(x,t)Ω×(0,T),u(x,0)=f(x),xΩ,which is coupled with the weighted regularized Perona–Malik equation [11] and the weighted linear nonlocal equation. Notice that the regularized Perona–Malik equation has a better smoothing effect than the p-Laplacian equation and the nonlocal p-Laplacian equation (3) performs the best for image denoising when p=2. Eq. (5) outperforms Eq. (1) for image denoising.

To finish the introduction, we briefly review some related works. Coupling local and nonlocal methods for image denoising have been proposed in [12], [13]. The variational model λΩ|u|dx+ΩΩJ(x,y)|u(y)f(x)|pdydxcombines the total variation regularization term and a nonlocal Lp data fidelity term to reduce the undesirable artifacts caused by each method. The model can be viewed as the adaptive regularization of the nonlocal means filter [8]. Recently, qualitative properties for the gradient flow of 12Ωl|u|2dx+λ4ΩnlΩJ(xy)(u(y)u(x))2dydxhas been studied in [14], where ΩlΩnl=Ω. Notice that Eq. (1) is the gradient flow of the energy functional 1pΩ(1g(x))|u|pdx+λ2pΩΩg(x)+g(y)2J(xy)|u(y)u(x)|pdydx.If g(x)=χΩnl and p=2, then it follows from (4) that functional (8) coincides with (7).

The rest of this paper is organized as follows. In Section 2 we define solution spaces and state main results. In Section 3 we prove the existence and uniqueness of weak solutions for Eq. (1). We also prove that solutions of Eq. (1) converge to the solution of the usual p-Laplacian equation if the kernel J is rescaled appropriately. Section 4 is devoted to the applications of Eqs. (1), (5) for image denoising. We conclude the paper in Section 5.

Section snippets

Preliminaries and main results

The weights 1g(x) and g(x)+g(y)2 are allowed to vanish in sets of positive measure. This causes difficulties in analyzing the properties of Eq. (1). In this paper, we consider a specific class of coefficients called the Muckenhoupt Ap weight that has been discussed for image processing in [15]. More precisely, we assume that 0g1a.e. inΩ,g>0a.e. inΩ0,g=0a.e. inΩΩ0,g<1a.e. inΩ1,g=1a.e. inΩΩ1,g1(p1)L1(Ω0),(1g)1(p1)L1(Ω1),where Ω0, Ω1 are two smooth subdomains of Ω.

Proofs of main results

For the proof of Theorem 7, let us consider the auxiliary equation ut=div1g(x)+ε|u|p2u+λΩg(x)+g(y)2×J(xy)|Du(x,y,t)|p2Du(x,y,t)dy,(x,t)ΩT,un=0,(x,t)Ω×(0,T),u(x,0)=fε(x),xΩ,where ε>0 is a fixed constant and fε(x)C0(Ω).

Lemma 10

Eq. (15) admits a uniqueness weak solution u, such that uC([0,T],L2(Ω))Lp((0,T);W1,p(Ω)) and Ωuφdx|0t1Ωt1uφtdxdt+Ωt11g(x)+ε|u|p2uφdxdt+λ2Ωt12g(x)J(xy)|Du|p2DuDφdydxdt=0holds for any t1[0,T] and any φC1(ΩT¯). Besides, supt[0,T]Ωu2(x,t)dx+20TΩ11

Numerical demonstrations

In this section, we present the finite difference schemes for Eqs. (1), (5) and show the image denoising results of them. As we have mentioned in the introduction, the nonlocal p-Laplacian equation (3) performs the best for image denoising when p=2. Consequently, the linear nonlocal equation is utilized in Eq. (1). The radial kernel J in both Eqs. (1), (5) should be replaced by a symmetric nonlocal weight w(x,y) with w(x,y)0 and Ωw(x,y)dy=1.

Conclusion

A local and nonlocal coupling diffusion equation has been proposed to reduce the artifacts created by the local method and the nonlocal method. The existence and uniqueness of weak solutions for the equation have been discussed in a space involving the Muckenhoupt Ap weight. Numerical experiments have been presented comparing the performance of the proposed equation with that of TV flow, nonlocal TV flow, and a hybrid method.

Acknowledgments

The author would like to thank the referees for the valuable suggestions and comments. This work was supported by the National Natural Science Foundation of China (12001509) and the Natural Science Foundation of Zhejiang Province, China (LQ21A010010).

References (20)

There are more references available in the full text version of this article.

Cited by (5)

View full text