Next Article in Journal
Variable Neighborhood Search Algorithms to Solve the Electric Vehicle Routing Problem with Simultaneous Pickup and Delivery
Previous Article in Journal
Bounds for Incomplete Confluent Fox–Wright Generalized Hypergeometric Functions
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Fast Image Restoration Method Based on the L0, L1, and L2 Gradient Minimization

1
School of Humanities and Social Sciences, Xi’an Jiaotong University, Xi’an 710049, China
2
School of Mathematics and Statistics, Xi’an Jiaotong University, Xi’an 710049, China
*
Author to whom correspondence should be addressed.
Mathematics 2022, 10(17), 3107; https://doi.org/10.3390/math10173107
Submission received: 22 July 2022 / Revised: 20 August 2022 / Accepted: 26 August 2022 / Published: 29 August 2022

Abstract

:
In this paper, we propose a novel image denoising method by coupling with L 0 , L 1 and L 2 gradient minimization. Our proposed method smoothes the gradient difference between image pixels and noise pixels and sharpens the edges by increasing the steepness of transition. We focus on global noise processing rather than local features and adaptively process noise signals with different characteristics. Based on the half-quadratic splitting method, we perform a smoothing step realized by a Poisson approach and two edge-preserving steps through an optimization formulation. This iterative method is fast, simple, and easy to implement. The proposed numerical scheme can be performed to a discrete cosine transform implementation, which can be applied with parallel GPUs computing in a straightforward manner. Various tests are presented, including both qualitative and quantitative tests, to demonstrate that the proposed method is efficient and robust for producing image processing results with good quality.
MSC:
68U10; 68U01; 65M22; 65M55; 65M20; 65M06

1. Introduction

Image restoration is the process of estimating the clean image from the corrupt/noisy image. Up to now, a great number of models have been proposed to console the image restoration problem. Bilateral filtering with the explicit kernel is widely used for its effectiveness in removing noise-like structures [1]. The output of this method is a weighted average of the nearby pixels at the specific pixel, where the weight combinators depend on the intensity similarities based on the guidance image. The median filter [2] is a well-known edge-aware operator, which is a special case of local histogram filters [3]. He et al. proposed a novel explicit image filter called guided filter, which computes the filtering output by considering the content of a guidance image [4]. Edge-preserving smoothing can be achieved by other local filtering, for example, targeted image denoising filtering (TID) [5], transform-domain collaborative filtering(BM3D) [6], transform-domain collaborative filtering with shape-adaptive principal component analysis(BM3D-PCA) [7] and principal component analysis with local pixel grouping(LPG-PCA) [8]. Chambolle and Pock [9] proposed a first-order primal-dual algorithm for the non-smooth convex optimization problems with a convergence rate of O ( 1 / N ) . He and Yuan [10] focused on the convergence analysis and proposed a modified primal-dual algorithm for solving a saddle-point problem. Chen and Xu [11] proposed an iterative algorithm for sparse view X-ray tomography to avoid solving the large scale. They provided the rigorous proofs of the convergence for the aforementioned problems.
Another type of image regularization is total variation, which has achieved great success in image restoration and sharpening edges [12]. Chan and Shen [13] repaired the images by minimizing the image gradient based on the curvature-driven diffusions. To solve image inpainting and image reduces problems, Esedoḡlu and Shen introduced the Mumford–Shah–Euler model [14] based on the Mumford–Shah image segmentation model [15], Li et al. concerned with fast domain decomposition methods for solving the total variation minimization problems in image processing [16]. In [17], the authors proposed the group sparsity-based algorithm for nuclear radiation-contaminated video restoration. Liu presented a novel nonconvex extension model that closely incorporates the advantages of total generalized variation and edge-enhancing nonconvex penalties [18]. Bertozzi et al. [19,20] introduced a well-known inpainting method with the modified Cahn–Hilliard equation [21]. By using the Allen–Cahn equation [22], which describes the motion of mean curvature flow [23,24], Li et al. extended Chan and Shen’s model [12] and proposed the fast image inpainting method with the efficient hybrid numerical solver [25,26].
The existing diffusion methods used the L 1 -norm or L 2 -norm in their proposed energy term and obtained the clean images by minimizing it to convergence. However, these methods suffer from a tendency of over-smooth on the processed image data due to the property of soft-thresholding. In order to sharpen the edges during the noise reduction, a novel fast and accurate method based on the L 0 gradient minimization [27] has been proposed to measure the sparsity of the solution with sharper edges. Some methods treat the image noises as signal type noise [28], such as speckle noise, pepper noise, and Gaussian noise. True image noise is much different to single noise, but is a mixture type noise. In this paper, we will propose a new image restoration method by coupling with L 0 , L 1 , and L 2 gradient minimization. The proposed method can be solved by the half-quadratic splitting method. We decoupled the iterations over the smoothing step and performed a Poisson approach after the alternating reformulation. Two edge-preserving steps have been used through the optimizing process to sharpen the edge of the target. The proposed iterative method is efficient and easy to implement. The main advantage of the proposed method can be summarized as follows: (i) This method transforms the problem of denoising to the optimization problem in which the clear image can be obtained by the iterative methods. (ii) The processing of noise reduction computation is based on the pixel information of the single image, which does not require a lot of training cost for the same type of images to obtain the desired accuracy. (iii) To the best of our knowledge, this is the first investigation on the combination of the hard- and soft-thresholding, which can balance the competitive advantage with proper parameter combinators. Several numerical tests will be presented to demonstrate the robustness and efficiency of our method.
The outline of this paper is as follows. The governing equations for the image restoration method are illustrated in Section 2. The proposed operator splitting algorithm is described in Section 3. The computational examples have been presented in Section 4 to demonstrate the efficiency and robustness of our proposed method. In Section 5, we drew the conclusions.

