RV ProjectiveGeometry
RV ProjectiveGeometry
Projective Geometry
SS 2018
1
Learning goals
2
Outline
1D projective geometry
2D projective geometry
▫ Homogeneous coordinates
▫ Points, Lines
▫ Duality
3D projective geometry
▫ Points, Lines, Planes
▫ Duality
▫ Plane at infinity
3
Literature
4
Motivation – Image formation
5
Motivation – Parallel lines
[Source: Flickr]
6
Motivation – Epipolar constraint
X world point
epipolar plane
x
x’
x‘TEx=0
C C’
T
7
Euclidean geometry vs. projective geometry
Definitions:
Geometry is the teaching of points, lines, planes and their relationships
and properties (angles)
Geometries are defined based on invariances (what is changing if you
transform a configuration of points, lines etc.)
Geometric transformations of Euclidean geometry preserve distances
Geometric transformations of projective geometry do NOT preserve
distances
8
Difference between Euclidean and projective transformation
9
1D Euclidean geometry
p1 p2 p3 p4 x
Euclidean coordinate:
p1=[x]
10
1D projective geometry
W=1
p1 p2 p3 p4
homogeneous coordinate:
p1=[x,w] ≈ [x,1]
11
2D projective geometry
Homogeneous coordinates
Points, Lines
Duality
12
Homogeneous coordinates
ℝ2 O2 p
x
1 v
O3
u image coordinate:
p=[x,y]
homogeneous coordinate:
p=[u,v,w] ≈ [u,v,1]
13
Points
A point in the image is a ray in projective space
-y
(wx,wy,w)
(x,y,1)
(0,0,0)
-z x
image plane
14
Lines
A line in the image plane is defined by the equation ax + by + cz =
0 in projective space
[a,b,c] are the line parameters
𝑙 =𝑥 ×𝑦
𝑥 =𝑙 ×𝑚
Proof:
𝑙 =𝑥 ×𝑦
𝑥 𝑇 𝑥 × 𝑦 = 𝑦 𝑇 𝑥 × 𝑦 = 0 (scalar triple product)
𝑥𝑇 𝑙 = 𝑦𝑇 𝑙 = 0
16
Geometric interpretation of line parameters [a,b,c]
▫ A line l is a homogeneous 3-vector, which is a ray in projective space
▫ It is to every point (ray) p on the line: l p=0
p2
p1
l
17
Point and line duality
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
x l
x Tl 0 lT x 0
x l l' l x x'
18
Point and line duality
p1 p2 l1 p
l
l2
Intersection of l and m
𝑥 =𝑙 ×𝑚
𝑎 𝑎 𝑏𝑑 − 𝑏𝑐 𝑏 x 1 x 2
𝑥 = 𝑏 × 𝑏 = 𝑎𝑐 − 𝑎𝑑 = 𝑑 − 𝑐 −𝑎
𝑐 𝑑 𝑎𝑏 − 𝑎𝑏 0
A point (x,y,0) is called an ideal point, it does not lie in the image plane.
But where does it lie then
20
Ideal points and line at infinity
-v (wx,wy,0)
-w u image plane
21
Projective transformations
x’
y’ 𝜋
y
x’
x
22
Projective transformations
To transform a point: p’ = Hp
To transform a line: lp=0 l’p’=0
0 = lp = lH-1Hp = lH-1p’ l’ = lH-1
lines are transformed by postmultiplication of H-1
23
Overview 2D transformations
0 0 1
r11 r12 t x
Euclidean r r t lengths, areas.
3dof 21 22 y
0 0 1
24
Effects of projective transformations
25
Effects of projective transformations
Ellipse center
26
3D projective geometry
27
3D projective geometry
The concepts of 2D generalize naturally to 3D
▫ The axioms of geometry can be applied to 3D as well
3D projective space = 3D Euclidean space + plane at infinity
▫ Not so simple to visualize anymore (4D space)
Entities are now points, lines and planes
▫ Projective 3D points have four coordinates: P = (x,y,z,w)
Points, lines, and planes lead to more intersection and joining
options that in the 2D case
28
Planes
Plane equation
Π1 𝑋+Π2 𝑌 + Π3 𝑍+Π4 =0
Π 𝑇 𝑋 =0
▫ Expresses that point X is on plane Π
Plane parameters
Π = [Π1 , Π2 , Π3 , Π4 ]
29
Join and incidence relations with planes
30
Three points define a plane
X1,X2,X3 are three distinct points, each has to fullfil the incidence
equation. Equations can be stacked.
𝑋1𝑇
𝑋2𝑇 Π = 0 (3𝑥4)(4𝑥1)
𝑋3𝑇
▫ Plane parameters are the solution vector to this linear equation system (e.g.
SVD)
Π1𝑇
Π2𝑇 𝑋 = 0
Π3𝑇
31
Lines
Matrix is skew-symmetric
Example line of the x-axis
▫ x1 = [0 0 0 1]T
x2 = [1 0 0 1]T
L = x1*x2T-x2*x1T
L= 0 0 0 -1
0 0 0 0
0 0 0 0
1 0 0 0
32
Lines
Points and planes are dual, we can get new equations by substituting
points with planes
33
Point, planes and lines
34
Plane at infinity
It is a plane that contains all the direction vectors 𝐷 = (𝑥1, 𝑥2, 𝑥3,0)𝑇 ,
vectors that originate from the origin of 4D space
Try to imagine an extension of the 2D case (see illustration below) to the
3D case…
-v (wx,wy,0)
-w u image plane
35
Recap - Learning goals
36