photometric and photogeometric stereo - purdue university

34
Photometric and Photogeometric Stereo CS635 Spring 2010 Daniel G. Aliaga Department of Computer Science Purdue University

Upload: others

Post on 18-Mar-2022

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Photometric and Photogeometric Stereo - Purdue University

Photometric and Photogeometric Stereo

CS635 Spring 2010

Daniel G. AliagaDepartment of Computer Science

Purdue University

Page 2: Photometric and Photogeometric Stereo - Purdue University

Photometric Stereo

• A technique for estimating the surface normals of objects by observing that object under different lighting conditions– Then, using the surface normals, a plausible surface geometry can be reconstructed

– Woodham in 1980

• Related: when using a single image, it is called shape from shading– B. K. P. Horn in 1989

Page 3: Photometric and Photogeometric Stereo - Purdue University

Photometric Stereo

surface

point

in ],1[ Pi

What are the values for ?in

Page 4: Photometric and Photogeometric Stereo - Purdue University

Photometric Stereo

surface

point

n

l

cln )(

Lambertian (single channel) model:

Page 5: Photometric and Photogeometric Stereo - Purdue University

Photometric Stereo

surface

point

n

l

clnlnln zzyyxx )(Lambertian (single channel) model:

How many unknowns per point?

How to get more equations?

3+1

More lights!

(known lights)

Page 6: Photometric and Photogeometric Stereo - Purdue University

Photometric Stereo

surface

point

n

1l

1111 )( clnlnln zzyyxx

Page 7: Photometric and Photogeometric Stereo - Purdue University

Photometric Stereo

surface

point

n

2l

1111 )( clnlnln zzyyxx

2222 )( clnlnln zzyyxx

Page 8: Photometric and Photogeometric Stereo - Purdue University

Photometric Stereo

surface

point

n3l

1111 )( clnlnln zzyyxx

2222 )( clnlnln zzyyxx

3333 )( clnlnln zzyyxx

Page 9: Photometric and Photogeometric Stereo - Purdue University

Photometric Stereo1111 )( clnlnln zzyyxx

2222 )( clnlnln zzyyxx

3333 )( clnlnln zzyyxx

Using 1l Using 2l Using 3l

Page 10: Photometric and Photogeometric Stereo - Purdue University

Photometric Stereo1111 )( clnlnln zzyyxx

2222 )( clnlnln zzyyxx

3333 )( clnlnln zzyyxx

Using 1l Using 2l Using 3l

1c 2c 3c

Page 11: Photometric and Photogeometric Stereo - Purdue University

Photometric Stereo1111 )( clnlnln zzyyxx

2222 )( clnlnln zzyyxx

3333 )( clnlnln zzyyxx

What is ? zyx nnn ,,

cLn Write as and solve cLn 1

Where Tzyx nnnn

Tcccc 321

What is the surface normal at the point? nn /

What is (the albedo at the surface point)? nn

Page 12: Photometric and Photogeometric Stereo - Purdue University

Lambertian Photometric Stereo with Known Lights

• Take three pictures of a static Lambertian object with a static camera

• In each picture move the light to a different but known position– For distant lights, could know light direction instead of light position

• At pixel i, solve • Use normals to “integrate” a surface

ii cLn 1

Page 13: Photometric and Photogeometric Stereo - Purdue University

Normals ‐> Surface

• How?

Page 14: Photometric and Photogeometric Stereo - Purdue University

Normals ‐> Surface),( yxzSurface (height field) is

Tyx zzyxn 1),( Surface normal is

))y,x(z)y,1x(z(zx

))y,x(z)1y,x(z(zy and

1122

yxyx

zyx zzzz

nnn

1 x

z

x znn

1 y

z

y znn

As we saw before

So and or zxx nnz / zyy nnz /and

Altogether: xzz nyxznyxzn ),(),1(yzz nyxznyxzn ),()1,(

Page 15: Photometric and Photogeometric Stereo - Purdue University

Normals ‐> Surfacexzz nyxznyxzn ),(),1(yzz nyxznyxzn ),()1,(

Can setup as a large over-constrained linear system: bAz Azb

where has a bunch of normal values are the unknown heights (z-values)is a zero vector

and solve (e.g., use “lsqr” method)bAz 1

Page 16: Photometric and Photogeometric Stereo - Purdue University

Normals ‐> Surface

[Basri et al., IJCV, 2007]

Page 17: Photometric and Photogeometric Stereo - Purdue University

Fundamental Ambiguity

CNL

CLNRR 1

CLNAA 1

CLANA ))(( 1

RGA

Rotation matrix

Generalized Bas Relief (GBR) Ambiguity matrix

Page 18: Photometric and Photogeometric Stereo - Purdue University

Fundamental Ambiguity

Belhumeur et al. 1999

Page 19: Photometric and Photogeometric Stereo - Purdue University

Fundamental Ambiguity

Belhumeur et al. 1999

Page 20: Photometric and Photogeometric Stereo - Purdue University

GBR Transform

• Consider– This means “flatten” by    and add a plane (      )

• When                this is classical “bas‐relief”• Else, it is a generalized bas‐relief that can be written as

yxyxzyxz ),(),(

,

0

010001

G

10000

11

G

Page 21: Photometric and Photogeometric Stereo - Purdue University

Photometric Stereo Ambiguity

CLANA ))(( 1

010001

RRGA

• Interpretation: given a solution for the normals, we can transform the normals by A and the lights by A-1

and the resulting picture looks the same…

Page 22: Photometric and Photogeometric Stereo - Purdue University

Photometric Stereo with Unknown Lights

• Question:– What if both the surface normals and the light directions are unknown?

– Can we reconstruct the light directions, surface normals, and thus surface geometry (up to the aforementioned ambiguity)?

• Answer:– Yes, and the problem is still linear!

Page 23: Photometric and Photogeometric Stereo - Purdue University

PS with Unknown LightingcLn Recall

1)( 2/1 nnTThink of the normals as located at the origin, then we care about a linear transformation of the sphere

Note PccLn 1

So 1)( QccPcPcPcPc TTTT

And Q is a 3x3 symmetric positive definite matrix:

Geometrically, this means intensity’s c lie on an ellipsoid whose equation is

01222 3223311321122

3332

2222

111 ccqccqccqcqcqcq

332313

232212

131211

qqqqqqqqq

which only has unknowns6

Page 24: Photometric and Photogeometric Stereo - Purdue University

PS with Unknown Lighting

• Given at least six pixels, can solve for q’s• In general, a large overconstrained linear solution is used

3231212

32

22

1

1312131112112

132

122

11

222..................

222

nnnnnnnnn ccccccccc

cccccccccM

Tqqqqqqq 231312332211

1...1b

bMq 1 bMMMq TT 1)( or

Page 25: Photometric and Photogeometric Stereo - Purdue University

PS with Unknown Lighting

• Given Q, we can plug back and get the angles between light directions and their strengths

• Then “lights are known” and solve for normals as before…– but need to choose a reasonable R and G

Page 26: Photometric and Photogeometric Stereo - Purdue University

Photogeometric Approach

• Combine photometric stereo with geometric stereo– High resolution of photometric stereo– Accuracy of geometric method– Can lead to self‐calibration of entire acquisition process

Page 27: Photometric and Photogeometric Stereo - Purdue University

Photogeometric Upsampling

1. Integrate surface normals

photo-surface

Page 28: Photometric and Photogeometric Stereo - Purdue University

Photogeometric Upsampling

2. Compute sparse geometric model

geo-surface

Page 29: Photometric and Photogeometric Stereo - Purdue University

Photogeometric Upsampling

3. Warp photometric surface to geometric surface

geo-surface

photo-surface

Page 30: Photometric and Photogeometric Stereo - Purdue University

Photogeometric Upsampling

3. Warp photometric surface to geometric surfacephoto-geo surface

Page 31: Photometric and Photogeometric Stereo - Purdue University

Photogeometric Upsampling

4. Triangulate and proceed to optimizationphoto-geo surface

true surface

Page 32: Photometric and Photogeometric Stereo - Purdue University

Photogeometric Optimization

• Linear system in the unknown 3D points (pi)• Supports multi‐view reconstruction• Weighted combination of three error terms:

where 

eg = error of reprojection

ep = error of perpendicularity of normal‐to‐tangent

er = error of  relative distance change

Page 33: Photometric and Photogeometric Stereo - Purdue University

Photogeometric Optimization• Linear system in the unknown 3D points (pi)• Supports multi‐view reconstruction• Weighted combination of three error terms:

where 

Page 34: Photometric and Photogeometric Stereo - Purdue University

Photogeometric Reconstruction

photographs reconstruction