Two-Dimensional Geometric Transformations ch5. 참조 Subjects : Basic Transformations Homogeneous Coordinates Composite Transformations Other Transformations.

Slides:



Advertisements
Similar presentations
COMPUTER GRAPHICS 2D TRANSFORMATIONS.
Advertisements

Gursharan Singh Tatla TRANSFORMATIONS Gursharan Singh Tatla Gursharan Singh Tatla.
Computer Graphics Lecture 4 Geometry & Transformations.
Geometric Transformations
Three Dimensional Modeling Transformations
1 Computer Graphics Chapter 6 2D Transformations.
Chapter 5 Geometric Transformations
Two-Dimensional Geometric Transformations
2D TRANSFORMATIONS.
CMPE 466 COMPUTER GRAPHICS
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Transformations II Week.
1 CSCE 441 Computer Graphics: 2D Transformations Jinxiang Chai.
Computer Graphics with OpenGL 3e
2D Transformations x y x y x y. 2D Transformation Given a 2D object, transformation is to change the object’s Position (translation) Size (scaling) Orientation.
2D Transformations Unit - 3. Why Transformations? In graphics, once we have an object described, transformations are used to move that object, scale it.
CS 450: Computer Graphics 2D TRANSFORMATIONS
UNIT - 5 3D transformation and viewing. 3D Point  We will consider points as column vectors. Thus, a typical point with coordinates (x, y, z) is represented.
COS 397 Computer Graphics Svetla Boytcheva AUBG, Spring 2013.
Geometric Transformation. So far…. We have been discussing the basic elements of geometric programming. We have discussed points, vectors and their operations.
Transformation of Graphics
Graphics Graphics Korea University cgvr.korea.ac.kr 2D Geometric Transformations 고려대학교 컴퓨터 그래픽스 연구실.
2D Transformation of Graphics
Lecture Notes: Computer Graphics.
Dx = 2 dy = 3 Y X D Translation A translation is applied to an object by repositioning it along a straight-line path.
2D Geometric Transformations
Part7: Geometric Transformations
CSE 681 Review: Transformations. CSE 681 Transformations Modeling transformations build complex models by positioning (transforming) simple components.
Transformations Jehee Lee Seoul National University.
Geometric Transformations
Chapter 7 Transformations.
Computer Graphics 2D Transformations. 2 of 74 Contents In today’s lecture we’ll cover the following: –Why transformations –Transformations Translation.
CS559: Computer Graphics Lecture 8: 3D Transforms Li Zhang Spring 2008 Most Slides from Stephen Chenney.
Transformation.
Introduction to Computer Graphics Geometric Transformations
Computer Graphics 3D Transformations. Translation.
Two-Dimensional Geometric Transformations A two dimensional transformation is any operation on a point in space (x, y) that maps that point's coordinates.
Geometric Transformations Hearn & Baker Chapter 5 Some slides are taken from Robert Thomsons notes.
Geometric Transformations
GEOMETRIC TRANFORMATIONS Presented By -Lakshmi Sahithi.
12/24/2015 A.Aruna/Assistant professor/IT/SNSCE 1.
2D Geometric Transformation Translation A translation is applied to an object by repositioning it along a straight-line path from one coordinate location.
Geometric Transformations UBI 516 Advanced Computer Graphics Aydın Öztürk
Affine Geometry.
Learning Objectives Affine transformations Affine transformations Translation Translation Rotation Rotation Scaling Scaling Reflection Reflection Shear.
CS559: Computer Graphics Lecture 9: 3D Transformation and Projection Li Zhang Spring 2010 Most slides borrowed from Yungyu ChuangYungyu Chuang.
Unit 10 Transformations. Lesson 10.1 Dilations Lesson 10.1 Objectives Define transformation (G3.1.1) Differentiate between types of transformations (G3.1.2)
III- 1 III 3D Transformation Homogeneous Coordinates The three dimensional point (x, y, z) is represented by the homogeneous coordinate (x, y, z, 1) In.
Computer Graphics I, Fall 2010 Transformations.
1 Teaching Innovation - Entrepreneurial - Global The Centre for Technology enabled Teaching & Learning, N Y S S, India DTEL DTEL (Department for Technology.
CS 325 Introduction to Computer Graphics 02 / 19 / 2010 Instructor: Michael Eckmann.
Geometric Transformations Ceng 477 Introduction to Computer Graphics Computer Engineering METU.
2D Transformations What is transformations? The geometrical changes of an object from a current state to modified state. Why the transformations is needed?
Computer Graphic 2 D Transformation.
Image Warping 2D Geometric Transformations
CSCE 441 Computer Graphics: 2D Transformations
Modeling Transformation
Instructor: Dr. Shereen Aly Taie Basic Two-Dimensional Geometric Transformation 5.2 Matrix Representations and Homogeneous Coordinates 5.3 Inverse.
Forward Projection Pipeline and Transformations CENG 477 Introduction to Computer Graphics.
Transforms.
3. Transformation
Geometric Transformations Hearn & Baker Chapter 5
2D Transformations By: KanwarjeetSingh
2D Geometric Transformations
Computer Graphics CC416 Week 15 3D Graphics.
2D Transformations with Matrices
Computer Graphics 3D Transformations
2D Transformations y y x x y x.
Line and Character Attributes 2-D Transformation
Chapter IV Spaces and Transforms
TWO DIMENSIONAL TRANSFORMATION
Presentation transcript:

Two-Dimensional Geometric Transformations ch5. 참조 Subjects : Basic Transformations Homogeneous Coordinates Composite Transformations Other Transformations Properties of Transformation matrix

Basic Transformations : Translation (1/2) Translation ( 이동 )  Definition : repositioning objects along a straight line path from one position to another  Let : original position, : new position  We need translation distance (translation vector) for x direction for y direction  Then,

Translation (2/2)  In matrix form  Translation is rigid-body Transformation that moves objects without deformation every point on the object is translated by the same amount  For straight line applying translation distance to each line end points  For polygon, curves

Basic Transformations : Rotation (1/3) Rotation  Definition : repositioning objects along a circular path in the xy plane  We need to specify rotation angle rotation point (pivot point) direction (clockwise (-), counter clockwise(+))  a rotation about a rotation axis Z

Rotation (2/3) Rotation angle : rotation point : origin (0,0) direction : c.c.w  Then where original points are so,

Rotation (3/3)  In matrix form called Rotation matrix  Rotation about an arbitrary pivot position  As with translations, rotations are rigid-body transformations

Basic Transformations : scaling (1/2) Scaling  Definition : alters the size of an objects  we need scaling factors : for x value : for y value  In matrix form  Then  if : Uniform scaling : differential scaling

scaling (2/2)  if : uniform compression move objects to the coordinate origin  if : uniform Enlargement move objects farther from the origin  Fixed point scaling : scaling based on a fixed point An object is scaled relative to the fixed point by scaling distance from each vertex to fixed point when

Homogeneous Coordinates (1/4)  Let’s consider combination of two transformation, translation after rotation  We can combine two matrices into a single matrix by expanding the 2x2 matrix to 3x3 matrix i.e.

Homogeneous Coordinates (2/4)  To utilize above 3x3 matrix, represent Cartesian coordinate point (x,y) with the Homogeneous Coordinate (x h, y h, h) where  Homogeneous Coordinate  Homogeneous Coordinate : (x h, y h, h) first developed in geometry (1946) applied in graphics by Roberts (1965) usually h=1 (called weight value) then (2,3) = (2,3,1) = (1,1.5,0.5)

Homogeneous Coordinates (3/4) there is infinite number of equivalent representation for point (x,y) origin case (0,0,1) for (x h, y h, h), at least one of triple must be nonzero, i.e. (0,0,0) is not allowed if (x,y,0) called point at infinity  For Translation, Rotation, Scaling Translation:Scaling: Rotation:

Homogeneous Coordinates (4/4)  with the H.G.C we can perform uniform scaling with scaling factor S when S>1 : Uniform compression 0<S<1 : Uniform enlargement  with the H.G.C the transformation matrix be 3x3, i.e. m, n : translation factor s : scaling factor

Composite Transformation (1/2) Translation  If two successive translation factor (t x1, t y1 ) and (t x2, t y2 ) are applied to a coordinate point P then ex) i.e,  Two successive Translation are additive

