Abstract

It is important in image restoration to remove noise while preserving sharp edges and fine details such as blurred thin edges and low-contrast fine feature. The Perona–Malik (P-M) model is a well-known anisotropic diffusion denoising model, which can effectively remove noise while preserving edges. However, its diffusion coefficient only associates with the gradient of each pixel but not with the local region information; thus, the P-M model is not able to effectively preserve the important details of image. To address this problem, this paper proposes an anisotropic diffusion denoising model based on local entropy. The diffusion coefficient of the new model not only depends on the gradient of image but also on the local region information described by local entropy. On this basis, a coupled anisotropic diffusion scheme is proposed for detail-and edge-preserving smoothing. Experimental results show that the proposed model not only can effectively remove noise while preserving the boundaries better but also can maintain important details in an image very well.

1. Introduction

Images are often suffered by noise in acquisition and transmission, which usually degrades the visual quality of the image. Image restoration is an important step in low-level computer vision, especially when the input image is blurred or noisy [1, 2]. An ideal restoration algorithm is expected to remove noise and meanwhile preserve details in the input image. For that, a number of nonlinear methods were proposed in the literature; for example [36].

In [3], Perona and Malik first proposed an anisotropic diffusion equation for image smoothing and edge detection, in which the diffusion coefficient depends on the value of the image gradient. Specifically, let represent the original image defined in a convex domain . In the anisotropic diffusion [3], a family of increasingly smoothed images, , is derived from the solution of the following partial differential equation:with the initial condition . In (1), div and represent the divergence and gradient operators, respectively, and the diffusion coefficient is a nonnegative decreasing function of (the gradient magnitude of u). If is a constant, the anisotropic diffusion (1) reduces to the classical Gaussian filtering. The desirable diffusion coefficient should be to make (1) diffuse more in flat areas and less around edges. Two such diffusion coefficients suggested by Perona and Malik [3] are as follows:andwhere is a constant parameter to be tuned for a particular application. The diffusion coefficients by (2) or (3) clearly make the diffusion process perform selectively smoothing, which only depends on the magnitude of image gradient at a point.

The P-M model is essentially a gradient-based filter, in which the diffusion coefficient at a point depends on the gradient magnitude of the diffused point. When the gradient magnitude is large (often happens around the edge), the diffusion coefficient is approximate to zero and then the smoothing process is terminated. Conversely, when the gradient magnitude is small (often happens on the flat region), the diffusion coefficient is close to one, and so the smoothing process is performed. Therefore, the P-M model can reduce noise and preserve edges simultaneously.

Unfortunately, it has been widely noted that the anisotropic diffusion (1) has some limits in applications. In this model, high gradient magnitude is generally considered as a good indication of edges, while low gradient magnitude always points to nonedge regions. However, the low gradient magnitude may not always point to nonedge regions or noise because some important local details along with weak edges may have low gradient magnitude. For example, if the initial image has some important details, but the magnitude of image gradient around the details is not large enough, and then the large diffusion coefficient results in a strong smoothing effect, and hence, the details lose. In other words, the diffusion process by (1) does not perform well for detail-preserving. To alleviate this problem, Chao and Tsai [4] proposed an improved anisotropic diffusion model. This model incorporates both local gradient and gray-level variance in the diffusion coefficient, and so can preserve edges and fine details while removing noise effectively. However, this method cannot preserve weak edges accurately. Recently, Wen et al. [5] proposed a new anisotropic fourth-order diffusion equation model based on image features for image denoising, in which the diffusion coefficient is dependent on the first-order derivatives for preserving edges and second-order derivatives for smoothing image.

In addition to the nonlinear diffusion models, there are two well-known nonlinear filters to reduce noise and preserve edges and/or details simultaneously. Tomasi and Manduchi [6] proposed the bilateral filter, which is an edge-preserving and noise-reducing smoothing method. This filter is a weighted average of the local neighborhood samples, where the weight depends not only on Euclidean distance but also on the radiometric differences (differences in the range, e.g., color intensity) between the center sample and the neighboring samples. This filter is locally adaptive, and it was shown to give similar and possibly better results to those obtained by the P-M model. However, it works better only on obvious boundaries but fails to preserve small details. Buades et al. [7] introduced the NL-means algorithm which is based on the redundancy property of periodic images, textured images, or natural images to remove noise. This method is essentially a neighborhood filter, in which the noisy grey-values are replaced by a weighted average (mean) of the grey values in the entire noisy image where the weight is determined by the neighborhood similarity of image patches. The NL-mean filter is good at detail-preserving but is very time consuming.

In this paper, inspired by the work in [4, 5], we propose a new detail-and edge-preserving smoothing technique based on the P-M anisotropic diffusion and entropy of the local region histogram (local entropy), which incorporates both local gradient and local entropy in the diffusion coefficient. The local entropy has the properties as follows: a large value is taken around the edges and details, and the small value can be made in the flat region. Besides, the local entropy is robust to noise. Therefore, the proposed model can preserve edges and fine details while removing noise effectively. Experiments show that the proposed method can really filter out noise effectively, while preserving both edges and fine details in the restored image.

The organization of this paper is as follows: Section 2 briefly introduces the local entropy for image analysis and then presents the proposed model combining local entropy with anisotropic diffusion. Section 3 shows some experimental results. This paper is concluded in Section 4.

2. The Proposed Model

2.1. Local Entropy

The entropy of a system as defined by Shannon gives a measure of uncertainty about its actual structure. Entropy is a widely used measure of local information content or uncertainty. Pun [8] used Shannon’s concept to define the entropy of an image, assuming that an image is entirely represented by its gray level histogram only.

