homogeneous representation in geometric transformation
TRANSCRIPT
![Page 1: Homogeneous representation in geometric transformation](https://reader030.vdocuments.site/reader030/viewer/2022020103/5a6d8c737f8b9ab8418b7545/html5/thumbnails/1.jpg)
GANDHINAGAR INSTITUTE OF TECHNOLOGY
Computer Aided Design (2161903)Active Learning Assignment
On
Homogeneous representation in geometric transformation
Branch : Mechanical Engineering
Batch : 6 C-3
Prepared by: Guided By:
Suthar Chandresh (140120119229) Prof. Jatin Patel
![Page 2: Homogeneous representation in geometric transformation](https://reader030.vdocuments.site/reader030/viewer/2022020103/5a6d8c737f8b9ab8418b7545/html5/thumbnails/2.jpg)
Contents
• Definition & Motivation
• Geometric Transformation
:- Translation
:- Scaling
:- Shearing
• Matrix Representation
• Homogeneous Co-ordinates
![Page 3: Homogeneous representation in geometric transformation](https://reader030.vdocuments.site/reader030/viewer/2022020103/5a6d8c737f8b9ab8418b7545/html5/thumbnails/3.jpg)
Geometric transformation
• Definition
:- Translation , Scaling , Shearing
• Motivation – Why do we need geometric transformations in CG?
:- As a viewing aid
:- As a modeling tool
:- As an image manipulation tool
![Page 4: Homogeneous representation in geometric transformation](https://reader030.vdocuments.site/reader030/viewer/2022020103/5a6d8c737f8b9ab8418b7545/html5/thumbnails/4.jpg)
Example: 2D Translation
Modeling
Coordinates
Translate(5, 3)
World Coordinates
![Page 5: Homogeneous representation in geometric transformation](https://reader030.vdocuments.site/reader030/viewer/2022020103/5a6d8c737f8b9ab8418b7545/html5/thumbnails/5.jpg)
EXAMPLE: 2D SCALING
Modeling
Coordinates
World CoordinatesScale(0.3, 0.3)
![Page 6: Homogeneous representation in geometric transformation](https://reader030.vdocuments.site/reader030/viewer/2022020103/5a6d8c737f8b9ab8418b7545/html5/thumbnails/6.jpg)
Basic 2D Transformations
• Translation–
–
• Scale–
–
• Shear–
–
txxx
tyyy
sxxx
syyy
yhxxx
xhyyy
![Page 7: Homogeneous representation in geometric transformation](https://reader030.vdocuments.site/reader030/viewer/2022020103/5a6d8c737f8b9ab8418b7545/html5/thumbnails/7.jpg)
Matrix Representation
• Represent a 2D Transformation by a Matrix
• Apply the Transformation to a Point
y
x
dc
ba
y
x
dycxy
byaxx
dc
ba
Transformation
MatrixPoint
![Page 8: Homogeneous representation in geometric transformation](https://reader030.vdocuments.site/reader030/viewer/2022020103/5a6d8c737f8b9ab8418b7545/html5/thumbnails/8.jpg)
Matrix Representation
• Transformations can be combined by matrix multiplication
y
x
lk
ji
hg
fe
dc
ba
y
x
Matrices are a convenient and efficient way
to represent a sequence of transformations
Transformation
Matrix
![Page 9: Homogeneous representation in geometric transformation](https://reader030.vdocuments.site/reader030/viewer/2022020103/5a6d8c737f8b9ab8418b7545/html5/thumbnails/9.jpg)
2×2 Matrices
• What types of transformations can be represented with a 2×2 matrix?
2D Translation
txxx
tyyy
y
x
ty
tx
y
x
0
0
![Page 10: Homogeneous representation in geometric transformation](https://reader030.vdocuments.site/reader030/viewer/2022020103/5a6d8c737f8b9ab8418b7545/html5/thumbnails/10.jpg)
2×2 Matrices
• What types of transformations can be represented with a 2×2 matrix?2D
Scaling
ysyy
xsxx
y
x
sy
sx
y
x
0
0
![Page 11: Homogeneous representation in geometric transformation](https://reader030.vdocuments.site/reader030/viewer/2022020103/5a6d8c737f8b9ab8418b7545/html5/thumbnails/11.jpg)
2×2 Matrices
• What types of transformations can be represented with a 2×2 matrix?
2D Shearing
y
x
shy
shx
y
x
1
1
yxshyy
yshxxx
![Page 12: Homogeneous representation in geometric transformation](https://reader030.vdocuments.site/reader030/viewer/2022020103/5a6d8c737f8b9ab8418b7545/html5/thumbnails/12.jpg)
Basic 2D Transformations
• Basic 2D transformations as 3x3 Matrices
1100
10
01
1
y
x
ty
tx
y
x
1100
00
00
1
y
x
sy
sx
y
x
1100
01
01
1
y
x
shy
shx
y
x
Translate
Shear
Scale
![Page 13: Homogeneous representation in geometric transformation](https://reader030.vdocuments.site/reader030/viewer/2022020103/5a6d8c737f8b9ab8418b7545/html5/thumbnails/13.jpg)