lecture2s
lecture2s
Lecture 2:
d
I
dx
I
d
I
dy
2 2
d d I
I dy
dx
Threshold100 Computer Vision CS 477 7
Laplacian
Some times it is desired to construct derivative
operators, which are isotropic (rotation invariant
This can be accomplished by the Laplacian of the 2-D
function.
The Laplacian of a 2-D function f(x,y) is given by:
Laplacian Masks
Spatial Gaussian
smoothing function Laplacian Mask
T
S Sy T
S S
x
y
S
x
S G * I
G * I
T
G G
G
x y
G
G
T
S * I
y * I
x
Sx
Sy
S S 2 S
2
x
y
I
S Threshold
25
Computer Vision CS 477 22
Canny Edge Detector
Non-Maximum Suppression
Purpose:
To mark the maximums along normal to the edge direction
Connecting these maximum to give a single edge
There are then two algorithmic issues:
at which point is the maximum,
where is the next one?
Computer Vision CS 477 23
Canny Edge Detector
Non-Maximum Suppression
M
S Sx 2 Sy
2
M Threshold 25
Computer Vision CS 477 27
Hysteresis Thresholding
The output of the non-maximum suppressed image are edges but
since they are thresholded with single value there may be
disconnected edges.
To overcome this problem Hysterisis thresholding is used.
Steps:
If the gradient at a pixel is above ‘High’, declare it an
‘edge pixel’
If the gradient at a pixel is below ‘Low’, declare it a ‘non-edge-
pixel’
If the gradient at a pixel is between ‘Low’ and ‘High’ then declare
it an ‘edge pixel’ if and only if it is connected to an ‘edge pixel’
directly or via pixels between ‘Low’ and ‘ High’
M M Threshold
25
High 35
Low 15
Computer Vision CS 477 30
Hysteresis Thresholding (Example)
no chance to match!
We need a repeatable
detector
Computer Vision CS 477 37
Matching with Features
Problem 2:
– For each point correctly recognize the corresponding one
By unique
intensity/color
structure of
neighborhood
By geometry or
Image Image
topology of
1 2
neighborhood Vectors show how
intensity
neighborhoods
moved: similar
vectors are colored
the same