1 / 29

Filtering

Basis beeldverwerking (8D040) d r. Andrea Fuster dr . Anna Vilanova Prof.dr.ir . Marcel Breeuwer. Filtering. Contents. Sharpening Spatial Filters 1 st order derivatives 2 nd order derivatives Laplacian Gaussian derivatives Laplacian of Gaussian ( LoG ) Unsharp masking.

bryson
Download Presentation

Filtering

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. Basis beeldverwerking (8D040) dr. Andrea Fusterdr. Anna VilanovaProf.dr.ir. Marcel Breeuwer Filtering

  2. Contents • Sharpening Spatial Filters • 1st order derivatives • 2nd order derivatives • Laplacian • Gaussian derivatives • Laplacian of Gaussian (LoG) • Unsharp masking

  3. Sharpening spatial filters Image derivatives (1st and 2nd order) Define derivatives in terms of differences for the discrete domain How to define such differences?

  4. 1st order derivatives • Some requirements (1st order): • Zero in areas of constant intensity • Nonzero at beginning of intensity step or ramp • Nonzero along ramps

  5. 1st order derivatives

  6. 2nd order derivatives • Requirements (2nd order) • Zero in constant areas • Nonzero at beginning and end of intensity step or ramp • Zero along ramps of constant slope

  7. 2nd order derivatives

  8. Image Derivatives -1 1 1 -2 1 1st order 2nd order

  9. 1st order 2nd order Zero crossing, locating edges

  10. Edges are ramp-like transitions in intensity • 1st order derivative gives thick edges • 2nd order derivative gives double thin edge with zeros in between • 2nd order derivatives enhance fine detail much better

  11. 1st order 2nd order Zero crossing, locating edges

  12. Filters related to first derivatives Recall: Prewitt filter, Sober filter (lecture 2 – 14/05/13)

  13. Laplacian – second derivative Enhances edges Definition

  14. Laplacian Opposite sign for second order derivative Adding diagonal derivation

  15. Laplacian Note: Laplacian filtering results in + and – pixel values Scale for image display - eqs. (2.6-10, 2.6-11) Or: take absolute value or positive values

  16. Line Detector * Positive values Laplacian (figure 10.5 book) scaled Laplacian

  17. Image sharpening - example C=+1 or -1 Enhanced + Laplacian x8 8-connected Laplacian Enhanced + Laplacian x5 Enhanced + Laplacian x6 4-connected Laplacian Better sharpening with 8-connected Laplacian (see figure 3.38 (d)-(e) book)

  18. Filtering in frequency domain • Basic steps: • image f(x,y) • Fourier transform F(u,v) • filter H(u,v) • H(u,v)F(u,v) • inverse Fourier transform • filtered image g(x,y)

  19. Laplacian in the Fourier domain Spatial Fourier domain

  20. Blur first, take derivative later • Smoothing is a good idea to avoid enhancement of noise. Common smoothing kernel is a Gaussian. Scale of blurring

  21. Gaussian Derivative • Taking the derivative after blurring gives image g

  22. Gaussian Derivative • We can build a single kernel for both convolutions Use the associative property of the convolution

  23. Laplacian of Gaussian (LoG) LoG a.k.a. Mexican Hat

  24. LoG applied to building

  25. Sharpening with LoG sharpening with Laplacian sharpening with LoG

  26. Unsharp Masking / Highboost Filtering • Subtraction of unsharp (smoothed) version of image from the original image. • Blur the original image • Subtract the blurred image from the original(results in image called mask) • Add the mask to the original

  27. Let denote the blurred image Obtain the mask Add weighted portion of mask to original image

  28. (see also figure 3.40 book) input blurred unsharp mask u.m. result h.f. result • If • Unsharp masking • If • Highboost filtering

  29. Unsharp masking Simple and often used sharpening method Poor result in the presence of noise – LoG performs better in this case

More Related