0 1 1 0
1 0 0 1
g1 g2
Common Operators (cont’d)
2. Prewitt operator 3. Sobel operator
1 0 1 1 0 1
1 0 1 2 0 2
vertical
1 0 1 1 0 1
1 1 1 1 2 1
horizontal 0 0 0 0 0 0
1 1 1 1 2 1
Examples
x y
(Laplacian operator)
2 f
0 local extreme in f’
x 2
f f’ f’’
(m 2 n 2 ) m2 n2
h(m, n) c[1 ] exp( )
2
2 2
Better than Laplacian alone but still sensitive due to zero crossing
Robust Laplacian-based Edge Detector
estimate 2
local variance
Non-maximum suppression
finds peaks in the image gradient
Edge map
Canny Edge Detector Example
f ( x, y; s ) f ( x, y;0) g ( x, y; s )
coarse-scale fine-scale Gaussian kernel
image image with width of s
1 x2 y2
g ( x, y; s ) exp( )
2s 2s
Importance of Scale
Scale-Space Edge Detection Examples
fine coarse