Документ взят из кэша поисковой машины. Адрес оригинального документа : http://imaging.cs.msu.ru/pub/2015.OGRW.Krylov_Nasonova_Nasonov.Warping.en.pdf
Дата изменения: Fri Oct 3 19:48:14 2014
Дата индексирования: Sat Apr 9 23:49:27 2016
Кодировка:
Image warping as an image enhancement post-processing tool
Andrey Krylov, Alexandra Nasonova, Andrey Nasonov


Abstract A method to improve the results of image enhancement is proposed. The method is based on pixel grid warping, the main idea is moving pixels in the direction of the nearest image edges. Warping allows to make edges sharper while keeping textured areas almost intact. Experimental applications of the proposed method for image enhancement algorithms show the improvement of image quality.

1

Intro duction

There are some fairly powerful techniques for image deblurring [1], [2], [3]. The typical problem of image deblurring methods is finding optimal parameters for a compromise between smooth result with blurry edges and sharp result with artifacts like ringing or noise amplification. In this work we present a new post-processing algorithm for image deblurring with enhancement of edge sharpness. We localize the area of interest to the neighborhood of the edges. The idea is to transform the neighborhood of the blurred edge so that the neighboring pixels move closer to the edge, and then resample the image from the warped grid to the original uniform grid. The warping approach for image enhancement was introduced in [4]. The warping of the grid in this work is performed according to the solution of a differential equation derived from the warping process constraints. The solution of the equation is used to move the edge neighborhood closer to the edge, and the areas between edges are stretched. The method has several parameters, and the choice of optimal values for the best result is not easy. Due to the global nature of the method the resulting shapes of the edges are often distorted. In [5] the warping map is computed directly using the values of left and right derivatives. In both methods [4] and [5] the pixel shifts are proportional to the gradient values. It results in oversharpening of already sharp and high contrast edges and insufficient sharpening of blurry and low contrast edges. Both methods also introduce small local changes in the direction of edges and produce aliasing effect due to calculation of horizontal and vertical warping components separately.

2

Warping technique

In this section we describe the idea of a single edge enhancement using a pixel grid transformation. The profile of a blurred edge is more gradual compared to a sharp edge profile. So in order to make the edge sharper its transient width should be decreased (see Fig. 1).

2.1

Warping of a one-dimensional signal

The idea of one-dimensional edge sharpening is based on the assumption that the edge can be approximated by a step-edge function H (x) smoothed with a Gaussian filter G with a standard deviation [6]: E (x) = [H G ](x), where H (x) = 1, x 0, 0, x < 0, (1)

One-dimensional grid warping (2) is performed according to the following equation: x - x = AG (x), ~ ~


(2)

A. Krylov, A. Nasonova and A. Nasonov are with the Faculty of Computational Mathematics and Cybernetics, Lomonosov Moscow State University, Moscow, Russia, e-mail: kryl@cs.msu.ru, nasonova@cs.msu.ru, nasonov@cs.msu.ru. The work was supp orted by Russian Science Foundation grant 14-11-00308.

1


a. Prop osed approach: pixels are shifted

b. Typical image enhancement approach pixel values are modified

Figure 1: The idea of edge sharpening where x is the old position of pixel E (x), x is the new position, A > 0 controls the strength of grid warping. ~ This model ensures that the shape of the edge is not distorted and the grid transformation is smooth. To avoid a discontinuity of the solution of the warp equation (2), the strength parameter A should be such 1 1 that A < max G (x) . We use A = 0.99 · max G (x) in order to get a strong sharpening effect.
x x

2.2

Image warping

The idea of the proposed algorithm for one-dimensional signal warping needs to be adopted for application for two-dimensional images. Two variants of the image warping are suggested. 2.2.1 Two-dimensional extension

In the two-dimensional case, the pixels are surrounded by a number of edges. Choosing the right direction of pixel warping requires additional analysis. The simplest algorithm is finding the nearest edge for every pixel and apply the one-dimensional algorithm using that edge. It consists of the following steps: 1. Estimate the blur level (the average standard deviation of Gaussian filter) for the edges. 2. For all pixels in the neighborhood of the edge compute the distance d to the nearest edge point. 3. Compute pixels' displacements (see Fig. 2) using equation (2) with x d. 4. Interpolate the image from the warped grid to the old uniform grid.

The thick line represents the exact edge lo cation, white circles represent edge pixels, black circles represent pixels from the edge neighborho od

Figure 2: Displacements for two-dimensional grid warping The edge map at the input of the algorithm has a great influence on the result of grid warping as only detected edges will be sharpened. In our work we use the result of Canny edge detection [7] as the input of the algorithm. The result of image warping is highly dependent on the input edges. The parameters of the Canny method ( and high threshold Thigh ) are chosen individually for each image. 2.2.2 Poisson warping

To take into account several edges simultaneously to avoid possible discontinuities between edges, we propose a 2D image warping algorithm which computes the displacement field directly as a 2D vector field d(x, y ) with some obvious constraints (see Fig. 2). 1) The shapes of the edges cannot be warped, so d(xe , ye ) = 0 for each edge point (xe , ye ). 2) Also, there cannot be any turbulence: rot d = 0. Since rot u 0, the displacement field is assumed to be gradient of some scalar function u(x, y ): d(x, y ) = u(x, y ). 2


3) The edge neighborhood points situated farther from the edge cannot move closer to the edge than the neighborhood points situated nearer to the edge: div d - 1. Since div , where is a Laplacian, the warping problem can be posed as a Dirichlet problem for the Poisson equation in the area of the image: u = p(x, y ) - 1, , u(x, y ) = 0 at image borders p(xn )G (xt )|g (x, y )| where p(x0 , y0 ) =
(x,y )E (x0 ,y0 )