2. Proposed Image Restoration Method

For a 2D image representation, we combine the following L 0 , L 1 , and L 2 norm with gradient regularization version:
min ϕ Ω α | | ϕ ( x ) | | 0 + β | | ϕ ( x ) | | 1 + ( 1 α β ) | | ϕ ( x ) | | 2 2 + λ ( ϕ ( x ) I ( x ) ) 2 d x
where x = ( x , y ) , f ( x ) is a given image in a domain Ω R 2 . The fidelity term λ ( ϕ ( x ) I ( x ) ) 2 is used for the detection of similarity between the processed image ϕ and the given image I in Ω . In Equation (1), | | · | | 0 , | | · | | 1 , and | | · | | 2 are the L 0 , L 1 , and L 2 norms, respectively. Let us briefly review the definition of L 0 -norm: if ϕ = 0 , then | | ϕ | | 0 = 0 . Otherwise, | | ϕ | | 0 = 1 . Therefore the term | | ϕ ( x ) | | 0 can reduce the noises and make edges sharpen. The minimization problem (1) is difficult to optimize directly due to the combinatorial nature of L 0 , L 1 , and L 2 minimization. Recently, a scalable algorithm was proposed for image processing [27,29] and surface smoothing [30,31] by considering the L 0 norm gradient optimization. Our work extends the L 0 , L 1 , and L 2 minimizations concept to image restoration. Let us provide the following Theorem:
Theorem 1.
By introducing a set of auxiliary variables ψ = ( ψ x , ψ y ) and φ = ( φ x , φ y ) , the minimization problem (1) is equivalent minimize the following equation:
min ϕ , ψ , φ Ω ( α | | ψ ( x ) | | 0 + β | | φ ( x ) | | 1 + ( 1 α β ) | | ϕ ( x ) | | 2 2 + λ ( ϕ ( x ) I ( x ) ) 2 + γ | | ϕ ( x ) ψ ( x ) | | 2 2 + ζ | | ϕ ( x ) φ ( x ) | | 2 2 ) d x .
Here, γ and ζ are two weight parameters directly controlling the similarity between ψ, φ, and the gradient of ϕ.
Proof. 
The minimization problem (2) generally can be minimized by an alternating minimization method in the following manner:
(1)
for ϕ and φ fixed,
min ψ Ω α | | ψ | | 0 + γ | | ϕ ψ | | 2 2 d x .
(2)
for ϕ and ψ fixed,
min φ Ω β | | φ | | 1 + ζ | | ϕ φ | | 2 2 d x .
(3)
for φ and ψ fixed,
min ϕ Ω γ | | ϕ ψ | | 2 2 + ζ | | ϕ φ | | 2 2 + ( 1 α β ) | | ϕ ( x ) | | 2 2 + λ ( ϕ ( x ) I ( x ) ) 2 d x
In order to eventually force ϕ to match ψ and φ , both of these optimizations alternate until convergence by increasing γ and ζ at each iteration. The idea is summarized as:
Step 1. By considering the independence of x , we can rewrite Equation (3) as
Ω min ψ α | | ψ | | 0 + γ | | ϕ ψ | | 2 2 d x .
Considering every point x Ω , we need to minimize
G 1 ( ψ ) = α | | ψ | | 0 + γ | | ϕ ψ | | 2 2 .
Let us consider Equation (7): if γ = 0 , the minimum of G 1 can be obtained by setting ψ = ϕ ; otherwise the relationship between | | ϕ ( x ) | | 2 2 and γ / α should be analyzed. Let us summarized the relations as: When | | ϕ ( x ) | | 2 2 α / γ , we start splitting in the following two situations.
(1)
By considering ψ 0 , the minimal value G 1 * can be obtained by setting ϕ ( x ) = ψ which can be shown as
G 1 * ( ψ 0 ) = min ψ G 1 ( ψ 0 ) = α | | ψ | | 0 + γ | | ϕ ψ | | 2 2 = α .
(2)
By considering that ψ = 0 , we can obtain
G 1 * ( ψ = 0 ) = min ψ G 1 ( ψ = 0 ) = α | | ψ | | 0 + γ | | ϕ ψ | | 2 2 = γ | | ϕ | | 2 2 α = min ψ G 1 ( ψ 0 ) .
Therefore, we should only let ϕ = ψ to obtain the minimum G 1 * . Therefore, by combining Equations (8) and (9), the minimum energy (6) is produced when ϕ = ψ . Hence, we can obtain the following condition:
ψ = ϕ if | | ϕ | | 2 2 α / γ , 0 otherwise .
Step 2. Let us rewrite Equation (4) by considering the independence of x as:
Ω min ψ β | | φ | | 1 + ζ | | ϕ φ | | 2 2 d x .
For every individual point x, we need to minimize
G 2 ( φ ) = α | | φ | | 1 + γ | | ϕ φ | | 2 2 = G 2 x ( φ x ) + G 2 y ( φ y ) .
Here, ϕ = ( ϕ x , ϕ y ) and G 2 x ( φ x ) = α | φ x | + γ ( ϕ x φ x ) 2 and G 2 y ( φ y ) = α | φ y | + γ ( ϕ y φ y ) 2 . It is obvious that φ x = ϕ x α sign ( φ x ) / ( 2 γ ) and φ y = ϕ y α sign ( φ y ) / ( 2 γ ) are the minima points of G 2 x ( φ x ) and G 2 y ( φ y ) , respectively. Here, sign ( ) is the sign function, which is defined as 1 for positive argument and -1 for negative argument. If ϕ x > α / ( 2 γ ) , then G 2 x ( φ x = ϕ x α / ( 2 γ ) ) < α ( ϕ x ) 2 = G 2 x ( φ x = 0 ) . Therefore, φ x = ϕ x α / ( 2 γ ) is the minimization of G 2 x ( φ x ) . In the similar fashion, if ϕ x < α / ( 2 γ ) , we should set φ x = ϕ x + α / ( 2 γ ) to minimize the G 2 x ( φ x ) . It is obvious that if | ϕ x | < α / ( 2 γ ) , then φ x = 0 is the minimization of G 2 x ( φ x ) . In summary, we can obtain the following condition:
φ x = ϕ x + α / ( 2 γ ) if   ϕ x < α / ( 2 γ ) , 0 if   | ϕ x | < α / ( 2 γ ) , ϕ x α / ( 2 γ ) if   ϕ x > α / ( 2 γ ) , and   φ y = ϕ y + α / ( 2 γ ) if   ϕ y < α / ( 2 γ ) , 0 if   | ϕ y | < α / ( 2 γ ) , ϕ y α / ( 2 γ ) if   ϕ y > α / ( 2 γ ) .
Step 3. The expression (5) is quadratic in ϕ and trivial to minimize. Following the Euler–Lagrange formulation, ϕ minimizes Equation (5) as
γ · ( ϕ ψ ) + ζ · ( ϕ φ ) + ( 1 α β ) Δ ϕ λ ( ϕ I ) = 0 .
Therefore, in order to get the solution of the minimization problem (2), three optimizations (Equations (10), (13), and (14)) alternate until convergence by increasing γ and ζ at each iteration. □
Some notations should be summarized as follows: (i) α and β are the convex combinators for controlling the similarity between ψ and φ with ϕ . Since the L 0 -norm and L 1 - n o r m regularized optimization problem is know as computationally intractable, we use the equivalent problem of the original optimization problem to perform the computation. (ii) The choice of α and β determines the smoothing effect for the gradient of ϕ . The L 1 norm focuses on the equilibrium of noise pixels, while the L 0 norm focuses on the presence of noise pixels. Thus the iterated soft-thresholding algorithm for L 1 norms homogenizes the noise in the image, while the L 0 norm can enhance the contrast of image and suppress low-amplitude details. (iii) The proposed model is the convex combination of three norms with different emphases. The advantages of the proposed optimization model Equation (2) can be activated by selecting appropriate combination parameters according to the characteristics of different noisy images.

