1 / 33

Lecture 6 Sharpening Filters

Lecture 6 Sharpening Filters. The concept of sharpening filter First and second order derivatives Laplace filter Unsharp mask High boost filter Gradient mask Sharpening image with MatLab. Sharpening Spatial Filters.

vernaw
Download Presentation

Lecture 6 Sharpening Filters

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lecture 6 Sharpening Filters The concept of sharpening filter First and second order derivatives Laplace filter Unsharp mask High boost filter Gradient mask Sharpening image with MatLab

  2. Sharpening Spatial Filters • To highlight fine detail in an image or to enhance detail that has been blurred, either in error or as a natural effect of a particular method of image acquisition. • Blurring vs. Sharpening • Blurring/smooth is done in spatial domain by pixel averaging in a neighbors, it is a process of integration • Sharpening is an inverse process, to find the difference by the neighborhood, done by spatial differentiation.

  3. Derivative operator • The strength of the response of a derivative operator is proportional to the degree of discontinuity of the image at the point at which the operator is applied. • Image differentiation • enhances edges and other discontinuities (noise) • deemphasizes area with slowly varying gray-level values.

  4. Sharpening edge by First and second order derivatives • Intensity function f = • First derivative f’ = • Second-order derivative f’’ = • f- f’’ = f’ f f’’ f-f’’

  5. First and second order difference of 1D • The basic definition of the first-order derivative of a one-dimensional function f(x) is the difference • The second-order derivative of a one-dimensional function f(x) is the difference

  6. Gradient operator (linear operator) Laplacian operator(non-linear) First and Second-order derivative of 2D • when we consider an image function of two variables, f(x, y), at which time we will dealing with partial derivatives along the two spatial axes.

  7. from Discrete form of Laplacian

  8. Result Laplacian mask

  9. Laplacian mask implemented an extension of diagonal neighbors

  10. give the same result, but we have to keep in mind that when combining (add / subtract) a Laplacian-filtered image with another image. Other implementation of Laplacian masks

  11. Effect of Laplacian Operator • as it is a derivative operator, • it highlights gray-level discontinuities in an image • it deemphasizes regions with slowly varying gray levels • tends to produce images that have • grayish edge lines and other discontinuities, all superimposed on a dark, • featureless background.

  12. if the center coefficient of the Laplacian mask is negative if the center coefficient of the Laplacian mask is positive Correct the effect of featureless background • easily by adding the original and Laplacian image. • be careful with the Laplacian filter used

  13. Example • a). image of the North pole of the moon • b). Laplacian-filtered image with • c). Laplacian image scaled for display purposes • d). image enhanced by addition with original image

  14. Mask of Laplacian + addition • to simply the computation, we can create a mask which do both operations, Laplacian Filter and Addition the original image.

  15. Mask of Laplacian + addition

  16. Example

  17. Note + = + =

  18. sharpened image = original image – blurred image Unsharp masking • to subtract a blurred version of an image produces sharpening output image.

  19. Unsharp mask

  20. High-boost filtering • generalized form of Unsharp masking • A  1

  21. High-boost filtering • if we use Laplacian filter to create sharpen image fs(x,y) with addition of original image

  22. A  1 • if A = 1, it becomes “standard” Laplacian sharpening High-boost Masks

  23. Example

  24. commonly approx. the magnitude becomes nonlinear Gradient Operator • first derivatives are implemented using the magnitude of the gradient.

  25. Gradient Mask • simplest approximation, 2x2

  26. Gradient Mask • Roberts cross-gradient operators, 2x2

  27. the weight value 2 is to achieve smoothing by giving more important to the center point Gradient Mask • Sobel operators, 3x3

  28. Example

  29. Example of Combining Spatial Enhancement Methods • want to sharpen the original image and bring out more skeletal detail. • problems: narrow dynamic range of gray level and high noise content makes the image difficult to enhance

  30. Example of Combining Spatial Enhancement Methods • solve : • Laplacian to highlight fine detail • gradient to enhance prominent edges • gray-level transformation to increase the dynamic range of gray levels

More Related