Title: Linear Algebra Review
1Linear Algebra Review
2Why do we need Linear Algebra?
- We will associate coordinates to
- 3D points in the scene
- 2D points in the CCD array
- 2D points in the image
- Coordinates will be used to
- Perform geometrical transformations
- Associate 3D with 2D points
- Images are matrices of numbers
- We will find properties of these numbers
3Matrices
Sum
A and B must have the same dimensions
4Matrices
Product
5Matrices
Transpose
If
A is symmetric
6Matrices
Determinant
A must be square
7Matrices
Inverse
A must be square
82D Vector
9Vector Addition
10Vector Subtraction
V-w
v
w
11Scalar Product
12Inner (dot) Product
The inner product is a SCALAR!
13Orthonormal Basis
14Vector (cross) Product
The cross product is a VECTOR!
15Vector Product Computation
162D Geometrical Transformations
172D Translation
P
t
P
182D Translation Equation
192D Translation using Matrices
P
20Homogeneous Coordinates
- Multiply the coordinates by a non-zero scalar and
add an extra coordinate equal to that scalar.
For example,
- NOTE If the scalar is 1, there is no need for
the multiplication!
21Back to Cartesian Coordinates
- Divide by the last coordinate and eliminate it.
For example,
222D Translation using Homogeneous Coordinates
t
P
23Scaling
P
P
24Scaling Equation
P
Sy.y
P
y
x
Sx.x
25Scaling Translating
PT.P
PS.P
P
PT.PT.(S.P)(T.S).P
26Scaling Translating
PT.PT.(S.P)(T.S).P
27Translating Scaling ? Scaling Translating
PS.PS.(T.P)(S.T).P
28Rotation
P
P
29Rotation Equations
Counter-clockwise rotation by an angle ?
30Degrees of Freedom
R is 2x2
4 elements
BUT! There is only 1 degree of freedom ?
The 4 elements must satisfy the following
constraints
31Scaling, Translating Rotating
Order matters!
P S.P PT.P(T.S).P PR.PR.(T.S).P(R.T
.S).P
R.T.S ? R.S.T ? T.S.R
323D Rotation of Points
Rotation around the coordinate axes,
counter-clockwise
z
333D Rotation (axis angle)
343D Translation of Points
Translate by a vector t(tx,ty,tx)T
P
t
Y
x
x
P
y
z
z