CS6825: Linear Algebra Overview 2 Why do we need Linear Algebra? We will associate coordinates to We will associate coordinates to 3D points in the scene3D.

Slides:



Advertisements
Similar presentations
COMPUTER GRAPHICS 2D TRANSFORMATIONS.
Advertisements

Gursharan Singh Tatla TRANSFORMATIONS Gursharan Singh Tatla Gursharan Singh Tatla.
1 Computer Graphics Chapter 6 2D Transformations.
Two-Dimensional Geometric Transformations
2D TRANSFORMATIONS.
Geometry (Many slides adapted from Octavia Camps and Amitabh Varshney)
1 Geometrical Transformation 2 Outline General Transform 3D Objects Quaternion & 3D Track Ball.
1 CS6825: Simple Geometric Operations 2Scaling This is what happens when you resize an image. If you transform the image from an MxN to a PxQ image where.
Linear Algebra and SVD (Some slides adapted from Octavia Camps)
CS 4731: Computer Graphics Lecture 7: Introduction to Transforms, 2D transforms Emmanuel Agu.
Elementary 3D Transformations - a "Graphics Engine" Transformation procedures Transformations of coordinate systems Translation Scaling Rotation.
Announcements Problem Set 2, handed out today, due next Tuesday. Late Homework should be turned into my office with date and time written on it. Mail problem.
Graphics-1 Gentle Introduction to Computer Graphics (2) Based on: –David Brogan’s “Introduction to Computer Graphics” Course Slides, University of Virginia.
1 CSCE 441 Computer Graphics: 2D Transformations Jinxiang Chai.
Image Warping : Computational Photography Alexei Efros, CMU, Fall 2008 Some slides from Steve Seitz
Ch. 2: Rigid Body Motions and Homogeneous Transforms
CS485/685 Computer Vision Prof. George Bebis
Announcements Class mailing list: send to Hyoungjune Yi: Homework at the end of class. Text is on reserve in the.
1 Geometrical Transformation Tong-Yee Lee. 2 Modeling Transform Specify transformation for objects Allow definitions of objects in own coordinate systems.
Linear Algebra Review. 6/26/2015Octavia I. Camps2 Why do we need Linear Algebra? We will associate coordinates to –3D points in the scene –2D points in.
Math for CSLecture 11 Mathematical Methods for Computer Science Lecture 1.
Transformations I CS5600Computer Graphics by Rich Riesenfeld 27 February 2002 Lecture Set 5.
Math for CSTutorial 11 Matrix Multiplication Rule Matrices make linear transformations of vectors.
Transformations CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
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
Using Matrices to Perform Geometric Transformations
Matlab tutorial and Linear Algebra Review Today’s goals: Learn enough matlab to get started. Review some basics of Linear Algebra Essential for geometry.
1 1.9 © 2016 Pearson Education, Inc. Linear Equations in Linear Algebra THE MATRIX OF A LINEAR TRANSFORMATION.
Geometric Transformation. So far…. We have been discussing the basic elements of geometric programming. We have discussed points, vectors and their operations.
CS 480/680 Computer Graphics Transformations Dr. Frederick C Harris, Jr.
Graphics Graphics Korea University cgvr.korea.ac.kr 2D Geometric Transformations 고려대학교 컴퓨터 그래픽스 연구실.
ICS201 Lecture 12 : Gentle Introduction to Computer Graphics II King Fahd University of Petroleum & Minerals College of Computer Science & Engineering.
 2D Transformations 2D Transformations  Translation Translation  Rotation Rotation  Scaling Scaling.
