Visibility Subspaces: Uncalibrated Photometric Stereo with Shadows Kalyan Sunkavalli, Harvard University Joint work with Todd Zickler and Hanspeter Pfister.

Slides:



Advertisements
Similar presentations
What do color changes reveal about an outdoor scene? Kalyan Sunkavalli Fabiano Romeiro Wojciech Matusik Todd Zickler Hanspeter Pfister Harvard University.
Advertisements

Matrix M contains images as rows. Consider an arbitrary factorization of M into A and B. Four interpretations of factorization: a)Rows of B as basis images.
A Projective Framework for Radiometric Image Analysis CVPR 2009 Date: 2010/3/9 Reporter : Annie lin.
Face Alignment by Explicit Shape Regression
The fundamental matrix F
Invariants (continued).
Announcements Project 2 due today Project 3 out today –demo session at the end of class.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm Lecture #12.
Lecture 35: Photometric stereo CS4670 / 5670 : Computer Vision Noah Snavely.
3D Modeling from a photograph
Spherical Convolution in Computer Graphics and Vision Ravi Ramamoorthi Columbia Vision and Graphics Center Columbia University SIAM Imaging Science Conference:
Computer Vision CS 776 Spring 2014 Photometric Stereo and Illumination Cones Prof. Alex Berg (Slide credits to many folks on individual slides)
Automatic scene inference for 3D object compositing Kevin Karsch (UIUC), Sunkavalli, K. Hadap, S.; Carr, N.; Jin, H.; Fonte, R.; Sittig, M., David Forsyth.
Shadow Scanning [Bouguet 1999] Desk Lamp Camera Stick or pencil Desk The idea [Bouguet and Perona’98] J.-Y. Bouguet and P. Perona, “3D Photography on your.
Lighting affects appearance. What is the Question ? (based on work of Basri and Jacobs, ICCV 2001) Given an object described by its normal at each.
Shape-from-X Class 11 Some slides from Shree Nayar. others.
Lecture 23: Photometric Stereo CS4670/5760: Computer Vision Kavita Bala Scott Wehrwein.
May 2004SFS1 Shape from shading Surface brightness and Surface Orientation --> Reflectance map READING: Nalwa Chapter 5. BKP Horn, Chapter 10.
Lecture 32: Photometric stereo, Part 2 CS4670: Computer Vision Noah Snavely.
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
Object recognition under varying illumination. Lighting changes objects appearance.
Photometric Stereo Merle Norman Cosmetics, Los Angeles Readings R. Woodham, Photometric Method for Determining Surface Orientation from Multiple Images.
Photometric Stereo & Shape from Shading
Robust estimation Problem: we want to determine the displacement (u,v) between pairs of images. We are given 100 points with a correlation score computed.
Stockman MSU/CSE Math models 3D to 2D Affine transformations in 3D; Projections 3D to 2D; Derivation of camera matrix form.
Face Relighting with Radiance Environment Maps Zhen Wen 1, Zicheng Liu 2, Thomas Huang 1 Beckman Institute 1 University of Illinois Urbana, IL61801, USA.
Computer Vision Spring ,-685 Instructor: S. Narasimhan PH A18B T-R 10:30am – 11:50am Lecture #13.
Automatic Camera Calibration
1/20 Obtaining Shape from Scanning Electron Microscope Using Hopfield Neural Network Yuji Iwahori 1, Haruki Kawanaka 1, Shinji Fukui 2 and Kenji Funahashi.
Lecture 12 Stereo Reconstruction II Lecture 12 Stereo Reconstruction II Mata kuliah: T Computer Vision Tahun: 2010.
1 Preview At least two views are required to access the depth of a scene point and in turn to reconstruct scene structure Multiple views can be obtained.
Projective cameras Motivation Elements of Projective Geometry Projective structure from motion Planches : –
Analysis of Lighting Effects Outline: The problem Lighting models Shape from shading Photometric stereo Harmonic analysis of lighting.
Y. Moses 11 Combining Photometric and Geometric Constraints Yael Moses IDC, Herzliya Joint work with Ilan Shimshoni and Michael Lindenbaum, the Technion.
Shape from Shading and Texture. Lambertian Reflectance Model Diffuse surfaces appear equally bright from all directionsDiffuse surfaces appear equally.
Sources, Shadows, and Shading
Lighting affects appearance. How do we represent light? (1) Ideal distant point source: - No cast shadows - Light distant - Three parameters - Example:
1 Formation et Analyse d’Images Session 7 Daniela Hall 25 November 2004.
Understanding the effect of lighting in images Ronen Basri.
The Quotient Image: Class-based Recognition and Synthesis Under Varying Illumination T. Riklin-Raviv and A. Shashua Institute of Computer Science Hebrew.
Lec 22: Stereo CS4670 / 5670: Computer Vision Kavita Bala.
Interreflections : The Inverse Problem Lecture #12 Thanks to Shree Nayar, Seitz et al, Levoy et al, David Kriegman.
A survey of Light Source Detection Methods Nathan Funk University of Alberta Nov
Multiple Light Source Optical Flow Multiple Light Source Optical Flow Robert J. Woodham ICCV’90.
Computer Graphics Laboratory, Hiroshima City University All images are compressed. The images in this file are not.
Announcements Final Exam Friday, May 16 th 8am Review Session here, Thursday 11am.
Large-Scale Matrix Factorization with Missing Data under Additional Constraints Kaushik Mitra University of Maryland, College Park, MD Sameer Sheoreyy.
1Ellen L. Walker 3D Vision Why? The world is 3D Not all useful information is readily available in 2D Why so hard? “Inverse problem”: one image = many.
Lighting affects appearance. Lightness Digression from boundary detection Vision is about recovery of properties of scenes: lightness is about recovering.
Active Lighting for Appearance Decomposition Todd Zickler DEAS, Harvard University.
EECS 274 Computer Vision Projective Structure from Motion.
Understanding the effect of lighting in images Ronen Basri.
EECS 274 Computer Vision Sources, Shadows, and Shading.
Announcements Project 3a due today Project 3b due next Friday.
1 Resolving the Generalized Bas-Relief Ambiguity by Entropy Minimization Neil G. Alldrin Satya P. Mallick David J. Kriegman University of California, San.
MAN-522 Computer Vision Spring
Intrinsic images and shape refinement
CS4670 / 5670: Computer Vision Kavita Bala Lec 27: Stereo.
Rogerio Feris 1, Ramesh Raskar 2, Matthew Turk 1
© University of Wisconsin, CS559 Fall 2004
Merle Norman Cosmetics, Los Angeles
Common Classification Tasks
3D Photography: Epipolar geometry
Outline Peter N. Belhumeur, Joao P. Hespanha, and David J. Kriegman, “Eigenfaces vs. Fisherfaces: Recognition Using Class Specific Linear Projection,”
Announcements Project 3b due Friday.
Depthmap Reconstruction Based on Monocular cues
Announcements Today: evals Monday: project presentations (8 min talks)
Announcements Project 3 out today demo session at the end of class.
All images are compressed.
Shape from Shading and Texture
Presentation transcript:

