Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Monday, 26 January 2004 William H. Hsu Department of.

Slides:



Advertisements
Similar presentations
5.1 Real Vector Spaces.
Advertisements

Chapter 4 Euclidean Vector Spaces
Demetriou/Loizidou – ACSC330 – Chapter 4 Geometric Objects and Transformations Dr. Giorgos A. Demetriou Dr. Stephania Loizidou Himona Computer Science.
UBI 516 Advanced Computer Graphics
Elementary Linear Algebra Anton & Rorres, 9th Edition
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Geometry Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and.
Now Playing: My Mathematical Mind Spoon From Gimme Fiction Released May 10, 2005.
Chapter Two: Vector Spaces I.Definition of Vector Space II.Linear Independence III.Basis and Dimension Topic: Fields Topic: Crystals Topic: Voting Paradoxes.
Orthogonality and Least Squares
Lecture 2: Geometry vs Linear Algebra Points-Vectors and Distance-Norm Shang-Hua Teng.
Vectors.
Computer Graphics (Fall 2005) COMS 4160, Lecture 2: Review of Basic Math
Linear Algebra Review By Tim K. Marks UCSD Borrows heavily from: Jana Kosecka Virginia de Sa (UCSD) Cogsci 108F Linear.
Length and Dot Product in R n Notes: is called a unit vector. Notes: The length of a vector is also called its norm. Chapter 5 Inner Product Spaces.
Computing & Information Sciences Kansas State University CIS 536/636 & 736 (Introduction to) Computer Graphics Lecture 1 of 41 William H. Hsu Department.
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)
Math Primer for CG Ref: Interactive Computer Graphics, Chap. 4, E. Angel.
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.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics CG Basics 1 of 10: Math William H. Hsu Department.
Chapter 5: The Orthogonality and Least Squares
7.1 Scalars and vectors Scalar: a quantity specified by its magnitude, for example: temperature, time, mass, and density Chapter 7 Vector algebra Vector:
Geometry CSC 2141 Introduction to Computer Graphics.
1 Geometry. 2 Objectives Introduce the elements of geometry ­Scalars ­Vectors ­Points Develop mathematical operations among them in a coordinate-free.
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Wednesday, January 19, 2000 William H. Hsu Department.
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.
Computing & Information Sciences Kansas State University CG Basics 1 of 8: MathCIS 636/736: (Introduction to) Computer Graphics CIS 636 Introduction to.
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.
Vectors CHAPTER 7. Ch7_2 Contents  7.1 Vectors in 2-Space 7.1 Vectors in 2-Space  7.2 Vectors in 3-Space 7.2 Vectors in 3-Space  7.3 Dot Product 7.3.
Chapter Content Real Vector Spaces Subspaces Linear Independence
Elementary Linear Algebra Anton & Rorres, 9th Edition
4.8 Rank Rank enables one to relate matrices to vectors, and vice versa. Definition Let A be an m  n matrix. The rows of A may be viewed as row vectors.
Section 5.1 Length and Dot Product in ℝ n. Let v = ‹v 1­­, v 2, v 3,..., v n › and w = ‹w 1­­, w 2, w 3,..., w n › be vectors in ℝ n. The dot product.
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.
AGC DSP AGC DSP Professor A G Constantinides©1 Signal Spaces The purpose of this part of the course is to introduce the basic concepts behind generalised.
Class 26: Question 1 1.An orthogonal basis for A 2.An orthogonal basis for the column space of A 3.An orthogonal basis for the row space of A 4.An orthogonal.
1 Graphics CSCI 343, Fall 2015 Lecture 9 Geometric Objects.
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.
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Wednesday, 12 April 2006 William H. Hsu Department.
4.8 Rank Rank enables one to relate matrices to vectors, and vice versa. Definition Let A be an m  n matrix. The rows of A may be viewed as row vectors.
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.
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Friday, January 21, 2000 William H. Hsu Department.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Monday, 17 April 2006 William H. Hsu Department of.
1 Objective To provide background material in support of topics in Digital Image Processing that are based on matrices and/or vectors. Review Matrices.
Graphics Graphics Korea University kucg.korea.ac.kr Mathematics for Computer Graphics 고려대학교 컴퓨터 그래픽스 연구실.
Introduction; Mathematical Foundations CS 445/645 Introduction to Computer Graphics David Luebke, Spring 2003.
Beyond Vectors Hung-yi Lee. Introduction Many things can be considered as “vectors”. E.g. a function can be regarded as a vector We can apply the concept.
CA 302 Computer Graphics and Visual Programming
Review of Linear Algebra
Chapter 1 Linear Equations and Vectors
Matrices and Vectors Review Objective
CSC461: Lecture 12 Geometry Objectives
Lecture 03: Linear Algebra
C H A P T E R 3 Vectors in 2-Space and 3-Space
Introduction to Computer Graphics with WebGL
Chapter 3 Linear Algebra
CSE 411 Computer Graphics Lecture #2 Mathematical Foundations
Objective To provide background material in support of topics in Digital Image Processing that are based on matrices and/or vectors.
Linear Algebra Lecture 38.
Lecture 2: Geometry vs Linear Algebra Points-Vectors and Distance-Norm
Elementary Linear Algebra Anton & Rorres, 9th Edition
Linear Algebra Lecture 20.
CHAPTER 3 VECTORS NHAA/IMK/UNIMAP.
Presentation transcript:

Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Monday, 26 January 2004 William H. Hsu Department of Computing and Information Sciences, KSU Readings: Appendix 1-4, Foley et al Review of Basics 1 of 5: Mathematical Foundations Lecture 1

Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Lecture Outline Student Information –Instructional demographics: background, department, academic interests –Requests for special topics In-Class Exercise: Turn to A Partner –Applications of CG to human-computer interaction (HCI) problems –Common advantages and obstacles Quick Review: Basic Analytic Geometry and Linear Algebra for CG –Vector spaces and affine spaces Subspaces Linear independence Bases and orthonormality –Equations for objects in affine spaces Lines Planes –Dot products and distance measures (norms, equations)

Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Introductions Student Information (Confidential) –Instructional demographics: background, department, academic interests –Requests for special topics Lecture Project On Information Form, Please Write –Your name –What you wish to learn from this course –What experience (if any) you have with Basic computer graphics Linear algebra –What experience (if any) you have in using CG (rendering, animation, visualization) packages –What programming languages you know well –Any specific applications or topics you would like to see covered

Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Quick Review: Basic Linear Algebra for CG Readings: Appendix A.1 – A.4, Foley et al A.1 Vector Spaces and Affine Spaces –Equations of lines, planes –Vector subspaces and affine subspaces A.2 Standard Constructions in Vector Spaces –Linear independence and spans –Coordinate systems and bases A.3 Dot Products and Distances –Dot product in R n –Norms in R n A.4 Matrices –Binary matrix operations: basic arithmetic –Unary matrix operations: transpose and inverse Application: Transformations and Change of Coordinate Systems

Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Vector Spaces and Affine Spaces Vector Space: Set of Points Admitting Addition, Multiplication by Constant –Components Set V (of vectors u, v, w): addition, scalar multiplication defined on members Vector addition: v + w Scalar multiplication:  v –Properties (necessary and sufficient conditions) Addition: associative, commutative, identity (0 vector such that  v. 0 + v = v), admits inverses (  v.  w. v + w = 0) Scalar multiplication: satisfies  , , v. (  )v =  (  v),  v. 1v = v,  , , v. (  +  )v =  v +  v,  , , v.  (v + w) =  v +  w –Linear combination:  1 v 1 +  2 v 2 + … +  n v n Affine Space: Set of Points Admitting Geometric Operations (No “Origin”) –Components Set V (of points P, Q, R) and associated vector space Operators: vector difference, point-vector addition –Affine combination (of P and Q by t  R ): P + t(Q – P) –NB: any vector space (V, +, ·) can be made into affine space (points(V), V)

Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Linear and Planar Equations in Affine Spaces Equation of Line in Affine Space –Let P, Q be points in affine space –Parametric form (real-valued parameter t) Set of points of form (1 – t)P + tQ Forms line passing through P and Q –Example Cartesian plane of points (x, y) is an affine space Parametric line between (a, b) and (c, d): L = {((1 – t)a + tc, (1 – t)b + td) | t  R} Equation of Plane in Affine Space –Let P, Q, R be points in affine space –Parametric form (real-valued parameters s, t) Set of points of form (1 – s)((1 – t)P + tQ) + sR Forms plane containing P, Q, R

Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Vector Space Spans and Affine Spans Vector Space Span –Definition – set of all linear combinations of a set of vectors –Example: vectors in R 3 Span of single (nonzero) vector v: line through the origin containing v Span of pair of (nonzero, noncollinear) vectors: plane through the origin containing both Span of 3 of vectors in general position: all of R 3 Affine Span –Definition – set of all affine combinations of a set of points P 1, P 2, …, P n in an affine space –Example: vectors, points in R 3 Standard affine plan of points (x, y, 1) T Consider points P, Q Affine span: line containing P, Q Also intersection of span, affine space P Q Span of u and v Affine span of P and Q uv 0

Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Independence Linear Independence –Definition: (linearly) dependent vectors Set of vectors {v 1, v 2, …, v n } such that one lies in the span of the rest  v i  {v 1, v 2, …, v n }. v i  Span ({v 1, v 2, …, v n } ~ {v i }) –(Linearly) independent: {v 1, v 2, …, v n } not dependent Affine Independence –Definition: (affinely) dependent points Set of points {v 1, v 2, …, v n } such that one lies in the (affine) span of the rest  P i  {P 1, P 2, …, P n }. P i  Span ({P 1, P 2, …, P n } ~ {P i }) –(Affinely) independent: {P 1, P 2, …, P n } not dependent Consequences of Linear Independence –Equivalent condition:  1 v 1 +  2 v 2 + … +  n v n = 0   1 =  2 = … =  n = 0 –Dimension of span is equal to the number of vectors

Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Intuitive Idea –R n : vector or affine space of “equal or lower dimension” –Closed under constructive operator for space Linear Subspace –Definition Subset S of vector space (V, +, ·) Closed under addition (+) and scalar multiplication (·) –Examples Subspaces of R 3 : origin (0, 0, 0), line through the origin, plane containing origin, R 3 itself For vector v, {  v |   R } is a subspace (why?) Affine Subspace –Definition Nonempty subset S of vector space (V, +, ·) Closure S’ of S under point subtraction is a linear subspace of V –Important affine subspace of R 4 (foundation of Chapter 5): {(x, y, z, 1)} Subspaces

Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Bases Spanning Set (of Set S of Vectors) –Definition: set of vectors for which any vector in Span(S) can be expressed as linear combination of vectors in spanning set –Intuitive idea: spanning set “covers” Span(S) Basis (of Set S of Vectors) –Definition Minimal spanning set of S Minimal: any smaller set of vectors has smaller span –Alternative definition: linearly independent spanning set Exercise –Claim: basis of subspace of vector space is always linearly independent –Proof: by contradiction (suppose basis is dependent… not minimal) Standard Basis for R 3 –E = {e 1, e 2, e 3 }, e 1 = (1, 0, 0) T, e 2 = (0, 1, 0) T, e 3 = (0, 0, 1) T –How to use this as coordinate system?

Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Coordinates and Coordinate Systems Coordinates Using Bases –Coordinates Consider basis B = {v 1, v 2, …, v n } for vector space Any vector v in the vector space can be expressed as linear combination of vectors in B Definition: coefficients of linear combination are coordinates –Example E = {e 1, e 2, e 3 }, e 1 = (1, 0, 0) T, e 2 = (0, 1, 0) T, e 3 = (0, 0, 1) T Coordinates of (a, b, c) with respect to E: (a, b, c) T Coordinate System –Definition: set of independent points in affine space –Affine span of coordinate system is entire affine space Exercise –Derive basis for associated vector space of arbitrary coordinate system –(Hint: consider definition of affine span…)

Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Dot Products and Distances Dot Product in R n –Given: vectors u = (u 1, u 2, …, u n ) T, v = (v 1, v 2, …, v n ) T –Definition Dot product u v  u 1 v 1 + u 2 v 2 + … + u n v n Also known as inner product In R n, called scalar product Applications of the Dot Product –Normalization of vectors –Distances –Generating equations –See Appendix A.3, Foley et al (FVD)

Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Norms and Distance Formulas Length –Definition v v =  i v i 2 –aka Euclidean norm Applications of the Dot Product –Normalization of vectors: division by scalar length || v || converts to unit vector –Distances Between points: || Q – P || From points to planes –Generating equations (e.g., point loci): circles, hollow cylinders, etc. –Ray / object intersection equations –See A.3.5, FVD

Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Orthonormal Bases Orthogonality –Given: vectors u = (u 1, u 2, …, u n ) T, v = (v 1, v 2, …, v n ) T –Definition u, v are orthogonal if u v = 0 In R 2, angle between orthogonal vectors is 90º Orthonormal Bases –Necessary and sufficient conditions B = {b 1, b 2, …, b n } is basis for given vector space Every pair (b i, b j ) is orthogonal Every vector b i is of unit magnitude (|| v i || = 1) –Convenient property: can just take dot product v b i to find coefficients in linear combination (coordinates with respect to B) for vector v

Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Terminology Human Computer [Intelligent] Interaction (HCI, HCII) Some Basic Analytic Geometry and Linear Algebra for CG –Vector space (VS) – collection of vectors admitting addition, scalar multiplication and observing VS axioms –Affine space (AS) – collection of points with associated vector space admitting vector difference, point-vector addition and observing AS axioms –Linear subspace – nonempty subset S of VS (V, +, ·) closed under + and · –Affine subspace – nonempty subset S of VS (V, +, ·) such that closure S’ of S under point subtraction is a linear subspace of V –Span – set of all linear combinations of set of vectors –Linear independence – property of set of vectors that none lies in span of others –Basis – minimal spanning set of set of vectors –Dot product – scalar-valued inner product  u v  u 1 v 1 + u 2 v 2 + … + u n v n –Orthogonality – property of vectors u, v that u v = 0 –Orthonormality – basis containing pairwise-orthogonal unit vectors –Length (Euclidean norm) –

Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Summary Points Student Information In-Class Exercise: Turn to A Partner –Applications of CG to 2 human-computer interaction (HCI) problems –Common advantages –After-class exercise: think about common obstacles (send or post) Quick Review: Some Basic Analytic Geometry and Linear Algebra for CG –Vector spaces and affine spaces Subspaces Linear independence Bases and orthonormality –Equations for objects in affine spaces Lines Planes –Dot products and distance measures (norms, equations) Next Lecture: Geometry, Scan Conversion (Lines, Polygons)