Model-based vision part 1 - Lecture 11 - Week 5 Flashcards
What is dimensionality reduction?
Reducing the number of dimensions of data.
In 2D:
- Plot a line of best fit through the data
- Measure how close to the line of best fit each point it
- Use these measurements as your 1 dimension reading
What is the Principle Component Analysis (PCA) algorithm for?
- Assemble the data into a matrix
(size: number of samples x number of variables) - Compute the covariance Matrix (see later)
- Find the eigenvalues(lambda i) and Eigenvectors (vi) of C
Each lambda i gives the variance in the direction vi
Total Variance, T = sum from i to N of (lambda i) - Choose the K largest eigenvalues to account for p% of T (because we want to reduce the number of dimensions)
For example, we might choose p = 0.95
What is the covariance matrix of:
x y
1 1
3 0
-1 -1
8/3 2/3
2/3 2/3
How are eigenvalues / eigenvectors found for a square matrix A?
solve |A - lambda * I| = 0
Where I is an identity matrix and ~~ is the determinant
https://www.mathsisfun.com/algebra/matrix-determinant.html to see how to calculate the determinant
If a covariance matrix has eigenvalues 1.19 and 0.19 what is the total variance?
T = 1.19 + 0.19 = 1.38
The proportion of variance in the data for v1 is p = 1.19/1.38 = 0.86
If the proportion of variance in the data for v1 is p = 1.19/1.38 = 0.86 what does that say about the data variation if we projected the data points onto v1?
We would retain 86% of the variation in the data if we performed that projection
What does ASM stand for?
Active Shape Models
What type of shape matching do ASMs allow for, and what does that mean
non-rigid
Shape matches where the shape can be scaled, rotated, translated, etc… They allow shapes to change so that parts of the shape can move (soft of) independently
In the equation X = x + Vb (where x is the mean shape, what does V and b refer to and what happens when they are changed
V is the vector of all of the eigenvalues, b is the shape parameter vector (A vector of 40 values. The values in b are varied to create more shape models variations based on the mean shape
What is the set of parameters for active shape models?
(s, theta, r, b) s for scale, r for translation, theta for rotation, b for the shape parameter vector