Professional Documents
Culture Documents
1
Outline
• Projective 2D geometry
• Projective 3D geometry
3
Homogeneous Coordinates
⚫ Homogeneous representation of lines
ax + by + c = 0 (a,b,c )T
(ka) x + (kb) y + kc = 0, k 0 (a,b,c )T ~ k (a,b,c )T
equivalence class of vectors, any vector is representative
⚫ Homogeneous representation of points
x = (x, y ) on l = (a,b,c ) if and only if ax + by + c = 0
T T
Inhomogeneous coordinates ( x, y )
T
4
Points and Lines
⚫ Intersections of lines
Example
y =1
x =1
5
Ideal Points and the Line at Infinity
⚫ Intersections of parallel lines
Example
x =1 x = 2
x3=1
⚫ Duality principle:
To any theorem of 2-dimensional projective geometry there
corresponds a dual theorem, which may be derived by interchanging
the role of points and lines in the original theorem
8
Conics
Curve described by 2nd-degree equation in the plane
ax 2 + bxy + cy 2 + dx + ey + f = 0
or homogenized x x1 x , y x2 x
3 3
or in matrix form
a b / 2 d / 2
x T C x = 0 with C = b / 2 c e / 2
d / 2 e / 2 f
symmetric
5DOF: a : b : c : d : e : f
9
Five Points Define a Conic
For each point the conic passes through
or
(x , x y , y , x , y , f )c = 0
2
i i i
2
i i i c = (a, b, c, d , e, f )
T
x12 x1 y1 y12 x1 y1 1
2
x2 x2 y 2 y22 x2 y2 1
x32 x3 y3 y32 x3 y3 1c = 0
2
x4 x4 y 4 y42 x4 y4 1
x2 y52 y5 1
5 x5 y5 x5
10
Tangent Lines to Conics
The line l tangent to C at point x on C is given by l=Cx
l
x
C
11
Dual Conics
A line tangent to the conic C satisfies lT C* l = 0
In general (C full rank): C* = C−1
12
Projective Transformations
Definition:
Theorem:
15
Removing Projective Distortion
17
Transformation of Lines and Conics
For a point transformation
x' = H x
Transformation for lines
l' = H -T l
18
A Hierarchy of Transformations
⚫ Projective linear group
⚫ Affine group (last row (0,0,1))
⚫ Euclidean group (upper left 2x2 orthogonal)
⚫ Oriented Euclidean group (upper left 2x2 det 1)
20
Class II: Similarities
x' s cos − s sin t x x
y ' = s sin s cos t y y
1 0 1 1
0
sR t
x' = H S x = T x RTR = I
0 1
21
Class III: Affine Transformations
x' a11 a12 t x x
y ' = a21 a22 t y y
1 0 1 1
0
A t
x' = H A x = T x
0 1
1 0
A = R ( )R (− )DR ( ) D=
0 2
A t
x' = H P x = T v = (v1 , v2 )
T
x
v v
23
Action of Affinities and Projectivities
on Line at Infinity
x1 x1
A t A
0 T x2 = x2
v
0 0
Line at infinity stays at infinity, but points move along line
x1 x
A t A 1
x2 = x
vT 2
v
+
0 v1 x1 v 2 x 2
24
Decomposition of Projective
Transformations
sR t K 0 I 0 A t
H = H S H AH P = T 0T = T
0 1 1 v T
v v v
S: similarity
A: Affine
P: Projective
A = sRK + tv T
decomposition unique (if chosen s>0)
K upper-triangular, det K = 1
Example:
1.707 0.586 1.0
H = 2.707 8.242 2.0
1.0 2.0 1.0
0 0 1
r11 r12 tx
Euclidean r r22 t y lengths, areas.
3dof 21
0 0 1 26
Cross Ratio
x1 , x 2 x 3 , x 4
Cross (x1 , x 2 , x 3 , x 4 ) = xi1
x i , x j = det
x j1
x1 , x 3 x 2 , x 4 xi 2 x j 2
l = l1 l2 l3 , l3 0
T
1 0 0
𝐻’𝑃 = 0 1 0
𝑙1 𝑙2 𝑙3 𝐻’𝑃−T (𝑙1 , 𝑙2 ,𝑙3 )T = (0,0,1)T = 𝑙∞
Affine Rectification
v1 l∞ v2
l1 l3
v 2 = l3 l 4
l2 l4 v1 = l1 l 2
l = v1 v 2
Distance Ratios
v' = H(1,0)
T
The Circular Points
1 1
I=i J = −i
0 0
J = (1,−i,0)
T
1 0 0
C* = IJ T + JI T C* = 0 1 0
0 0 0
C* = H S C* H TS
*
The dual conic C is fixed conic under the
projective transformation H iff H is a similarity
Angles
l1m1 + l2 m2
cos =
(l
1
2
)(
+ l22 m12 + m22 )
l T C* m
Projective: cos =
(l T
)(
C* l m T C* m )
(This equation is Invariant to projective transform)
l T C* m = 0 If orthogonal
Length Ratios
d (b, c) sin
=
d (a, c) sin
cos𝛼 and cos𝛽 can be derived with the equations in the previous page
Metric Properties from Images
C* ' = (H P H A H S )C* (H P H A H S )
T
= (H P H A )H S C* H TS (H P H A )
T
= (H P H A )C* (H P H A )
T
KK T K T v
= T T
v K v v
Rectifying transformation from SVD
1 0 0
C* ' = U 0 1 0 U T H=U
0 0 0
Metric from Affine
Suppose an image has been affinely rectified (v=0)
m1
KK T
0
(l1 l2 l3 ) m2 = 0
0 0
m3
2 2 2
𝑙 ′1 𝑚′1 , 𝑙 ′1 𝑚′ 2 + 𝑙 ′ 2 𝑚′1 , 𝑙 ′ 2 𝑚′ 2 𝑘11 + 𝑘12 , 𝑘22 𝑘12 , 𝑘22 T =0
Metric from Projective
m1
KK T
K v
T
l C m=0
T *
(l1 l2 l3 ) T m = 0
T 2
v K v v
m3
(l1m1,0.5(l1m2 + l2 m1 ), l2 m2 ,0.5(l1m3 + l3m1 ),0.5(l2 m3 + l3m2 ), l3m3 )c = 0
𝐜 = (𝑎, 𝑏, 𝑐, 𝑑, 𝑒, 𝑓)T
Projective 3D Geometry
• Points, lines, planes and quadrics
• Transformations
• П∞, ω∞ and Ω ∞
3D Points
3D point
( X , Y , Z )T in R3
X = (X1, X 2 , X 3 , X 4 )
T
in P3
T
X X X
X = 1 , 2 , 3 ,1 = ( X , Y , Z , 1)
T
( X 4 0)
X4 X4 X4
projective transformation
π4 = d X4 =1
d/ n
Planes from Points
Solve π from X1T π = 0, X T2 π = 0 and X 3T π = 0
X1T X1T
T (solve π as right nullspace of X T )
X 2 π = 0 2
X 3T X 3T
Or implicitly from coplanarity condition
X 1 ( X 1 )1 ( X 2 )1 ( X 3 )1
X (X ) (X ) ( X 3 )2
det X X1X 2 X 32 = 0 2 =0
2 1 2
X 3 ( X 1 )3 ( X 2 )3 ( X 3 )3
X 4 ( X 1 )4 ( X 2 )4 ( X 3 )4
X 1 D234 − X 2 D134 + X 3 D124 − X 4 D123 = 0
π = (D234 ,− D134 , D124 ,− D123 )
T
Points from Planes
π 3T π 3T
Points and Planes
• Projective transformation
Under the point transformation 𝑿′ = 𝐻𝑿, a plane transforms
as 𝝅′ = 𝐻 −𝑇 𝝅
Example: X-axis
0 0 0 1 0 0 1 0
W= W =
*
1 0 0 0 0 1 0 0
Points, Lines and Planes
W
W
M = T Mπ =0
X X
W*
W*
M= T MX = 0 π
π
Plücker Matrices
Plücker matrix (4x4 skew-symmetric homogeneous matrix)
lij = Ai B j − Bi Aj
L = ABT − BA T
*T
1. L has rank 2 LW = 042
2. 4dof
3. generalization of l = x y
4. L independent of choice A and B
5. Transformation L'= HLHT
Example: x-axis 0 0 − 1
0 1 0
0 0 0 0 0 0
L = 1 0 0 0 − 0 0 0 1 =
T
0 0 0 0 0 0
1 0 1 0 0 0
Plücker Matrices
Dual Plücker matrix L*
L* = PQ T − QP T
*'
L = H -T LH -1
Correspondence
l12 : l13 : l14 : l23 : l42 : l34 = l34
* *
: l42 *
: l23 : l14* : l13* : l12*
Join and incidence
π = L*X (plane through point and line)
Lπ = 0 (line in plane)
sphere ellipsoid
hyperboloid of paraboloid
Ruled quadrics: (contain straight line) two sheets
hyperboloids
of one sheet
3 for rotation
3 for translation
Similarity s R t The absolute conic Ω∞
1 for isotropic scaling 7dof 0T 1
Euclidean R t Volume
6dof 0T 1
Screw Decomposition
Any particular translation and rotation is equivalent to
a rotation about a screw axis and a translation along
the screw axis.
Screw Decomposition
Any particular translation and rotation is equivalent to
a rotation about a screw axis and a translation along
the screw axis.