3. Numerical Solution

In this section, we consider the fast scheme with the Fourier-spectral method. Let us assume that there are N x × N y pixels on a 2D image, where N x and N y are even integers. Let x m = ( 2 m 1 ) / 2 , y n = ( 2 n 1 ) / 2 , for 1 m N x , 1 n N y . Furthermore, let ϕ m n s be an approximation of ϕ ( x m , y n , s ) , where s is the iterative step. The discrete cosine transform F is defined as
F ( ϕ m n s ) = ϕ ^ p q s = α p β q m = 1 N x n = 1 N y ϕ m n s cos ( x m π ξ p ) cos ( y n π η q ) ,
where
α p = 1 / N x , p = 1 , 2 / N x , 2 p N x , and β q = 1 / N y , q = 1 , 2 / N y , 2 q N y .
The variables ξ p and η q are defined as ξ p = ( p 1 ) / N x and η q = ( q 1 ) / N y , respectively. The inverse discrete cosine transform F 1 is
F 1 ( ϕ ^ p q s ) = ϕ m n s = p = 1 N x q = 1 N y α p β q ϕ ^ p q r s cos ( ξ p π x m ) cos ( η q π y n ) .
At the beginning of each time step, given ϕ s , ψ s , φ s , λ s , and ζ s , we want to find ϕ s + 1 , ψ s + 1 , φ s + 1 , λ s + 1 , and ζ s + 1 , by solving the descretized equations of three optimizations ((10)–(14)) in time. The outline of our proposed method can be summarized as:
Step 1. Update γ s = η γ s 1 and ζ s + 1 = η ζ s 1 , where η is not smaller than 1 to make γ and ζ increase with each iteration. γ 0 and ζ 0 are two initial parameters.
Step 2. Solve ψ s + 1 from ϕ s and γ s by using Equation (10) as:
ψ s + 1 = ϕ s if | | ϕ s | | 2 2 α / γ s , 0 otherwise .
Here, ϕ s = ( ϕ x s , ϕ y s ) at the ( m , n ) node is define as
( ϕ x s ) m n = ( ϕ m + 1 , n s ϕ m 1 , n s ) / 2   and   ( ψ y s ) m n = ( ϕ m , n + 1 s ϕ m , n 1 s ) / 2 .
Here, φ x x , s + 1 and φ y y , s + 1 are defined in the similar fashion.
Step 3. Solve φ s + 1 from ϕ s and ζ s by using Equation (13) as:
φ x , s + 1 = ϕ x s + α / ( 2 γ ) if   ϕ x s < α / ( 2 γ ) , 0 if   | ϕ x | < α / ( 2 γ ) , ϕ x α / ( 2 γ ) if   ϕ x s > α / ( 2 γ ) , and φ y , s + 1 = ϕ y s + α / ( 2 γ ) if   ϕ y s < α / ( 2 γ ) , 0 if   | ϕ y s | < α / ( 2 γ ) , ϕ y s α / ( 2 γ ) if   ϕ y s > α / ( 2 γ ) .
Step 4. Solve ϕ s + 1 from ψ s + 1 and φ s + 1 by using Equation (14):
γ s · ( ϕ s + 1 ψ s + 1 ) + ζ s · ( ϕ s + 1 φ s + 1 ) + ( 1 α β ) Δ ϕ s + 1 λ ( ϕ s + 1 I ) = 0 .
Equation (18) can be transformed into the discrete cosine space as follows:
λ + ( γ s + ζ s + ( 1 α β ) ) ( ξ p π ) 2 + ( η q π ) 2 F ( ϕ s + 1 ) = F ( λ I ) + γ s F ( ψ x x , s + 1 ) + γ s F ( ψ y y , s + 1 ) + ζ s F ( φ x x , s + 1 ) + ζ s F ( φ y y , s + 1 ) .
Here, i = 1 is a complex number. We employ the discrete cosine transform for the Laplacian operator, which is defined as
F ( Δ ϕ ) = ( ξ p π ) 2 + ( η q π ) 2 F ( ϕ ) .
Therefore, we obtain the following corresponding function ϕ s + 1 :
ϕ s + 1 = F 1 ( F ( ϕ ) ) = F 1 F ( λ I ) γ s F ( ψ x x , s + 1 ) γ s F ( ψ y y , s + 1 ) ζ s F ( φ x x , s + 1 ) ζ s F ( φ y y , s + 1 ) λ + ( γ s + ζ s + ( 1 α β ) ) ( ξ p π ) 2 + ( η q π ) 2 .
The above iterations have completed in one time step. Our alternating minimization algorithm will stop if γ and ζ are larger than the given values γ max and ζ max , respectively. We should note that the proposed method, i.e., Equations (16) and (17), consists of two explicit evaluations of closed-form solutions, which makes fast convergence possible. The computational complexities are O ( N ) , where N is the size of the mesh grid. The implicit Poisson type equation can be solved by fast discrete cosine transform method (Equation (20)) with a computational complexity of O ( N l o g N ) [32].

