Download presentation
Presentation is loading. Please wait.
Published byNorman Hodge Modified over 9 years ago
1
Data-driven Methods: Faces 15-463: Computational Photography Alexei Efros, CMU, Fall 2012 Portrait of Piotr Gibas © Joaquin Rosales Gomez
2
The Power of Averaging
3
8-hour exposure © Atta Kim
4
Fun with long exposures Photos by Fredo Durand
5
More fun with exposures http://vimeo.com/14958082
6
Figure-centric averages Antonio Torralba & Aude Oliva (2002) Averages: Hundreds of images containing a person are averaged to reveal regularities in the intensity patterns across all the images.
7
More by Jason Salavon More at: http://www.salavon.com/http://www.salavon.com
8
“100 Special Moments” by Jason Salavon Why blurry?
9
Computing Means Two Requirements: Alignment of objects Objects must span a subspace Useful concepts: Subpopulation means Deviations from the mean
10
Images as Vectors = m n n*m
11
Vector Mean: Importance of Alignment = m n n*m = ½ + ½ = mean image
12
How to align faces? http://www2.imm.dtu.dk/~aam/datasets/datasets.html
13
Shape Vector = 43 Provides alignment!
14
Average Face 1. Warp to mean shape 2. Average pixels http://graphics.cs.cmu.edu/courses/15-463/2004_fall/www/handins/brh/final/
15
Objects must span a subspace (1,0) (0,1) (.5,.5)
16
Example Does not span a subspace mean
17
Subpopulation means Examples: Happy faces Young faces Asian faces Etc. Sunny days Rainy days Etc. Average male Average female
18
Deviations from the mean - = Image X Mean X X = X - X
19
Deviations from the mean += + 1.7 = X X = X - X
20
Manipulating Facial Appearance through Shape and Color Duncan A. Rowland and David I. Perrett St Andrews University IEEE CG&A, September 1995
21
Face Modeling Compute average faces (color and shape) Compute deviations between male and female (vector and color differences)
22
Changing gender Deform shape and/or color of an input face in the direction of “more female” original shape colorboth
23
Enhancing gender more same original androgynous more opposite
24
Changing age Face becomes “rounder” and “more textured” and “grayer” original shape colorboth
25
Back to the Subspace
26
Linear Subspace: convex combinations Any new image X can be obtained as weighted sum of stored “basis” images. Our old friend, change of basis! What are the new coordinates of X?
27
The Morphable Face Model The actual structure of a face is captured in the shape vector S = (x 1, y 1, x 2, …, y n ) T, containing the (x, y) coordinates of the n vertices of a face, and the appearance (texture) vector T = (R 1, G 1, B 1, R 2, …, G n, B n ) T, containing the color values of the mean-warped face image. Shape S Appearance T
28
The Morphable face model Again, assuming that we have m such vector pairs in full correspondence, we can form new shapes S model and new appearances T model as: If number of basis faces m is large enough to span the face subspace then: Any new face can be represented as a pair of vectors ( 1, 2 m ) T and ( 1, 2 m ) T !
29
Issues: 1.How many basis images is enough? 2.Which ones should they be? 3.What if some variations are more important than others? E.g. corners of mouth carry much more information than haircut Need a way to obtain basis images automatically, in order of importance! But what’s important?
30
Principal Component Analysis Given a point set, in an M -dim space, PCA finds a basis such that coefficients of the point set in that basis are uncorrelated first r < M basis vectors provide an approximate basis that minimizes the mean-squared-error (MSE) in the approximation (over all bases with dimension r ) x1x1 x0x0 x1x1 x0x0 1 st principal component 2 nd principal component
31
PCA via Singular Value Decomposition [u,s,v] = svd(A); http://graphics.cs.cmu.edu/courses/15-463/2004_fall/www/handins/brh/final/
32
Principal Component Analysis Choosing subspace dimension r : look at decay of the eigenvalues as a function of r Larger r means lower expected error in the subspace data approximation rM1 eigenvalues
33
EigenFaces First popular use of PCA on images was for modeling and recognition of faces [Kirby and Sirovich, 1990, Turk and Pentland, 1991] Collect a face ensemble Normalize for contrast, scale, & orientation. Remove backgrounds Apply PCA & choose the first N eigen-images that account for most of the variance of the data. mean face lighting variation
34
First 3 Shape Basis Mean appearance http://graphics.cs.cmu.edu/courses/15-463/2004_fall/www/handins/brh/final/
35
Using 3D Geometry: Blinz & Vetter, 1999 show SIGGRAPH video
36
Walking in the Face-graph! Ira Kemelmacher-Shlizerman, Eli Shechtman, Rahul Garg, Steven M. Seitz. "Exploring Photobios." ACM Transactions on Graphics 30(4) (SIGGRAPH), Aug 2011. http://vimeo.com/23561002
37
Photobio
40
Challenges Non-rigid (facial expressions, age…) Occlusions (hair, glasses …) Arbitrary lighting, pose Different cameras, exposure, focus … But: there are many photos!
41
Image registration Face detection Bourdev and Brandt ‘05 Fiducial points detection Everingham et al. ‘06 2D registration Template 3D model Estimate 3D pose Kemelmacher, Shechtman, Garg, Seitz, Exploring Photobios, SIGGRAPH’11
42
Image registration Face detection Bourdev and Brandt ‘05 Fiducial points detection Everingham et al. ‘06 3D registration Template 3D model Estimate 3D pose Kemelmacher, Shechtman, Garg, Seitz, Exploring Photobios, SIGGRAPH’11
43
3D transformed photos before after … …
44
Represent the photo collection as a graph 3D Head Pose similarity 3D Head Pose similarity Facial Expression similarity Time similarity Similarity between 2 photos
45
Represent the photo collection as a graph 3D Head Pose similarity 3D Head Pose similarity Facial Expression similarity Time similarity Similarity between 2 photos
46
Represent the photo collection as a graph 3D Head Pose similarity 3D Head Pose similarity Facial Expression similarity Time similarity Similarity between 2 photos
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.