Image alignment
CS5760: Computer Vision
Reading
Announcements
Computing transformations
Computing transformations
?
Simple case: translations
How do we solve for ?
Simple case: translations
Mean displacement =
Displacement of match i =
Another view
Another view
Least squares formulation
Least squares formulation
Least squares formulation
2n x 2
2 x 1
2n x 1
Least squares
Questions?
Least squares: linear regression
y = mx + b
(yi, xi)
Linear regression
residual error
Linear regression
Affine transformations
Affine transformations
Affine transformations
2n x 6
6 x 1
2n x 1
Homographies
To unwarp (rectify) an image
p
p’
Minimum number of matches to compute homography = 4
Solving for homographies
Not linear!
Multiplying each equation by the denominator of the RHS:
Solving for homographies
Solving for homographies
Defines a least squares problem:
2n × 9
9
2n
Recap: Two Common Optimization Problems
Problem statement
Solution
Problem statement
Solution
(matlab)
Computing transformations
Questions?
Image alignment algorithm
Given images A and B
What could go wrong?
Outliers
outliers
inliers