Composite Transformation (2/2) Rotation  two successive rotation  two successive rotations are also additive Scaling  successive scalings are multiplicative

General pivot-point Rotation (1/2) Rotation about arbitrary point p (x r, y r )  step1) Translate P to origin  step2) Rotation about origin  step3) Retranslation to position P.

General pivot-point Rotation (2/2)  Composite transformation matrix

General Fixed-Point Scaling Scaling about arbitrary point p(x r, y r )  step 1) translate p to origin  step 2) scaling about origin  step 3) Retranslate to position P

General Scaling Directions  Normal scaling performed along x and y directions  To accomplish the scaling for arbitrary direction without changing object orientation Rotate direction by Perform scaling Rerotate by

Concatenation properties.  Matrix multiplication : associative ex) For three matrices A, B and C Translation or Rotation : additive property commutative scaling : multiplicative property commutative  However, Translation and Rotation : non commutative order of transformation matrix multiplication is important

Other Transformations : Reflection (1/4) Reflection : produce a mirror images of an object  We need axis of reflection  rotating the objects 180  about reflection axis  Reflection about line y=0, the x axis. x coordinate values are unchanged the transformation matrix

Reflection (2/4)  Reflection about line x=0, the y axis y coordinate values are unchanged  Reflection about origin both x and y values are changed

