Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Aaron Bobick School of Interactive Computing
CS 4495 Computer Vision Features 1 – Harris and other corners
Corners in A Corners in B
CS 4495 Computer Vision Features 1 Harris and other corners Aaron - - PowerPoint PPT Presentation
Features 1: Harris CS 4495 Computer Vision A. Bobick and other corners CS 4495 Computer Vision Features 1 Harris and other corners Aaron Bobick School of Interactive Computing Corners in A Corners in B Features 1: Harris CS 4495
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Corners in A Corners in B
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Matlab but if you’re linear algebra is rusty it can take a while to figure out. You have been warned…
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
to another. Allows computation of how camera moved -> depth -> moving objects
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
and photometric transformations
clutter and occlusion
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
C.Harris and M.Stephens. "A Combined Corner and Edge Detector.“ Proceedings of the 4th Alvey Vision Conference: pages 147—151, 1988
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Proceedings of the 4th Alvey Vision Conference: pages 147—151, 1988
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Source: A. Efros
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
2 ,
x y
Intensity Shifted intensity Window function
Window function w(x,y) = Gaussian 1 in window, 0 outside
Source: R. Szeliski
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
2 ,
x y
E(0,0) E(3,2)
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
2 ,
x y
u uu uv v uv vv
2 2 2
(0) 1 (0) · ) 2 ( (0 · ) dF F x F x d F x dx dx δ δ δ ≈ + +
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
vv uv uv uu v u
2 ,
x y
) , ( ) , ( ) , ( ) , ( 2 ) , ( ) , ( ) , ( 2 ) , ( ) , ( ) , ( ) , ( ) , ( 2 ) , ( ) , ( ) , ( 2 ) , ( ) , ( ) , ( ) , ( ) , ( 2 ) , (
, , , , ,
v y u x I y x I v y u x I y x w v y u x I v y u x I y x w v u E v y u x I y x I v y u x I y x w v y u x I v y u x I y x w v u E v y u x I y x I v y u x I y x w v u E
xy y x x y y x uv xx y x x x y x uu x y x u
+ + − + + + + + + + = + + − + + + + + + + = + + − + + =
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
vv uv uv uu v u
2 ,
x y
) , ( ) , ( ) , ( ) , ( 2 ) , ( ) , ( ) , ( 2 ) , ( ) , ( ) , ( ) , ( ) , ( 2 ) , ( ) , ( ) , ( 2 ) , ( ) , ( ) , ( ) , ( ) , ( 2 ) , (
, , , , ,
v y u x I y x I v y u x I y x w v y u x I v y u x I y x w v u E v y u x I y x I v y u x I y x w v y u x I v y u x I y x w v u E v y u x I y x I v y u x I y x w v u E
xy y x x y y x uv xx y x x x y x uu x y x u
+ + − + + + + + + + = + + − + + + + + + + = + + − + + =
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
vv uv uv uu v u
2 ,
x y
) , ( ) , ( ) , ( ) , ( 2 ) , ( ) , ( ) , ( 2 ) , ( ) , ( ) , ( ) , ( ) , ( 2 ) , ( ) , ( ) , ( 2 ) , ( ) , ( ) , ( ) , ( ) , ( 2 ) , (
, , , , ,
v y u x I y x I v y u x I y x w v y u x I v y u x I y x w v u E v y u x I y x I v y u x I y x w v y u x I v y u x I y x w v u E v y u x I y x I v y u x I y x w v u E
xy y x x y y x uv xx y x x x y x uu x y x u
+ + − + + + + + + + = + + − + + + + + + + = + + − + + =
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
vv uv uv uu v u
) , ( ) , ( ) , ( ) , ( 2 ) , ( ) , ( ) , ( 2 ) , ( ) , ( ) , ( ) , ( ) , ( 2 ) , ( ) , ( ) , ( 2 ) , ( ) , ( ) , ( ) , ( ) , ( 2 ) , (
, , , , ,
v y u x I y x I v y u x I y x w v y u x I v y u x I y x w v u E v y u x I y x I v y u x I y x w v y u x I v y u x I y x w v u E v y u x I y x I v y u x I y x w v u E
xy y x x y y x uv xx y x x x y x uu x y x u
+ + − + + + + + + + = + + − + + + + + + + = + + − + + =
2 ,
x y
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
vv uv uv uu v u
) , ( ) , ( ) , ( ) , ( 2 ) , ( ) , ( ) , ( 2 ) , ( ) , ( ) , ( ) , ( ) , ( 2 ) , ( ) , ( ) , ( 2 ) , ( ) , ( ) , ( ) , ( ) , ( 2 ) , (
, , , , ,
v y u x I y x I v y u x I y x w v y u x I v y u x I y x w v u E v y u x I y x I v y u x I y x w v y u x I v y u x I y x w v u E v y u x I y x I v y u x I y x w v u E
xy y x x y y x uv xx y x x x y x uu x y x u
+ + − + + + + + + + = + + − + + + + + + + = + + − + + =
2 ,
x y
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
2 ,
x y
) , ( ) , ( ) , ( 2 ) , ( ) , ( ) , ( ) , ( 2 ) , ( ) , ( ) , ( ) , ( 2 ) , ( ) , ( ) , ( ) , (
, , ,
y x I y x I y x w E y x I y x I y x w E y x I y x I y x w E E E E
y x y x uv y y y x vv x x y x uu v u
= = = = = =
vv uv uv uu v u
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
2 ,
x y
≈
v u y x I y x w y x I y x I y x w y x I y x I y x w y x I y x w v u v u E
y x y y x y x y x y x y x x , 2 , , , 2
) , ( ) , ( ) , ( ) , ( ) , ( ) , ( ) , ( ) , ( ) , ( ) , ( ] [ ) , (
) , ( ) , ( ) , ( 2 ) , ( ) , ( ) , ( ) , ( 2 ) , ( ) , ( ) , ( ) , ( 2 ) , ( ) , ( ) , ( ) , (
, , ,
y x I y x I y x w E y x I y x I y x w E y x I y x I y x w E E E E
y x y x uv y y y x vv x x y x uu v u
= = = = = =
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
2 2 ,
x x y x y x y y
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
y x y y x y x x
, 2 2
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
2 2 2 2
x x y y
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
2 1 , 2 2
y x y y x y x x
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
2 1 , 2 2
y x y y x y x x
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
− 2 1 1
direction of the slowest change direction of the fastest change
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
λ1 ~ λ2;
directions
in all directions
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
2 2 1 2 1 2
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
– small λ1, small λ2
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
– large λ1, small λ2
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
– large λ1, large λ2
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
1.
2.
3.
4.
5.
C.Harris and M.Stephens. "A Combined Corner and Edge Detector.“ Proceedings of the 4th Alvey Vision Conference: pages 147—151, 1988.
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
1 1
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Ellipse rotates but its shape (i.e. eigenvalues) remains the same
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
C.Schmid et.al. “Evaluation of Interest Point Detectors”. IJCV 2000
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
threshold
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
All points will be classified as edges
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
# correspondences # possible correspondences C.Schmid et.al. “Evaluation of Interest Point Detectors”. IJCV 2000
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Example: average intensity. For corresponding regions (even of different sizes) it will be the same. scale = 1/2
region size Image 1
region size Image 2
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
scale = 1/2
region size Image 1
region size Image 2
Observation: region size, for which the maximum is
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
region size
bad
region size
bad
region size
Good !
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
1 K.Mikolajczyk, C.Schmid. “Indexing Based on Scale Invariant Interest Points”. ICCV 2001 2 D.Lowe. “Distinctive Image Features from Scale-Invariant Keypoints”. IJCV 2004
x y
x y
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
K.Mikolajczyk, C.Schmid. “Indexing Based on Scale Invariant Interest Points”. ICCV 2001
Repeatability rate:
# correspondences # possible correspondences
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
1. Harris-Laplacian [Mikolajczyk, Schmid]: maximize Laplacian over scale, Harris’ measure of corner response over the image 2. SIFT [Lowe]: maximize Difference of Gaussians over scale and space
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick
Features 1: Harris and other corners CS 4495 Computer Vision – A. Bobick