Transformations Jehee Lee Seoul National University.

Slides:



Advertisements
Similar presentations
Computer Graphics Lecture 4 Geometry & Transformations.
Advertisements

1 Computer Graphics Chapter 8 3D Transformations.
1 ME 302 DYNAMICS OF MACHINERY Dynamic Force Analysis IV Dr. Sadettin KAPUCU © 2007 Sadettin Kapucu.
Kinematics Pose (position and orientation) of a Rigid Body
1 Computer Graphics Chapter 6 2D Transformations.
Two-Dimensional Geometric Transformations
Transformations II Week 2, Wed Jan 17
2D Geometric Transformations
Image Warping : Computational Photography Alexei Efros, CMU, Fall 2006 Some slides from Steve Seitz
1 CSCE 441 Computer Graphics: 2D Transformations Jinxiang Chai.
2D/3D Geometric Transformations CS485/685 Computer Vision Dr. George Bebis.
Image Warping : Computational Photography Alexei Efros, CMU, Fall 2008 Some slides from Steve Seitz
Ch. 2: Rigid Body Motions and Homogeneous Transforms
Ch. 4: Velocity Kinematics
3-D Geometry.
©College of Computer and Information Science, Northeastern UniversityJune 26, CS U540 Computer Graphics Prof. Harriet Fell Spring 2009 Lecture 11.
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.
3D Graphics Goal: To produce 2D images of a mathematically described 3D environment Issues: –Describing the environment: Modeling (mostly later) –Computing.
Rotations and Translations
COS 397 Computer Graphics Svetla Boytcheva AUBG, Spring 2013.
©College of Computer and Information Science, Northeastern UniversitySeptember 9, CS 4300 Computer Graphics Prof. Harriet Fell Fall 2011 Lecture.
Geometric Transformation. So far…. We have been discussing the basic elements of geometric programming. We have discussed points, vectors and their operations.
Transformations Dr. Amy Zhang.
Graphics Graphics Korea University cgvr.korea.ac.kr 2D Geometric Transformations 고려대학교 컴퓨터 그래픽스 연구실.
Lecture Notes: Computer Graphics.
Homogeneous Coordinates (Projective Space) Let be a point in Euclidean space Change to homogeneous coordinates: Defined up to scale: Can go back to non-homogeneous.
Geometric Transformations Jehee Lee Seoul National University.
2003CS Hons RW778 Graphics1 Chapter 5: Transforming Objects 5.2 Introduction to Transformations 5.2 Introduction to Transformations –Affine transformations.
2D Geometric Transformations
CSE 681 Review: Transformations. CSE 681 Transformations Modeling transformations build complex models by positioning (transforming) simple components.
Geometric Transformations
CS 376 Introduction to Computer Graphics 02 / 16 / 2007 Instructor: Michael Eckmann.
Matrices, Transformations and the 3D Pipeline Matthew Rusch Paul Keet.
Transformations of Objects – 3D
Transformation.
Computer Graphics 3D Transformations. Translation.
Two-Dimensional Geometric Transformations ch5. 참조 Subjects : Basic Transformations Homogeneous Coordinates Composite Transformations Other Transformations.
Geometric Transformations
Multimedia Programming 07: Image Warping Keyframe Animation Departments of Digital Contents Sang Il Park.
Geometric Transformations Sang Il Park Sejong University Many slides come from Jehee Lee’s.
Geometric Transformations UBI 516 Advanced Computer Graphics Aydın Öztürk
CSCI 425/ D Mathematical Preliminaries. CSCI 425/525 2 Coordinate Systems Z X Y Y X Z Right-handed coordinate system Left-handed coordinate system.
Affine Geometry.
Instructor: Mircea Nicolescu Lecture 9
Geometric Transformations. Transformations Linear transformations Rigid transformations Affine transformations Projective transformations T Global reference.
Computer Graphics I, Fall 2010 Transformations.
CS 325 Introduction to Computer Graphics 02 / 19 / 2010 Instructor: Michael Eckmann.
4. Affine transformations. Reading Required:  Watt, Section 1.1. Further reading:  Foley, et al, Chapter  David F. Rogers and J. Alan Adams,
CSCE 441 Computer Graphics: 2D Transformations
Modeling Transformation
Robotic Arms and Matrices By Chris Wong and Chris Marino.
Transformations University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2016 Tamara Munzner.
Computer Graphics Lecture 15 Fasih ur Rehman. Last Class Combining Transformations Affine versus Rigid body Transformations Homogenous Transformations.
Ch. 2: Rigid Body Motions and Homogeneous Transforms
3. Transformation
Lecture 3 Jitendra Malik
Computer Graphics CC416 Week 15 3D Graphics.
Review: Transformations
Review: Transformations
2D Transformations y y x x y x.
Computer Graphics Transformations
CSC4820/6820 Computer Graphics Algorithms Ying Zhu Georgia State University Transformations.
Transformations 3 University of British Columbia
(c) University of Wisconsin, CS559
Geometrical Transformations
Transformations.
Transformations 2 University of British Columbia
TWO DIMENSIONAL TRANSFORMATION
Translation in Homogeneous Coordinates
Presentation transcript:

