m. turk and a. pentland (1991). dana h. ballard...

10
1 HCI/ComS 575X: Computational Perception Instructor: Alexander Stoytchev http://www.cs.iastate.edu/~alex/classes/2007_Spring_575X/ Eigenfaces HCI/ComS 575X: Computational Perception Iowa State University, SPRING 2007 Copyright © 2007, Alexander Stoytchev February 21, 2007 M. Turk and A. Pentland (1991). ``Eigenfaces for recognition''. Journal of Cognitive Neuroscience, 3(1). Dana H. Ballard (1999). ``An Introduction to Natural Computation (Complex Adaptive Systems)'', Chapter 4, pp 70-94, MIT Press. Readings for Next Time Henry A. Rowley, Shumeet Baluja and Takeo Kanade (1997). ``Rotation Invariant Neural Network-Based Face Detection,'' Carnegie Mellon Technical Report, CMU-CS-97-201. Paul Viola and Michael Jones (2001). ``Robust Real-time Object Detection'' , Second International Workshop on Statistical and Computational Theories of Vision Modeling, Learning, Computing, and Sampling, Vancouver, Canada, July 13, 2001. Review of Eigenvalues and Eigenvectors

Upload: others

Post on 13-Oct-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: M. Turk and A. Pentland (1991). Dana H. Ballard (1999).home.engineering.iastate.edu/~alexs/classes/2007... · • Paul Viola and Michael Jones (2001). ``Robust Real-time Object Detection'',

1

HCI/ComS 575X: Computational Perception

Instructor: Alexander Stoytchevhttp://www.cs.iastate.edu/~alex/classes/2007_Spring_575X/

Eigenfaces

HCI/ComS 575X: Computational PerceptionIowa State University, SPRING 2007Copyright © 2007, Alexander Stoytchev

February 21, 2007

M. Turk and A. Pentland (1991).

``Eigenfaces for recognition''. Journal of Cognitive Neuroscience, 3(1).

Dana H. Ballard (1999).

``An Introduction to Natural Computation (Complex Adaptive Systems)'',

Chapter 4, pp 70-94, MIT Press.

Readings for Next Time

• Henry A. Rowley, Shumeet Baluja and TakeoKanade (1997). ``Rotation Invariant Neural Network-Based Face Detection,'' Carnegie Mellon Technical Report, CMU-CS-97-201.

• Paul Viola and Michael Jones (2001). ``Robust Real-time Object Detection'', Second International Workshop on Statistical and Computational Theories of Vision Modeling, Learning, Computing, and Sampling, Vancouver, Canada, July 13, 2001.

Review of Eigenvalues and Eigenvectors

Page 2: M. Turk and A. Pentland (1991). Dana H. Ballard (1999).home.engineering.iastate.edu/~alexs/classes/2007... · • Paul Viola and Michael Jones (2001). ``Robust Real-time Object Detection'',

2

Review Questions

• What is a vector?

• What is a Matrix?

• What is the result when a vector is multiplied by a matrix? (Ax = ?)

Ax = bm××××n matrix

n-vector (column)

m-vector (column)

2 1–3 4

x1

x2=

14

2x1 + x2 = 1–3x1 + 4x2 = 4

x1

x2=

01

Example:

Systems of LinearEquations

Intuitive Definition

• For any matrix there are some vectors such that the matrix multiplication changes only the magnitude of the vector.

• These vectors are called eigenvectors.

Ax = λλλλx

Mathematical Formulation

A symmetric ⇒ λ realA positive definite ⇒ λ > 0A positive semi-definite ⇒ λ ≥ 0

x1

x2 Ax

x an eigenvector ⇒

0 11 0

x1

x2= λ

x1

x2↔ λ = 1 /\ x1 = x2

λ = –1 /\ x1 = – x2

x1

x2eigenvector1eigenvector2

On-line Java Applets

• http://www.math.duke.edu/education/webfeatsII/Lite_Applets/contents.html

• http://www.math.ucla.edu/~tao/resource/general/115a.3.02f/EigenMap.html

Java Applet Example

[http://www.math.duke.edu/education/webfeatsII/Lite_Applets/contents.html]

Page 3: M. Turk and A. Pentland (1991). Dana H. Ballard (1999).home.engineering.iastate.edu/~alexs/classes/2007... · • Paul Viola and Michael Jones (2001). ``Robust Real-time Object Detection'',

3

Java Applet Example

[http://www.math.duke.edu/education/webfeatsII/Lite_Applets/contents.html]

Finding the Eigenvectors

[From Ballard (1999)]

Finding the Eigenvectors Finding the Eigenvectors

I

Identity Matrix

Finding the Eigenvectors Finding the Eigenvectors

[From Ballard (1999)]

Page 4: M. Turk and A. Pentland (1991). Dana H. Ballard (1999).home.engineering.iastate.edu/~alexs/classes/2007... · • Paul Viola and Michael Jones (2001). ``Robust Real-time Object Detection'',

4

Finding the Eigenvectors

• The solution exists if:

• Characteristic equation:

[From Ballard (1999)]

i.e.,

Determinant, not matrix

Finding the Eigenvectors

• The solutions to the characteristic equation are the eigenvalues

• In this case:

[From Ballard (1999)]

Finding the Eigenvectors

• Substituting with

• We get this system of equations

[From Ballard (1999)]

Finding the Eigenvectors

• Thus, first eigenvector is:

• The corresponding eigenvalue is:

• Verification:

[From Ballard (1999)]

Eigenvectors and Eigenvaluesin Matlab

>> A=[3 1; 2 2]A =

3 12 2

>> [V, D]=eig(A)V =

0.7071 -0.44720.7071 0.8944

D =4 00 1

Eigenvectors and Eigenvaluesin Matlab

>> L = [ V(:,1), [0; 0], V(:,2)]'L =

0.7071 0.70710 0

-0.4472 0.8944

>> line(L(:,1), L(:,2))>> axis([-1, 1, -1, 1])

Page 5: M. Turk and A. Pentland (1991). Dana H. Ballard (1999).home.engineering.iastate.edu/~alexs/classes/2007... · • Paul Viola and Michael Jones (2001). ``Robust Real-time Object Detection'',

5

Eigenvectors v.s. Clustering

[http://web.math.umt.edu/bardsley/courses/471/eigenface.pdf]

Simple Example

Three Sample Data Points

[From Ballard (1999)]

The mean is equal to …

[From Ballard (1999)]

Subtract the Mean FromAll Data Points

[From Ballard (1999)]

Page 6: M. Turk and A. Pentland (1991). Dana H. Ballard (1999).home.engineering.iastate.edu/~alexs/classes/2007... · • Paul Viola and Michael Jones (2001). ``Robust Real-time Object Detection'',

6

The Covariance Matrix is Given By

[From Ballard (1999)] [From Ballard (1999)]

[From Ballard (1999)]

Why can we drop 1/M?

What about that Trickwith the Dimensions? Matlab Demo

Page 7: M. Turk and A. Pentland (1991). Dana H. Ballard (1999).home.engineering.iastate.edu/~alexs/classes/2007... · • Paul Viola and Michael Jones (2001). ``Robust Real-time Object Detection'',

7

Visualizing the Eigenvectors in 3D

Recognition Example

?

?

Recognition Example

?

?

How about this one?

?

Eigenfaces

Page 8: M. Turk and A. Pentland (1991). Dana H. Ballard (1999).home.engineering.iastate.edu/~alexs/classes/2007... · • Paul Viola and Michael Jones (2001). ``Robust Real-time Object Detection'',

8

Representing images as vectors The Next set of slides come from:

Prof. Ramani Duraiswami’s classCMSC: 426 Computer Vision

http://www.umiacs.umd.edu/~ramani/cmsc426/

[http://www.umiacs.umd.edu/~ramani/cmsc426/] [http://www.umiacs.umd.edu/~ramani/cmsc426/]

[http://www.umiacs.umd.edu/~ramani/cmsc426/] [http://www.umiacs.umd.edu/~ramani/cmsc426/]

Page 9: M. Turk and A. Pentland (1991). Dana H. Ballard (1999).home.engineering.iastate.edu/~alexs/classes/2007... · • Paul Viola and Michael Jones (2001). ``Robust Real-time Object Detection'',

9

[http://www.umiacs.umd.edu/~ramani/cmsc426/] [http://www.umiacs.umd.edu/~ramani/cmsc426/]

[http://www.umiacs.umd.edu/~ramani/cmsc426/] [http://www.umiacs.umd.edu/~ramani/cmsc426/]

[http://www.umiacs.umd.edu/~ramani/cmsc426/] [http://www.umiacs.umd.edu/~ramani/cmsc426/]

Page 10: M. Turk and A. Pentland (1991). Dana H. Ballard (1999).home.engineering.iastate.edu/~alexs/classes/2007... · • Paul Viola and Michael Jones (2001). ``Robust Real-time Object Detection'',

10

[http://www.umiacs.umd.edu/~ramani/cmsc426/] [http://www.umiacs.umd.edu/~ramani/cmsc426/]

[http://www.umiacs.umd.edu/~ramani/cmsc426/]

Matlab Demo

THE END