2D Geometric Transformations

Slides:



Advertisements
Similar presentations
Computer Graphics: 2D Transformations
Advertisements

Computer Graphics: 3D Transformations
COMPUTER GRAPHICS 2D TRANSFORMATIONS.
Geometric Transformations
Two-Dimensional Geometric Transformations
CMPE 466 COMPUTER GRAPHICS
1 Geometrical Transformation 2 Outline General Transform 3D Objects Quaternion & 3D Track Ball.
Elementary 3D Transformations - a "Graphics Engine" Transformation procedures Transformations of coordinate systems Translation Scaling Rotation.
1 CSCE 441 Computer Graphics: 2D Transformations Jinxiang Chai.
1 Geometrical Transformation Tong-Yee Lee. 2 Modeling Transform Specify transformation for objects Allow definitions of objects in own coordinate systems.
Computer Graphics with OpenGL 3e
April Geometric Transformations for Computer Graphics Shmuel Wimer Bar Ilan Univ., School of Engineering.
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
COS 397 Computer Graphics Svetla Boytcheva AUBG, Spring 2013.
5.2 Three-Dimensional Geometric and Modeling Transformations 2D3D Consideration for the z coordinate.
Transformation of Graphics
Graphics Graphics Korea University cgvr.korea.ac.kr 2D Geometric Transformations 고려대학교 컴퓨터 그래픽스 연구실.
2D Transformation of Graphics
Lecture Notes: Computer Graphics.
Transformation a change of position, shape or size of a figure Three types of transformation A slide called a translation A flip, called a reflection The.
Transformations Jehee Lee Seoul National University.
Geometric Transformations
Computer Graphics 2D Transformations. 2 of 74 Contents In today’s lecture we’ll cover the following: –Why transformations –Transformations Translation.
Chapter 9 Transformations.
An operation that moves or changes a geometric figure (a preimage) in some way to produce a new figure (an image). Congruence transformations – Changes.
Lesson 10-5: Transformations 1 Lesson 9 Transformations G.CO2, Represent transformation in plane describe as a function that take points in the plane as.
Introduction to Computer Graphics Geometric Transformations
Computer Graphics 3D Transformations. Translation.
Two-Dimensional Geometric Transformations ch5. 참조 Subjects : Basic Transformations Homogeneous Coordinates Composite Transformations Other Transformations.
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.
Geometric Transformations UBI 516 Advanced Computer Graphics Aydın Öztürk
January 19, y X Z Translations Objects are usually defined relative to their own coordinate system. We can translate points in space to new positions.
3-D Geometric Transformations
3D Geometric Transformation
3D Geometric Transformation
Learning Objectives Affine transformations Affine transformations Translation Translation Rotation Rotation Scaling Scaling Reflection Reflection Shear.
Coordinates and Design. What You Will Learn: To use ordered pairs to plot points on a Cartesian plane To draw designs on a Cartesian plane To identify.
Perform Congruence Transformations. Transformations: when you move or change a geometric figure in some way to produce a new figure. Image is what the.
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.
Jinxiang Chai CSCE441: Computer Graphics 3D Transformations 0.
Geometric Transformations Ceng 477 Introduction to Computer Graphics Computer Engineering METU.
Computer Graphic 2 D Transformation.
CSCE 441 Computer Graphics: 2D Transformations
3D Geometry and 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.
Geometric Transformations for Computer Graphics
Geometric Transformations for Computer Graphics
3D Geometric Transformation
3. Transformation
Geometric Transformations Hearn & Baker Chapter 5
2D Transformations By: KanwarjeetSingh
2D Geometric Transformations
3D Transformation.
Computer Graphics 3D Transformations
3D Geometric Transformations
Computer Graphics Transformations.
Lecture 7 Geometric Transformations (Continued)
Computer Graphics Transformations
Unit 1 Transformations in the Coordinate Plane
Geometric Transformations for Computer Graphics
Unit 5 Transformations in the Plane
TRANSFORMATIONS Translations Reflections Rotations
Transformations.
Translation in Homogeneous Coordinates
Presentation transcript:

2D Geometric Transformations Chapter 4 2D Geometric Transformations

Agenda Definition & Motivation 2D Geometric Transformation Translation Rotation Scaling Matrix Representation Homogeneous Coordinates Matrix Composition Composite Transformations Pivot-Point Rotation General Fixed-Point Scaling Reflection and Shearing Transformations Between Coordinate Systems

Geometric Transformation Definition Translation, Rotation, Scaling Motivation – Why do we need geometric transformations in CG? As a viewing aid As a modeling tool As an image manipulation tool

Basic 2D Transformations Translation Scale Rotation Shear

Transformation Matrix Notation Inverse Transformation Matrix Matrix Notations Transformation Name Transformation Matrix Notation Inverse Transformation Matrix Translation T(a, b) T-1(a,b) = T(-a, -b) Rotation R(θ) R-1(θ) = R(-θ) Scaling S(sx, sy) S-1 (sx, sy) =( 1 𝑆𝑥 , 1 𝑆𝑦 ) Reflection About x-axis Mx(a, b) Mx-1 (a, b) = Mx(a, -b) Reflection About y-axis My(a, b) My-1 (a, b) = My(-a, b) Reflection About the origin Mo(a, b) Mo-1 (a, b) = Mo(-a, -b)

Matrix Representation Represent a 2D Transformation by a Matrix Apply the Transformation to a Point Transformation Matrix Point

Matrix Representation Transformations can be combined by matrix multiplication Transformation Matrix Matrices are a convenient and efficient way to represent a sequence of transformations

2×2 Matrix (2D Scaling) 2D Identity 2D Scaling

2×2 Matrix (2D Rotation & Shearing) 2D Shearing

2×2 Matrix (2D Reflection) 2D Mirror over Y axis 2D Mirror over (0,0)

2×2 Matrix (2D Translation) This transformation cannot be represented with a 2×2 matrix? 2D Translation NO!! Only linear 2D transformations can be Represented with 2x2 matrix

Homogeneous coordinates Reason? Unification and extension of concepts Best way to represent a sequence of transformations 2D translation can be represented by a 3×3 matrix Point represented with homogeneous coordinates

Basic 2D Translation A translation moves all points of an object a fixed distance in a specified direction.

Basic 2D Rotation It rotates points in the xy-Cartesian plane counterclockwise through an angle θ about the origin of the Cartesian coordinate system.

Basic 2D Scaling It is a linear transformation that enlarges (increases) or shrinks (diminishes) objects by a scale factor that is the same in all directions.

Basic 2D Shearing A transformation that distorts the shape of an object. Two types of shearing transformations are there about X values and about Y values

Basic 2D Transformations Basic 2D transformations as 3x3 Matrices Translate Scale Rotate Shear

Matrix Composition Transformations can be combined by matrix multiplication Matrix multiplication is associative

Matrix Composition Rotate by  around arbitrary point (a,b) Scale by sx, sy around arbitrary point (a,b) (a,b) (a,b)

Pivot-Point Rotation (xr,yr) Translate Rotate Translate

General Fixed-Point Scaling (xf,yf) Translate Scale Translate

Translate-Rotate-Translate Final position Original position

Reflection Reflection about x-axis (y=0) Reflection about y-axis (x=0) Refection about the origin (0, 0) Reflection about the line y = x Reflection about the line y = ax + b

Reflection about x-axis (y=0) 1 x 3 2 1’ 3’ 2’

Reflection about y-axis (x=0) 1 3 2 1’ 3’

Refection about the origin (0, 0) x y 3 1’ 3’ 2 1

Reflection about the line y = x Reflection with respect to a Line Clockwise rotation of 45  Reflection about the x axis  Counterclockwise rotation of 45 x y x y x y 1 3 2 1’ 3’ 2’ x y

Reflection about the line y = -x

Reflection about the line y = ax+b Translation Rotation Reflection Reverse Rotation Reverse Translation x y