4. Numerical Tests

Various numerical results are presented in this section on several representative images. We show that some good results can be obtained through our algorithm. In the following part of numerical experiments, we compare and explore the results from both qualitative and quantitative levels, which comprehensively evaluate the proposed noise reduction method. Unless otherwise stated, we will use the following parameters: α = 0.2 , β = 0.2 , ζ = 1 , γ = 0.4 , λ = 1 × 10 5 .

4.1. Noise Reduction for Gaussian Noise Processing

In this subsection, we use four kinds of images, i.e., electronic composite image, JEPG compressed image, photo taken by camera, and scanning image, to demonstrate the effect of our method on the images with 10% Gaussian noise as shown in Figure 1. The top row is the initial images with Gaussian noise and the bottom row is the smoothing results obtained by our method. From Figure 1a–d, the computational domains are with the 256 × 256 , 512 × 512 , 260 × 250 , and 200 × 300 pixels, respectively. The Non-default parameters are chosen as α = 0.02 , β = 0.1 , and γ = 0.04 , respectively. It is obvious that the gaussian noise can be eliminate well by the proposed method. Furthermore, some notations should be pointed that: (i) The proposed method can keep a sharp edge while reducing the noise, which can be seen in Figure 1a. (ii) The textures can be smoothed out due to the influence of the soft thresholds, which can be seen in Figure 1b. (iii) The defects in the photos, such as shadows and light spots, are considered as the part of the composition and will not be handled by our algorithm, which can be seen in Figure 1c. (iv) The small non–noisy pixels in the images can be removed due to the influence of the hard thresholds, which can be seen in Figure 1d.

4.2. Noise Reduction for Speckle Noise Processing

Speckle noise is the noise that arises due to the effect of environmental conditions on the imaging sensor during image acquisition, it is common in active radar, synthetic aperture radar, medical ultrasound and optical coherence, and reduces the quality of tomography images [33]. In this subsection, we use the text image, photo taken by camera, remote sensing image, scanning image, to demonstrate the effect of our method on the images with speckle noise as shown in Figure 2. The top row is the initial images with speckle noise and the bottom row is the smoothing results obtained by our method. The computational meshgrid is 100 × 100 , 400 × 400 , 1024 × 1024 , and 120 × 120 , respectively. The non-default parameters are chosen as α = 0.1 , β = 0.01 , and γ = 0.2 , respectively. It is obvious that the speckle noise can be removed by our method without destroying any features of the noisy images such as edges and the structure. We should emphasize that the speckle noise influence the quality of ultrasound image and it can reduces important information from image as edge, shape, and intensity value, which is easy to handle with our method. Since our method is essentially a weighted average combination of soft threshold and hard threshold, the image edge and shape can be captured well by choosing the proper weight parameters.

4.3. Noise Reduction for Poisson Noise Processing

Poisson noise is a noise model conforming to Poisson distribution, which is suitable to describe the probability distribution of the number of random events in unit time [34]. In this subsection, we use a cartoon image to demonstrate the effect of our method on the images with Poisson noise as shown in Figure 3. From Figure 3a–d, we show the original images with poission noise, the smoothing images by the proposed method, the contour line of (a), and the contour line of (b), respectively. The computational meshgrid is 320 × 320 . We chose the non–default parameters as α = 0.1 , β = 0.1 , γ = 0.2 , ζ = 10 , and λ = 1000 , respectively. By comparing Figure 1a,b, it can be seen that our algorithm can eliminate gaussian noise without affecting the edges and the shape of the noisy image. To better demonstrate this property, we plot the contour line of the image, which verifies that the proposed method is efficient for obtaining the clean gradient map and in accordiance with human perception.

4.4. Comparison between the Existing Method and the Proposed Method

