Graphics Graphics Korea University kucg.korea.ac.kr Mathematics for Computer Graphics 고려대학교 컴퓨터 그래픽스 연구실.

Slides:



Advertisements
Similar presentations
Chapter 4 Euclidean Vector Spaces
Advertisements

3D Geometry for Computer Graphics
Chapter 4.1 Mathematical Concepts
Computer Graphics Recitation 5.
Chapter 4.1 Mathematical Concepts. 2 Applied Trigonometry Trigonometric functions Defined using right triangle  x y h.
CS5500 Computer Graphics March 22, Angel: Interactive Computer Graphics 3E © Addison-Wesley 2002 Coordinate-Free Geometry When we learned simple.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Geometry Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and.
CSCE 590E Spring 2007 Basic Math By Jijun Tang. Applied Trigonometry Trigonometric functions  Defined using right triangle  x y h.
Chapter 3 Determinants and Matrices
Transformations. 2 Angel: Interactive Computer Graphics 3E © Addison-Wesley 2002 Coordinate-Free Geometry When we learned simple geometry, most of us.
MOHAMMAD IMRAN DEPARTMENT OF APPLIED SCIENCES JAHANGIRABAD EDUCATIONAL GROUP OF INSTITUTES.
Vectors.
Boot Camp in Linear Algebra Joel Barajas Karla L Caballero University of California Silicon Valley Center October 8th, 2008.
Geometric Objects and Transformations Geometric Entities Representation vs. Reference System Geometric ADT (Abstract Data Types)
Matrices CS485/685 Computer Vision Dr. George Bebis.
Lecture 7: Matrix-Vector Product; Matrix of a Linear Transformation; Matrix-Matrix Product Sections 2.1, 2.2.1,
Stats & Linear Models.
Linear Algebra Review By Tim K. Marks UCSD Borrows heavily from: Jana Kosecka Virginia de Sa (UCSD) Cogsci 108F Linear.
2IV60 Computer Graphics Basic Math for CG
Basics of Linear Algebra A review?. Matrix  Mathematical term essentially corresponding to an array  An arrangement of numbers into rows and columns.
A vector can be interpreted as a file of data A matrix is a collection of vectors and can be interpreted as a data base The red matrix contain three column.
Graphics Graphics Korea University cgvr.korea.ac.kr 1.2 Notation and Definition 그래픽스 연구실 정병선.
Linear Algebra Review 1 CS479/679 Pattern Recognition Dr. George Bebis.
Graphics CSE 581 – Interactive Computer Graphics Mathematics for Computer Graphics CSE 581 – Roger Crawfis (slides developed from Korea University slides)
6.837 Linear Algebra Review Patrick Nichols Thursday, September 18, 2003.
1 February 24 Matrices 3.2 Matrices; Row reduction Standard form of a set of linear equations: Chapter 3 Linear Algebra Matrix of coefficients: Augmented.
Geometry CSC 2141 Introduction to Computer Graphics.
Modern Navigation Thomas Herring
1 Geometry. 2 Objectives Introduce the elements of geometry ­Scalars ­Vectors ­Points Develop mathematical operations among them in a coordinate-free.
Linear Algebra Chapter 4 Vector Spaces.
Mathematical Foundations Sections A-1 to A-5 Some of the material in these slides may have been adapted from university of Virginia, MIT and Åbo Akademi.
Intro to 3D Models Angel Angel: Interactive Computer Graphics5E © Addison-Wesley
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Matrices and Vectors Objective.
Mathematics for Graphics. 1 Objectives Introduce the elements of geometry  Scalars  Vectors  Points Develop mathematical operations among them in a.
Matrices. Definitions  A matrix is an m x n array of scalars, arranged conceptually as m rows and n columns.  m is referred to as the row dimension.
Chapter 5 Eigenvalues and Eigenvectors 大葉大學 資訊工程系 黃鈴玲 Linear Algebra.
16/5/ :47 UML Computer Graphics Conceptual Model Application Model Application Program Graphics System Output Devices Input Devices API Function.
C O M P U T E R G R A P H I C S Guoying Zhao 1 / 52 C O M P U T E R G R A P H I C S Guoying Zhao 1 / 52 Computer Graphics Three-Dimensional Graphics I.
Chap. 5 Inner Product Spaces 5.1 Length and Dot Product in R n 5.2 Inner Product Spaces 5.3 Orthonormal Bases: Gram-Schmidt Process 5.4 Mathematical Models.
Chun-Yuan Lin Mathematics for Computer Graphics 2015/12/15 1 CG.
Review of Matrix Operations Vector: a sequence of elements (the order is important) e.g., x = (2, 1) denotes a vector length = sqrt(2*2+1*1) orientation.
1 Graphics CSCI 343, Fall 2015 Lecture 9 Geometric Objects.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2016 Tamara Munzner Math Basics Week 1, Fri.
Ch 6 Vector Spaces. Vector Space Axioms X,Y,Z elements of  and α, β elements of  Def of vector addition Def of multiplication of scalar and vector These.
Instructor: Mircea Nicolescu Lecture 8 CS 485 / 685 Computer Vision.
Computer Graphics I, Fall 2010 Geometry.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Geometry.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Chapter 4.1 Mathematical Concepts. 2 Applied Trigonometry "Old Henry And His Old Aunt" Defined using right triangle  x y h.
Boot Camp in Linear Algebra TIM 209 Prof. Ram Akella.
1 Objective To provide background material in support of topics in Digital Image Processing that are based on matrices and/or vectors. Review Matrices.
Matrices, Vectors, Determinants.
Graphics Graphics Korea University kucg.korea.ac.kr Geometric Primitives 고려대학교 컴퓨터 그래픽스 연구실.
Lecture 1 Linear algebra Vectors, matrices. Linear algebra Encyclopedia Britannica:“a branch of mathematics that is concerned with mathematical structures.
EE611 Deterministic Systems Vector Spaces and Basis Changes Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Spaces.
Mathematics for Computer Graphics
Review of Linear Algebra
CS479/679 Pattern Recognition Dr. George Bebis
Review of Matrix Operations
CS485/685 Computer Vision Dr. George Bebis
Chapter 3 Linear Algebra
Elementary Linear Algebra
Math review - scalars, vectors, and matrices
Game Programming Algorithms and Techniques
Eigenvalues and Eigenvectors
Subject :- Applied Mathematics
Presentation transcript:

Graphics Graphics Korea University kucg.korea.ac.kr Mathematics for Computer Graphics 고려대학교 컴퓨터 그래픽스 연구실

KUCG Graphics Korea University kucg.korea.ac.kr Spaces Scalars (Linear) Vector Space Scalars and vectors Affine Space Scalars, vectors, and points Euclidean Space Scalars, vectors, points Concept of distance Projections Exercise

KUCG Graphics Korea University kucg.korea.ac.kr Scalars (1/2) Scalar Field Scalar Field Ex) Ordinary real numbers and operations on them Tow Fundamental Operations Addition and multiplication Associative Commutative Distributive

KUCG Graphics Korea University kucg.korea.ac.kr Scalars (2/2) Two Special Scalars Additive identity: 0, multiplicative identity: 1 Additive inverse and multiplicative inverse of

KUCG Graphics Korea University kucg.korea.ac.kr Vector Spaces (1/4) ScalarsVectors Two Entities: Scalars and Vectors Vectors Directed line segments n -tuples of numbers Two operations: vector-vector addition, scalar- vector multiplication Zero Vector Special Vector: Zero Vector Let u denote a vector Directed line segments

KUCG Graphics Korea University kucg.korea.ac.kr Vector Spaces (2/4) Scalar-Vector Multiplication u and v : vectors, α and β : scalars Vector-Vector Addition Head-to-tail axiom: to visualize easily Head-to-tail axiom Scalar-vector multi.

KUCG Graphics Korea University kucg.korea.ac.kr Vector Spaces (3/4) Vectors = n -tuples Vector-vector addition Scalar-vector multiplication Vector space: Linear Independence Linear Independence Linear combination: Vectors are linear independent if the only set of scalars is

KUCG Graphics Korea University kucg.korea.ac.kr Vector Spaces (4/4) Dimension Dimension The greatest number of linearly independent vectors Basis Basis n linearly independent vectors ( n : dimension) Representation Unique expression in terms of the basis vectors Change of Basis: Matrix M Other basis 

KUCG Graphics Korea University kucg.korea.ac.kr Affine Spaces (1/2) No Geometric Concept in Vector Space!! Ex) location and distance Vectors: magnitude and direction, no position Coordinate System Coordinate System Origin: a particular reference point Identical vectors Arbitrary placement of basis vectors Basis vectors located at the origin

KUCG Graphics Korea University kucg.korea.ac.kr Affine Spaces (2/2) Points Third Type of Entity: Points Point-Point Subtraction New Operation: Point-Point Subtraction P and Q : any two points  vector-point addition Frame Frame: a Point and a Set of Vectors Representations of the vector and point: n scalars Head-to-tail axiom for points Vector Point

KUCG Graphics Korea University kucg.korea.ac.kr Euclidean Spaces (1/2) No Concept of How Far Apart Two Points in Affine Spaces!! Inner (dot) Product New Operation: Inner (dot) Product Combine two vectors to form a real α, β, γ, …: scalars, u, v, w, …:vectors Orthogonal:

KUCG Graphics Korea University kucg.korea.ac.kr Euclidean Spaces (2/2) Magnitude (length) of a vector Distance between two points Measure of the angle between two vectors  cosθ = 0  orthogonal  cosθ = 1  parallel

