Photometric stereo. Recovering the surface f(x,y) Three Source Photometric stereo: Step1. Reflectance Map of Lambertian Surface

Similar documents
Announcement. Photometric Stereo. Computer Vision I. Shading reveals 3-D surface geometry. Shape-from-X. CSE252A Lecture 8

Announcements. Photometric Stereo. Shading reveals 3-D surface geometry. Photometric Stereo Rigs: One viewpoint, changing lighting

Photometric Stereo. Photometric Stereo. Shading reveals 3-D surface geometry BRDF. HW3 is assigned. An example of photometric stereo

Photometric Stereo. Lighting and Photometric Stereo. Computer Vision I. Last lecture in a nutshell BRDF. CSE252A Lecture 7

Faces. Face Modeling. Topics in Image-Based Modeling and Rendering CSE291 J00 Lecture 17

Announcements. Recognition I. Gradient Space (p,q) What is the reflectance map?

What Is the Set of Images of an Object under All Possible Illumination Conditions?

Lambertian model of reflectance I: shape from shading and photometric stereo. Ronen Basri Weizmann Institute of Science

Lambertian model of reflectance II: harmonic analysis. Ronen Basri Weizmann Institute of Science

Ligh%ng and Reflectance

Nine Points of Light: Acquiring Subspaces for Face Recognition under Variable Lighting

Radiance. Pixels measure radiance. This pixel Measures radiance along this ray

From Few to Many: Illumination Cone Models for Face Recognition under Variable Lighting and Pose

Other approaches to obtaining 3D structure

Pose 1 (Frontal) Pose 4 Pose 8. Pose 6. Pose 5 Pose 9. Subset 1 Subset 2. Subset 3 Subset 4

What is the Set of Images of an Object. Under All Possible Lighting Conditions?

Announcement. Lighting and Photometric Stereo. Computer Vision I. Surface Reflectance Models. Lambertian (Diffuse) Surface.

Photometric Stereo with General, Unknown Lighting

Efficient detection under varying illumination conditions and image plane rotations q

Lighting affects appearance

Shading Models for Illumination and Reflectance Invariant Shape Detectors

CS4670/5760: Computer Vision Kavita Bala Scott Wehrwein. Lecture 23: Photometric Stereo

DIFFUSE-SPECULAR SEPARATION OF MULTI-VIEW IMAGES UNDER VARYING ILLUMINATION. Department of Artificial Intelligence Kyushu Institute of Technology

Photometric stereo , , Computational Photography Fall 2018, Lecture 17

Clustering Appearances of Objects Under Varying Illumination Conditions

Epipolar geometry contd.

Illumination-Robust Face Recognition based on Gabor Feature Face Intrinsic Identity PCA Model

WELCOME TO THE NAE US FRONTIERS OF ENGINEERING SYMPOSIUM 2005

Face Re-Lighting from a Single Image under Harsh Lighting Conditions

Resolving the Generalized Bas-Relief Ambiguity by Entropy Minimization

depict shading and attached shadows under extreme lighting; in [10] the cone representation was extended to include cast shadows for objects with non-

Skeleton Cube for Lighting Environment Estimation

And if that 120MP Camera was cool

Using Specularities for Recognition

Photometric*Stereo* October*8,*2013* Dr.*Grant*Schindler* *

Recovering illumination and texture using ratio images

Global Illumination. Frank Dellaert Some slides by Jim Rehg, Philip Dutre

Self-similarity Based Editing of 3D Surface Textures

The Dimensionality of Scene Appearance

Generalized Quotient Image

Announcements. Introduction. Why is this hard? What is Computer Vision? We all make mistakes. What do you see? Class Web Page is up:

A Bilinear Illumination Model for Robust Face Recognition

Visibility Subspaces: Uncalibrated Photometric Stereo with Shadows

Parametric Manifold of an Object under Different Viewing Directions

Chapter 7. Conclusions and Future Work

Using Specularities in Comparing 3D Models and 2D Images

Specularities Reduce Ambiguity of Uncalibrated Photometric Stereo

IEEE TRANSACTIONS ON IMAGE PROCESSING, VOL. 17, NO. 8, AUGUST /$ IEEE

The Bas-Relief Ambiguity