In this subsection, we compare the results obtained by the proposed method and the existing method, i.e., TID [5], BM3D [6], BM3D-PCA [7], LPG-PCA [8], and NLM [35], to verify the efficiency of the proposed method. We have re-implemented and modified the internal method so that the above methods can be fairly compared with the proposed method. The computational meshgrid is 110 × 110 and we choose the non–default parameters as α = 0.02 , ζ = 100 , and γ = 0.04 , respectively.
To prepare the numerical test, we added randomly excessive noise to the original image Figure 4a and obtain the test noisy image Figure 4b. We not only perform the corresponding qualitative numerical experiment as shown in Figure 4, but also implies the corresponding quantitative numerical experiment as shown in Table 1. It is obvious that our method provide the cleaner results with the same input image in Figure 4. Furthermore, the proposed method globally sharpen prominent edges and remains the text pixel while eliminating the noise. Two metrics, namely peak signal–to–noise ratio (PSNR) and structural similarity index map (SSIM), are quantitative measure used to estimate the quality of the denoised images, which can be defined as
PSNR = 10 log 10 I m a x 2 1 n x · n y i = 1 n x j = 1 n y I i , j K i , j 2 ,   SSIM = ( 2 μ I μ K + c 1 ) ( 2 σ I K + c 2 ) ( μ I 2 + μ K 2 + c 1 ) ( σ I 2 + σ K 2 + c 2 ) ,
where I is the clean image, K is the denoised image, μ I , μ K are the average of I and K, respectively; and σ I 2 , σ K 2 are the variance of I and K, respectively. Here, σ I K is the covariance of I and K, c 1 = ( 0.01 L ) 2 , c 2 = ( 0.03 L ) 2 with L = 1 . High PSNR and SSIM values indicate a good restore of the fingerprint image [36]. By comparing these two indicators as shown in Table 1, our method shows better utilization of the target image.

4.5. Comparison between the Smoothing Results with or without Our Method for the Existing Method

In this subsection, we compare the results obtain by the existing method with or without our method. To verify the efficiency of the proposed method, we perform the numerical test on a real scanning image for ancient ruins as shown in Figure 5, which is covered with a dense collection of weathered holes and cracks.
The computational meshgrid is 1000 × 1000 and the non–default parameters are α = 0.001 , γ = 0.002 , and ζ = 10 , respectively. The smoothing results have been shown in Figure 6.
The top and bottom row shows the results obtained by the existing method without and with our method, respectively. It is obvious that the results obtained with the addition of our method will be smoother. Moreover, we compute the PSNR and SSIM indicators with Equation (21) as shown in Table 2. For the five existing methods, the combination with our method can significantly improve image quality, which corresponds to our expectation.

4.6. Comparison Test between the Smoothing Results with Deep Learning Image Denoising Schemes and Our Proposed Method

In this subsection, we compare the results obtained by the deep learning image denoising schemes and our proposed method. The existing method denoises the damage images using a MATLAB solver denoisingImage in Deep Learning Toolbox based on the denoising convolutional neural networks(DcNN) [37]. We perform the numerical test on various images types, which are the scanning image, photo taken by camera, and JPEG compressed image, respectively. From Figure 7a–d, the images are the ground truth, image with 10% Gaussian noise, results obtained by our proposed method, respectively.
The computational meshgrid for the top row, middle row, and bottom row is 600 × 500 , 1000 × 500 , and 800 × 700 , respectively. The non–default parameters are α = 0.001 , γ = 0.02 , and ζ = 12 , respectively. As can be seen from the comparable results, our method maintains the similarity with the original image and actively reduces the amplitude gradient difference between the noise points and the surrounding pixels to obtain better results. What we need to emphasize is that our method adaptively adjusts for specific images, which can better process different noise information appropriately. Moreover, the PSNR and SSIM indicators with Equation (21) for Figure 7c,d have been shown in Table 3. We can see that our method shows better utilization of the target images from the point of perspective view.
We should note that it is unfair for this type comparison in some aspects. The proposed method works well without the training cost, while the DcNN based method require expensive training costs to improve the corresponding accuracy.

4.7. Comparison Test between the Smoothing Results with Existing Structure-Texture Decomposition Method and Our Proposed Method

In this subsection, we compare the results obtained by the existing structure-texture decomposition method and our proposed method. We perform the numerical test on a electronic composite image with complex boundaries and complicated geometry as shown in Figure 8a. Since the boundary is not clear and the covered triangles have different sizes and shapes, it brings hard challenges for boundary extraction. The computational meshgrid is 750 × 1000 and the non–default parameters are α = 0.0004 , γ = 0.002 , and ζ = 15 , respectively. We add the 10 % Gaussian noise to the ground truth (Figure 8a) and obtain the damage image Figure 8b. Figure 8c,d are the denoising results obtain by the method in [38] and our proposed method, respectively. The images in bottom row (Figure 8e,f) show the edge detection results correspond to Figure 8c,d, respectively. As can be seen from the comparable results, the structure-texture method in [38] recognized the edges as the texture of the target images by making the boundary too smooth, while our method can increase the contrast between the two sides of the edges and prominent the boundary.
Moreover, we compute the PSNR and SSIM indicators with Equation (21). The PSNR of Figure 8c,d is 18.24 and 22.36 , respectively. The SSIM of Figure 8c,d is 0.7634 and 0.9142 , respectively. Based on the quantitative perspective, our method can significantly improve image quality, which corresponds to our expectation. From the comparison of Figure 8e,f, our method is easier to detect the edges with less errors.

4.8. Computational Cost

Finally, we present the performance of all above tests in Table 4 and Figure 9. The CPU times for each tests above have been presented in Table 4. Then we compute the average CPU time per iteration. Let us fit the curve with the computational domain size based on the MATLAB routine polyfit functional. The numerical tests are performed in MATLAB on a computer with a 3-GHz CPU and 8GB of RAM. It is obvious from Table 4 that the computational cost of the proposed method is low.
As can be seen from Figure 9, the computational cost is linear with respect to the domain size. Various notations should be remarked as follows: (i) The proposed method does not require the extensive training times to sacrifice an acceptable level of accuracy. (ii) The proposed scheme is based on the partial differential equation, which makes our approach independent of the specific dataset and noise type. (iii) The computational complexity of our approach depends on the fast Fourier transform, which is proved to be O ( N l o g N ) and is easy to implement from the numerical point of view.

5. Conclusions

