Professional Documents
Culture Documents
Lecture 16:
Planar Homographies
Robert Collins
CSE486, Penn State Motivation:
Points on Planar Surface
x
Robert Collins
CSE486, Penn State
Review : Forward Projection
World Camera Film Pixel
Coords Coords Coords Coords
U X x u
V Mext Y Mproj Maff
y v
W Z
U X Mint u
V Y v
W Z
U u
M
V m11 m12 m13 m14 v
W m21 m22 m23 m24
m31 m31 m33 m34
Robert Collins
PC PW
W
X
U
R Z V
C
Rotate to Translate by - C
align axes (align origins)
P C = R ( PW - C )
= R PW + T
Robert Collins
CSE486, Penn State
Perspective
projection
y
Film coordinates
x
Point
on plane
Rotation +
Translation
Robert Collins
CSE486, Penn State
Projection of Planar Points
Robert Collins
Homography H
(planar projective
transformation)
Robert Collins
Homography H
(planar projective
transformation)
Similarity Transformation!
Robert Collins
CSE486, Penn State
Convert to Pixel Coords
Internal camera a11 a12 a13 v pixels
parameters a21 a22 a23
0 0 1
u
Robert Collins
Here’s where
transformation
groups get useful!
Robert Collins
H1
H
A1
Robert Collins
H1
H-1
A1
Robert Collins
S1
A
A1
Robert Collins
S1
A-1
A1
Robert Collins
H1 H2
H
Robert Collins
CSE486, Penn State
Summary: Planar Projection
Pixel coords
Internal u
params
Perspective v
projection
y
Homography
x
Point on plane
Rotation + Translation
Robert Collins
Applying Homographies to Remove
CSE486, Penn State
Perspective Distortion
Equations:
Robert Collins
CSE486, Penn State
Degrees of Freedom?
Subject to the
constraint:
Robert Collins
CSE486, Penn State
L.S. using Algebraic Distance
Setting h33 = 1
Rearrange
Robert Collins
CSE486, Penn State
Algebraic Distance, h33=1 (cont)
2N x 8 8x1 2N x 1
Point 1
Point 2
Point 3
Point 4
additional
points
Robert Collins
CSE486, Penn State
Algebraic Distance, h33=1 (cont)
Linear 2Nx8 8x1 2Nx1
equations A h = b
(AT A) h = (AT b)
-1
h = (AT A) (AT b)
Matlab: h = A\b
Robert Collins
CSE486, Penn State
Caution: Numeric Conditioning
Translate
T1 center of mass T2
to origin
Scale so average
S1 point dist is sqrt(2) S2
Estimate Hnorm
Robert Collins
CSE486, Penn State
A More General Approach
Rearrange
=0
=0
Robert Collins
2N x 9 9x1 2N x 1
4
P
O
I
N
T
S
additional
points
Robert Collins
(AT A) h = 0
SVD of ATA = U D UT