Reflection (3/4)  Reflection through arbitrary point P (x r, y r ) translate point p to origin : Tr perform reflection about origin : Ro retranslate to original position : Tr  Reflection through y=x line

Reflection (4/4)  Reflection through an arbitrary line y=Lx+b

Other Transformations: Shear (1/3) Shear : distorts the shape of an object  Shearing (slide over) can be done either x or y direction  x direction shearing by shearing factor sh x point is shifted by horizontally by an amount proportional to its distance from x-axis y values are unchanged

Shear (2/3) So, Transformed positions  y direction shearing  x-direction shearing relative to line

Shear (3/3)  y-direction shearing relative to line

Properties of Transformation matrix (1/5) Properties of Rotation matrix  case1) rotate point p p’ c.c.w direction by  case2) rotate point p’ p c.w. direction by same result to rotate ( ) to c.c.w direction is a Inverse matrix of i.e,

Properties of Transformation matrix (2/5)  Examine (A) & (B) then Inverse matrix = Transpose matrix of R I.e,  So, the inverse of the general rotation matrix [R] is its transpose  Def) An nxn matrix A is an orthogonal matrix if  Def) Every 2x2 orthogonal matrix R with det[R]=1 is pure rotation matrix

Properties of Transformation matrix (3/5) Properties of Reflection matrix  Determinant of Reflection matrix = -1  Def) Every 2x2 orthogonal matrix R with det(R) = -1 is a pure reflection matrix  If two pure reflections about line passing through the origin are applied successively, the result is a pure rotation about the origin ex) reflection through x axis (R X ) and reflection through y axis (R Y )

Properties of Transformation matrix (4/5) Rigid-body Transformation  concept : moves object without deformation i.e, perpendicular lines transformed as perpendicular lines or unit square remains a unit square  Translation, rotation, or combination of both

Properties of Transformation matrix (5/5) Affine Transformation  Concepts : parallel lines transformed as parallel lines finite points maps to finite points but not length and angle Rot, Trans, Ref preserves angle and length Tra, Rot, Sca, Ref, and Shr or combination of those