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

Similar documents
Photometric Stereo, Shape from Shading SfS Chapter Szelisky

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

Capturing light. Source: A. Efros

Starting this chapter

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

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

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

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

Other approaches to obtaining 3D structure

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

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

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

Using a Raster Display Device for Photometric Stereo

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

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

Epipolar geometry contd.

Lecture 22: Basic Image Formation CAP 5415

Homework 4 Computer Vision CS 4731, Fall 2011 Due Date: Nov. 15, 2011 Total Points: 40

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

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

Photometric Stereo.

CS6670: Computer Vision

CS 4495/7495 Computer Vision Frank Dellaert, Fall 07. Dense Stereo Some Slides by Forsyth & Ponce, Jim Rehg, Sing Bing Kang

Ligh%ng and Reflectance

HW2. October 24, CSE 252A Computer Vision I Fall Assignment 2

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

CS4670/5760: Computer Vision

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

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

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

Using a Raster Display for Photometric Stereo

A method for improving consistency in photometric databases

CS5670: Computer Vision

Prof. Trevor Darrell Lecture 18: Multiview and Photometric Stereo

Image Processing 1 (IP1) Bildverarbeitung 1

Practical 3d reconstruction based on Photometric Stereo

COMP 558 lecture 16 Nov. 8, 2010

Recovery of Fingerprints using Photometric Stereo

3D Shape Recovery of Smooth Surfaces: Dropping the Fixed Viewpoint Assumption

Feature Tracking and Optical Flow

Feature Tracking and Optical Flow

SOURCES, SHADOWS AND SHADING

Lighting affects appearance

1 (5 max) 2 (10 max) 3 (20 max) 4 (30 max) 5 (10 max) 6 (15 extra max) total (75 max + 15 extra)

Classification and Detection in Images. D.A. Forsyth

Resolving the Generalized Bas-Relief Ambiguity by Entropy Minimization

Predicting Depth, Surface Normals and Semantic Labels with a Common Multi-Scale Convolutional Architecture David Eigen, Rob Fergus

Epipolar Geometry and Stereo Vision

Structure from Motion and Multi- view Geometry. Last lecture

Shading I Computer Graphics I, Fall 2008

Introduction to Computer Vision

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

Volume Illumination. Visualisation Lecture 11. Taku Komura. Institute for Perception, Action & Behaviour School of Informatics

Computer Graphics. Shadows

And if that 120MP Camera was cool

CS6320: 3D Computer Vision Project 3 Shape from Shading

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

Passive 3D Photography

Pipeline Operations. CS 4620 Lecture 10

Photometric stereo , , Computational Photography Fall 2018, Lecture 17

High Quality Shape from a Single RGB-D Image under Uncalibrated Natural Illumination

General Principles of 3D Image Analysis

Computer Graphics 10 - Shadows

CHAPTER 9. Classification Scheme Using Modified Photometric. Stereo and 2D Spectra Comparison

Lighting affects appearance

Interreflection Removal for Photometric Stereo by Using Spectrum-dependent Albedo

Pipeline Operations. CS 4620 Lecture Steve Marschner. Cornell CS4620 Spring 2018 Lecture 11

CS201 Computer Vision Lect 4 - Image Formation

Introduction to Computer Vision. Week 8, Fall 2010 Instructor: Prof. Ko Nishino

Straight Lines and Hough

Lecture 16: Computer Vision

CS6670: Computer Vision

Image-based BRDF Acquisition for Non-spherical Objects

Lighting affects appearance

Modeling Light. On Simulating the Visual Experience

Image Restoration. Yao Wang Polytechnic Institute of NYU, Brooklyn, NY 11201

3D Motion Analysis Based on 2D Point Displacements

Announcements. Rotation. Camera Calibration

Feature descriptors and matching

CONTENTS. High-Accuracy Stereo Depth Maps Using Structured Light. Yeojin Yoon

Pipeline Operations. CS 4620 Lecture 14

Sources, shadows and shading

Epipolar Geometry and Stereo Vision

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

