1 / 29

Edge Detection Session 06

Course : COMP7116 – Computer Vision Effective Period : February 2018. Edge Detection Session 06. Learning Objectives. After carefully listening this lecture, students will be able to do the following :

purcell
Download Presentation

Edge Detection Session 06

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. Course : COMP7116 – Computer Vision Effective Period : February 2018 Edge DetectionSession 06

  2. Learning Objectives • After carefully listening this lecture, students will be able to do the following : • Describe the computational principles underlying various application of Computer Vision Systems • Explain the various standard procedures of image preprocessing prior to image analysis

  3. Outline What is Edge Steps in edge detection Edge detection using derivatives Canny and LOG edge detectors

  4. What is edge? Edge is a boundary that is created by the sudden changes (discontinuities) in an image. Edges extract information and used to recognize objects.

  5. Edge Example Edge are caused by a variety of factors

  6. Characterizing Edges An Edge is a place of rapid change in the image intensity function

  7. Effects of noise • Consider a single row or column of the image • Plotting intensity as a function of position gives a signal • Where is the edges?

  8. Effects of noise • Difference filters respond strongly to noise • Image noise results in pixels that look very different from their neighbors • Generally, the larger the noise the stronger the response • What can we do about it?

  9. Solution: Smooth First To find edges, look peaks in

  10. Derivative Theorem of Convolution Differentiation is convolution, and convolution is associative: This saves us one operation:

  11. Derivation of Gaussian Filter

  12. Tradeoff between Smoothing and Localization Smoothed derivate removes noise, but blurs edge. Also find edges at different “scales”.

  13. Designing an Edge Detector • Criteria for a good edge detector: • Good detection: the optimal detector should find all real edges, ignoring noise or other artifacts • Good localization: • The edges detected must be as close as possible to the true edges • The detector must return one point only for each true edge point • Cues of edge detection • Differences in color, intensity, or texture across the boundary • Continuity and closure • High-level knowledge

  14. Canny Edge Detector J. Canny, A Computational Approach To Edge Detection, IEEE Trans. Pattern Analysis and Machine Intelligence, 8:679-714, 1986. This probably the most widely used edge detector in computer vision Theoretical model: step-edges corrupted by additive Gaussian noise Canny has shown that the first derivative of the Gaussian closely approximates the operator that optimizes the product of signal-to-noise ratio and localization

  15. Example

  16. Derivative of Gaussian Filter

  17. Compute Gradients (DoG)

  18. Get Orientation at Each Pixel • Threshold at minimum level • Get orientation Theta = atan2(gy, gx)

  19. Non-Maximum Suppression for Each Orientation • At q, we have a maximum if the value is larger than those both p and at r. Interpolate to get these values.

  20. Sidebar: Interpolation options • Imx2 = imresize(im, 2, interpolation_type) • “nearest” • Copy value from nearest known • Very fast but creates blocky edges • “bilinear” • Weighted average from four nearest known pixels • Fast and reasonable results • “bicubic” (default) • Non-linear smoothing over larger area (4x4) • Slower, visually appealing, may create negative pixel values

  21. Before Non-Max Suppression

  22. AfterNon-Max Suppression

  23. Hysteresis Thresholding Threshold at low/high levels to get weak/strong edge pixels Do connected components, staring from strong edge pixels

  24. Hysteresis Thresholding • Check that maximum value of gradient value is sufficiently large • Drop-outs? Use hysteresis • Use a high threshold to start edge curves and a low threshold to continue them

  25. Final Canny Edges

  26. Canny Edge Detector • Filter image with x, y derivatives of Gaussian • Find magnitude and orientation of gradient • Non-Maximum suppression: • Thin multi-pixel wide “ridges” down to single pixel width • Thresholding and linking (hysteresis): • Define two thresholds: low and high • Use the high threshold to start edge curves and he low threshold to continue them • MATLAB: edge(image, ‘canny’)

  27. Effect of (Gaussian Kernel Spread/Size)

  28. Exercise Jalankan demo deteksibantengdengan edge detection,ekstrasksi contour, image feature dan histogram equalization

  29. References Richard Szeliski. (2011). Computer Vision: Algorithms and applications. 01. Springer. Chapter 4. David Forsyth and Jean Ponce. (2002). Computer Vision: A Modern Approach. 02. Prentice Hall. Chapter 8. https://cs.brown.edu/courses/cs143/lectures/07.pdf

More Related