Top Banner
Computer Vision CS 776 Spring 2014 Photometric Stereo and Illumination Cones Prof. Alex Berg (Slide credits to many folks on individual slides)
12

Computer Vision CS 776 Spring 2014

Mar 22, 2016

Download

Documents

addo_

Computer Vision CS 776 Spring 2014. Photometric Stereo and Illumination Cones Prof. Alex Berg (Slide credits to many folks on individual slides). Photometric Stereo and Illumination Cones. flickr.com / photos /38102718@N05/3800198895/. Photometric stereo (shape from shading). - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Computer Vision CS 776  Spring 2014

Computer VisionCS 776 Spring 2014

Photometric Stereo and Illumination Cones

Prof. Alex Berg

(Slide credits to many folks on individual slides)

Page 2: Computer Vision CS 776  Spring 2014

Photometric Stereo and Illumination Cones

flickr.com/photos/38102718@N05/3800198895/

Page 3: Computer Vision CS 776  Spring 2014

Photometric stereo (shape from shading)• Can we reconstruct the shape of an

object based on shading cues?

Luca della Robbia,Cantoria, 1438

Slide by Svetlana Lazebnik

Page 4: Computer Vision CS 776  Spring 2014

Photometric stereoAssume:

• A Lambertian object• A local shading model (each point on a surface receives

light only from sources visible at that point)• A set of known light source directions• A set of pictures of an object, obtained in exactly the

same camera/object configuration but using different sources

• Orthographic projectionGoal: reconstruct object shape and albedo

Sn

???S1

S2

F&P 2nd ed., sec. 2.2.4

Page 5: Computer Vision CS 776  Spring 2014

Surface model: Monge patch

F&P 2nd ed., sec. 2.2.4

Page 6: Computer Vision CS 776  Spring 2014

j

j

j

j

yx

kyxyx

yxyxk

yxBkyxI

Vg

SNSN

),(

)(,,

,,

),(),(

Image model• Known: source vectors Sj and pixel values

Ij(x,y)• Unknown: normal N(x,y) and albedo ρ(x,y) • Assume that the response function of the

camera is a linear scaling by a factor of k • Lambert’s law:

F&P 2nd ed., sec. 2.2.4

Page 7: Computer Vision CS 776  Spring 2014

Least squares problem

• Obtain least-squares solution for g(x,y) (which we defined as N(x,y) (x,y))

• Since N(x,y) is the unit normal, (x,y) is given by the magnitude of g(x,y)

• Finally, N(x,y) = g(x,y) / (x,y)

),(

),(

),(),(

2

1

2

1

yx

yxI

yxIyxI

Tn

T

T

n

g

V

VV

(n × 1)known known unknown

(n × 3) (3 × 1)

• For each pixel, set up a linear system:

F&P 2nd ed., sec. 2.2.4

Page 8: Computer Vision CS 776  Spring 2014

Example

Recovered albedo Recovered normal field

F&P 2nd ed., sec. 2.2.4

Page 9: Computer Vision CS 776  Spring 2014

Recall the surface is written as

This means the normal has the form:

Recovering a surface from normalsIf we write the estimated vector g as

Then we obtain values for the partial derivatives of the surface:

)),(,,( yxfyx

111),(

22 y

x

yx

ff

ffyxN

),(),(),(

),(

3

2

1

yxgyxgyxg

yxg

),(/),(),(),(/),(),(

32

31

yxgyxgyxfyxgyxgyxf

y

x

F&P 2nd ed., sec. 2.2.4

Page 10: Computer Vision CS 776  Spring 2014

Recovering a surface from normalsIntegrability: for the surface f to exist, the mixed second partial derivatives must be equal:

We can now recover the surface height at any point by integration along some path, e.g.

(for robustness, can take integrals over many different paths and average the results)

(in practice, they should at least be similar)

)),(/),((

)),(/),((

32

31

yxgyxgx

yxgyxgy

Cdttxf

dsysfyxf

y

y

x

x

0

0

),(

),(),(

F&P 2nd ed., sec. 2.2.4

Page 11: Computer Vision CS 776  Spring 2014

Surface recovered by integration

F&P 2nd ed., sec. 2.2.4

Page 12: Computer Vision CS 776  Spring 2014

More reading & thought problems(cone of images – great “old timey” figures)What is the set of images of an object under all possible lighting conditions?P. Belhumeur & D. KriegmanCVPR 1996

(implementing this one is the extra credit)Recovering High Dynamic Range Radiance Maps from Photographs.Paul E. Debevec and Jitendra Malik.SIGGRAPH 1997

(people can perceive reflectance)Surface reflectance estimation and natural illumination statistics.R.O. Dror, E.H. Adelson, and A.S. Willsky.Workshop on Statistical and Computational Theories of Vision 2001

gelsight.com