convolution shift invariant linear system Fourier Transform Aliasing and sampling scale representation edge detection corner detection

Visibility Subspaces: Uncalibrated Photometric Stereo with Shadows

Ray Tracer Due date: April 27, 2011

Non-Contact Pulmonary Functional Testing through an improved Photometric Stereo Approach

Announcements. Camera Calibration. Thin Lens: Image of Point. Limits for pinhole cameras. f O Z

Stereo. Outline. Multiple views 3/29/2017. Thurs Mar 30 Kristen Grauman UT Austin. Multi-view geometry, matching, invariant features, stereo vision

Announcements. Hough Transform [ Patented 1962 ] Generalized Hough Transform, line fitting. Assignment 2: Due today Midterm: Thursday, May 5 in class

Geometry: Outline. Projections. Orthographic Perspective

Recovering illumination and texture using ratio images

Topics and things to know about them:

Multi-view photometric stereo

DIRECT SHAPE FROM ISOPHOTES

Motion Estimation. There are three main types (or applications) of motion estimation:

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

Robust Photometric Stereo using Sparse Regression

Massachusetts Institute of Technology. Department of Computer Science and Electrical Engineering /6.866 Machine Vision Quiz I

Transcription:

Photometric*Stereo* October*8,*2013* Dr.*Grant*Schindler* * schindler@gatech.edu*

Mul@ple*Images:*Different*Ligh@ng*

Mul@ple*Images:*Different*Ligh@ng*

Mul@ple*Images:*Different*Ligh@ng*

Religh@ng*the*Scene*

Credit:*Alex*Powell*

Credit:*Alex*Powell*

Credit:*Alex*Powell*

Credit:*Alex*Powell*

Credit:*Alex*Powell*

Credit:*Alex*Powell*

Froggies* Demo*

Geometry*of*Ligh@ng* Lamber@an*Surface*

Infinitely*Distant*Light*Source*

Acquiring)the)Reflectance)Field)of)a) Human)Face:)Paul)Debevec)et)al* hop://gl.ict.usc.edu/lightstages/*

More*Info* hop://www.pauldebevec.com/* hop://www.pauldebevec.com/research/ls/* hop://gl.ict.usc.edu/research/digitalemily/* hop://gl.ict.usc.edu/research/rhl/*

RealTTime*Photometric*Stereo* Surface*Normals* (Eigenvectors*via*Power*Itera@on)* 6*ms* Height*Field* (Integrate*Surface*Normals*via*GaussTSeidel)* 32*ms*

RealTTime*Photometric*Stereo*

Processing*Demo* Demo*

Reading** Szeliski*Book:*Sec@on*12.1.1*(page*580T583)*

3D*Scanner*in*Your*Pocket*

How*does*it*work?* Camera*(FrontTFacing)* Reflect*Light* Emit*Light*

How*does*it*work?* Camera*(FrontTFacing)* Reflect*Light* Emit*Light*

How*does*it*work?* Camera*(FrontTFacing)* Reflect*Light* Emit*Light*

How*does*it*work?* Camera*(FrontTFacing)* Reflect*Light* Emit*Light*

How*does*it*work?* 2D* 3D*

Lambertian Surface The intensity of a pixel I(u,v) is: I(u,v) ^ s ^ n a I(u,v) = [a(u,v) ˆ n (u,v)] [s 0 ˆ s ] = b(u,v) s 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. Slide courtesy of David Kriegman

Orthographic Projection Simplification for light sources that are sufficiently far away from an object. All incoming light rays are parallel. Thus, while b vectors vary over the surface, s vector is constant. s b s s b b Pixels : b 1 T s, b 2 T s, b 3 T s,... Bs

Images Live in a 3-D Subspace of All Possible Images Images Surface Normals Light Directions = 3 #pixels #pixels 4 4 3

Images Live in a 3-D Subspace of All Possible Images Images Surface Normals Light Directions = 3 #pixels #pixels 4 4 3

Background:*Linear*Algebra* hop://www.cc.gatech.edu/~phlosob/ transforms/* Keywords:*Singular*Value*Decomposi@on* Related:*Image*Compression*