Self-calibrating Photometric Stereo

The Quotient Image: Class Based Recognition and Synthesis Under Varying Illumination Conditions

Assignment #2. (Due date: 11/6/2012)

calibrated coordinates Linear transformation pixel coordinates

Understanding Variability

Hybrid Textons: Modeling Surfaces with Reflectance and Geometry

Estimation of Multiple Illuminants from a Single Image of Arbitrary Known Geometry*

Topic 12: Texture Mapping. Motivation Sources of texture Texture coordinates Bump mapping, mip-mapping & env mapping

Stereo and Epipolar geometry

Capturing light. Source: A. Efros

under Variable Lighting

Topic 11: Texture Mapping 11/13/2017. Texture sources: Solid textures. Texture sources: Synthesized

Appearance-Based Face Recognition and Light-Fields

Visual Learning and Recognition of 3D Objects from Appearance

Numerical Analysis and Statistics on Tensor Parameter Spaces

Analysis of photometric factors based on photometric linearization

Topic 11: Texture Mapping 10/21/2015. Photographs. Solid textures. Procedural

COMP 558 lecture 16 Nov. 8, 2010

So far, we have considered only local models of illumination; they only account for incident light coming directly from the light sources.

Multi-View 3D Reconstruction of Highly-Specular Objects

Stereo Vision. MAN-522 Computer Vision

Some Illumination Models for Industrial Applications of Photometric Stereo

A Survey of Light Source Detection Methods

Photometric Stereo.

Feature descriptors and matching

Statistical multiple light source detection

Face Recognition Markus Storer, 2007

Shading and Recognition OR The first Mrs Rochester. D.A. Forsyth, UIUC

An Active Illumination and Appearance (AIA) Model for Face Alignment

Announcements. Image Formation: Outline. Homogenous coordinates. Image Formation and Cameras (cont.)

Toward a Stratification of Helmholtz Stereopsis

A method for improving consistency in photometric databases

Announcements. Lighting. Camera s sensor. HW1 has been posted See links on web page for readings on color. Intro Computer Vision.

Light source estimation using feature points from specular highlights and cast shadows

CS4670/5760: Computer Vision

Multiple View Geometry

Starting this chapter

Recognition: Face Recognition. Linda Shapiro EE/CSE 576

Appearance Sampling of Real Objects for Variable Illumination

Lecture 22: Basic Image Formation CAP 5415

Multi-View Stereo for Community Photo Collections Michael Goesele, et al, ICCV Venus de Milo

What is Computer Vision? Introduction. We all make mistakes. Why is this hard? What was happening. What do you see? Intro Computer Vision

On Clustering Images of Objects

Face Recognition Under Varying Illumination Based on MAP Estimation Incorporating Correlation Between Surface Points

Announcements. Rotation. Camera Calibration

Motivation. My General Philosophy. Assumptions. Advanced Computer Graphics (Spring 2013) Precomputation-Based Relighting

A Practical Face Relighting Method for Directional Lighting Normalization

Isotropy, Reciprocity and the Generalized Bas-Relief Ambiguity

Recovering 3D Facial Shape via Coupled 2D/3D Space Learning

BIL Computer Vision Apr 16, 2014

Shape Reconstruction Based on Similarity in Radiance Changes under Varying Illumination

Transcription:

Photometric stereo Illumination Cones and Uncalibrated Photometric Stereo Single viewpoint, multiple images under different lighting. 1. Arbitrary known BRDF, known lighting 2. Lambertian BRDF, known lighting 3. Lambertian BRDF, unknown lighting. Three Source Photometric stereo: Step1 Offline: Using source directions & BRDF, construct reflectance map for each light source direction. R 1 (p,q), R 2 (p,q), R 3 (p,q) Online: 1. Acquire three images with known light source directions. E 1 (x,y), E 2 (x,y), E 3 (x,y) 2. For each pixel location (x,y), find (p,q) as the intersection of the three curves R 1 (p,q)=e 1 (x,y) R 2 (p,q)=e 2 (x,y) R 3 (p,q)=e 3 (x,y) 3. This is the surface normal at pixel (x,y). Over image, the normal field is estimated Reflectance Map of Lambertian Surface One viewpoint, two images, two light sources Two super imposed reflectance maps Recovering the surface f(x,y) Many methods: Simplest approach 1. From estimate n =(n x,n y,n z ), p=n x /n z, q=n y /n z 2. Integrate p=df/dx along a row (x,0) to get f(x,0) 3. Then integrate q=df/dy along each column starting with value of the first row f(x,0) 1