In this paper, a novel image restoration method was proposed by coupling with L 0 , L 1 and L 2 gradient minimization of weight average combination. The resulting algorithm was developed by using half-quadratic splitting method. Through the optimization formulation, the smoothing step has been performed by using a Poisson approach after two edge-preserving steps. The proposed iterative method is efficient and robust due to the linearity and parallelism of our algorithm, which is easy to implement. To the best of our knowledge, the present study is the first attempt to denoise the damaged images using the competitive combination of hard- and soft-thresholding model. Compared with neural networks based method, our method is more universal due to the adaptive consideration on the pixel information of a single image. The proposed numerical scheme can be performed to a discrete cosine transform (DCT) implementation with the optimal complexity O ( N l o g N ) per iteration. Several numerical tests were demonstrated to confirm that the proposed method is efficient and robust for producing image processing results with good quality.

Author Contributions

J.W., Q.X. and B.X. conceptualized and designed the study. J.W. and Q.X. designed the model and the computational framework and analyzed the data. J.W. and Q.X. wrote the manuscript. All authors have read and agreed to the published version of the manuscript.

Funding

Q. Xia is supported by the Fundamental Research Funds for the Central Universities (No.XZY022022005).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

The authors are grateful to the reviewers whose valuable suggestions and comments significantly improved the quality of this paper.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Tomasi, C.; Manduchi, R. Bilateral filtering for gray and color images. In Proceedings of the Sixth IEEE International Conference on Computer Vision, Bombay, India, 7 January 1998; pp. 839–846. [Google Scholar]
  2. Gonzalez, R.C.; Woods, R.E. Digital Image Processing, 2nd ed.; Prentice Hall: Hoboken, NJ, USA, 2002. [Google Scholar]
  3. Kass, M.; Solomon, J. Smoothed local histogram filters. ACM Trans. Graph. 2010, 29, 1–100. [Google Scholar] [CrossRef]
  4. He, K.; Sun, J.; Tang, X. Guided image filtering. IEEE Trans. Pattern Anal. Mach. Intell. 2012, 35, 1397–1409. [Google Scholar] [CrossRef]
  5. Luo, E.; Chan, S.H.; Nguyen, T.Q. Adaptive image denoising by targeted databases. IEEE Trans. Image Process. 2017, 7, 2167–2181. [Google Scholar] [CrossRef]
  6. Dabov, K.; Foi, A.; Katkovnik, V.; Egiazarian, K. Image restoration by sparse 3D transform-domain collaborative filtering. IEEE Trans. Image Process. 2007, 16, 2080–2095. [Google Scholar] [CrossRef] [PubMed]
  7. Danielyan, A.; Katkovnik, V.; Egiazarian, K. BM3D frames and variational image deblurring. IEEE Trans. Image Process. 2012, 21, 1715–1728. [Google Scholar] [CrossRef] [PubMed]
  8. Zhang, L.; Dong, W.; Zhang, D.; Shi, G. Two-stage image restoration by principal component analysis with local pixel grouping. Pattern Recognit. 2010, 43, 1531–1549. [Google Scholar] [CrossRef]
  9. Chambolle, A.; Pock, T. A first-order primal-dual algorithm for convex problems with applications to imaging. J. Math. Imaging Vis. 2011, 40, 120–145. [Google Scholar] [CrossRef]
  10. He, B.; Yuan, X. Convergence analysis of primal-dual algorithm for a Saddle-point problem: From contraction perspective. SIAM J. Imaging Sci. 2012, 5, 119–149. [Google Scholar] [CrossRef]
  11. Chen, C.; Xu, G. A New linearized split bregman iterative algorithm for image reconstruction in sparse-view X-ray computed tomography. Comput. Math. Appl. 2016, 71, 1537–1559. [Google Scholar] [CrossRef]
  12. Chan, T.F.; Shen, J. Mathematical models for local non-texture inpaintings. SIAM J. Appl. Math. 2001, 62, 1019–1043. [Google Scholar]
  13. Chan, T.F.; Shen, J. Nontexture inpainting by curvature-driven diffusions. J. Vis. Commun. Image Represent. 2001, 12, 436–449. [Google Scholar] [CrossRef]
  14. Esedoḡlu, S.; Shen, J. Digital inpainting based on the Mumford–Shah–Euler image model. Eur. J. Appl. Math. 2002, 13, 353–370. [Google Scholar] [CrossRef]
  15. Mumford, D.; Shah, J. Optimal approximation by piecewise smooth functions and associated variational problems. Commun. Pure Appl. Math. 1989, 42, 577–685. [Google Scholar] [CrossRef]
  16. Li, X.; Zhang, Z.; Chang, H.; Duan, Y. Accelerated no-overlapping domain decomposition method for total variation minimization. Numer. Math. Theory Methods Appl. 2021, 14, 1017–1041. [Google Scholar] [CrossRef]
  17. Chen, M.; Zhang, H.; Lu, L.; Wu, H. A total variation and group sparsity-based algorithm for nuclear radiation-contaminated video restoration. Imaging Sci. J. 2021, 1–13. [Google Scholar] [CrossRef]
  18. Liu, X. Nonconvex total generalized variation model for image inpainting. Informatica 2021, 32, 357–370. [Google Scholar] [CrossRef]
  19. Bertozzi, A.; Esedoḡlu, S.; Gillette, A. Inpainting of binary images using the Cahn–Hilliard equation. IEEE Trans. Image Process. 2007, 16, 285–291. [Google Scholar] [CrossRef]
  20. Bertozzi, A.; Esedoḡlu, S.; Gillette, A. Analysis of a two-scale Cahn–Hilliard model for binary image inpainting. Multiscale Model. Simul. 2007, 6, 913–936. [Google Scholar] [CrossRef]
  21. Xia, Q.; Kim, J.; Xia, B.; Li, Y. An unconditionally energy stable method for binary incompressible heat conductive fluids based on the phase–field model. Comput. Math. Appl. 2022, 123, 26–39. [Google Scholar] [CrossRef]
  22. Xia, Q.; Sun, G.; Yu, Q.; Kim, J.; Li, Y. Thermal–fluid topology optimization with unconditional energy stability and second–order accuracy via phase–field model. Commun. Nonlinear Sci. Numer. Simul. 2022, 4, 106782. [Google Scholar] [CrossRef]
  23. de Mottoni, P.; Schatzman, M. Geometrical evolution of developed interfaces. Trans. Am. Math. Soc. 1995, 347, 1533–1589. [Google Scholar] [CrossRef] [Green Version]
  24. Xia, Q.; Yu, Q.; Li, Y. A second-order accurate, unconditionally energy stable numerical scheme for binary fluid flows on arbitrarily curved surfaces. Comput. Methods Appl. Mech. Eng. 2021, 384, 113987. [Google Scholar] [CrossRef]
  25. Li, Y.; Jeong, D.; Choi, J.I.; Lee, S.; Kim, J. Fast local image inpainting based on the Allen-Cahn model. Digit. Signal Process. 2015, 37, 65–74. [Google Scholar] [CrossRef]
  26. Li, Y.; Lee, H.G.; Jeong, D.; Kim, J. An unconditionally stable hybrid numerical method for solving the Allen–Cahn equation. Comput. Math. Appl. 2010, 60, 1591–1606. [Google Scholar] [CrossRef]
  27. Xu, L.; Lu, C.; Xu, Y.; Jia, J. Image smoothing via L0 gradient minimization. ACM Trans. Graph. 2011, 30, 174. [Google Scholar] [CrossRef]
  28. Ji, J.; Fang, S.; Shi, Z.; Xia, Q.; Li, Y. An efficient nonlinear polynomial color characterization method based on interrelations of color spaces. Color Res. Appl. 2020, 45, 1023–1039. [Google Scholar] [CrossRef]
  29. Ji, J.; Fang, S.; Xia, Q.; Shi, Z. An efficient method for scanned images by using color-correction and L0 gradient minimization. Optik 2021, 247, 167820. [Google Scholar] [CrossRef]
  30. Li, H.; Li, Y.; Yu, R.; Sun, J.; Kim, J. Surface reconstruction from unorganized points with L0 gradient minimization. Comput. Vis. Image Underst. 2018, 169, 108–118. [Google Scholar] [CrossRef]
  31. Li, Y.; Xia, Q.; Yoon, S.; Lee, C.; Lu, B.; Kim, J. Simple and efficient volume merging method for triply periodic minimal structures. Comput. Phys. Commun. 2021, 264, 107956. [Google Scholar] [CrossRef]
  32. Li, Y.; Wang, K.; Yu, Q.; Xia, Q.; Kim, J. Unconditionally energy stable schemes for fluid-based topology optimization. Commun. Nonlinear Sci. Numer. Simul. 2022, 111, 106433. [Google Scholar] [CrossRef]
  33. Maity, A.; Pattanaik, A.; Sagnika, S.; Pani, S. A comparative study on approaches to speckle noise reduction in images. In Proceedings of the 2015 International Conference on Computational Intelligence and Networks, Odisha, India, 12–13 January 2015. [Google Scholar]
  34. Le, T.; Chartrand, R.; Asaki, T.J. A variational approach to reconstructing images corrupted by Poisson noise. J. Math. Imaging Vis. 2007, 27, 257–263. [Google Scholar] [CrossRef]
  35. Buades, A.; Coll, B.; Morel, J. A review of image restoration algorithms, with a new one. SIAM Multiscale Model Simul. 2005, 4, 490–530. [Google Scholar] [CrossRef]
  36. Li, Y.; Xia, Q.; Lee, C.; Kim, S.; Kim, J. A robust and efficient fingerprint image restoration method based on a phase-field model. Pattern Recognit. 2022, 123, 108405. [Google Scholar] [CrossRef]
  37. Zhang, K.; Zuo, W.; Chen, Y.; Meng, D.; Zhang, L. Beyond a Gaussian denoiser: Residual learning of deep CNN for image denoising. IEEE Trans. Image Process. 2017, 26, 3142–3155. [Google Scholar] [CrossRef]
  38. Xu, L.; Yan, Q.; Xia, Y.; Jia, J. Structure extraction from texture via relative total variation. ACM Trans. Graph. 2012, 31, 1–10. [Google Scholar] [CrossRef] [Green Version]
