Week 5 - Model based Vision Flashcards

1
Q

What is model based vision

A

Visual understanding and interpretation are achieved through the use of explicit models of objects and scenes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Wha is Principle Component Analysis

A

Used for dimensionality reduction
Aims to find the directions (or principal components) that capture the maximum variance in the data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is dimensionality reduction

A

(2D → 1D)
Given some data
Find a line of best fit v1 which contains the largest variation in values
If v2 (perpendicular) variation is much smaller compared to v1
We: project all points onto v1
approximately reduce the data by only saving v1 (each point is no represented by a single value)

Can also do: 3D → 2D, 4D → 3D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

When does dimensionality reduction create a better representation

A

When the ellipse along v1 is narrower

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the PCA Algorithm

A

1) Assemble data into matrix
2) Compute the covariance matrix
3) Find the Eigenvalues (λi) and Eigenvectors (vi) of C
4) 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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the dimensions of the intial PCA matrix

A

number of samples x number of variables
row x column

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is an Eigenvalue (λi)

A

Represents the magnitude of variance along each direction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is an Eigenvector (vi)

A

The directions of maximum variance in the dataset

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do you calculate total variance along a direction

A

Σ λi

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the dimensions of the PCA covariance matrix

A

number of var x number of var
(symmetrical)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what is in each segment of a covariance matrix, given 2 var:x,y

A

cov(x,x) cov(x,y)
cov(y,x) cov(y,y)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is cov(x,x) the same as

A

var(x)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do you calculate cov(x,y)

A

cov(x,y) = E[xy] - E[x]E[y]
E[] = average

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What equation to eigen values and vectors satisfy

A

Av = λv

To find the eigenvalues we solve

det( A - λI) = 0

where I is an identity matrix

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

what is the formula for determinant

A

determinant = ad - bc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What do the two eigenvalues represent

A

the magnitude of the variance in direction v1 and v2
(eigenvector v1 is perpendicular to eigenvector v2)

17
Q

How do you calculate the proportion of variance in the v1 direction

A

eigenvalue(v1) / (eigenvalue(v1) + eigenvalue(v2))
eg 0.86
means if we projected the data points onto v1 we would still retain 86% of the variation in the data

18
Q

What are Active Shape models

A

Allow for non-rigid shape matching
eg annotated dataset of female faces

Are able to generate different (valid) shapes based on supplied shapes in training dataset

19
Q

What do active shape models not allow

A

shapes to be scaled, rotated, translated etc

20
Q

How do we use PCA in ASMs

A

Assemble data in matrix (number of variables x number of data samples)
Compute covariance matrix (number of var x number of var)
Find eigenvalues solve det(C - λI) = 0

so there will be (number of var) eigenvalues
Which can be a lot so we choose the K largest eigenvalues

21
Q

How do we then generate new shapes using eigenvalues

A

x = x̄ + Vb

Where x̄ is the mean shape
Eigenvectors vi are the column vectors in V
and b is the shape parameter vector

the mean shape is calculated from the original matrix of data D

22
Q

What is the shape parameter vector b

A

Size (number of var x1)
A column vector of coefficients that scales the eigenvectors (or eigenmodes) of shape variation

23
Q

What are the modes of variation of a shape

A

The effect of changing b on the shape
PCA finds these automatically
eg b1 changes the vertical position

24
Q

How do we use shape fitting to find a shape in a new image

A

We can use an iterative localised search in the image:

  • Place the shape into the image
  • Search in the neighbourhood of current feature points for better locations
  • Fit the model to the new suggested shape
  • Repeat until convergence occurs
25
Q

What parameters do we need to be able to change when placing a model in an image

A

(s, θ, r, b)
As well as changing the values in b, we also need to allow for the “pose parameters”:
scaling (s), rotation (θ) and translation (r)

26
Q

What does b=0 mean about the shape

A

It is the mean shape

27
Q

How do we fit a model to the image

A
  • Calculate normals to the model curve at each point (current points are x)
  • search along the normal for the strongest edge (trying to find the edge of the actual shape)
  • This gives a set of suggested points x’
    • But we do not just use as x’ as this may not give a valid face shape
  • First, (s, θ, r) are found to best fit x to x’
    • rigid transformation to get closer, gives x’’
      Use the model backwards
    • b = V−1 (x’’ − ¯x)
    • ¯x is the mean face
  • New b generates a new valid shape
  • Iterate until convergence
28
Q

How is using the model backwards useful

A

originally: x = x̄ + Vb
When we calculate x’’ using rigid transformations and normals
we can calculate b using:
b = V−1 (x’’ − ¯x)

And then find a new set of suggested points using
x̄ + Vb (with updated b) to get closer to actual shape

29
Q

How is ASM used in the real world

A

Medical application: ASM are used a lot in the medical field
eg positioning an artificial hip

30
Q

What is the Active Appearance Model

A
  • face is split into triangles
  • texture within triangles is warped to fit the model
  • imagine face printed on a rubber sheet and stretched about → used to change expressions
31
Q

How are different shapes creates in ASM

A

By changing b