Transformations Jehee Lee Seoul National University

Transformations Linear transformations Rigid transformations Affine transformations Projective transformations T Global reference frame Local moving frame

Linear Transformations A linear transformation T is a mapping between vector spaces – T maps vectors to vectors –linear combination is invariant under T In 3-space, T can be represented by a 3x3 matrix

Examples of Linear Transformations 2D rotation 2D scaling

Examples of Linear Transformations 2D shear –Along X-axis –Along Y-axis

Examples of Linear Transformations 2D reflection –Along X-axis –Along Y-axis

Properties of Linear Transformations Any linear transformation between 3D spaces can be represented by a 3x3 matrix Any linear transformation between 3D spaces can be represented as a combination of rotation, shear, and scaling Rotation can be represented as a combination of scaling and shear –Is this combination unique ?

Properties of Linear Transformations Rotation can be computed as two-pass shear transformations

Changing Bases Linear transformations as a change of bases

Changing Bases Linear transformations as a change of bases

Affine Transformations An affine transformation T is a mapping between affine spaces –T maps vectors to vectors, and points to points –T is a linear transformation on vectors –affine combination is invariant under T In 3-space,T can be represented by a 3x3 matrix together with a 3x1 translation vector

Properties of Affine Transformations Any affine transformation between 3D spaces can be represented by a 4x4 matrix Any affine transformation between 3D spaces can be represented as a combination of a linear transformation followed by translation

Properties of Affine Transformations An affine transf. maps lines to lines An affine transf. maps parallel lines to parallel lines An affine transf. preserves ratios of distance along a line An affine transf. does not preserve absolute distances and angles

Examples of Affine Transformations 2D rotation 2D scaling

Examples of Affine Transformations 2D shear 2D translation

Examples of Affine Transformations 2D transformation for vectors –Translation is simply ignored

Examples of Affine Transformations 3D rotation How can we rotate about an arbitrary line ?

Pivot-Point Rotation Rotation with respect to a pivot point (x,y)

Fixed-Point Scaling Scaling with respect to a fixed point (x,y)

Scaling Direction Scaling along an arbitrary axis

Composite Transformations Composite 2D Translation

Composite Transformations Composite 2D Scaling

Composite Transformations Composite 2D Rotation

Composing Transformations Suppose we want, We have to compose two transformations

Composing Transformations Matrix multiplication is not commutative Translation followed by rotation Translation followed by rotation

Composing Transformations –R-to-L : interpret operations w.r.t. fixed coordinates –L-to-R : interpret operations w.r.t local coordinates (Column major convention)

Review of Affine Frames A frame is defined as a set of vectors {v i | i=1, …, N } and a point o –Set of vectors {v i } are bases of the associate vector space –o is an origin of the frame –N is the dimension of the affine space –Any point p can be written as –Any vector v can be written as

Changing Frames Affine transformations as a change of frame

Changing Frames Affine transformations as a change of frame

Rigid Transformations A rigid transformation T is a mapping between affine spaces –T maps vectors to vectors, and points to points –T preserves distances between all points –T preserves cross product for all vectors (to avoid reflection) In 3-spaces, T can be represented as

Rigid Body Transformations Rigid body transformations allow only rotation and translation Rotation matrices form SO(3) –Special orthogonal group (Distance preserving) (No reflection)

Summary Linear transformations –3x3 matrix –Rotation + scaling + shear Rigid transformations –SO(3) for rotation –3D vector for translation Affine transformation –3x3 matrix + 3D vector or 4x4 homogenous matrix –Linear transformation + translation Projective transformation –4x4 matrix –Affine transformation + perspective projection

Questions What is the composition of linear/affine/rigid transformations ? What is the linear (or affine) combination of linear (or affine) transformations ? What is the linear (or affine) combination of rigid transformations ?