CSE 185 Introduction To Computer Vision: Feature Matching
CSE 185 Introduction To Computer Vision: Feature Matching
• Reading: Chapter 4
Feature matching
• Correspondence: matching points, patches,
edges, or regions across images
≈
Keypoint matching 1. Find a set of
distinctive key-
points
A1 B3 2. Define a region
around each
keypoint
A2 A3 3. Extract and
B2 normalize the
B1 region content
4. Compute a local
fA fB descriptor from the
normalized region
5. Match local
descriptors
d ( f A, fB ) T
Review: Interest points
• Why choose?
– Get more points with more detectors
It shows the stability of detection for keypoint location, orientation, and final matching to a
database as a function of affine distortion. The degree of affine distortion is expressed
in terms of the equivalent viewpoint rotation in depth for a planar surface.
Matching features
Image Stitching 19
RANSAC for Homography
RANSAC for Homography
RANSAC for Homography
RANSAC for Homography
Probabilistic model for verification
Finding the panoramas
Finding the panoramas
Finding connected
components
Finding the panoramas
Results
Fitting and alignment
Fitting: find the parameters of a model that
best fit the data
dE
2 A T Ap 2 A T y 0
dp Matlab: p = A \ y;
y p A A
1
A Ap A
T T T
AT y
Least squares (global) optimization
Good
• Clearly specified objective
• Optimization is easy
Bad
• May not be what you want to optimize
• Sensitive to outliers
– Bad matches, extra points
• Doesn’t allow you to get multiple good fits
– Detecting multiple objects, lines, etc.
Hypothesize and test
1. Propose parameters
– Try all possible
– Each point votes for all consistent parameters
– Repeatedly sample enough points to solve for parameters
x b
Hough space
y=mx+b m = -(1/x)b + y/x
Hough transform
y m
x b
y m
3 5 3 3 2 2
3 7 11 10 4 3
2 3 1 4 5 2
2 1 0 1 3 3
x b
Hough transform
Issue : parameter space [m,b] is unbounded…
Use a polar representation for the parameter space
Duality: Each
y point has a dual
curve in the
parameter space
x
Hough space
cos r r x0 cos y0 sin
y ( )x ( )
sin sin
Hough transform: Experiments
features votes
Hough transform
Hough transform: Experiments
Noisy data
features votes
features votes