Image Alignment / Panorama Stitching - Week 8 Flashcards
What is alignment for features?
Fitting a model to a transformation between pairs of features (matches) in two images
What are the four 2D transformation models?
Euclidean (Translation + rotation)
Similarity (Translation + rotation + scale)
Affine (Translation + rotation + scale + shear)
Projective (Homography)
What makes a transformation T global?
It is the same for any point p
Can be described by just a few numbers (parameters)
With what matrix can linear transformations be represented?
A 2x2 matrix
What are the linear transformations?
Scaling
Rotation
Shear
Mirror
Or any combination of the above
NOT transformation in 2D space
What are the properties of linear transformations?
Origin maps to origin
Lines map to lines
Parallel lines remain parallel
Ratios are preserved
Closed under composition
How is the homogenous image coordinate [x, y, w] converted to cartesian coordinates?
[x, y, w] => (x/w, y/w)
How is 2D translation represented in 3x3 matrices?
[1 0 tx]
[0 1 ty]
[0 0 1]
What is an affine transformation?
Any transformation that can be represented with last row
[0 0 1]
Combinations of linear transformations and translations
What are the properties of affine transformations?
Origin does not necessarily map to origin
Lines maps to lines
Parallel lines remain parallel
Ratios are preserved
Closed under composition
When 3x3 matrix transformations are extended so any value can be changed, what are these types of transformations called?
Plane Projective Transformations - Homographies - Planar Perspective Maps
They map one plane to another through a point
What are the properties of homographies?
- Origin does not necessarily map to origin
- Lines map to lines
- Parallel lines do not necessarily remain parallel
- Ratios are not preserved
- Closed under composition
What are inliers and outliers in feature matching?
Inliers are features that were matched correctly
Outliers are features that were incorrectly matched
What is the idea behind RANSAC?
Find the line with the largest number of points that agree with the line (are within a small distance to the line) - also called inliers.
If the set of local feature matches contains a very high percentage of outliers:
All the inliers will agree with each other; the (hopefully) small number of outliers will (hopefully) disagree with eachother
- RANSAC only has guarantees if <50% of points are outliers
What is the RANSAC loop?
- Randomly select s sample matches
- s == minimum sample size that lets you fit a transformation model - Compute transformation from sample group
- Find inliers to this transformation
- If the number of inliers is sufficiently large, re-compute least-squares estimate of transformation on all the inliers
- Repeat N times
- Keep the transformation with the largest number of inliers
N is determined based on the number of outliers expected and the probability of success we’d like to guarantee
- Say 20% outliers and we want the correct answer with at least 99% probability.