Professional Documents
Culture Documents
Edge Detection
• Geometric events
– surface orientation (boundary) discontinuities
– depth discontinuities
– color and texture discontinuities
Second derivative
Zero crossing
1 if R( x, y ) T
g(x, y) =
0 otherwise
Point
Example 10.1
Manipal Institute of Technology, Manipal, India
− 13 −
Line Detection
Example 10.2
Manipal Institute of Technology, Manipal, India
− 14 −
Line Detection
Detection of +45
line in an image
Example 10.3
Manipal Institute of Technology, Manipal, India
− 15 −
Edge Models
Or dark to light
Increasing noise
– Even with very low noise, 1st
derivative is useless at this noise
level
– Second derivative is useless for even
less noise
Example 10.4
Manipal Institute of Technology, Manipal, India
− 20 −
Edge Detection: Fundamental Steps
(1) Smoothing: suppress as much noise as possible, without destroying true
edges.
sub-pixel resolution might be required for some applications to estimate the location of an edge to
better than the spacing between pixels.
𝟏
𝟐 𝟐 𝟐
𝛛𝒇 𝛛𝒇
𝜵𝒇 = +
𝛛𝒙 𝛛𝒚
Manipal Institute of Technology, Manipal, India
− 24 −
Edge Detector: Example
Source: J Hays
Manipal Institute of Technology, Manipal, India
− 32 −
Edge Detector: Sobel Edge Detection Example
Source: J Hays
Manipal Institute of Technology, Manipal, India
− 33 −
Edge Detector: Properties of an Edge Detector
Source: K Grauman
Manipal Institute of Technology, Manipal, India
− 34 −
Advanced Edge Detection Technique:
• Marr-Hildreth edge detector (self learning)
• The Canny edge detector
(and direction)
(and direction)
Original image
Non-maximum suppression
finds peaks in the image gradient
Edge map
Canny Edges
Source: Prem Kalra, R Urtasun, S Fidler
• OpenCV Python
• cv2.canny()
• https://www.geeksforgeeks.org/image-processing-in-
python-scaling-rotating-shifting-and-edge-detection/