Projective Geometry
簡韶逸 Shao-Yi Chien Department of Electrical Engineering National Taiwan University Fall 2019
1
Projective Geometry Shao-Yi Chien Department of Electrical - - PowerPoint PPT Presentation
Projective Geometry Shao-Yi Chien Department of Electrical Engineering National Taiwan University Fall 2019 1 Outline Projective 2D geometry Projective 3D geometry [Slides credit: Marc Pollefeys] 2 Projective 2D Geometry
簡韶逸 Shao-Yi Chien Department of Electrical Engineering National Taiwan University Fall 2019
1
2
[Slides credit: Marc Pollefeys]
3
c by ax
T
a,b,c
, ) ( ) ( k kc y kb x ka
T T
a,b,c k a,b,c ~
Homogeneous representation of lines equivalence class of vectors, any vector is representative Homogeneous representation of points
c by ax
T
a,b,c l
T
y x, x
if and only if
l 1 1 x,y, a,b,c x,y,
T
, 1 , , ~ 1 , , k y x k y x
T T
The point x lies on the line l if and only if xTl=lTx=0 Homogeneous coordinates Inhomogeneous coordinates
T
y x,
T 3 2 1
, , x x x
but only 2DOF The point x=(𝑦1, 𝑦2, 𝑦3)T represent the point (𝑦1/𝑦3, 𝑦2/𝑦3)T in ℝ2
4
l' l x
Intersections of lines The intersection of two lines and is
l l'
Line joining two points The line through two points and is
x' x l
x
x'
Example
1 x 1 y
5
T
, , l' l a b
Intersections of parallel lines
T T and
' , , l' , , l c b a c b a
Example
1 x 2 x
Ideal points
T
, ,
2 1 x
x
Line at infinity
T
1 , , l
l
2 2
R P
tangent vector (line’s direction) normal direction
a b ,
b a,
Note that in P2 there is no distinction between ideal points and others
6
exactly one line through two points exaclty one point at intersection of two lines
7
T
T
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
Curve described by 2nd-degree equation in the plane
2 2
f ey dx cy bxy ax
2 3 3 2 3 1 2 2 2 1 2 1
fx x ex x dx cx x bx ax
3 2 3 1
, x x y x x x
T
f e d e c b d b a 2 / 2 / 2 / 2 / 2 / 2 / C
with
f e d c b a : : : : :
5DOF:
symmetric
9
For each point the conic passes through
2 2
f ey dx cy y bx ax
i i i i i i
, , , , ,
2 2
c f y x y y x x
i i i i i i
T
f e d c b a , , , , , c 1 1 1 1 1
5 5 2 5 5 5 2 5 4 4 2 4 4 4 2 4 3 3 2 3 3 3 2 3 2 2 2 2 2 2 2 2 1 1 2 1 1 1 2 1
c y x y y x x y x y y x x y x y y x x y x y y x x y x y y x x
stacking constraints yields
10
The line l tangent to C at point x on C is given by l=Cx
11
*
T
A line tangent to the conic C satisfies Dual conics = line conics = conic envelopes
1 *
In general (C full rank):
12
A projectivity is an invertible mapping h from P2 to itself such that three points x1,x2,x3 lie on the same line if and only if h(x1),h(x2),h(x3) do. Definition: A mapping h:P2P2 is a projectivity if and only if there exist a non-singular 3x3 matrix H such that for any point in P2 reprented by a vector x it is true that h(x)=Hx Theorem: Definition: Projective transformation
3 2 1 33 32 31 23 22 21 13 12 11 3 2 1
' ' ' x x x h h h h h h h h h x x x
x x' H
8DOF
projectivity=collineation=projective transformation=homography 14
central projection may be expressed by x’=Hx
(application of theorem)
15
33 32 31 13 12 11 3 1
' ' ' h y h x h h y h x h x x x
33 32 31 23 22 21 3 2
' ' ' h y h x h h y h x h x x y
13 12 11 33 32 31
' h y h x h h y h x h x
23 22 21 33 32 31
' h y h x h h y h x h y
select four points in a plane with know coordinates (linear in hij) (2 constraints/point, 8DOF 4 points needed) Remark: no calibration at all necessary
16
17
Transformation for lines
Transformation for conics
Transformation for dual conics
T
* *
For a point transformation
18
Projective linear group Affine group (last row (0,0,1)) Euclidean group (upper left 2x2 orthogonal) Oriented Euclidean group (upper left 2x2 det 1) Alternative, characterize transformation in terms of elements
e.g. Euclidean transformations leave distances unchanged
Similarity Affine Projective
19
1 1 cos sin sin cos 1 ' ' y x t t y x
y x
1 1 1
x x x' 1 t
T
R H E I R R
T
special cases: pure rotation, pure translation 3DOF (1 rotation, 2 translation), can be computed from 2 point correspondences Invariants: length, angle, area (Euclidean transform)
20
1 1 cos sin sin cos 1 ' ' y x t s s t s s y x
y x
x x x' 1 t
T
R H s
S
I R R
T
4DOF (1 scale, 1 rotation, 2 translation), can be computed from 2 point correspondences Invariants: ratios of length, angle, ratios of areas, parallel lines
21
also know as equi-form (shape preserving)
1 1 1 ' '
22 21 12 11
y x t a a t a a y x
y x
x x x' 1 t
T
A H A
non-isotropic scaling! (2DOF: scale ratio and orientation) 6DOF (2 scale, 2 rotation, 2 translation), can be computed from 3 point correspondences Invariants: parallel lines, ratios of parallel lengths, ratios of areas
DR R R A
2 1
D
22
Action non-homogeneous over the plane 8DOF (2 scale, 2 rotation, 2 translation, 2 line at infinity) can be computed from 4 point correspondences Invariants: cross-ratio of four points on a line, (ratio of ratio)
P T
T 2 1,
23
2 2 1 1 2 1 2 1
v x v x v x x x x v A A
T
t
2 1 2 1
x x x x v A A
T
t
Line at infinity becomes finite, allows to observe vanishing points, horizon Line at infinity stays at infinity, but points move along line
24
v v s
P A S T T T T
v t v 1 1 t A I K R H H H H
T
tv RK A s K
1 det K
upper-triangular, decomposition unique (if chosen s>0)
. 1 . 2 . 1 . 2 242 . 8 707 . 2 . 1 586 . 707 . 1 H 1 2 1 1 1 1 2 1 5 . 1 . 2 45 cos 2 45 sin 2 . 1 45 sin 2 45 cos 2
H
Example:
S: similarity A: Affine P: Projective
25
1
22 21 12 11 y x
t a a t a a 1
22 21 12 11 y x
t sr sr t sr sr
33 32 31 23 22 21 13 12 11
h h h h h h h h h 1
22 21 12 11 y x
t r r t r r
Projective 8dof Affine 6dof Similarity 4dof Euclidean 3dof
Concurrency, collinearity,
tangency, inflection, etc.), cross ratio Parallellism, ratio of areas, ratio of lengths on parallel lines (e.g midpoints), linear combinations of vectors (centroids). The line at infinity l∞ Ratios of lengths, angles. The circular points I,J lengths, areas.
Invariant Properties
26
The number of functional invariants is equal to, or greater than, the number of degrees of freedom of the configuration less the number of degrees of freedom of the transformation e.g. configuration of 4 points in general position has 8 dof (2/pt) and so 4 similarity, 2 affinity and zero projective invariants
27
x ' x
2 2
H
The cross ratio Invariant under projective transformations
T 2 1, x
x
3DOF (2x2-1)
2
x
4 2 3 1 4 3 2 1 4 3 2 1
x , x x , x x , x x , x x , x , x , x Cross
2 2 1 1
det x , x
j i j i j i
x x x x
l 1 1 t l l A A H
T T A
projection rectification
A PA
l l l H H
3 2 1
1 1
, l
3 3 2 1
l l l l
T
HP 𝐼𝑄
−T(𝑚1, 𝑚2,𝑚3)T= (0,0,1)T= 𝑚∞
2 1
v v l
2 1 1
l l v
4 3 2
l l v
b a d d : c , b : b , a
T
, 1 v' H
T T T
1 , , 1 , , 1 , b a a
c , b , a H
1 I i 1 J i I 1 1 1 cos sin sin cos I I i se i t s s t s s
i y x S
H
2 3 3 2 3 1 2 2 2 1
2 2 2 1
T T
T T
3
T T
*
*
T S S
* *
*
2 2 2 1 2 2 2 1 2 2 1 1
T 3 2 1
T 3 2 1
* * *
T T T
*
T
(This equation is Invariant to projective transform)
cos𝛽 and cos𝛾 can be derived with the equations in the previous page
* * * * T T T T T T T T
A P A P A P S S A P S A P S A P T
*
3 2 1 3 2 1
T
2 22 12 11 2 12 2 11 2 2 1 2 2 1 1 1
T
c , , , , ,
3 3 2 3 3 2 1 3 3 1 2 2 1 2 2 1 1 1
5 . 5 . 5 .
m l m l m l m l m l m l m l m l m l
3 2 1 3 2 1
T T T T
*
T
𝐝 = (𝑏, 𝑐, 𝑑, 𝑒, 𝑓, 𝑔)T
T T
1 , , , 1 , , , X
4 3 4 2 4 1
Z Y X X X X X X X
4
X
T
Z Y X , ,
T 4 3 2 1
, , , X X X X X
4 3 2 1
4 4 3 3 2 2 1 1
T
T 3 2 1
T
4
4
n / d
3 2 1
T T T 234 1D
T 123 124 134 234
4 3 4 2 4 1 4 3 3 3 2 3 1 3 2 3 2 2 2 1 2 1 3 1 2 1 1 1
3 2 1
T T T
and from Solve
(solve as right nullspace of )
T T T 3 2 1
X X X
3 2 1
124 3 134 2 234 1
123 4 124 3 134 2 234 1
134 2 234 1
3 2 1
T T T
3 2 1
T T T
and from Solve
(solve as right nullspace of )
T T T 3 2 1
49
T
I p M
T
T
a d a c a b
, ,
x is a 3-vector parameter (a point on the projective plane) M is not unique
T T
B A W
T T
Q P W*
2 2 * *
WW W W
T T
1 1 W 1 1 W*
Example: X-axis (4dof) Defined as the join of two points A, B (Dual) Defined as the intersection of two planes P, Q
T
X W M
π M
T
π W* M X M W X
*
π
j i j i ij
A B B A l
T T
BA AB L
Plücker matrix (4x4 skew-symmetric homogeneous matrix)
2. 4dof 3. generalization of 4.
5. Transformation
2 4 *
LW
T
T
HLH L'
1 1 1 1 1 1 L
T
Example: x-axis
T T
QP PQ L
*
Dual Plücker matrix L*
TLH
H L
* * 12 * 13 * 14 * 23 * 42 * 34 34 42 23 14 13 12
: : : : : : : : : : l l l l l l l l l l l l
*
Lπ X
Correspondence Join and incidence
*
(plane through point and line) (point on line) (intersection point of plane and line) (line in plane)
Lπ
π , L , L
2 1
(coplanar lines)
(Q : 4x4 symmetric matrix)
QX X
T
1. 9 d.o.f. 2. in general 9 points define quadric 3. det Q=0 ↔ degenerate quadric 4. Polar plane 5. (plane ∩ quadric)=conic 6. transformation
Q
QM M C
T
Mx X : π
H Q' π Q π
* T
*
Q Q
1. relation to quadric (non-degenerate) 2. transformation
T
H HQ Q'
* *
Q*: dual quadric, equations on planes
Rank Sign. Diagonal Equation Realization 4 4 (1,1,1,1) X2+ Y2+ Z2+1=0 No real points 2 (1,1,1,-1) X2+ Y2+ Z2=1 Sphere (1,1,-1,-1) X2+ Y2= Z2+1 Hyperboloid (1S) 3 3 (1,1,1,0) X2+ Y2+ Z2=0 Single point 1 (1,1,-1,0) X2+ Y2= Z2 Cone 2 2 (1,1,0,0) X2+ Y2= 0 Single line (1,-1,0,0) X2= Y2 Two planes 1 1 (1,0,0,0) X2=0 Single plane
Projectively equivalent to sphere: Ruled quadrics: hyperboloids
hyperboloid of two sheets paraboloid sphere ellipsoid Degenerate ruled quadrics: cone two planes (contain straight line)
v
T
v t A
Projective 15dof Affine 12dof Similarity 7dof Euclidean 6dof
Intersection and tangency Parallellism of planes, Volume ratios, centroids, The plane at infinity π∞ The absolute conic Ω∞ Volume
1 t A
T
1 t R
T
s 1 t R
T
Invariant Properties
3 for rotation 3 for translation 1 for isotropic scaling 5 for affine scaling
Any particular translation and rotation is equivalent to a rotation about a screw axis and a translation along the screw axis.
Any particular translation and rotation is equivalent to a rotation about a screw axis and a translation along the screw axis.
t t t
//
screw axis // rotation axis
π 1 1 t π π A A H
T T A
1. canical position 2. contains directions 3. two planes are parallel line of intersection in π∞ 4. line // line (or plane) point of intersection in π∞
T
1 , , , π
T
, , , D
3 2 1
X X X