The Rendering Pipeline CS 445/645 Introduction to Computer Graphics David Luebke, Spring 2003.
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)
Two-Dimensional Geometric Transformations A two dimensional transformation is any operation on a point in space (x, y) that maps that point's coordinates.
2D Geometric Transformation Translation A translation is applied to an object by repositioning it along a straight-line path from one coordinate location.
Geometric Transformations UBI 516 Advanced Computer Graphics Aydın Öztürk
Fall 2004CS-321 Dr. Mark L. Hornick 1 2-D Transformations World Coordinates Local/Modelling Coordinates x y Object descriptions Often defined in model.
II-1 Transformations Transformations are needed to: –Position objects defined relative to the origin –Build scenes based on hierarchies –Project objects.
Arizona’s First University. Command and Control Wind Tunnel Simulated Camera Design Jacob Gulotta.
Perform Congruence Transformations. Transformations: when you move or change a geometric figure in some way to produce a new figure. Image is what the.
Go Back > Question 1 Describe this transformation. A reflection in the line y = x. ? Object Image.
Jinxiang Chai CSCE441: Computer Graphics 3D Transformations 0.
Computer Graphics I, Fall 2010 Transformations.
ME451 Kinematics and Dynamics of Machine Systems Review of Linear Algebra 2.1 through 2.4 Th, Jan. 22 © Dan Negrut, 2009 ME451, UW-Madison.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Transformations Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
Image Warping 2D Geometric Transformations
CSCE 441 Computer Graphics: 2D Transformations
Transformations. Transformations Introduce standard transformations ◦ Rotation ◦ Translation ◦ Scaling ◦ Shear Derive homogeneous coordinate transformation.
Modeling Transformation
COMPUTER GRAPHICS AND LINEAR ALGEBRA AN INTRODUCTION.
Robotic Arms and Matrices By Chris Wong and Chris Marino.
Game Engine Architecture
Lecture 10 Geometric Transformations In 3D(Three- Dimensional)
3. Transformation
3D Geometric Transformations
Lecture 7 Geometric Transformations (Continued)
2D Transformations y y x x y x.
Linear Algebra Review.
FP1 Matrices Transformations
2D Geometric Transformations
Transformations.
Transformations 2 University of British Columbia
TWO DIMENSIONAL TRANSFORMATION
Homework Due Tomorrow.
Transformations Review
Homework: Study for Unit Test & Complete Test Prep Packet Learning Target: I can demonstrate how transformations and angle relationships impact geometric.
: Chapter 7: Two Dimensional Image Transformation
Presentation transcript:

CS6825: Linear Algebra Overview

2 Why do we need Linear Algebra? We will associate coordinates to We will associate coordinates to 3D points in the scene3D points in the scene 2D points in the CCD array2D points in the CCD array 2D points in the image2D points in the image Coordinates will be used to Coordinates will be used to Perform geometrical transformationsPerform geometrical transformations Associate 3D with 2D pointsAssociate 3D with 2D points Images are matrices of numbers Images are matrices of numbers We will find properties of these numbersWe will find properties of these numbers

3 2D Vector P x1 x2  v

2D Geometrical Transformations Use Vectors and Matrices to represent instead of multiple equations. Can save time especially when have multiple transformations and only have 1 vector matrix equation instead of applying multiple sets of equations.

5 Translation Recall the equations used to translated an Image by in the x direction and in the y direction would be. Recall the equations used to translated an Image by in the x direction and in the y direction would be. P’ = translated location of old pixel P P’ = translated location of old pixel P = (x’, y’) = (x’, y’) where P = (x, y) where P = (x, y) x’ = x + x’ = x + y’ = y + y’ = y + txtxtxtx tytytyty tytytyty txtxtxtx

6 2D Translation t P P’

7 2D Translation Equation P x y txtxtxtx tytytyty P’ t x’ = x + y’ = y + txtxtxtx tytytyty

8 2D Translation using Matrices P x y txtxtxtx tytytyty P’ t tP x’ = x + y’ = y + txtxtxtx tytytyty                            'y x t t ty tx y x y x P                            'y x t t ty tx y x y x P

9Rotation Recall equations below to determine new position when rotating a pixel. You must apply the laws of trigonometry to rotate an image around its center point by the angle desired. The following equations govern the relationship between the old position (x,y) and the new position (x',y'): Recall equations below to determine new position when rotating a pixel. You must apply the laws of trigonometry to rotate an image around its center point by the angle desired. The following equations govern the relationship between the old position (x,y) and the new position (x',y'): x' = x*cos(angle) + y*sin(angle) y' = y*cos(angle) - x*sin(angle) y' = y*cos(angle) - x*sin(angle)

10 Rotation P P’

11 Rotation Equations Clockwise rotation by an angle  x' = x*cos(angle) + y*sin(angle) y' = y*cos(angle) - x*sin(angle) P x Y’ P’  X’ y                     y x y x   cossin cos ' '

12 Scaling P P’

13 Scaling Equation P x y S x.x P’ S y.y

14 Scaling & Translating P P’=S.P P’’=T.P’ P’’=T.P’=T.(S.P)=(T.S).PS T

15 Scaling & Translating P’’=T.P’=T.(S.P)=(T.S).P                                                                    '' yy xx yy xx y x y x tys txs y x ts ts y x s s t t PSTP