Transformations 2 University of British Columbia

Slides:



Advertisements
Similar presentations
CS 691 Computational Photography Instructor: Gianfranco Doretto Image Warping.
Advertisements

Computer Graphics Lecture 4 Geometry & Transformations.
Geometric Transformations
1 Computer Graphics Chapter 6 2D Transformations.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2007 Tamara Munzner Transformations III Week.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2007 Tamara Munzner Transformations I Week.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Transformations Week 2,
Transformations II Week 2, Wed Jan 17
1 Geometrical Transformation 2 Outline General Transform 3D Objects Quaternion & 3D Track Ball.
2D Geometric Transformations
Lecture 11: Transformations CS4670/5760: Computer Vision Kavita Bala.
Image Warping : Computational Photography Alexei Efros, CMU, Fall 2006 Some slides from Steve Seitz
Lecture 8: Geometric transformations CS4670: Computer Vision Noah Snavely.
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
Image Warping : Computational Photography Alexei Efros, CMU, Fall 2005 Some slides from Steve Seitz
University of British Columbia © MIchiel van de Panne Geometric Transformations and quick OpenGL intro.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2008 Tamara Munzner OpenGL, GLUT, Transformations.
1 Geometrical Transformation Tong-Yee Lee. 2 Modeling Transform Specify transformation for objects Allow definitions of objects in own coordinate systems.
Introduction to Computer Graphics CS 445 / 645 Lecture 5 Transformations Transformations M.C. Escher – Smaller and Smaller (1956)
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology 3D Engines and Scene Graphs Spring 2012.
COS 397 Computer Graphics Svetla Boytcheva AUBG, Spring 2013.
1 Homogeneous Coordinates and Transformation. 2 Line in R 2 General line equation Normalize: Distance to origin (projection along n) n (x,y) For any two.
Warping CSE 590 Computational Photography Tamara Berg.
Graphics Graphics Korea University cgvr.korea.ac.kr 2D Geometric Transformations 고려대학교 컴퓨터 그래픽스 연구실.
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.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2010 Tamara Munzner GLUT, Transformations.
Transformations Jehee Lee Seoul National University.
3D transformations Dr Nicolas Holzschuch University of Cape Town Modified by Longin Jan Latecki
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Affine Transformations.
Computer Graphics 3D Transformations. Translation.
Two-Dimensional Geometric Transformations ch5. 참조 Subjects : Basic Transformations Homogeneous Coordinates Composite Transformations Other Transformations.
Geometric Transformations Hearn & Baker Chapter 5 Some slides are taken from Robert Thomsons notes.
Geometric Transformations
Multimedia Programming 07: Image Warping Keyframe Animation Departments of Digital Contents Sang Il Park.
Geometric Transformations UBI 516 Advanced Computer Graphics Aydın Öztürk
Affine Geometry.
Recap from Monday DCT and JPEG Point Processing Histogram Normalization Questions: JPEG compression levels Gamma correction.
Geometric Transformations. Transformations Linear transformations Rigid transformations Affine transformations Projective transformations T Global reference.
Jinxiang Chai CSCE441: Computer Graphics 3D Transformations 0.
4. Affine transformations. Reading Required:  Watt, Section 1.1. Further reading:  Foley, et al, Chapter  David F. Rogers and J. Alan Adams,
Image Warping 2D Geometric Transformations
Modeling Transformation
Transformations. Modeling Transformations  Specify transformations for objects  Allows definitions of objects in own coordinate systems  Allows use.
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.
Final Review I University of British Columbia
Lecture 10 Geometric Transformations In 3D(Three- Dimensional)
3. Transformation
Geometric Transformations Hearn & Baker Chapter 5
Computer Graphics CC416 Week 15 3D Graphics.
3D Geometric Transformations
Introduction to Computer Graphics CS 445 / 645
Homogeneous Coordinates (Projective Space)
Image Warping (Szeliski Sec 2.1.2)
Image Warping (Szeliski Sec 2.1.2)
Computer Graphics Transformations
Image Warping : Computational Photography
Transformations 6 University of British Columbia
Homogeneous Coordinates and Transformation
Recap from Friday Image Completion Synthesis Order Graph Cut Scene Completion.
Transformations 3 University of British Columbia
Image Warping : Computational Photography
2D Geometric Transformations
Transformations 4 University of British Columbia
Image Warping (Szeliski Sec 2.1.2)
Geometrical Transformations
OpenGL, GLUT, Transformations I Week 2, Wed Jan 16
3D transformations Dr Nicolas Holzschuch University of Cape Town
TWO DIMENSIONAL TRANSFORMATION
Presentation transcript:

Transformations 2 University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2016 Tamara Munzner Transformations 2 http://www.ugrad.cs.ubc.ca/~cs314/Vjan2016

Readings for Transformations 1-5 Shirley/Marschner Ch 6: Transformation Matrices except 6.1.6, 6.3.1 Sect 12.2 Scene Graphs Gortler Ch 2: Linear, Sec 2.5-2.6 Ch 3: Affine Ch 4: Respect Ch 5: Frames in Graphics, 5.3-5.4

2D Transformations

2D Translation vector addition (x’,y’) (x,y) matrix multiplication scaling matrix rotation matrix translation multiplication matrix??

Linear Transformations linear transformations are combinations of shear scale rotate reflect properties of linear transformations satisifes T(sx+ty) = s T(x) + t T(y) origin maps to origin lines map to lines parallel lines remain parallel ratios are preserved closed under composition

Challenge matrix multiplication for everything except translation can we just do everything with multiplication? then could just do composition, no special cases

Homogeneous Coordinates represent 2D coordinates (x,y) with 3-vector (x,y,1) use 3x3 matrices for 2D transformations use rightmost column

Homogeneous Coordinates Geometrically point in 2D cartesian y x

Homogeneous Coordinates Geometrically cartesian / w x y w w=1 point in 2D cartesian + weight w = point P in 3D homog. coords multiples of (x,y,w) form a line L in 3D all homogeneous points on L represent same 2D cartesian point example: (2,2,1) = (4,4,2) = (1,1,0.5)

Homogeneous Coordinates Geometrically cartesian / w x y w w=1 homogenize to convert homog. 3D point to cartesian 2D point: divide by w to get (x/w, y/w, 1) projects line to point onto w=1 plane like normalizing, one dimension up when w=0, consider it as direction points at infinity these points cannot be homogenized lies on x-y plane (0,0,0) is undefined

Affine Transformations affine transforms are combinations of linear transformations translations properties of affine transformations origin does not necessarily map to origin lines map to lines parallel lines remain parallel ratios are preserved closed under composition

Homogeneous Coordinates Summary may seem unintuitive, but they make graphics operations much easier allow all affine transformations to be expressed through matrix multiplication we’ll see even more later... use 3x3 matrices for 2D transformations use 4x4 matrices for 3D transformations