Synthetic Sphere Images Five different lighting conditions Slide courtesy of David Forsyth

Recovered Albedo Slide courtesy of David Forsyth

Recovered Surface Normals Slide courtesy of David Forsyth

Recovered Surface Shape Recovery up to a constant depth error (not absolute depth) Slide courtesy of David Forsyth

Integra@on*Methods* TFrankotTChellappa*(FFT)* TGaussTSeidel*(Itera@ve*Condi@onal*Modes)* TPath*Integra@on*

High Quality Results George Vogiatzis and Carlos Hernandez

Photometric Stereo

Photometric Stereo s 1 s 2 s 3 b 2 b 1 b 3 Given multiple images of the same surface under different known lighting conditions, can we recover the surface shape? Yes! (Woodham, 1978)

Photometric Stereo Assume: A set of point sources that are infinitely distant A set of pictures of an object, obtained in exactly the same camera/object configuration but using different sources I 1 = Bs 1 ; I 2 = Bs 2 ; I 3 = Bs 3... A Lambertian object (or the specular component has been identified and removed)

Stereo for a Pixel I s 1 s 2 s 3 b For a pixel (x,y) we have n measurements : I 1 (x, y) =s 1 T b(x, y); I 2 (x, y) =s 2 T b(x, y)... I(x, y) = Sb(x, y) Solve an over-constrained linear system for b (with n>3)

What About Shadows? Shadowed pixels (e.g. attached shadows for a given light source position) are outliers. Max trick can be adapted for this case too: " I 1 (x,y) 0 0 %" I 1 (x, y) % " I 1 (x, y) 0 0 %" T s 1 % $ ' $ ' $ ' $ ' $ 0 0 ' $ ' = $ 0 0 ' $ ' b(x, y) T # $ 0 0 I n (x,y)&' # $ I n (x, y) &' # $ 0 0 I n (x, y) &' # $ s n & ' Pre-multiplying by a thresholded weight matrix zeros the contributions from shadowed pixels

Recovering the Albedo Recall that b(x, y) = a(x, y)ˆ n (x,y) a(x, y) = b(x,y) This gives a check on the normal recovery at a pixel If the magnitude of a(x, y) is greater than 1, there s a problem Then ˆ n (x, y) = b(x, y) /a(x, y)

Recovering the Surface Shape Depth map model (also called Monge patch): Graphic courtesy of David Forsyth z = f (x, y) Surface is set of points {x, y, f (x, y)}

Recovering a surface from normals - 1 If we write the known vector g as " g 1 (x, y) % (x,y, f (x, y)) g(x,y) = $ g 2 (x, y) ' $ ' # g 3 (x, y) & Then we obtain values for the partial derivatives of the surface: Recall the surface is written as This means the normal has the form: N(x,y) = " $ # 1 % " f x % f 2 x + f 2 ' $ f y ' y +1& $ ' # 1 & ( ) ( ) f x (x,y) = g 1 (x, y) g 3 (x, y) f y (x, y) = g 2 (x,y) g 3 (x,y) Slide courtesy of David Forsyth

Recovering a surface from normals - 2 Recall that mixed second partials are equal --- this gives us a check. We must have: ( g 1 (x, y) g 3 (x, y) ) = y ( ) g 2 (x, y) g 3 (x, y) (or they x should be similar, at least) We can now recover the surface height at any point by integration along some path, e.g. f (x, y) = y 0 x f x (s, y)ds + 0 f y (x,t)dt + c Slide courtesy of David Forsyth

Light Sources

Lambertian Surface The intensity of a pixel I(u,v) is: I(u,v) ^ s ^ n a I(u,v) = [a(u,v) ˆ n (u,v)] [s 0 ˆ s ] = b(u,v) s 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. Slide courtesy of David Kriegman

Orthographic Projection Simplification for light sources that are sufficiently far away from an object. All incoming light rays are parallel. Thus, while b vectors vary over the surface, s vector is constant. s b s s b b Pixels : b 1 T s, b 2 T s, b 3 T s,... Bs