Image Registration Lecture 2: Vectors and Matrices

Similar documents
Review of Linear Algebra

Matrices and Vectors. Definition of Matrix. An MxN matrix A is a two-dimensional array of numbers A =

Large Scale Data Analysis Using Deep Learning

Linear Algebra (Review) Volker Tresp 2017

Linear Algebra (Review) Volker Tresp 2018

3 a 21 a a 2N. 3 a 21 a a 2M

Linear Algebra V = T = ( 4 3 ).

Definition 2.3. We define addition and multiplication of matrices as follows.

Matrix Arithmetic. (Multidimensional Math) Institute for Advanced Analytics. Shaina Race, PhD

Singular Value Decomposition. 1 Singular Value Decomposition and the Four Fundamental Subspaces

The Singular Value Decomposition

Basic Linear Algebra in MATLAB

Matrix Basic Concepts

Linear Algebra Review. Vectors

Matrix Algebra: Summary

Elementary maths for GMT

Linear Algebra Review. Fei-Fei Li

Linear Algebra & Geometry why is linear algebra useful in computer vision?

This appendix provides a very basic introduction to linear algebra concepts.

Review problems for MA 54, Fall 2004.

Maths for Signals and Systems Linear Algebra in Engineering

Glossary of Linear Algebra Terms. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Background Mathematics (2/2) 1. David Barber

Linear Algebra & Geometry why is linear algebra useful in computer vision?

A Review of Matrix Analysis

Conceptual Questions for Review

Homework 1 Elena Davidson (B) (C) (D) (E) (F) (G) (H) (I)

Matrices. Chapter Definitions and Notations

Linear Algebra for Machine Learning. Sargur N. Srihari

Mobile Robotics 1. A Compact Course on Linear Algebra. Giorgio Grisetti

Quantum Computing Lecture 2. Review of Linear Algebra

MATH 320, WEEK 7: Matrices, Matrix Operations

1 Matrices and Systems of Linear Equations. a 1n a 2n

Phys 201. Matrices and Determinants

Review of linear algebra

Linear Algebra Review Part I: Geometry

Knowledge Discovery and Data Mining 1 (VO) ( )

Getting Started with Communications Engineering. Rows first, columns second. Remember that. R then C. 1

A Geometric Review of Linear Algebra

Deep Learning Book Notes Chapter 2: Linear Algebra

Linear Algebra March 16, 2019

DS-GA 1002 Lecture notes 0 Fall Linear Algebra. These notes provide a review of basic concepts in linear algebra.

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 1 x 2. x n 8 (4) 3 4 2

Example Linear Algebra Competency Test

Properties of Matrices and Operations on Matrices

Introduction to Mobile Robotics Compact Course on Linear Algebra. Wolfram Burgard, Bastian Steder

10-701/ Recitation : Linear Algebra Review (based on notes written by Jing Xiang)

Introduction to Mobile Robotics Compact Course on Linear Algebra. Wolfram Burgard, Cyrill Stachniss, Kai Arras, Maren Bennewitz

Introduction to Mobile Robotics Compact Course on Linear Algebra. Wolfram Burgard, Cyrill Stachniss, Maren Bennewitz, Diego Tipaldi, Luciano Spinello

Chapter 1: Systems of linear equations and matrices. Section 1.1: Introduction to systems of linear equations

Matrices A brief introduction

10: Representation of point group part-1 matrix algebra CHEMISTRY. PAPER No.13 Applications of group Theory

Linear Algebra, Vectors and Matrices

Math 123, Week 2: Matrix Operations, Inverses

B553 Lecture 5: Matrix Algebra Review

An Introduction to Matrix Algebra

Linear Algebra. The analysis of many models in the social sciences reduces to the study of systems of equations.

Linear Algebra. Linear Equations and Matrices. Copyright 2005, W.R. Winfrey

Linear Algebra II. 7 Inner product spaces. Notes 7 16th December Inner products and orthonormal bases

Math 360 Linear Algebra Fall Class Notes. a a a a a a. a a a

Linear Algebra and Eigenproblems

Introduction to Matrices

1 Matrices and matrix algebra

Review of Linear Algebra

Lecture II: Linear Algebra Revisited

1. Linear systems of equations. Chapters 7-8: Linear Algebra. Solution(s) of a linear system of equations (continued)

CS123 INTRODUCTION TO COMPUTER GRAPHICS. Linear Algebra /34

Math Camp II. Basic Linear Algebra. Yiqing Xu. Aug 26, 2014 MIT

