menu

CV_3: Image Sharpening.

"CV_3: Image Sharpening."

1. Introduction

  • Sharpending highlights transition in intensity. This technical uses in electronic printing and medical imaging. As we know, smoothing filters make output image could be accomplished in the spatial domain by pixel averaging in a neighborhood, it make the range of edges pixels and around pixels smaller. It that mean derivative at that point decreases. Thus, image differentiation enhances edges, noise and de-emphasizes with slowly varying intensities.

2. Foundation

  • Next, we will discuss about first- and second- derivatives. There are various ways to define them. However, we require some properties in there:

    • First-derivative:

      • Must be zero in areas of constant intensity.
      • Must be non zero at onset of an intensity step or ramp.
      • Must be nonzero along intensity ramps.
    • Second-derivative:

      • Must be zero in areas of constant intensity.
      • Must be nonzero in the onset and end of an intensity step or ramp.
      • Must be zero along intensity ramps.
  • According to defined earlier, we have formula derivative of a 1-dimension function :

    and

 

  • Note: In formula , we use called "look ahead". So we can also use . Both are satisfies all terms we list above.

3. Second derivative for image processing - The Laplacian

  • In previous section, we define derivative for one-dimension function. In there, out object is image, a 2-dimensions function. Therefore, we will show second-derivative formula knows as the name Laplacian:

    with:

    and

  • So we have:

  • Base on , we can create a kernel to compute second-derivative uses for convolution: . In many situation, we can use diagonal derivative or some variant, we may be have , , .

  • Laplacian is a derivative operator, it highlights sharp intensity transitions in image and de-emphasizes region of slowly varying intensities. This tend to produce image that have grayish edge lines and featureless background.

  • If we define kernel with negative center coefficient, then we subtract the Laplacian image from the original. Thus, basic way to use Laplacian for image sharpening is:

    where is the input and sharpened image, respectively. We let if the center Laplacian kernel is negative and in the rest.

  • Ví dụ:

a b
c d
a. Original image
b. Laplacian image
c. Image sharpened using c=-1, kernel (7)
d. Image sharpened using c=-1, kernel (9)