Professional Documents
Culture Documents
Geometric Transformations
Geometric Transformations
Geometric Transformations
Geometric Transformations
1 / 23
What is a Geometric Transformation?
Definition
If (x, y ) are the Euclidean coordinates of a point P, in R2 , and if
(x1 , x2 , x3 ) are any three real numbers such that x1 /x3 = x and
x2 /x3 = y , then the triple (x1 , x2 , x3 ) is said to be a set of
homogeneous coordinates for P.
Definition
The general form of an 2D isometric transformation is
′
x ϵ cos θ − sin θ tx x
y ′ = ϵ sin θ cos θ ty y
1 0 0 1 1
Definition
The general form of a similarity transformation is
′
x s cos θ −s sin θ tx x
y ′ = s sin θ s cos θ ty y
1 0 0 1 1
Definition
The general form of an affine transformation or an affinity is
′
x a11 a12 tx x
y ′ = a21 a22 ty y
1 0 0 1 1
A = R(θ)R(−ϕ)DR(ϕ)
λ 0
where the R denote rotations and D = 1 is a scaling
0 λ2
matrix. This scaling happens along x and y directions which
are rotated by an angle −ϕ with respect to the original x − y -
axes.
• An affinity has 6 degrees of freedom. Hence it requires, 3
points in correspondence to uniquely determine it.
Definition
The general form of a projective transformation or a projectivity is
′
x a11 a12 tx x
y ′ = a21 a22 ty y
1 v1 v2 v 1
Note
The element v in the transformation matrix is generally used to
scale all the other elements. So it is generally equal to 1. But in
some situations, its value needs to be set to 0. Therefore, we say
that the matrix has only 8 degrees of freedom.
T = Tn Tn−1 . . . T1 .
T = T1 T2 . . . Tn .
Definition
A fixed point of a transformation remains unchanged under the
action of the transformation.
You can check out the interactive plots in the following notebooks
• DemoIsometry.ipynb
• DemoSimilarity.ipynb
• DemoAffinity.ipynb
3. In the demo, the original points and lines are shown in gray. Under the action of
the elation matrix, the points are projected to the red points that lie in a 3D
plane whose equation is z = v1 x + v2 y + v .
4. The final result of the projective transformation, shown in blue, are obtained by
modifying the homogeneous coordinates of the red-points such that their third
coordinate is 1. This is equivalent to projecting them to z = 1 plane. If we join
the blue points with their red counterparts, we will get lines which converge at
the origin i.e. origin is the point of projection.