Professional Documents
Culture Documents
Lecture
Projective Geometry, Geometric Transformation
Hw 1 is poste
Next Clas
Coordinate Systems Transformations, Color
1
4
Projective Geometry
We are all familiar with projective transformations
When we look at pictures
squares are not squares,
circles are not circle
parallel lines are not parallel
2
s
P
y
Y x p
X f
Z
O
•Non-linear equations
•Any point on the ray OP has image p !!
P
y
Y x p
Z=Zo + δ
X f
Projective Plane
The projective plane P2 is the set of equivalence classes of triplets of numbers
(not all zero) where two triplets (x,y,z) and (x’,y’,z’) are equivalent if and only if
there is a real number k such that
(x,y,z) = k(x’,y’,z’)
5
Projective 3D Space
The projective space P3 is the set of equivalence classes of quadruplets of
numbers (not all zero) where two quadruplets (x,y,z,w) and (x’,y’,z’,w’) are
equivalent if and only if there is a real number k such that
(x,y,z,w) = k(x’,y’,z’,w’)
6
Homogeneous Coordinates of 2D Lines
Euclidean representation of a line:
y
ax + by + c = 0 x
kax + kby + kc = 0
7
Homogeneous Coordinates of 2D Lines
Euclidean representation of a line:
0 10 0 1
a x
ax + by + c = 0 @ b A .@ y A = 0
c 1 <latexit sha1_base64="4kPH18v47SybVp5Z3wAa4a9H5vA=">AAACZHicdVFNa9tAEF0pbZO6bqsk9BQoQ01pejFSc0gvISG5FHJJoY4NljGr9cheslqJ3VGJED7nd+UvJKcee8mPKBS6sn1ok3Rgh8d78/bjbVIoaSkMf3j+2pOnz9Y3nrdetF++eh1sbp3bvDQCeyJXuRkk3KKSGnskSeGgMMizRGE/uThp9P53NFbm+htVBY4yPtUylYKTo8ZBHStMCXYhTnAqdc2N4dW8FnPgEMeQNE1AjHqykiA2cjoj+PgBugD/dV82xqpp0WNmOICwNQ46YTdcFDwE0Qp0jk5/Xx3+ur49Gwc38SQXZYaahOLWDqOwoJHbm6RQOG/FpcWCiws+xaGDmmdoR/UipDm8d8wE0ty4pQkW7N+OmmfWVlniJjNOM3tfa8jHtGFJ6edRLXVREmqxPCgtFVAOTeIwkQYFqcoBLox0dwUx44YLcv/ShBDdf/JDcP6pG+11w68ujWO2rA22w96xXRaxfXbEvrAz1mOC/fTWvcDb9O78tr/tv1mO+t7Ks83+Kf/tH0tKuOw=</latexit>
kax + kby + kc = 0 0 10 0 1
a kx
@ b A . @ ky A = 0
c k
<latexit sha1_base64="RRdt09Qlj91NtLYvfr66e77Jun0=">AAACZnicdVFNT9tAEF2btkBoIQVVPfQyAqHSS2TDgV4QiF4q9UKlBpDiKFpvxskq67W1O0ZYls/8Lv5Ce+LcC78BCYl1kkPLx0g7enpv3n68jXMlLQXBjecvvHr9ZnFpubXy9t3qWvv9+qnNCiOwKzKVmfOYW1RSY5ckKTzPDfI0VngWT741+tkFGisz/YvKHPspH2mZSMHJUYN2HSlMCHYginEkdcWN4WVdiRo4RBHETRMQoR7OJYiMHI0JvnyGDsCL7sll45yU0/6cHQ4gaA3aW0EnmBY8BeEcbB39uL86vLv+czJo/46GmShS1CQUt7YXBjn13d4khcK6FRUWcy4mfIQ9BzVP0faraUw1bDtmCElm3NIEU/ZfR8VTa8s0dpMpp7F9rDXkc1qvoORrv5I6Lwi1mB2UFAoogyZzGEqDglTpABdGuruCGHPDBbmfaUIIHz/5KTjd7YR7neCnS+OYzWqJfWKbbIeFbJ8dse/shHWZYH+9ZW/d2/Bu/VX/g/9xNup7c88G+698eACTlroQ</latexit>
8
Homogeneous Coordinates of 2D Lines
u’.p = p’.u = 0
9
Intersection of 2D Lines
The intersection of two lines l and l’ is a point x.
10
2D Line Joining Two points
Given two points x and x’, the line l joining the two must satisfy:
11
Intersection of Parallel 2D Lines !!
Example
12
Duality Principle
13
A Hierarchy of 2D Transformations
from R.Szeliski
14
Translation
y
y
transform
1
ty
x’ y’
0
0 1 x tx x
0 0 x
0 1 x 0 S
)
0
0 1 x x
y y
θ
transform x’y’
)
1
ty
0
0 1 x tx x
matrix form
1x1 1x2 1x1 1x1
equation form
19
Similarity (scaled Euclidean)
y y x’y’ S
θ
transform
)
1
ty
0
0 1 x tx x
20
Af ne
y y
x’ y’
transform
1
0
0 1 x x
21
fi
Projective Transformations
A projective transformation is a LINEAR TRANSFORMATION
between projective spaces
Two important classes
Linear Invertible of Pn into themselves (n=1,2,3) (i.e. P2 to P2
Transformations between P3 and P2 (that model image
formation)
22
:
Projective Transformations
✔
✔
✔ ✗
23
Theorem:
A projective transformation of Pn onto itself is completely determined by its
action on n+2 points.
24
Proof
Consider two corresponding points p and p’ in a P2
projectivity T:
25
Proof
Consider the following 4 points and their images:
These points are the “standard basis” of P2
26
Proof
27
Proof
Now using p4:
28
fi
Mapping between planes
29
More examples
30
Projective
y y
x’ y’
transform
1
0
0 1 x x
Note!
31
Co-Vectors
l’
y T
x’
x l
Transforming line equations: x
32
Summary of 2D Transformations
33
Euclidean
Similarity
Affine
Projective
Summary of 2D Transformations
from R.Szeliski
38
Transformation Groups
39
Example of a Group
Claim: translations matrices form a group under composition
(matrix multiplication operator)
40
Translation Group (cont)
41
Translation Group (cont)
Verify: existence of identity element
? ?
42
Translation Group (cont)
? ?
43
Example2: Euclidean Group
= =
Identity exists
Inverse Exists
Check it !
44
Transformation Groups
We have veri ed that translations form a group.
Example T1 state2 T2
state1 state3
?
45
fi
Transformation Groups
We have veri ed that translations form a group.
Inverse exists
T1 state2 T2-1
state1 state3
?
46
fi
Transformation Groups
We have veri ed that translations form a group.
47
fi
Transformation Groups
We have veri ed that translations form a group.
Hierarchy of Transformations
projective
affine
subgroup
hierarchy
similarity
Euclidean
49
Composition in a Hierarchy
projective
similarity * similarity = similarity
affine
similarity * affine = affine
similarity
Euclidean * affine = affine
Euclidean
any * projective = projective
50