Lecture 2: Linear Algebra

n n matrices The system of m linear equations in n variables x 1, x 2,..., x n can be written as a matrix equation by Ax = b, or in full

Lecture 02 Linear Algebra Basics

Final Review Sheet. B = (1, 1 + 3x, 1 + x 2 ) then 2 + 3x + 6x 2

Finite Math - J-term Section Systems of Linear Equations in Two Variables Example 1. Solve the system

Applied Linear Algebra in Geoscience Using MATLAB

Math Linear Algebra Final Exam Review Sheet

Foundations of Computer Vision

MATRICES AND MATRIX OPERATIONS

Final Exam, Linear Algebra, Fall, 2003, W. Stephen Wilson

Matrices. 1 a a2 1 b b 2 1 c c π

Chapter 2. Linear Algebra. rather simple and learning them will eventually allow us to explain the strange results of

Lecture 8 : Eigenvalues and Eigenvectors

APPENDIX A. Background Mathematics. A.1 Linear Algebra. Vector algebra. Let x denote the n-dimensional column vector with components x 1 x 2.

Maths for Signals and Systems Linear Algebra for Engineering Applications

Chapter 3 Transformations

Lecture 2: Linear operators

3 (Maths) Linear Algebra

Linear Algebra Review. Fei-Fei Li

Lecture 2: Linear Algebra Review

Matrices Gaussian elimination Determinants. Graphics 2009/2010, period 1. Lecture 4: matrices

MATH 31 - ADDITIONAL PRACTICE PROBLEMS FOR FINAL

Matrix & Linear Algebra

CS 143 Linear Algebra Review

18.06SC Final Exam Solutions

Eigenvalues and Eigenvectors

Mathematical foundations - linear algebra

Econ Slides from Lecture 7

Chapter 2. Matrix Arithmetic. Chapter 2

MIT Final Exam Solutions, Spring 2017

CS 246 Review of Linear Algebra 01/17/19

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

Transcription:

Image Registration Lecture 2: Vectors and Matrices Prof. Charlene Tsai Lecture Overview Vectors Matrices Basics Orthogonal matrices Singular Value Decomposition (SVD) 2 1

Preliminary Comments Some of this should be review; all of it might be review This is really only background, and not a main focus of the course All of the material is covered in standard linear algebra texts. Linear Algebra and Its Applications, by Gilbert Strang Matrix Analysis and Applied Linear Algebra, by C. D. Meyer, Carl Meyer 3 Vectors: Definition Formally, a vector is an element of a vector space Informally (and somewhat incorrectly), we will use vectors to represent both point locations and directions x = x Algebraically, we write Note that we will usually treat vectors column vectors and use the transpose notation to make the writing more compact ( x L x ) 1 2 n T x1 x2 = M xn 4 2

Vectors: Example z (-4,6,5) (0,0,-1) x y 5 Vectors: Addition Added component-wise z p+q q Example: p x Geometric view y 6 3

Vectors: Scalar Multiplication Simplest form of multiplication involving vectors In particular: p cp Example: 7 Vectors: Lengths, Magnitudes, Distances The length or magnitude of a vector is The distance between two vectors is 8 4

Vectors: Dot (Scalar/Inner) Product Second means of multiplication involving vectors In particular, We ll see a different notation for writing the scalar product using matrix multiplication soon Note that 9 Unit Vectors A unit (direction) vector is a vector whose magnitude is 1: Typically, we will use a hat to denote a unit vector, e.g.: 10 5

Angle Between Vectors We can compute the angle between two vectors using the scalar product: z p α q Two non-zero vectors are orthogonal if and only if x y 11 Cross (Outer) Product of Vectors Given two 3-vectors, p and q, the cross product is a vector perpendicular to both In component form, Finally, 12 6

Looking Ahead A Bit to Transformations Be aware that lengths and angles are preserved by only very special transformations Therefore, in general Unit vectors will no longer be unit vectors after applying a transformation Orthogonal vectors will no longer be orthogonal after applying a transformation 13 Matrices - Definition Matrices are rectangular arrays of numbers, with each number subscripted by two indices: m rows n columns A short-hand notation for this is 14 7

Special Matrices: The Identity The identity matrix, denoted I, I n or I nxn, is a square matrix with n rows and columns having 1 s on the main diagonal and 0 s everywhere else: 15 Diagonal Matrices A diagonal matrix is a square matrix that has 0 s everywhere except on the main diagonal. For example: Notational short-hand 16 8