Visibility Subspaces: Uncalibrated Photometric Stereo with Shadows Kalyan Sunkavalli, Harvard University Joint work with Todd Zickler and Hanspeter Pfister Published in the Proceedings of ECCV

Shading contains strong perceptual cues about shape

Photometric Stereo Use multiple images captured under changing illumination and recover per-pixel surface normals. Originally proposed for Lambertian surfaces under directional lighting. Extended to different BRDFs, environment map illumination, etc. One (unavoidable) issue: how to deal with shadows?

Lambertian Photometric Stereo

pixels lights

Lambertian Photometric Stereo Images of a Lambertian surface under directional lighting form a Rank-3 matrix. [ Shashua ’97 ]

Lambertian Photometric Stereo Photometric Stereo (calibrated lighting) [ Woodham ’78, Silver ’80 ] Images of a Lambertian surface under directional lighting form a Rank-3 matrix.

Lambertian Photometric Stereo Photometric Stereo (uncalibrated lighting) Images of a Lambertian surface under directional lighting form a Rank-3 matrix. [ Hayakawa ’94, Epstein et al. ’96, Belhumeur et al. ‘99 ] Ambiguity

Shadows in Photometric Stereo

Photometric Stereo (calibrated lighting) Photometric Stereo (uncalibrated lighting) (factorization with missing data)

Shadows in Photometric Stereo Previous work: Detect shadowed pixels and discard them. Intensity-based thresholding – Threshold requires (unknown) albedo Use calibrated lights to estimate shadows [ Coleman & Jain ‘82, Chandraker & Kriegman ’07 ] Smoothness constraints on shadows [ Chandraker & Kriegman ’07, Hernandez et al. ’08 ] Use many (100s of) images. [ Wu et al. ’06, Wu et al. 10 ]

Shadows in Photometric Stereo Our work analyzes the effect of shadows on scene appearance. We show that shadowing leads to distinct appearance subspaces. This results in: – A novel bound on the dimensionality of (Lambertian) scene appearance. – An uncalibrated Photometric Stereo algorithm that works in the presence of shadows.

Shadows and Scene Appearance Scene Images

