2D GEOMETRIC TRANSFORMATION - PowerPoint PPT Presentation

1 / 28
About This Presentation
Title:

2D GEOMETRIC TRANSFORMATION

Description:

2D GEOMETRIC TRANSFORMATION 2D Transforms Translation Rotation Scaling Composition Homogeneous Coordinates 2D Transforms In many applications it is necessary to ... – PowerPoint PPT presentation

Number of Views:34
Avg rating:3.0/5.0
Slides: 29
Provided by: Helmuth1
Category:

less

Transcript and Presenter's Notes

Title: 2D GEOMETRIC TRANSFORMATION


1
  • 2D GEOMETRIC TRANSFORMATION

2
  • 2D Transforms
  • Translation
  • Rotation
  • Scaling
  • Composition
  • Homogeneous Coordinates

3
2D Transforms
  • In many applications it is necessary to modify
    the position, orientation or size of a 2D object.
  • The most widely used transformations are
  • Translation move one object to another position
  • Rotation rotate the object around the origin
  • Scaling change the size of the object

4
2D Transforms
  • We are going to see how to transform one point.
  • In order to transform an object, we transform the
    points that define it. For instance
  • Polygon its vertices
  • Circle its center and, perhaps, its radius

5
2D Transforms Translation
  • Add a distance in x and y to the point.

V
T
V
6
  • Translation

7
Scaling
  • Changing the size of an object
  • In the figure, sx sy 0.5.
  • The size of the line is reduced and moved closer
    to the origin.

8
  • Scaling

9
Rotation
  • A point is rotated around the origin.
  • Rotation is through an angle q.

x, y
q
x, y
10
  • Rotation

11
Translation in Homogeneous Coordinates (HC)
12
Scaling in HC
13
Rotation in HC
14
Composition of transformationsImages taken from
Hearn Baker. Computer Graphics with OpenGL.
3rd Ed.
  • Example Rotate an object around an arbitrary
    point.
  • Translate P so that the axis is at the origin
  • Rotate the object
  • Translate the object so that P returns to its
    position

15
Composition of Transformations
  • The final transform becomes a multiplication of
    several matrices.

16
Composition of transformationsImages taken from
Hearn Baker. Computer Graphics with OpenGL.
3rd Ed.
  • Example Scale an object in its place

17
Composition of transformations
  • Multiplication of matrices

18
Inverse transformations
  • The inverse of the transformation is the inverse
    of its matrix
  • Translation

19
Inverse transformations
  • Rotation

20
Inverse transformations
  • Scaling

21
Transformation composition properties
  • Multiplication of matrices is associative

22
Transformation Composition properties
  • Multiplication of matrices is not commutative

23
Transformation composition propertiesImages
taken from Hearn Baker. Computer Graphics with
OpenGL. 3rd Ed.
24
Other two-dimensional transformations
  • Reflection around the x axis (y 0).

25
Other two-dimensional transformations
  • Reflection around the y axis (x 0).

26
Other two-dimensional transformations
  • Reflection relative to the coordinate origin.

27
Shear
  • A transformation that distorts the shape of an
    object such that the transformed shape appears as
    if the object were composed of internal layers
    that had been caused to slide over each other is
    called a shear.

28
Shear
  • The transformed positions are
Write a Comment
User Comments (0)
About PowerShow.com