|g (x, y )|
(x,y )E (x0 ,y0 )

(3)

The second constraint here is the boundary condition: the displacements at image borders should be equal to zero; p(x, y ) is the proximity function that describes the distance between adjacent pixels after image warping; E (x0 , y0 ) is the set of edge points in the neighborhood of (x0 , y0 ); the values xn and xt are pro jections of the vector (x0 - x, y0 - y ) on the edge gradient vector g (x, y ) and on the tangent to the edge respectively; p(xn ) = 1 - AG (x); G (xt ) is the weighting function with standard deviation equal to the edge's blur . We solve the equation (3) by Gauss-Zeidel method.

3

Results and exp eriments

We applied the image warping as a post-processing algorithm for image deblurring and TV image enhancement algorithms. The proposed method was tested on 29 images from LIVE database [8]. The images were blurred with Gaussian kernel with random radius in the range [1, 6], then Gaussian white noise with random standard deviation in the range [0, 10] was added. After that we applied existing deblurring algorithms followed by image warping using known blur level. Table 1 represents the result. Preliminary experiments with automatic estimation of the unknown edge width [9] also show the enhancement of deblurring methods. The Poisson warping shows a bit better results than 2D extension of 1D warping. It produces smoother edges but is about 10 times more computationally complex. The example of the proposed Poisson warping is shown on Fig. 3. It can be seen that the edges become better and the overall quality is improved. Nevertheless, small SSIM degradation regions exist. They correspond to the initially blurred regions of the image. Of course, an unwanted sharpening effect for the blurred areas of the original image can appear but it is a rare case.

Reference image

Wiener metho d [10], PSNR=27.05

Wiener + warping, PSNR=27.21

SSIM difference after image warping for Wiener method

Degraded image, PSNR=25.99

TVMM [2], PSNR=28.66

TVMM + warping, PSNR=28.72

SSIM difference after image

Figure 3: Poisson warping algorithm example. Green areas show improvement of SSIM, red -- degradation. In [12] was shown that the proposed warping approach is a good post-processing tool in image ringing suppression and resampling.

3


Method Blurred and noisy images Unsharp masking TV regularization Low-frequency TV reg. [11] TVMM [2] Lucy-Richardson [10] Wiener [10] MatLab blind deconvolution Average

No warping 22.84 23.00 23.30 23.08 23.31 23.83 24.00 23.79 23.39

2D ext warping 23.29 23.54 23.35 23.15 23.33 23.94 24.08 23.93 23.58

Poisson warping 23.25 23.36 23.40 23.18 23.48 23.99 24.17 23.96 23.60

Table 1: Average PSNR values for images from LIVE database with added blur and noise

4

Conclusion

The proposed image warping method has a great potential to improve the results of existing image enhancement algorithms. It is especially effective for total variation based image enhancement algorithms because image warping does not significantly change total variation value. It can also be used as a standalone image sharpening algorithm. It is a good choice in the presence of strong noise and complex and non-uniform blur kernel. In comparison to existing sharpening approaches, the proposed method introduces no artifacts like ringing effect nor noise amplification, the resulting images look natural and do not inevitably become piecewise constant.

References
[1] M. Almeida and M. Figueiredo, "Parameter estimation for blind and non-blind deblurring using residual whiteness measures," IEEE Trans. Image Processing, vol. 22, pp. 2751­2763, 2013. [2] J. Oliveira, J. M. Bioucas-Dia, and M. Figueiredo, "Adaptive total variation image deblurring: A ma jorization-minimization approach," Signal Process., vol. 89, pp. 1683­1693, 2009. [3] S. D. Babacan, R. Molina, and A. K. Katsaggelos, "Variational bayesian blind deconvolution using a total variation prior," IEEE Trans. Image Process., vol. 18, pp. 12­26, 2009. [4] N. Arad and C. Gotsman, "Enhancement by image-dependent warping," IEEE Trans. Image Proc., vol. 8, pp. 1063­1074, 1999. [5] J. Prades-Nebot et al., "Image enhancement using warping technique," IEEE Electronics Letters, vol. 39, pp. 32­33, 2003. [6] A. A. Chernomorets and A. V. Nasonov, "Deblurring in fundus images," in 22-th Int. Conf. GraphiCon'2012, Moscow, Russia, 2012, pp. 76­79. [7] J. Canny, "A computational approach to edge detection," IEEE Trans. Pattern Analysis and Machine Intel ligence, vol. 8, pp. 679­698, 1986. [8] H. Sheikh, M. Sabir, and A. Bovik, "A statistical evaluation of recent full reference image quality assessment algorithms," IEEE Transactions on Image Processing, vol. 15, no. 11, pp. 3440­3451, 2006. [9] A. A. Nasonova and A. S. Krylov, "Determination of image edge width by unsharp masking," Computational Mathematics and Model ling, vol. 25, pp. 72­78, 2014. [10] J. G. Nagy, K. Palmer, and L. Perrone, "Iterative methods for image deblurring: A matlab ob ject-oriented approach," Numerical Algorithms, vol. 36, no. 1, pp. 73­93, 2004. [11] A. S. Krylov and A. V. Nasonov, "Adaptive image deblurring with ringing control," Fifth International Conference on Image and Graphics (ICIG '09), pp. 72­75, 2009. [12] A. V. Nasonov and A. S. Krylov, "Grid warping in total variation image enhancement methods," in International Conference on Image Processing (ICIP2014) (in print), 2014.

4