Keywords

1 Introduction

In the field of image processing, image denoising technology has been the focus of the study. In recent years, the image denoising methods based on partial differential equation had made great breakthrough. In 1990, Perona and Malik proposed the image denoising method based on anisotropic diffusion, called PM model [1]. The model used Laplace operator instead of the traditional nonlinear operator. Though it had achieved good denoising effect, there were serious step effect problems. In order to remedy the defects of the PM model, You and Kaveh proposed a four order partial differential equation, named Y-K model. But the Y-K model had brought the new “dot effect” problems [2]. And the partial differential equation of higher order increases the computational complexity greatly. In 1992, Rudin, Osher and Fatemi proposed the image denoising methods of total variation, called TV model [3]. The TV model was a functional minimization problem substantially. It can control the image to diffusion in the gradient direction orthogonal. The TV model made a qualitative leap comparised with the PM model and the Y-K model. Although the TV model showed strong advantage in the image denoising, it also appeared serious staircase effect problems in the smooth area.

2 Traditional TV Model

Traditional TV (Total Variation) model was proposed by Rudin, Osher and Fatemi. It was also known as the ROF model. And it was a image denoising model based on partial differential equation [4]. The equation is as follows:

$$ E_{TV} = \int\limits_{\varOmega } {\left( {\left| {\nabla u} \right| + \frac{1}{2}\lambda \left( {u - u_{0} } \right)^{2} } \right)} dxdy $$
(1)

This equation can be further expanded into the form of the following:

$$ \frac{\partial u}{\partial t} = \frac{1}{{\sqrt {\left( {u_{x} } \right)^{2} + \left( {u_{y} } \right)^{2} } }}\frac{{u_{xx} \left( {u_{y} } \right)^{2} - 2u_{x} u_{y} u_{xy} + u_{yy} \left( {u_{x} } \right)^{2} }}{{\left( {u_{x} } \right)^{2} + \left( {u_{y} } \right)^{2} }} - \lambda \left( {u - u_{0} } \right) $$
(2)

\( \frac{{u_{xx} u_{y}^{2} - 2u_{x} u_{y} u_{xy} + u_{yy} u_{x}^{2} }}{{u_{x}^{2} + u_{y}^{2} }} \) is the second order derivative along the tangent direction of the isophotes of image. \( u(x,y) \) and \( {1 \mathord{\left/ {\vphantom {1 {\sqrt {u_{x}^{2} + u_{y}^{2} } }}} \right. \kern-0pt} {\sqrt {u_{x}^{2} + u_{y}^{2} } }} \) is the diffusion coefficient. It can be found by the above formula that the TV model can only diffuse in the gradient orthogonal direction. It will cause the serious staircase effect in image smooth regions inevitably.

3 ATV (Adaptive Total Variation) Model

In order to overcome the staircase effect problem of the traditional TV model, two detection operator which is created from the steerable filter are proposed.

3.1 Steerable Filter

Oriented filters are useful in many early vision and image processing tasks, such as texture analysis, edge detection, image data compression, motion analysis, and image enhancement [58]. Here the steerable filters are designed in quartering pairs to allow adaptive control over phase as well as orientation. There are four applications below: Orientation and phase analysis, angularly adaptive filtering, edge detection and shape from shading [9]. Edge detection is the key factor for image restoration. Here, the steerable energy \( E\left( \theta \right) \) can detect edges effectively by using the nth derivative of a Gaussian and its Hilbert transform [10].

$$ E_{n} \left( \theta \right) = \left[ {G_{n}^{\theta } } \right]^{2} + \left[ {H_{n}^{\theta } } \right]^{2} $$
(3)

In this article, n = 2, \( 0^{ \circ } \le \theta \le 3 6 0^{ \circ } \) and G is a Gaussian function.

Thus, a steerable quartering pair based on the frequency response of the second derivative of the Gaussian \( G_{2} \) and its Hilbret \( H_{2} \) is designed as the following functions:

$$ \begin{aligned} G_{2}^{\theta } (x,y) & = k_{1} (\theta )*G_{2}^{0} (x,y) + k_{2} (\theta )*G_{2}^{{\frac{\pi }{3}}} (x,y) + k_{3} (\theta )*G_{2}^{{\frac{2*\pi }{3}}} (x,y) \\ H_{2}^{\theta } (x,y) & = l_{1} (\theta )*H_{2}^{0} (x,y) + l_{2} (\theta )*H_{2}^{{\frac{\pi }{4}}} (x,y) + l_{3} (\theta )*H_{2}^{{\frac{\pi }{2}}} (x,y) + l_{4} (\theta )*H_{2}^{{\frac{3*\pi }{4}}} (x,y) \\ \end{aligned} $$
(4)

where \( k_{j} (\theta ) \), \( l_{j} (\theta ) \) are the interpolation functions of \( G_{2} \) and \( H_{2} \), they are

$$ \begin{aligned} k_{j} (\theta ) & = \frac{1}{3}*\left[ {1 + 2*\cos \left( {2*\left( {\theta - \theta_{j} } \right)} \right)} \right] \\ l_{j} (\theta ) & = \frac{1}{4}*\left[ {2*\cos \left( {2*\left( {\theta - \theta_{j} } \right)} \right) + 2*\cos \left( {3*\left( {\theta - \theta_{j} } \right)} \right)} \right] \\ \end{aligned} $$
(5)

