Presentation is loading. Please wait.

Presentation is loading. Please wait.

0 - 1 © 2007 Texas Instruments Inc, Content developed in partnership with Tel-Aviv University From MATLAB ® and Simulink ® to Real Time with TI DSPs Edge.

Similar presentations


Presentation on theme: "0 - 1 © 2007 Texas Instruments Inc, Content developed in partnership with Tel-Aviv University From MATLAB ® and Simulink ® to Real Time with TI DSPs Edge."— Presentation transcript:

1 0 - 1 © 2007 Texas Instruments Inc, Content developed in partnership with Tel-Aviv University From MATLAB ® and Simulink ® to Real Time with TI DSPs Edge Detection

2 Slide 2 © 2007 Texas Instruments Inc, Edge Detection? “The ability to measure gray-level transitions in a meaningful way.” (R.C. Gonzales & R. E. Woods – Digital Image Processing, 2 nd Edition, Prentice-Hall, 2001)

3 Slide 3 © 2007 Texas Instruments Inc, Gray-Level Transition Ideal Ramp

4 Slide 4 © 2007 Texas Instruments Inc, The First Derivative Original First Derivative

5 Slide 5 © 2007 Texas Instruments Inc, Detecting the Edge (1) Original First Derivative TRSH

6 Slide 6 © 2007 Texas Instruments Inc, Detecting the Edge (2) Original First Derivative TRSH

7 Slide 7 © 2007 Texas Instruments Inc, Gradient Operators The gradient of the image I(x,y) at location (x,y), is the vector: The magnitude of the gradient: The direction of the gradient vector:

8 Slide 8 © 2007 Texas Instruments Inc, The Meaning of the Gradient It represents the direction of the strongest variation in intensity The direction of the edge at location (x,y) is perpendicular to the gradient vector at that point VerticalHorizontalGeneric Edge Strength: Edge Direction:

9 Slide 9 © 2007 Texas Instruments Inc, Calculating the Gradient For each pixel the gradient is calculated, based on a 3x3 neighborhood around this pixel. z1z1 z2z2 z3z3 z4z4 z5z5 z6z6 z7z7 z8z8 z9z9

10 Slide 10 © 2007 Texas Instruments Inc, The Sobel Edge Detector -2 000 121 01 -202 01

11 Slide 11 © 2007 Texas Instruments Inc, The Prewitt Edge Detector 000 111 01 01 01

12 Slide 12 © 2007 Texas Instruments Inc, The Roberts Edge Detector 000 00 001 000 00 010 The Roberts Edge Detector is in fact a 2x2 operator

13 Slide 13 © 2007 Texas Instruments Inc, The Canny Method Two Possible Implementations: 1.The image is convolved with a Gaussian filter before gradient evaluation 2.The image is convolved with the gradient of the Gaussian Filter.

14 Slide 14 © 2007 Texas Instruments Inc, The Edge Detection Algorithm The gradient is calculated (using any of the four methods described in the previous slides), for each pixel in the picture. If the absolute value exceeds a threshold, the pixel belongs to an edge. The Canny method uses two thresholds, and enables the detection of two edge types: strong and weak edge. If a pixel's magnitude in the gradient image, exceeds the high threshold, then the pixel corresponds to a strong edge. Any pixel connected to a strong edge and having a magnitude greater than the low threshold corresponds to a weak edge.

15 Slide 15 © 2007 Texas Instruments Inc, The Edge Detection Block The Edge Detection Block supports the four methods described in the pervious slides

16 Slide 16 © 2007 Texas Instruments Inc, Hands-On Simulation Implementation using the DSK6416

17 Slide 17 © 2007 Texas Instruments Inc, Simulation Image File MATLAB ® Display Edge Detection

18 Slide 18 © 2007 Texas Instruments Inc, Edge Detection Simulation

19 Slide 19 © 2007 Texas Instruments Inc, DSK6416 Image File MATLAB Display Edge Detection Script RGB to Grayscale RTDX Edge Detection on Stills Images

20 Slide 20 © 2007 Texas Instruments Inc, Edge Detection Using the DSK6416

21 Slide 21 © 2007 Texas Instruments Inc, Video in Video out DM6437 DVDP Edge Detection Video ScreenCamera Edge Detection on Video

22 Slide 22 © 2007 Texas Instruments Inc, Edge Detection Real Time Model for the DM6437 DVDP


Download ppt "0 - 1 © 2007 Texas Instruments Inc, Content developed in partnership with Tel-Aviv University From MATLAB ® and Simulink ® to Real Time with TI DSPs Edge."

Similar presentations


Ads by Google