3d modeling from a photograph

16
3D Modeling from a photograph https://research.microsoft.com/vision/ cambridge/3d/3dart.htm

Upload: fernanda-eastland

Post on 15-Jan-2016

220 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 3D Modeling from a photograph

3D Modeling from a photograph

https://research.microsoft.com/vision/cambridge/3d/3dart.htm

Page 2: 3D Modeling from a photograph

A different way of modeling• http://mit.edu/jxiao/museum/

Page 3: 3D Modeling from a photograph

Last topic• Single View Modeling

Vermeer’s Music LessonReconstructions by Criminisi et al.

Page 4: 3D Modeling from a photograph

Next• Photometric Stereo• Separate Global and Direct Illumination

Page 5: 3D Modeling from a photograph

Photometric Stereo

Page 6: 3D Modeling from a photograph

Photometric Stereo

Readings• R. Woodham, Photometric Method for Determining Surface Orientation from

Multiple Images. Optical Engineering 19(1)139-144 (1980). (PDF)

Merle Norman Cosmetics, Los Angeles

Page 7: 3D Modeling from a photograph

Diffuse reflection

Simplifying assumptions

• I = Re: camera response function f is the identity function:

– can always achieve this in practice by solving for f and applying f -1 to each pixel in the image

• Ri = 1: light source intensity is 1

– can achieve this by dividing each pixel in the image by Ri

image intensity of P

Page 8: 3D Modeling from a photograph

Shape from shading

Suppose

You can directly measure angle between normal and light source• Not quite enough information to compute surface shape• But can be if you add some additional info, for example

– assume a few of the normals are known (e.g., along silhouette)

– smoothness

• Hard to get it to work well in practice– plus, how many real objects have constant albedo?

Page 9: 3D Modeling from a photograph

Photometric stereo

N

L1L2

V

L3

Can write this as a matrix equation:

Page 10: 3D Modeling from a photograph

Solving the equations

Page 11: 3D Modeling from a photograph

More than three lightsGet better results by using more lights

What’s the size of LTL?

Least squares solution:

Solve for N, kd as before

Page 12: 3D Modeling from a photograph

Computing light source directionsTrick: place a chrome sphere in the scene

• the location of the highlight tells you where the light source is

Page 13: 3D Modeling from a photograph

For a perfect mirror, light is reflected about N

Recall the rule for specular reflection

otherwise0

if RVie

RR

We see a highlight when V = R• then L is given as follows:

Page 14: 3D Modeling from a photograph

Depth from normals

Get a similar equation for V2• Each normal gives us two linear constraints on z• compute z values by solving a matrix equation

V1

V2

N

Page 15: 3D Modeling from a photograph

Example

Page 16: 3D Modeling from a photograph

What if we don’t have mirror ball?• Hayakawa, Journal of the Optical Society of America,

1994, Photometric stereo under a light source with arbitrary motion.