Shadows and Scene Appearance Visibility Regions B A C D Images {1,2,5}{1,4,5} {1,3,4}{1,2,3}

12345 A B C D Shadows and Scene Appearance Visibility Regions B A C D {1,2,5}{1,4,5} {1,3,4}{1,2,3} Image Matrix Rank-5

12345 A B C D Shadows and Scene Appearance Lambertian points lit by directional lights Rank-3 submatrix Image Matrix Rank-5

12345 A B C D Shadows and Scene Appearance Different Rank-3 submatrices Image Matrix Rank-5

Visibility Subspaces Scene points with same visibility Rank-3 subspaces of image matrix

Visibility Subspaces 1.Dimensionality of scene appearance with (cast) shadows: Images of a Lambertian scene illuminated by any combination of n light sources lie in a linear space with dimension at most 3(2 n ). Previous work excludes analysis of cast shadows. Scene points with same visibility Rank-3 subspaces of image matrix

Visibility Subspaces 1.Dimensionality of scene appearance with (cast) shadows 2.Visibility regions can be recovered through subspace estimation (leading to an uncalibrated Photometric Stereo algorithm). Scene points with same visibility Rank-3 subspaces of image matrix

Estimating Visibility Subspaces Find visibility regions by looking for Rank-3 subspaces (using RANSAC-based subspace estimation).

Estimating Visibility Subspaces Sample 3 points and construct lighting basis from the image intensities:

Estimating Visibility Subspaces If points are in same visibility subspace, is a valid basis for entire subspace.

Estimating Visibility Subspaces If points are in same visibility subspace, is a valid basis for entire subspace. If not, is not a valid basis for any subspace. Sample 3 points and construct lighting basis from the image intensities:

1.Sample 3 points in scene and construct lighting basis from their image intensities: 2.Compute normals at all points using this basis: 3.Compute error of this basis: 4.Mark points with error as inliers. 5.Repeat 1-4 and mark largest inlier-set found as subspace with lighting basis. Remove inliers from pixel-set. 6.Repeat 1-5 until all visibility subspaces have been recovered. Estimating Visibility Subspaces

Estimated subspaces True subspaces Images

Subspace clustering gives us a labeling of the scene points into regions with same visibility. Can we figure out the true visibility (and surface normals) from this? Subspaces to Surface normals Image MatrixVisibility Subspaces Subspace Clustering

Subspace clustering recovers normals and lights: Subspace Normals Subspaces to Surface normals Subspace Lights

Subspace clustering recovers normals and lights: There is a 3X3 linear ambiguity in these normals and lights: Subspaces to Surface normals True Normals Subspace Ambiguity True Lights

Subspace clustering recovers normals and lights: There is a 3X3 linear ambiguity in these normals and lights: Subspaces to Surface normals True Normals True Lights Subspace Ambiguity Subspace normalsEstimated subspaces Images

Subspaces to Surface normals A B C D AB CD

A B C D AB CD

A B C D AB CD Visibility True lights Subspace light basis (from clustering) Subspace ambiguity

Subspaces to Surface normals A B C D AB CD

A B C D AB CD Visibility of subspace Magnitude of subspace light basis independent of scene properties

Subspaces to Surface normals A B C D AB CD Visibility (computed from subspace lighting) True lights (unknown) Subspace light basis (from clustering) Subspace ambiguity (unknown)

Subspaces to Surface normals A B C D AB CD Linear system of equations Solve for ambiguities and true light sources Avoid trivial solution ( ) by setting Transform subspace normals by estimated ambiguities

Subspaces to Surface normals Transformed normals Images Subspace normals

Visibility Subspaces Image MatrixVisibility Subspaces Subspace Clustering Surface normals Visibility, Subspace ambiguity estimation

Results (synthetic data) Estimated normals Images Estimated subspaces Estimated depth

Results (captured data) Estimated normals 5 Images Estimated subspaces Estimated depth

8 Images Estimated subspacesEstimated normals “Ground truth” normals “True” subspaces Estimated depth

12 Images Estimated normals “True” normals Estimated subspaces “True” subspaces Estimated depth 12 Images

Some issues Degeneracies – Rank-deficient normals – Explicitly handle these in subspace estimation and normal recovery Deviations from Lambertian reflectance – Specify RANSAC error threshold appropriately Stability of subspace estimation – Intersections between subspaces – Large number of images, complex geometry

Conclusions An analysis of the influence of shadows on scene appearance. A novel bound on the dimensionality of scene appearance in the presence of shadows. An uncalibrated Photometric Stereo algorithm that is robust to shadowing. Extend analysis to mutual illumination Add spatial constraints Extend to more general cases (arbitrary BRDFs and illumination)

Thank you!