Let be a small neighborhood window of size , located at the central pixel . Following Pun’s definition [8], the local entropy is defined aswhere L and are the maximal gray level and the number of pixels with gray level j appearing in the neighborhood , respectively. We call the local entropy of the central pixel k. Generally, , ; in this paper, we adopt .

By moving the window pixel by pixel within the image from left to right and top to bottom, we obtain the entropy image of the original image, which is composed of the local entropy value of each pixel.

Figure 1 shows the entropy images for a synthetic noisy image and real Lena image. From Figure 1, we can see that local entropy has the two properties: (1) local entropy is not sensitive to noise due to common effort of all pixels in a local window; (2) local entropy is larger for a heterogeneous region (e.g., including edge and/or details) but smaller for a homogeneous neighborhood.

2.2. Model Description

The deficiencies of the P-M model [3] are mainly caused by the diffusion coefficient, which only considers the magnitude of image gradient at each point. However, the gradient magnitude may be high at a noisy point, so the filtering performance is not good enough. Besides, the gradient magnitudes for some details are small, and therefore, the diffusion coefficient is large; this leads to a strong smoothing effect and the detail losses. Based on this observation, we propose a new diffusion coefficient based on gradient magnitude and local entropy in (4), as follows:where is the gradient magnitude of the image I at point (x, y), E (x, y) is the local entropy at (x, y) by (4), and is a positive constant used as an edge strength threshold. The function is defined aswhere and represent the maximum and minimum local entropies, respectively, and is the maximum of over image domain. Clearly, .

In [9], Nordström introduced the fidelity source in diffusion (1), the role of which is to force u (x, t) to always remain close to the original image I (x, y) during the diffusion, as follows:which has a priori advantage of having a nontrivial steady state. The strategy of introducing the fidelity source in the diffusion equation has been adopted in subsequent studies; see for example [5].

Following but different from [9], we present a new anisotropic diffusion for image smoothing as follows:with the initial condition , where the function is determined at each iteration bywhere is the Gaussian function with standard deviation . In (8) and (9), the function is given by (5).

It should be noted that the convolution was first used in the diffusion coefficient of Perona and Malik equation in Catte et al.’ work [10]. Theoretical analysis and experimental results in [10] have shown that the convolution plays an essential role in the recovered quality of images contaminated by noise.

In (8), the balance between the fidelity source term (2nd term) and the diffusion term is made by , which works as a moderated selector of the diffusion process. Due to the fidelity source term, the smoothed image u remains close to the initial image u in the edge areas where . On the other hand, in homogeneous areas and therefore, the source term will have an inexpressive effect, which allows for a better renovate of the image.

3. Experiments

The proposed diffusion model is implemented using a simple finite differencing, in which the divergence term is discretized via an 8-nearest neighbors, inspiring from [3, 9], namely,wherewhere the symbol (not to be confused with , which we use for the gradient operator) indicates 8-nearest neighbors differences, similarly for ().

We present and discuss the experimental results to verify the proposed model. In all experiments, we set and the iteration number as 100.

Figure 2 shows the comparison among the P-M method [3], bilateral filter (BF) [4], NL-means [7], Chao et al.’ method [6], Wen et al.’ method [5], and the proposed method when applied to the noisy image with details. From Figure 3, we can see (1) the P-M model can effectively remove noise, but it also removes some important details; (2) the bilateral filtering cannot get rid of noise as much as we need (see background), whereas it can preserve details good; (3) NL-means, Chao et al.’ method, Wen et al.’ method, and our method have similar visual quality.

In order to further verify the detail-preserving performance of our method, some methods are used for comparison, as shown in Figure 3. Figure 3(g) presents the enlarged details portion by the NL-means method. It can be observed that most noise can be eliminated, but the weak line of the image is reduced. The enlarged details portion from Chao et al.’ method is shown in Figure 3(h), in which the edges cannot be effectively preserved and some important edge is fused with the background. Figure 3(i) presents the enlarged details’ portion by Wen et al.’ method. It can be observed that the weak line of the image is reduced. Figure 3(j) presents the enlarged details portion by our method. It is clearly seen that our method effectively preserves the fine details, while smoothing out noise in the image.

Figure 4 shows another comparison of the restoration results by six filtering methods; all of the results are obtained from the 512 × 512 Lena image with random noise which ranges from 0 to 5. By visual comparison, it is clearly seen that our method effectively preserves the fine details, while it smooths out noise in the noisy Lena image. This fact can be further validated by quantitative comparison. The metric adopted in this study for comparison is the peak signal-to-noise ratio (PSNR). Table 1 gives the PSNR values for the restored Lena images using the six methods, and our method has the highest PSNR. In most cases, when the max of random noise is less than 10, the PSNR of our model is the highest than others which are compared in this paper.

4. Conclusions

In this paper, we propose a coupled anisotropic diffusion scheme which combines with the local entropy for detail-and edge-preserving smoothing. It can effectively improve the quality of a noisy image and also well preserve the sharp edges and fine details in an image. The main contribution of this study is to exploit entropy of the local region histogram to improve the P-M anisotropic diffusion in terms of detail-and edge-preserving smoothing.

It should be pointed out that because the computing cost of local entropy is very high, our method is time-consuming, especially for large-size images. Besides, the strong noise will decline the filtering performance of the proposed method. But considering its good performance in preserving the sharp edges and fine details of the image, the proposed algorithm is still one of competitive denoising methods for detail-and edge-preserving smoothing.

Data Availability

The data can be obtained from the corresponding author upon reasonable request.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

The research was funded by the Chongqing Technological Innovation and Application Development Project (cstc2020jscx-msxmX0087).