10.1 2D Alignment LLS
10.1 2D Alignment LLS
what do we do next?
Feature matching
(object recognition, 3D reconstruction, augmented reality, image stitching)
and a transformation
0
x = f (x; p)
transformation parameters
function
p
Model fitting
Recover the transformation
f(x,y) g(x,y)
f(x,y) g(x,y)
f(x,y) g(x,y)
• How many Degrees of Freedom?
• How many correspondences needed for translation+rotation?
• What is the transformation matrix?
Affine
f(x,y) g(x,y)
• How many Degrees of Freedom?
• How many correspondences needed for affine?
• What is the transformation matrix?
Projective
f(x,y) g(x,y)
• How many Degrees of Freedom?
• How many correspondences needed for projective?
• What is the transformation matrix?
Suppose we have two triangles: ABC and DEF.
B E
D
C
F
A
Estimate transformation parameters using
and a transformation
0
x = f (x; p)
transformation parameters
function
p
0
x2
x2
0 0
x1 x3
x1 x3
X
0 2
ELS = kf (xi ; p) xi k
i
X
0 2
kf (xi ; p) xi k
squared!
ELS =
i
predicted measured
location location
0
x2
)
f (x i ; p
x2
0 0
x1 x3
x1 x3
> 1 >
Solve for x x = (A A) A b
For the Affine transformation x0 = f (x; p)
2 3
0
x
0 x p1 p2 p3 4 y 5
x = Mx 0 =
y p4 p5 p6
1
Vectorize transformation parameters
2 3
x0 x y 1 0 0 0 p1
0 = 6 7
y
0 0 0 0 x y 1 6 p2 7
x x y 1 0 0 0 6 p3 7
6 7
y0 0 0 0 x y 1 6 p4 7
6 7
.. .. 4 p5 5
. . p6
0
x x y 1 0 0 0
y0 0 0 0 x y 1
Notation in
general form b A x
Linear
least squares
estimation
only works
when the
transform function
is
?
Linear
least squares
estimation
only works
when the
transform function
is
linear!
Also
doesn’t
deal well
with
outliers