Matrix Transpose and Symmetry The transpose of a matrix is one where the rows and columns are reversed: If A = A T then the matrix is symmetric. Only square matrices (m=n) are symmetric 17 Examples This matrix is not symmetric This matrix is symmetric 18 9

Matrix Addition Two matrices can be added if and only if (iff) they have the same number of rows and the same number of columns. Matrices are added component-wise: Example: 19 Matrix Scalar Multiplication Any matrix can be multiplied by a scalar 20 10

Matrix Multiplication The product of an mxn matrix and a nxp matrix is a mxp matrix: Entry i,j of the result matrix is the dot-product of row i of A and column j of B Example 21 Vectors as Matrices Vectors, which we usually write as column vectors, can be thought of as nx1 matrices The transpose of a vector is a 1xn matrix - a row vector. These allow us to write the scalar product as a matrix multiplication: For example, 22 11

Notation We will tend to write matrices using boldface capital letters We will tend to write vectors as boldface small letters 23 Square Matrices Much of the remaining discussion will focus only on square matrices: Trace Determinant Inverse Eigenvalues Orthogonal / orthonormal matrices When we discuss the singular value decomposition we will be back to non-square matrices 24 12

Trace of a Matrix Sum of the terms on the main diagonal of a square matrix: The trace equals the sum of the eigenvalues of the matrix. 25 Determinant Notation: Recursive definition: When n=1, When n=2, 26 13

Determinant (continued) For n>2, choose any row i of A, and define M i,j be the (n-1)x(n-1) matrix formed by deleting row i and column j of A, then We get the same formula by choosing any column j of A and summing over the rows. 27 Some Properties of the Determinant If any two rows or any two columns are equal, the determinant is 0 Interchanging two rows or interchanging two columns reverses the sign of the determinant The determinant of A equals the product of the eigenvalues of A For square matrices 28 14

Matrix Inverse The inverse of a square matrix A is the unique matrix A -1 such that Matrices that do not have an inverse are said to be non-invertible or singular A matrix is invertible if and only if its determinant is non-zero We will not worry about the mechanism of calculating inverses, except using the singular value decomposition 29 Eigenvalues and Eigenvectors A scalar λ and a vector v are, respectively, an eigenvalue and an associated (unit) eigenvector of square matrix A if For example, if we think of a A as a transformation and if λ=1, then Av=v implies v is a fixed-point of the transformation. Eigenvalues are found by solving the equation Once eigenvalues are known, eigenvectors are found, by finding the nullspace (we will not discuss this) of 30 15

Eigenvalues of Symmetric Matrices They are all real (as opposed to imaginary), which can be seen by studying the following (and remembering properties of vector magnitudes) We can also show that eigenvectors associated with distinct eigenvalues of a symmetric matrix are orthogonal We can therefore write a symmetric matrix as 31 Orthonormal Matrices A square matrix is orthonormal (sometimes called orthogonal) iff In other word A T is the right inverse. Based on properties of inverses this immediately implies This means for vectors formed by any two rows or any two columns Kronecker delta, which is 1 if i=j and 0 otherwise 32 16

Orthonormal Matrices - Properties The determinant of an orthonormal matrix is either 1 or -1 because Multiplying a vector by an orthonormal matrix does not change the vector s length: An orthonormal matrix whose determinant is 1 (-1) is called a rotation (reflection). Of course, as discussed on the previous slide 33 Singular Value Decomposition (SVD) Consider an mxn matrix, A, and assume m n. A can be decomposed into the product of 3 matrices: Where: U is mxn with orthonormal columns W is a nxn diagonal matrix of singular values, and V is nxn orthonormal matrix If m=n then U is an orthonormal matrix 34 17

Properties of the Singular Values with and the number of non-zero singular values is equal to the rank of A 35 SVD and Matrix Inversion For a non-singular, square matrix, with The inverse of A is You should confirm this for yourself! Note, however, this isn t always the best way to compute the inverse 36 18

SVD and Solving Linear Systems Many times problems reduce to finding the vector x that minimizes Taking the derivative (I don t necessarily expect that you can do this, but it isn t hard) with respect to x, setting the result to 0 and solving implies Computing the SVD of A (assuming it is fullrank) results in 37 Summary Vectors Definition, addition, dot (scalar / inner) product, length, etc. Matrices Definition, addition, multiplication Square matrices: trace, determinant, inverse, eigenvalues Orthonormal matrices SVD 38 19

Looking Ahead to Lecture 3 Images and image coordinate systems Transformations Similarity Affine Projective 39 20