04 – Geometric Transformations Overview Geometric Primitives –Points, Lines, Planes 2D Geometric Transformations –Translation, Rotation, Scaling, Affine,

Slides:



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

1 Computer Graphics Chapter 8 3D Transformations.
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.
CMPE 466 COMPUTER GRAPHICS
3D Coordinate Systems and Transformations Revision 1
3-D Geometry.
The Pinhole Camera Model
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
5.2 Three-Dimensional Geometric and Modeling Transformations 2D3D Consideration for the z coordinate.
Geometric Transformation. So far…. We have been discussing the basic elements of geometric programming. We have discussed points, vectors and their operations.
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.
Course 12 Calibration. 1.Introduction In theoretic discussions, we have assumed: Camera is located at the origin of coordinate system of scene.
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.
Geometric Transformations:
CS 376 Introduction to Computer Graphics 02 / 16 / 2007 Instructor: Michael Eckmann.
University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Introduction to computer vision Chapter 2: Image.
Computer Vision Lecture #2 Hossam Abdelmunim 1 & Aly A. Farag 2 1 Computer & Systems Engineering Department, Ain Shams University, Cairo, Egypt 2 Electerical.
©Larry F. Hodges (modified by Amos Johnson) 1 3-D Mathematical Preliminaries & Transformations.
Jinxiang Chai CSCE441: Computer Graphics 3D Transformations 0.
Jinxiang Chai Composite Transformations and Forward Kinematics 0.
Vector Space o Vector has a direction and a magnitude, not location o Vectors can be defined by their I, j, k components o Point (position vector) is a.
CS654: Digital Image Analysis Lecture 6: Basic Transformations.
Geometric Transformations CSE 455 Ali Farhadi Many slides from Steve Seitz and Larry Zitnick.
1.2: Transformations G-CO.6 Use geometric descriptions of rigid motions to transform figures and to predict the effect of a given rigid motion on a given.
CS 325 Introduction to Computer Graphics 02 / 22 / 2010 Instructor: Michael Eckmann.
Rigid Motion in a Plane Chapter 9 Section 1.
Computer Graphics 3D Transformations. Translation.
1 Chapter 2: Geometric Camera Models Objective: Formulate the geometrical relationships between image and scene measurements Scene: a 3-D function, g(x,y,z)
Geometric Transformations
Chapter 9 - Transformations. 90 degree rotation (x 1, y 1 ) 180 degree rotation (x 2, y 2 ) 270 degree rotation (x 3, y 3 )
3D Transformation A 3D point (x,y,z) – x,y, and z coordinates
3-D Geometric Transformations
Section 7.3 Rotations OBJECTIVE:
Projections Angel: Interactive Computer Graphics.
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.
II-1 Transformations Transformations are needed to: –Position objects defined relative to the origin –Build scenes based on hierarchies –Project objects.
7.5 Composition Transformations California Standards for Geometry 17: Prove theorems using coordinate geometry 22: Know the effect of rigid motions on.
Digital Image Processing Additional Material : Imaging Geometry 11 September 2006 Digital Image Processing Additional Material : Imaging Geometry 11 September.
Jinxiang Chai CSCE441: Computer Graphics 3D Transformations 0.
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.
3D Geometry and Transformations
Modeling Transformation
Geometric Transformations
Rigid Motion in a Plane Geometry.
3D Geometric Transformation
Sect. 7.1 Rigid Motion in a Plane
3. Transformation
Transformations.
3D Transformation.
Graphics Fundamentals
Intersection between - Lines, - Planes and - a plane & a Line
Computer Graphics Transformations
A circular dial with the digits 0 through 9 evenly spaced around its edge can be rotated clockwise 36°. How many times would you have to perform this.
Geometric Transformations
Geometric Transformations
Geometric Transformations
7.1 Rigid Motion in a Plane Geometry Mr. Qayumi 2010.
Geometric Transformations
Unit 4 Transformations.
Reflections in Coordinate Plane
Geometrical Transformations
Congruence Transformations
Math Jeopardy Add Your Title Here.
Reflections Geometry.
7.1 Rigid Motion in a Plane.
Geometric Transformations
Geometric Transformations
Presentation transcript:

04 – Geometric Transformations Overview Geometric Primitives –Points, Lines, Planes 2D Geometric Transformations –Translation, Rotation, Scaling, Affine, Projective 3D Geometric Transformations –Rotation About Arbitrary Axes

Overview Before we can understand how digital images are formed we must review some geometry –Geometric primitives –2D and 3D geometric transformations Then we will discuss how cameras create digital images of the world –3D to 2D projection –Image sampling

Geometric Primitives 2D points –x=(x,y) in Euclidean coordinates –x=(x,y,w) in homogeneous coordinates where x=x/w and y=y/w 3D points –x=(x,y,z) in Euclidean coordinates –x=(x,y,z,w) in homogeneous coordinates where x=x/w, y=y/w and z=z/w

Geometric Primitives 2D lines –ax+by+c=0 is basic 2D line equation –(a,b,c). (x,y,1)=0 using dot product notation –(n x,n y,d). (x,y,1)=0 where n=(n x,n y ) is unit normal to line and d is distance from line to origin

Geometric Primitives 3D lines –r = (1- )p + q is parametric line equation –In this case p, q and r are 3D points –When  = [0..1] we have 3D line segment

Geometric Primitives 3D planes –ax+by+cz+d=0 is basic 3D plane equation –(a,b,c,d). (x,y,z,1)=0 using dot product notation –(n x,n y,n z,d). (x,y,z,1)=0 where n=(n x,n y,n z ) is unit normal and d is distance from plane to origin

2D Geometric Transformations The simplest geometric transformations that occur in the 2D plane are: translation, Euclidean, similarity, affine and projective

2D Geometric Transformations 2D Translation:

2D Geometric Transformations 2D Scaling:

2D Geometric Transformations 2D Rotation:

2D Geometric Transformations 2D Rotation around arbitrary point: –Translate to origin, rotate, translate back

2D Geometric Transformations 2D Scaling around arbitrary point: –Translate to origin, scale, translate back

2D Geometric Transformations 2D Euclidean (rotation + translation): –Preserves distances between points

2D Geometric Transformations 2D Similarity (scaling + rotation + translation): –Preserves angles between lines

2D Geometric Transformations 2D Affine: –Parallel lines remain parallel

2D Geometric Transformations 2D Projective: –Straight lines remain straight

2D Geometric Transformations 2D Transformation hierarchy

3D Geometric Transformations 3D translation is very similar to 2D translation –There are now 3 coordinates to translate (t x,t y,t z ) –We use 4x4 matrix to perform operation 3D scaling is very similar to 2D scaling –We still only have one scale factor S –We use 4x4 matrix to perform operation

3D Geometric Transformations There are three ways to perform 3D rotations –1) Rotate about the X,Y,Z axes –2) Rotate about an arbitrary axis –3) Use unit quaternions to perform rotation Option 1 is easiest to understand Options 2 and 3 provide smoother motions

3D Geometric Transformations 3D Rotation about Z axis:

3D Geometric Transformations 3D Rotation about Y axis:

3D Geometric Transformations 3D Rotation about X axis:

3D Geometric Transformations 3D Rotation about arbitrary axis in X-Y plane –Find angle  between rotation axis and X axis –Rotate around Z axis by -  degrees –Rotate around X axis by desired angle  –Rotate around Z axis by  degrees Same approach works for rotations about an arbitrary axis in Y-Z plane or Z-X plane

3D Geometric Transformations 3D Rotation about an arbitrary axis –Project arbitrary axis onto Y-Z plane –Find angle  between projected axis and Y axis –Rotate around X axis by -  degrees –Now rotate about axis in X-Y plane –Rotate around X axis by  degrees Same approach can be used to project the arbitrary axis onto Y-Z plane or Z-X plane

3D Geometric Transformations 3D Transformation hierarchy