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.

Slides:



Advertisements
Similar presentations
Lecture 3: Transformations and Viewing. General Idea Object in model coordinates Transform into world coordinates Represent points on object as vectors.
Advertisements

1 A camera is modeled as a map from a space pt (X,Y,Z) to a pixel (u,v) by ‘homogeneous coordinates’ have been used to ‘treat’ translations ‘multiplicatively’
Computer Graphics Lecture 4 Geometry & Transformations.
Recovery of affine and metric properties from images in 2D Projective space Ko Dae-Won.
1 Computer Graphics Chapter 8 3D Transformations.
Geometric Transformations
Projective Geometry- 3D
1 Computer Graphics Chapter 6 2D Transformations.
Transformations II Week 2, Wed Jan 17
Camera Models A camera is a mapping between the 3D world and a 2D image The principal camera of interest is central projection.
1 Geometrical Transformation 2 Outline General Transform 3D Objects Quaternion & 3D Track Ball.
2D Geometric Transformations
Multiple View Geometry Projective Geometry & Transformations of 2D Vladimir Nedović Intelligent Systems Lab Amsterdam (ISLA) Informatics Institute,
The 2D Projective Plane Points and Lines.
Projective geometry- 2D Acknowledgements Marc Pollefeys: for allowing the use of his excellent slides on this topic
Projective 2D geometry Appunti basati sulla parte iniziale del testo
Projective 3D geometry. Singular Value Decomposition.
1 Geometrical Transformation Tong-Yee Lee. 2 Modeling Transform Specify transformation for objects Allow definitions of objects in own coordinate systems.
6/28/2015©Zachary Wartell Homogenous Coordinates and Projective Geometry (Crudely Speaking) Revision 1.2 Copyright Zachary Wartell, University of North.
Projective 2D geometry course 2 Multiple View Geometry Comp Marc Pollefeys.
Lines and Planes in Space
04 – Geometric Transformations Overview Geometric Primitives –Points, Lines, Planes 2D Geometric Transformations –Translation, Rotation, Scaling, Affine,
CS 480/680 Computer Graphics Transformations Dr. Frederick C Harris, Jr.
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.
Autonomous Navigation for Flying Robots Lecture 2.2: 2D Geometry
CSE 681 Review: Transformations. CSE 681 Transformations Modeling transformations build complex models by positioning (transforming) simple components.
Transformations Jehee Lee Seoul National University.
Projective geometry ECE 847: Digital Image Processing Stan Birchfield Clemson University.
1.3 Lines and Planes. To determine a line L, we need a point P(x 1,y 1,z 1 ) on L and a direction vector for the line L. The parametric equations of a.
13 B Lines in 2D and 3D. The vector AB and the vector equation of the line AB are very different things. x x x x The line AB is a line passing through.
Geometric Camera Models
Geometric Objects and Transformation
CSE Real Time Rendering Week 5. Slides(Some) Courtesy – E. Angel and D. Shreiner.
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
Projective Geometry Hu Zhan Yi. Entities At Infinity The ordinary space in which we lie is Euclidean space. The parallel lines usually do not intersect.
12/24/2015 A.Aruna/Assistant professor/IT/SNSCE 1.
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.
CS559: Computer Graphics Lecture 9: 3D Transformation and Projection Li Zhang Spring 2010 Most slides borrowed from Yungyu ChuangYungyu Chuang.
Computer Graphics I, Fall 2010 Transformations.
4. Affine transformations. Reading Required:  Watt, Section 1.1. Further reading:  Foley, et al, Chapter  David F. Rogers and J. Alan Adams,
3D Lines and Planes.
Lecture 15: Transforms and Alignment CS4670/5670: Computer Vision Kavita Bala.
Modeling Transformation
Transformations. Modeling Transformations  Specify transformations for objects  Allows definitions of objects in own coordinate systems  Allows use.
Projective 2D geometry course 2 Multiple View Geometry Comp Marc Pollefeys.
Extended Work on 3D Lines and Planes. Intersection of a Line and a Plane Find the point of intersection between the line and the plane Answer: (2, -3,
Projective geometry ECE 847: Digital Image Processing Stan Birchfield Clemson University.
Computer Graphics Lecture 15 Fasih ur Rehman. Last Class Combining Transformations Affine versus Rigid body Transformations Homogenous Transformations.
Chapter 11 Three-Dimensional Geometric and Modeling Transformations
Lecture 10 Geometric Transformations In 3D(Three- Dimensional)
Lines and Planes In three dimensions, we use vectors to indicate the direction of a line. as a direction vector would indicate that Δx = 7, Δy = 6, and.
3. Transformation
Projective geometry ECE 847: Digital Image Processing Stan Birchfield
Review: Transformations
VECTORS APPLICATIONS NHAA/IMK/UNIMAP.
Intersection between - Lines, - Planes and - a plane & a Line
Lines and Planes in Space
Computer Graphics Transformations
CS Visual Recognition Projective Geometry Projective Geometry is a mathematical framework describing image formation by perspective camera. Under.
Homogeneous Coordinates and Transformation
Geometric Camera Models
Viewing and Perspective Transformations
Geometrical Transformations
Transformations 2 University of British Columbia
TWO DIMENSIONAL TRANSFORMATION
Presentation transcript:

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 points on the line:  n  line

3 Line in R 2 Parametric equation of a line Corresponding implicit form: Implicitize:

4 Affine Transformation Properties: Collinearity (maps a line to a line) Preserve ratio of distances (midpoint stays in the middle after transformation)

5 Common 2D Affine Transformations Translation Scaling Reflection (Q = I–2uu T ) Rotation about origin Shear

6 Homogeneous Coordinate Motivation: to unify representations of affine map (esp. translation)

7 Definitions Equivalence relation ~ on the set S = R 3 \ {(0,0,0)} Ex: Show that this relation is reflexive, symmetric, and transitive Equivalence classes of the relation ~ Homogeneous coordinates Projective plane P 2 : the set of all equivalence classes An equivalence class is referred to as a point in the projective plane.

8 Definitions Choose a representative (u/w, v/w, 1) 1-1 correspondence with Cartesian plane Points on P 2 : I. [(u,v,w)] with w  0 II. [(u,v,w)] with w = 0 Corresponds to points-at-infinity, each with a specific direction Points on P 2 : the plane R 2 plus all the points at infinity

9 Points at Infinity Points at infinity: (x,y,0) Reach the same point (at  ), from any starting point (x,y,0)

10 Parallel Lines Intersect at Infinity (-2,1,0)

11 Visualization Line model [and spherical model]

Visualization 12

13 Line in Cartesian Space (or any multiple of it)

14 Examples (cases in R2) The line passes through (3,1) and (-4,5) Intersection of

15 Two parallel linesDefining a line with a point at infinity

16 Plane in Cartesian Space Extend to P 3 and R 3

17 Intersection of Three Planes

18 Line in R 3 (Pl ü cker Coordinate) Line in parametric form Define Plucker coordinate of the line (q, q 0 ) p q q0q0

19 Space Transformation Translation Scaling Rotation about coordinate axes Rotation about arbitrary line Reflection about arbitrary plane (Q=I–2uu T )

20 Transformed Equations If transformation T is applied to geometry (line/plane), what’s the transformed equation? Apply T to homogenous line/plane equation?! NOT !! Answers: See handout p.3 (convert to parametric form; transform the points; then to implicit equation) More detailed version: see “homogeneous- transformation.ppt” from R. Paul (next page) Also related to the normal matrix in OpenGL.

21 From Richard Paul Ch.1

22 Summary Point u on a plane: Point u becomes v = Hu Plane P’ becomes P H -1 Reason: After transformation H Note if P is written as a column vector, the formula becomes P ’ = H -T P

23

24 Transformation v = Hu

25 From Opengl-1.ppt

26 Vectors and Points are Different! Point Homogenenous coordinate p = [x y z 1] M: affine transform (translate, rotate, scaling, reflect, …) p’= M p Vector Homogeneous coordinate v = [x y z 0] Affine transform (applicable when M is invertible (not full rank; projection to 2D is not) v’= (M -1 ) T v (ref)ref glVertex glNormal

27 v’=Mv won’t work

28 On (M -1 ) T The w (homogeneous coord) of vectors are 0; hence, the translation part (3  1 vector) plays no role For rotation, M -1 =M T, hence (M T ) T = M: rotate the vector as before For scaling:

29 Hence This is known as the normal matrix (ref)ref