Notes On The Harris Detector: From Rick Szeliski's Lecture Notes, CSE576, Spring 05
Notes On The Harris Detector: From Rick Szeliski's Lecture Notes, CSE576, Spring 05
Notes On The Harris Detector: From Rick Szeliski's Lecture Notes, CSE576, Spring 05
1
The Basic Idea
• We should easily recognize the point by
looking through a small window
• Shifting a window in any direction should
give a large change in intensity
2
Harris Detector: Mathematics
Change of intensity for the shift [u,v]:
E (u , v) = w( x, y ) [ I ( x + u , y + v) − I ( x, y ) ]
2
x, y
u
E (u , v) ≅ [u, v ] M
v
I x2 IxI y
M= w( x, y )
x, y IxI y I y2
3
Harris Detector: Mathematics
Intensity change in shifting window: eigenvalue analysis
u
E (u , v) ≅ [u, v ] M λ1, λ2 – eigenvalues of M
v
direction of the
fastest change
direction of the
slowest change
Ellipse E(u,v) = const
(λmax)-1/2
(λmin)-1/2
Classification of λ2 “Edge”
image points using λ2 >> λ1 “Corner”
eigenvalues of M: λ1 and λ2 are large,
λ1 ~ λ2 ;
E increases in all
directions
λ1
4
Harris Detector: Mathematics
Measure of corner response:
R = det M − k ( trace M )
2
det M = λ1λ2
trace M = λ1 + λ2
λ2 “Edge” “Corner”
• R depends only on R<0
eigenvalues of M
• R is large for a corner R>0
• R is negative with large
magnitude for an edge
• |R| is small for a flat
region “Flat” “Edge”
|R| small R<0
λ1
5
Harris Detector
• The Algorithm:
– Find points with large corner response
function R (R > threshold)
– Take the points of local maxima of R
6
Harris Detector: Workflow
Compute corner response R
7
Harris Detector: Workflow
Take only the points of local maxima of R
8
Harris Detector: Summary
9
Harris Detector: Some
Properties
• Partial invariance to affine intensity
change
Only derivatives are used => invariance
to intensity shift I → I + b
Intensity scale: I → a I
R R
threshold
10
Harris Detector: Some
Properties
• Quality of Harris detector for different
scale changes
Repeatability rate:
# correspondences
# possible correspondences
• Geometry
– Rotation
– Similarity (rotation + uniform scale)
11
Rotation Invariant Detection
• Harris Corner Detector
12