Figure 1. The first row is the initial image with 10 % Gaussian noise and the second row is the obtained smoothing results. From (ad), the image types are electronic composite image, JEPG compressed image, photo taken by camera, and scanning image, respectively.
Figure 1. The first row is the initial image with 10 % Gaussian noise and the second row is the obtained smoothing results. From (ad), the image types are electronic composite image, JEPG compressed image, photo taken by camera, and scanning image, respectively.
Mathematics 10 03107 g001
Figure 2. The first row is the initial image with 10% speckle noise and the second row is the obtained smoothing results. From (ad), the image types are text image, photo taken by camera, remote sensing image, and scanning image respectively.
Figure 2. The first row is the initial image with 10% speckle noise and the second row is the obtained smoothing results. From (ad), the image types are text image, photo taken by camera, remote sensing image, and scanning image respectively.
Mathematics 10 03107 g002
Figure 3. The results of the our proposed method with poission noise. (a) The original images with poission noise. (b) The smoothing images by the proposed method. (c) The contour line of (a). (d) The contour line of (b).
Figure 3. The results of the our proposed method with poission noise. (a) The original images with poission noise. (b) The smoothing images by the proposed method. (c) The contour line of (a). (d) The contour line of (b).
Mathematics 10 03107 g003
Figure 4. The comparison results between the proposed method with the existing method. (a) The clean text image. (b) The text image with random noise. (c) Our method. (d) TID method. (e) BM3D method. (f) BM3DPCA method. (g) LPG–PCA method. (h) NLM method.
Figure 4. The comparison results between the proposed method with the existing method. (a) The clean text image. (b) The text image with random noise. (c) Our method. (d) TID method. (e) BM3D method. (f) BM3DPCA method. (g) LPG–PCA method. (h) NLM method.
Mathematics 10 03107 g004
Figure 5. The scanning image for ancient ruins covered with holes and cracks.
Figure 5. The scanning image for ancient ruins covered with holes and cracks.
Mathematics 10 03107 g005
Figure 6. The comparison results between the existing method without and with our method. The top row is obtained without our method. The bottom row is obtained with our method. (a) TID method. (b) BM3D method. (c) BM3DPCA method. (d) LPG–PCA method. (e) NLM method.
Figure 6. The comparison results between the existing method without and with our method. The top row is obtained without our method. The bottom row is obtained with our method. (a) TID method. (b) BM3D method. (c) BM3DPCA method. (d) LPG–PCA method. (e) NLM method.
Mathematics 10 03107 g006
Figure 7. The comparison results between the smoothing results with deep learning image denoising schemes and our proposed method. From top row to the bottom row, the image types are scanning image, photo taken by camera, and JPEG compressed image, respectively. (a) Ground truth. (b) Image with 10% Gaussian noise. (c) Results obtained by DcNN. (d) Results obtained by our proposed method.
Figure 7. The comparison results between the smoothing results with deep learning image denoising schemes and our proposed method. From top row to the bottom row, the image types are scanning image, photo taken by camera, and JPEG compressed image, respectively. (a) Ground truth. (b) Image with 10% Gaussian noise. (c) Results obtained by DcNN. (d) Results obtained by our proposed method.
Mathematics 10 03107 g007
Figure 8. The comparison results between the smoothing results with existing structure-texture decomposition method and our proposed method. From left to right, from top to bottom, the images are (a) ground truth, (b) image with 10% Gaussian noise, (c) result obtained by the existing method in [38], (d) results obtained by our proposed method, (e) edge detection of the results by [38], and (f) edge detection of the results by our method, respectively.
Figure 8. The comparison results between the smoothing results with existing structure-texture decomposition method and our proposed method. From left to right, from top to bottom, the images are (a) ground truth, (b) image with 10% Gaussian noise, (c) result obtained by the existing method in [38], (d) results obtained by our proposed method, (e) edge detection of the results by [38], and (f) edge detection of the results by our method, respectively.
Mathematics 10 03107 g008
Figure 9. Experimental data and linear fitting of average CPU time per iteration versus the domain size. The average CPU time refers to the quotient of the total CPU time and the iterations. The domain size is the number of pixels within the computational domain.
Figure 9. Experimental data and linear fitting of average CPU time per iteration versus the domain size. The average CPU time refers to the quotient of the total CPU time and the iterations. The domain size is the number of pixels within the computational domain.
Mathematics 10 03107 g009
Table 1. Comparison of the average PSNR and SSIM between the proposed method and other existing methods.
Table 1. Comparison of the average PSNR and SSIM between the proposed method and other existing methods.
MethodsOursTIDBM3DBM3DPCALPG–PCANLM
PSNR 23.13 22.91 21.57 21.59 22.01 20.14
SSIM 0.9542 0.8890 0.8507 0.8551 0.7030 0.8278
Table 2. Comparison of the average PSNR and SSIM with or without our method for the existing methods.
Table 2. Comparison of the average PSNR and SSIM with or without our method for the existing methods.
TIDBM3DBM3DPCALPG–PCANLM
PSNR 19.03 28.64 19.22 19.40 18.76
SSIM 0.5098 0.7827 0.5240 0.5475 0.4849
Our method+TIDBM3DBM3DPCALPG–PCANLM
PSNR 26.80 31.52 26.66 26.90 25.81
SSIM 0.7208 0.9491 0.7230 0.7249 0.6691
Table 3. Comparison of the average PSNR and SSIM between the proposed method and DcNN based method in MATLAB.
Table 3. Comparison of the average PSNR and SSIM between the proposed method and DcNN based method in MATLAB.
Ours/DcNNTop RowMiddle RowBottom Row
PSNR 28.37 / 24.61 24.42 / 18.47 27.68 / 22.76
SSIM 0.9214 / 0.8463 0.7952 / 0.7264 0.9017 / 0.8911
Table 4. Total CPU-time of every numerical test in this work.
Table 4. Total CPU-time of every numerical test in this work.
FigureFigure 1aFigure 1bFigure 1cFigure 1dFigure 2a
CPU-time (s)5.9118.344.743.491.57
FigureFigure 2bFigure 2cFigure 2dFigure 3Figure 4c
CPU-time (s)17.9457.242.344.761.73
FigureFigure 6Figure 7 (top)Figure 7 (middle)Figure 7 (bottom)Figure 8
CPU-time (s)43.3622.4134.6224.8426.74
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Wang, J.; Xia, Q.; Xia, B. Fast Image Restoration Method Based on the L0, L1, and L2 Gradient Minimization. Mathematics 2022, 10, 3107. https://doi.org/10.3390/math10173107

AMA Style

Wang J, Xia Q, Xia B. Fast Image Restoration Method Based on the L0, L1, and L2 Gradient Minimization. Mathematics. 2022; 10(17):3107. https://doi.org/10.3390/math10173107

Chicago/Turabian Style

Wang, Jin, Qing Xia, and Binhu Xia. 2022. "Fast Image Restoration Method Based on the L0, L1, and L2 Gradient Minimization" Mathematics 10, no. 17: 3107. https://doi.org/10.3390/math10173107

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop