Linear Subspaces - Geometry. No Invariants, so Capture Variation Each image = a pt. in a high-dimensional space. –Image: Each pixel a dimension. –Point.

Slides:



Advertisements
Similar presentations
RANDOM PROJECTIONS IN DIMENSIONALITY REDUCTION APPLICATIONS TO IMAGE AND TEXT DATA Ella Bingham and Heikki Mannila Ângelo Cardoso IST/UTL November 2009.
Advertisements

8.2 Kernel And Range.
EigenFaces.
Dimension Reduction by pre-image curve method Laniu S. B. Pope Feb. 24 th, 2005.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm Lecture #20.
THE DIMENSION OF A VECTOR SPACE
Data-driven Methods: Faces : Computational Photography Alexei Efros, CMU, Fall 2007 Portrait of Piotr Gibas © Joaquin Rosales Gomez.
Explaining High-Dimensional Data
I. Homomorphisms & Isomorphisms II. Computing Linear Maps III. Matrix Operations VI. Change of Basis V. Projection Topics: Line of Best Fit Geometry of.
Approximate Nearest Subspace Search with Applications to Pattern Recognition Ronen Basri, Tal Hassner, Lihi Zelnik-Manor presented by Andrew Guillory and.
Face Recognition using PCA (Eigenfaces) and LDA (Fisherfaces)
Spring semester 2006 ESE 601: Hybrid Systems Review materials on continuous systems II.
Dimension of a Vector Space (11/9/05) Theorem. If the vector space V has a basis consisting of n vectors, then any set of more than n vectors in V must.
Visibility Subspaces: Uncalibrated Photometric Stereo with Shadows Kalyan Sunkavalli, Harvard University Joint work with Todd Zickler and Hanspeter Pfister.
Face Recognition Jeremy Wyatt.
I. Isomorphisms II. Homomorphisms III. Computing Linear Maps IV. Matrix Operations V. Change of Basis VI. Projection Topics: Line of Best Fit Geometry.
Subspaces, Basis, Dimension, Rank
Mathematics1 Mathematics 1 Applied Informatics Štefan BEREŽNÝ.
Solve Systems of Linear Equations in Three Variables Chapter 3.4.
University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2006 Don Fussell Orthogonal Functions and Fourier Series.
Automatic Camera Calibration
Photorealistic Outcrop at Dallas Post Office Accuracy of a few centimeters Photo registration about 0.7 – 2.7 pixels. Bring outcrop back to office photorealistically.
1 Recognition by Appearance Appearance-based recognition is a competing paradigm to features and alignment. No features are extracted! Images are represented.
Local Non-Negative Matrix Factorization as a Visual Representation Tao Feng, Stan Z. Li, Heung-Yeung Shum, HongJiang Zhang 2002 IEEE Presenter : 張庭豪.
Computer Vision Lab. SNU Young Ki Baik Nonlinear Dimensionality Reduction Approach (ISOMAP, LLE)
Lighting affects appearance. How do we represent light? (1) Ideal distant point source: - No cast shadows - Light distant - Three parameters - Example:
Pattern Recognition April 19, 2007 Suggested Reading: Horn Chapter 14.
CSE 185 Introduction to Computer Vision Face Recognition.
Orthonormal Bases; Gram-Schmidt Process; QR-Decomposition
CSSE463: Image Recognition Day 27 This week This week Today: Applications of PCA Today: Applications of PCA Sunday night: project plans and prelim work.
2 2.9 © 2016 Pearson Education, Inc. Matrix Algebra DIMENSION AND RANK.
Drawing With Lines and Shapes!
4.1 Introduction to Linear Spaces (a.k.a. Vector Spaces)
CS 691B Computational Photography Instructor: Gianfranco Doretto Data Driven Methods: Faces.
Warm-Up Practice #98 on the iPad (Using Adobe Reader)
Ch 6 Vector Spaces. Vector Space Axioms X,Y,Z elements of  and α, β elements of  Def of vector addition Def of multiplication of scalar and vector These.
5.4 Basis and Dimension The equations can be written by using MathType
4.5: The Dimension of a Vector Space. Theorem 9 If a vector space V has a basis, then any set in V containing more than n vectors must be linearly dependent.
4 4.5 © 2016 Pearson Education, Inc. Vector Spaces THE DIMENSION OF A VECTOR SPACE.
Chapter 3 Section 3.5 Dimension. A 1-dimensional subspace is a line. A 2-dimensional subspace is a plane. A 3-dimensional subspace is space. A 4-dimensional.
4 Vector Spaces 4.1 Vector Spaces and Subspaces 4.2 Null Spaces, Column Spaces, and Linear Transformations 4.3 Linearly Independent Sets; Bases 4.4 Coordinate.
Face detection and recognition Many slides adapted from K. Grauman and D. Lowe.
Sec Sec Sec 4.4 CHAPTER 4 Vector Spaces Let V be a set of elements with vector addition and multiplication by scalar is a vector space if these.
Image from
Date of download: 6/22/2016 Copyright © 2016 SPIE. All rights reserved. Flowchart for the proposed unified unimodal biometric system. Figure Legend: From:
Vectors and the Geometry of Space
Data-driven Methods: Faces
Elementary Linear Algebra
Data-driven Methods: Faces
RECORD. RECORD Subspaces of Vector Spaces: Check to see if there are any properties inherited from V:
Linear Transformations
Object Modeling with Layers
Computational Photography
PCA is “an orthogonal linear transformation that transfers the data to a new coordinate system such that the greatest variance by any projection of the.
What is dimension?.
Element of Art: Space Intro. to Art 10/29/12.
DOWN ACROSS Unit 1 Vocabulary Review
!'!!. = pt >pt > \ ___,..___,..
Turning to the Masters: Motion Capturing Cartoons
Theorems about LINEAR MAPPINGS.
CS4670: Intro to Computer Vision
Linear Algebra Lecture 32.
Review materials on continuous systems II
Three Dimensional Geometry and Vectors
Using Manifold Structure for Partially Labeled Classification
Linear Equations and Vectors
Vector Spaces, Subspaces
The Image The pixels in the image The mask The resulting image 255 X
THE DIMENSION OF A VECTOR SPACE
Practice Geometry Practice
Presentation transcript:

Linear Subspaces - Geometry

No Invariants, so Capture Variation Each image = a pt. in a high-dimensional space. –Image: Each pixel a dimension. –Point set: Each coordinate of each pt. A dimension. Simplest rep. of variation is linear. –Basis (eigen) images: x 1 …x k –Each image, x = a 1 x 1 + … + a k x k Useful if k << n.

When is this accurate? Approximately right when: –Variation approximately linear. Always true for small variation. –Some variations big, some small, can discard small. Exactly right sometimes. –Point features with scaled-orthographic projection. –Convex, Lambertian objects and distant lights.

Principal Components Analysis (PCA) All-purpose linear approximation. Given images (as vectors) Finds low-dimensional linear subspace that best approximates them. –Eg., minimizes distance from images to subspace.

Derivation on whiteboard This is all taken from Duda, Hart and Stork Pattern Classification pp Excerpt in library.

SVD Scatter matrix can be big, so computation non-trivial. Stack data into matrix X, each row an image. SVD gives X = UDV T –D is diagonal with non-increasing values. –U and V have orthonormal rows. V T (:,1:k) gives first k principal components. matlab

Linear Combinations ISP Immediately apparent that u and v coordinates lie in a 4D linear subspace

We Can Remove Translation (1) This is trivial, because we can pick a simple origin. –World origin is arbitrary. –Example: We can assume first point is at origin. Rotation then doesn’t effect that point. All its motion is translation. –Better to pick center of mass as origin. Average of all points. This also averages all noise.

Specifically, we can never tell where the world points were to begin with. Adding one to every x coordinate in P and then subtracting 1 in every tx is undetectable. So, wlog we can assume that sum(P(k,:)) = 0 for k from 1 to 3, ie., sum(x1 … xn) = 0, sum(y1…yn) = 0, sum(z1 … zn) = 0. Rotation doesn’t move the origin, which is now the center of mass. Neither does scaled orthographic projection. So, this only moves from translation. Explicitly, we assume sum(p) = (0,0,0)^T. Then: sum(s*R(p)) = s*R(sum(p)) = s*R(0,0,0)^T = (0,0,0)^T. (^T means transpose).

More explicitly, suppose sum(p) = (0,0,0,n)^T. Then, sum(R*P) = R*(sum(P)) = R*(0,0,0,n)^T = (0,0,0,n)^T. Sum(T*R*P) = T*(0,0,0,n)^T = (ntx,nty,ntz,n)^T. (Or just look at the 2x4 projection matrix). If we subtract tx or ty from every row, then the residual is (s11,s12,s13;s21,s22,s23)*P. I = s part of matrix + t part of matrix.

Remove Translation (2) Notice this is just the first step of PCA.

First Step: Remove Translation (3)

Rank Theorem has rank 3. This means there are 3 vectors such that every row of is a linear combination of these vectors. These vectors are the rows of P. S P So, given any object, u and v coordinates of any image of it lie in a 3-dimensional linear subspace.

Lower-Dimensional Subspace (      affine invariant coordinates of point 4 relative to first three. Represent image: (         …   n  n ) –This representation is complete. –The  or  coordinates of all images of an object occupy a 1D linear subspace.

Representation is Complete 3D-2D affine transformation is projection in some direction + 2D-2D affine transformation. 2D-2D affine maps first three image points anywhere. So they’re irrelevant to a complete representation. Once we use only affine coordinates, 2D-2D affine transformation no longer matters.

1D Subspace

Let m1…mn be 3D model points. Let i1…in be 2D image points Let P be the plane spanned by m1, m2, and m3. Let m4’,… mn’ be the projection of m4…mn onto P. Write the affine coordinates of mi’ relative to m1,m2,m3, as (ai,bi). The image points depend on the viewing direction. For some viewing direction, let i’j be the intersection of the line connecting mj and ij with P. The triangle formed by m4,m4’,i’4 is similar to the one formed by mj,mj’,i’j, for any j. So we have: (m’4-i4’) = rj(m’j-ij’) for some scale factor rj. i’j appears in the same image position as mj. Since i’j is coplanar with p1,p2,p3, it’s affine coordinates are invariant to projection. They are (  j,  j). Then, writing m’j, i’j with affine coordinates we have: (  j,  j) = (aj,bj) + ((  ) – (a4,b4))/rj. Looking at either component, we get a series of linear equations which define a line in alpha or beta space.

Summary Projection can be linearized. So images produced under projection can be linear and low-dimensional. Are these results relevant to surfaces of real 3D objects projected to 2D? –Maybe to features; probably not to intensity images. Why would images of a class of objects be low-dimensional?