Lambertian Surface e(u,v) ^ s ^ n a Lambertian Photometric stereo If the light sources s 1, s 2, and s 3 are known, then we can recover b at each pixel from as few as three images. (Photometric Stereo: Silver 80, Woodham81). At image location (u,v), the intensity of a pixel x(u,v) is: e(u,v) = [a(u,v) n(u,v)] [s 0 s ] = b(u,v) s where a(u,v) is the albedo of the surface projecting to (u,v). n(u,v) is the direction of the surface normal. s 0 is the light source intensity. s is the direction to the light source. ^ ^ [e 1 e 2 e 3 ] = b T [s 1 s 2 s 3 ] i.e., we measure e 1, e 2, and e 3 and we know s 1, s 2, and s 3. We can then solve for b by solving a linear system. Surface normal is: n = b/ b, albedo is: b The Space of Images What is the set of images of an object under all possible lighting conditions? In answering this question, we ll arrive at a photometric setereo method for reconstructing surface shape w/ unknown lighting. Consider an n-pixel image to be a point in an n- dimensional space, x R n. Each pixel value is a coordinate of x. Many results will apply to linear transformations of image space (e.g. filtered images) Other image representations (e.g. Cayley-Klein spaces, See Koenderink s pixel f#@king paper ) Assumptions Lambertian Surface ^ s ^ n For discussion, we assume: Lambertian reflectance functions. Objects have convex shape. Light sources at infinity. Orthographic projection. Note: many of these can be relaxed. x(u,v) At image location (u,v), the intensity of a pixel x(u,v) is: x(u,v) = [a(u,v) n(u,v)] [s 0 s ] = b(u,v). s where a(u,v) is the albedo of the surface projecting to (u,v). n(u,v) is the direction of the surface normal. s 0 is the light source intensity. s is the direction to the light source. ^. a ^ 2

Model for Image Formation s 3-D Linear subspace The set of images of a Lambertian surface with no shadowing is a subset of 3-D linear subspace. [Moses 93], [Nayar, Murase 96], [Shashua 97] b 1 b 2 b 3 L = {x x = Bs, s R 3 } Lambertian Assumption with shadowing: x = max(b s, 0) B = where x is an n-pixel image vector - b T 1 - - b T 2 -.... - b T n - n x 3 where B is a n by 3 matrix whose rows are product of the surface normal and Lambertian albedo L 0 L B is a matrix whose rows are unit normals scaled by the albedos s R 3 is vector of the light source direction scaled by intensity How do you construct subspace? Still Life [ ] [ ] Original Images [ x 3 x 4 x 5 ] B Basis Images With more than three images, perform least squares estimation of B using Singular Value Decomposition (SVD) Rendering Images: Σ i max(bs i,0) 3-D Linear subspace The set of images of a Lambertian surface with no shadowing is a subset of 3-D linear subspace. L = {x x = Bs, s R 3 } [Moses 93], [Nayar, Murase 96], [Shashua 97] where B is a n by 3 matrix whose rows are product of the surface normal and Lambertian albedo L 0 L 3

S 1 Set of Images from a Single Light Source s S 0 S 2 b 2 S 3 b 1 b 3 S 4 S 5 L P 1 (L 1 ) Let L i denote the intersection of L with an orthant i of R n. Let P i (L i ) be the projection of L i onto a wall of the positive orthant given by max(x, 0). L 0 x 3 P 0 (L 0 ) P 2 (L 2 ) P 4 (L 4 ) P 3 (L 3 ) Then, the set of images of an object produced by a single light source is: M U = U P i (L i ) i=0 x 3 Lambertian, Shadows and Multiple Lights s 1 x(u,v) The image x produced by multiple light sources is where x is an n-pixel image vector. B is a matrix whose rows are unit normals scaled by the albedo. s i is the direction and strength of the light source i. n a s 2 Set of Images from Multiple Light Sources The Illumination Cone s S 1 S 0 S 2 S 3 b 1 b 2 b 3 S 4 S 5 L L 0 x 3 P 1 (L 1 ) P 0 (L 0 ) P 2 (L 2 ) P 4 (L 4 ) P 3 (L 3 ) x 3 Theorem:: The set of images of any object in fixed posed, but under all lighting conditions, is a convex cone in the image space. (Belhumeur and Kriegman, IJCV, 98) With two lights on, resulting image along line segment between single source images: superposition of images, non-negative lighting For all numbers of sources, and strengths, rest is convex hull of U. Single light source images lie on cone boundary 2-light source image Some natural ideas & questions Do Ambiguities Exist? Can the cones of two different objects intersect? Can two different objects have the same cone? How big is the cone? How can cone be used for recognition? Can two objects of differing shapes produce the same illumination cone? YES Object 1 Object 2 4

Do Ambiguities Exist? Yes Cone is determined by linear subspace L The columns of B span L For any A GL(3), B* = BA also spans L. For any image of B produced with light source S, the same image can be produced by lighting B* with S*=A -1 S because X = B*S* = B AA -1 S = BS Surface Integrability In general, B * does not have a corresponding surface. Linear transformations of the surface normals in general do not produce an integrable normal field. B A B* When we estimate B using SVD, the rows are NOT generally normal * albedo. GBR Transformation Only Generalized Bas-Relief transformations satisfy the integrability constraint: Generalized Bas-Relief Transformations Objects differing by a GBR have the same illumination cone. Uncalibrated photometric stereo What about cast shadows for nonconvex objects? 1. Take n images as input, perform SVD to compute B*. 2. Find some A such that B*A is close to integrable. 3. Integrate resulting gradient field to obtain height function f*(x,y). Comments: f*(x,y) differs from f(x,y) by a GBR. Can use specularities to resolve GBR for non- Lambertian surface. P.P. Reubens in Opticorum Libri Sex, 1613 5

GBR Preserves Shadows Bas-Relief Sculpture Codex Urbinas The Illumination Cone As far as light and shade are concerned low relief fails both as sculpture and as painting, because the shadows correspond to the low nature of the relief, as for example in the shadows of foreshortened objects, which will not exhibit the depth of those in painting or in sculpture in the round. Thm: The span of the extreme rays of the illumination cone is equal to the number of distinct surface normals i.e., as high as n. The number of extreme rays of the cone is n(n-1)+2 (Belhumeur and Kriegman, IJCV, 98) Leonardo da Vinci Treatise on Painting (Kemp) Shape of the Illumination Cone Observation: The illumination cone is flat with most of its volume concentrated near a low-dimensional linear subspace. #1 #3 #5 #7 #9 Ball 48.2 94.4 97.9 99.1 99.5 Face 53.7 90.2 93.5 95.3 96.3 88.2 94.1 96.3 97.2 [ Epstein, Hallinan, Yuille 95] Dimension: Phone 67.9 Parrot 42.8 76.3 84.7 88.5 90.7 Recent results Illumination cone is well capture by nine dimensions for a convex Lambertian surface. Spherical Harmonic representation of lighting & BRDF. 6

Coke vs. Pepsi: Albedo & Cone Shape Consider two objects with the same geometry, but different albedo patterns. Their 3-D linear subspaces can be expressed as: B 1 = R 1 N B 2 = R 2 N where R i is an n by n diagonal matrix of albedos (i.e. positive numbers) Proposition: If C 1 is the illumination cone for an object defined by B 1 = R 1 N and C 2 is the cone for an object defined by B 2 = R 2 N, then: Where d the moguls go? When a convex Lambertian surface is illumination by perfectly diffuse lighting, the resulting image is directly proportional to the albedo. For a convex object, the n-dimensional vector of albedos (and image) is contained within the object s cone. For two objects with the same albedo pattern but different shape, their cones intersect in the interior. Two objects differing by a generalized bas relief transformation have the same cone. Color Image Formation A color image of a Lambertian surface without shadowing can be expressed as Narrow Band Cameras For a single channel with ρ i (λ) modeled as a delta function at λ i, the image is: where: λ is the wavelength. ρ i (λ) is pixel response of the i-th color channel. R(λ) is an n by n diagonal matrix of the spectral reflectance of the facets. N is the n by 3 matrix of surface normals. s(λ) is the spectrum of the light source. is the direction of the light source. For c channels, the image x R cn is Narrow Band Cameras Over all light source directions and spectral distributions, the set of all images without shadowing is a c+2 dimensional manifold with boundary in R cn. This manifold is embedded in a 3c dimensional linear subspace of R cn. Any image in this 3c dimensional linear subspace can be achieved with three light sources. The cone in R cn can be constructed as the Cartesian product of c cones in R n, one for each channel. Color Image Formation A color image can be expressed as where: λ is the wavelength. ρ i (λ) is pixel response of the i-th color channel. R(λ) is an n by n diagonal matrix of the spectral reflectance of the facets. N is the n by 3 matrix of surface normals. s(λ) is the spectrum of the light source. is the direction of the light source. 7

Light Sources with Identical Spectra Consider c color channels (not necessarily narrow band) and a scene illuminated by sources with identical spectra. For c channels, the image x R cn is Light Sources with Identical Spectra The set of images without shadowing lies in a 3-D linear subspace of R cn. The illumination cone spans m dimensions of R cn. By restricting the spectra of the light source, the cone is much smaller (m dimensions vs. cm dimensions), and the camera does not have to be narrow band. Major Issues Illumination Cones: Recognition Method Is Euclidean metric best choice for recognition? Should recognition metric be posed in image space? All lighting conditions are not equally likely - Can and should probabilities be attached to lighting? Does it make sense to pose recognition in image space when pose and within class variation are considered? Illumination cone for Lee Distance to cone Cost O(ne 2 ) where n: # pixels e: # extreme rays Distance to subspace Is this an image of Lee or David? Illumination cone for David Generating the Illumination Cone Predicting Lighting Variation 3D linear subspace Cone - Attached Original (Training) Images α(x,y) f x (x,y) f y (x,y) albedo (surface normals) Surface. f (x,y) (albedo textured mapped on surface). Cone - Cast [Georghiades, Belhumeur, Kriegman 01] Single Light Source 8

Face Recognition: Test Subsets Yale Face Database B Subset 1: 0-12o Subset 2: 12-25o Increasing extremity Subset 3: 25-50o 64 Lighting Conditions 9 Poses => 576 Images per Person in illumination Subset 4: 50-77o Test images divided into 4 subsets depending on illumination. Face Recognition: Lighting & Pose Geodesic Dome Database - Frontal Pose [Georghiades, Belhumeur, Kriegman 01] 1. Union of linear subspaces 1. Sample the pose space, and for each pose construct illumination cone. 2. Cone can be approximated by linear subspace (used 11-D) 2. For computational efficiency, project using PCA to 100-D Illumination Variability Reveals Shape Pose Variability in test set: Up to 24o 9

Illumination Cone Face Recognition Result: Pose and Lighting [Georghiades, Belhumeur, Kriegman 01] Closest Sample to Test Image: Examples Error Rate: 3.4% Test Image: Error Rate: 1.02% Closest Match: frontal 12 24 Illumination & Image Set Lack of illumination invariants [Chen, Jacobs, Belhumeur 98] Set of images of Lambertian surface w/o shadowing is 3-D linear subspace [Moses 93], [Nayar, Murase 96], [Shashua 97] Empirical evidence that set of images of object is wellapproximated by a low-dimensional linear subspace [Hallinan 94], [Epstein, Hallinan, Yuille 95] Illumination cones [Belhumeur, Kriegman 98] Spherical harmonics lighting & images [Basri, Jacobs 01], [Ramamoorthi, Hanrahan 01] Analytic PCA of image over lighting [Ramamoorthi 02] Some subsequent work 1. Face Recognition Under Variable Lighting using Harmonic Image Exemplars, Zhang, Samaras, CVPR03 2. Clustering Appearances of Objects Under Varying Illumination Conditions, Ho, Lee, Lim, Kriegman, CVPR 03 3. Low-Dimensional Representations of Shaded Surfaces under Varying Illumination, Nillius, Eklundh, CVPR03 4. Using Specularities for Recognition, Osadchy, Jacobs, Ramamoorthi, ICCV 03 10