Lecture2 Edges
Lecture2 Edges
Edge Detection
Origin of Edges
depth discontinuity
illumination discontinuity
2
3
Profiles of image intensity edges
4
5
6
7
8
9
10
Image gradient
• The gradient of an image f(x,y):
T
h
e
p
i
c
t
u
r
e
c
a
n
'
t
b
e
d
i
s
p
l
a
y
e
d
.
11
The discrete gradient
• How can we differentiate a digital image f[x,y]?
• Option 1: reconstruct a continuous image, then take gradient
• Option 2: take discrete derivative (finite difference)
12
13
14
15
16
17
18
Some Gradient Maks
Possible filters to find gradients along vertical and horizontal directions:
19
Image gradient
20
Effect of noise
21
22
Solution: Smooth first
26
Derivative of Gaussian
27
Derivative of Gaussian
28
An example
Zero Crossings for Edge Detection
• Consider
Laplacian of Gaussian
operator
Laplacian of Gaussian
31
Edge Detection
¶x ¶y
32
Edge Detection
33
Edge Detection
n The Laplacian of a Gaussian (LoG) filter
34
Example
original 35
Example
LoG 36
Difference of Gaussian (DoG) operator
37
Example
38
The Canny edge detector
n original image
39
The Canny edge detector
n thresholding
41
The Canny edge detector
n thinning
(non-maximum suppression) 42
Non-maximum suppression
43
Non-maximum suppression
44
Edge linking: Hysteresis thresholding
45
Edge linking: Hysteresis thresholding
46