KUCG Graphics Korea University kucg.korea.ac.kr Projections Problem of Finding the Shortest Distance from a Point to a Line of Plane Given Two Vectors, Divide one into two parts: one parallel and one orthogonal to the other Projection of one vector onto another

KUCG Graphics Korea University kucg.korea.ac.kr Matrices Definitions Matrix Operations Row and Column Matrices Rank Change of Representation Cross Product Eigenvalues and Eigenvectors Exercise

KUCG Graphics Korea University kucg.korea.ac.kr Definitions n x m Array of Scalars ( n Rows and m Columns) n : row dimension of a matrix, m : column dimension m = n  square matrix of dimension n Element Transpose: interchanging the rows and columns of a matrix Column Matrices and Row Matrices Column matrix ( n x 1 matrix): Row matrix (1 x n matrix):

KUCG Graphics Korea University kucg.korea.ac.kr Matrix Operations (1/2) Scalar-Matrix Multiplication Scalar-Matrix Multiplication Matrix-Matrix Addition Matrix-Matrix Addition Matrix-Matrix Multiplication Matrix-Matrix Multiplication A : n x l matrix, B : l x m  C : n x m matrix

KUCG Graphics Korea University kucg.korea.ac.kr Matrix Operations (2/2) Properties of Scalar-Matrix Multiplication Properties of Matrix-Matrix Addition Commutative: Associative: Properties of Matrix-Matrix Multiplication Identity Matrix Identity Matrix I (Square Matrix)

KUCG Graphics Korea University kucg.korea.ac.kr Row and Column Matrices Column Matrix Cf) p T : row matrix Concatenations Concatenations Associative By Row Matrix

KUCG Graphics Korea University kucg.korea.ac.kr Rank (1/2) Inverse Matrix Inverse Matrix B: inverse of A A: nonsingular Cf) singular: noninvertible matrix Determinant Determinant of A : |A| 2 x 2 matrix n x n matrix ( n >2) The inverse of a square matrix exists, if and only if the determinant of the matrix is non zero.

KUCG Graphics Korea University kucg.korea.ac.kr Rank (2/2) For General Nonsquare Matrix Ex) n x m matrix  rows: elements of Euclidean space R m  columns: elements of R n  determine how many rows (or columns) are linearly independent Rank Row (Column) Rank Maximum number of linearly independent rows (columns) A matrix is invertible, if and only if its rows (and columns) are linearly independent.

KUCG Graphics Korea University kucg.korea.ac.kr How to Compute the Rank? Example) Find the Rank of the Matrix Solution) The Reduced Row-Echelon Form of A

KUCG Graphics Korea University kucg.korea.ac.kr Reduced Row-Echelon Form

KUCG Graphics Korea University kucg.korea.ac.kr A Theorem about Rank Example) Find the Column Rank of A Solution) If A is any matrix, then the row space and column space of A have the same dimension.

KUCG Graphics Korea University kucg.korea.ac.kr Change of Representation (1/2) Matrix Representation of the Change between the Two Bases Ex) two bases and Representations of v Expression of in the basis or

KUCG Graphics Korea University kucg.korea.ac.kr Change of Representation (2/2) : n x n matrix and By direct substitution or

KUCG Graphics Korea University kucg.korea.ac.kr Cross Product In 3D Space, a Vector, w, is Orthogonal to Given Two Nonparallel Vectors, u and v Definition Consistent Orientation Ex) x -axis x y -axis = z -axis

KUCG Graphics Korea University kucg.korea.ac.kr Eigenvalues and Eigenvectors (1/2) When Does a Transformation Leave a Point of Vector Unchanged? u : eigenvectors (not a matrix of zeros) of M λ : eigenvalues of M Find the Eigenvalues Polynomial of degree n in λ Square matrix (transformation) Column matrix (point or vector)  Nontrivial!!!

KUCG Graphics Korea University kucg.korea.ac.kr Eigenvalues and Eigenvectors (2/2) Similarity Transformation that Convert M to a Diagonal Matrix Q  Diagonal Elements of Q are the Eigenvalues of Q and M Eigenvalues of Q are same as those of M Geometric Interpretation Consider an ellipsoid ( T : nonsingular matrix)

KUCG Graphics Korea University kucg.korea.ac.kr Exercises (1/2) C.1 C.1 In R 3, consider the two bases {(1,0,0), (1,1,0), (1,1,1)} and {(1,0,0), (0,1,0), (0,0,1)}. Find the two matrices that convert representations between the two bases. Show that they are inverses of each other. C.3 C.3 Suppose that i, j, and k represent the unit vectors in the x, y, and z directions, respectively, in R 3. Show that the cross product u x v is given by the matrix

KUCG Graphics Korea University kucg.korea.ac.kr Exercises (2/2) C.5 C.5 Find the eigenvalues and eigenvectors of the two-dimensional rotation matrix C.6 C.6 Find the eigenvalues and eigenvectors of the three-dimensional rotation matrix