Image information features of each direction can be extracted based on principle steerable filter. Figure 1 is the result that the simple geometry are dealed after fixed direction filtering and steerable filtering. Among them, (a) is as the original image, (b) is for Canny operator, (c) is for 0° fixed direction filtering, (d) is for 90° fixed direction filtering, and the final picture (e) is filtered through a steerable filter. Although figure (b) after Canny operator treatment can identify image edge information greatly after, the square has appeared double edge. It makes a big deviation in the details. Obviously, the details and features will always be lost in a certain single direction, which is not beneficial to the analysis of the image, such as Figure (c) and (d). In contrast, (e) has almost no loss of detail after the steerable filter is. It shows all the edge features of the original image excellently. It can be seen from this experiment that the steerable filter has great advantages in edge detection.

Fig. 1
figure 1

Comparison chart for Different algorithms. a Original image, b Canny operator, c 0° fixed direction filtering, d 90° fixed direction filtering, e steerable filter

3.2 Detection Operator

The spectral power \( E\left( \theta \right) \) of the steerable filter is the orientation strength along a particular direction by the squared output of a quartering pair of band pass filters steered. The responses of the same pixel are different by different phases. Here the max value by the phase is needed which is the main direction. As the maximum, where

$$ m_{{\left( {x,y} \right)}} = \hbox{max} \left( {{\text{E}}_{{\left( {x,y} \right)}} \left( \theta \right)} \right),\quad 0^{ \circ } \le \theta \le 3 6 0^{ \circ } $$
(6)

Based on the new indicator m from the steerable filter, we present a natural way to improve the TV model. The STV model is presented as follows:

$$ AE_{TV} = \int\limits_{\Omega } {\left( {\left| {\nabla u} \right|^{{q(\bar{m})}} + \frac{1}{2}\lambda (\bar{m})\left( {u - u_{0} } \right)^{2} } \right)} dxdy $$
(7)

where the functions \( q(\bar{m}) \) and \( \lambda (\bar{m}) \) are as follows [11]:

$$ q(\bar{m}) = 1 + \sqrt {\bar{m}} ,\quad \lambda (\bar{m}) = k*\sqrt {\bar{m}} ,\quad \bar{m} \in \left( {0,1} \right],\;k > 0 $$
(8)

In this way, the TV model can achieve adaptive by changing their coefficient. And when \( \bar{m} \in \left( {0,1} \right] \), \( q(\bar{m}) \in [1,2) \), \( \lambda (\bar{m}) \in (0,k] \) when \( q(\bar{m}) \to 1 \), \( \lambda (\bar{m}) \to k \). This model is close to TV model; when \( q(\bar{m}) \to 2 \), \( \lambda (\bar{m}) \to 0 \). At this time, the model is close to the least squares method.

Thus, it can achieve good denoising ability and edge preserving by using the TV model in image edge region. And it can effectively solves the problem of the step effect by using the least squares method in the smooth region.

4 Comparative Analysis and Experimental Results

There are a large number of “false edge” in the ramp images. This kind of image will have a relatively serious staircase effect in the process of denoising [12]. Therefore, the ramp image is a typical example for staircase effect testing. Here select a typical ramp images as the original image. Figure 2 is a comparison diagram of using two algorithms for image denoising.

Fig. 2
figure 2

The comparison diagram of using two algorithms for image denoising. a Original image, b Noisy image (\( \sigma = 20 \)), c TV model, d ATV model

The figure (a) is the original image, figure (b) is Noisy image after adding Gauss white noise, figure (c) is the denoised image for TV model diagram. It is easy to see that the image has been very clear. But there are obvious step effect in the image. figure (d) is the denoised image for adaptive TV model. It not only avoid the staircase effect partly, but also has strong denoising ability. It is one of the most ideal method.

PSNR (Peak Signal to Noise Ratio, PSNR) is the most popular objective evaluation method. It is widely used for measuring image quality. The bigger of the PSNR value, the better of the image quality, it mean less distortion. MSSIM (mean structure similarity, MSSIM) is also an evaluation method of image quality. It can evaluate the content similarity degree of two images. Table 1 gives the MSSIM and PSNR value for Fig. 1. It is not difficult to find that the MSSIM and PSNR for ATV model are higher than the traditional TV model.

Table 1 MSSIM and PSNR for TV model and ATV model

The noise has little effect to image when the Gauss white noise \( \sigma = 20 \). Table 2 gives a comparison of MSSIM and PSNR for TV model and ATV when the image is in different noise environment. Experiments show that, although in strong noise environment, the adaptive total variation model not only has great image denoising ability, but also deal step effect excellently.

Table 2 MSSIM and PSNR of different noise value for TV model and ATV model

5 Conclusion

The results show that the proposed new method achieves a graet balance in denoising ability and avoiding the staircase effect after a number of experiments. However, it has some limitations in selecting parameters for some partial differential equations in this paper. Therefore, it is very necessary to conduct more experiments and select more accurate parameter values in the follow-up study.