machine vision laboratory the university of the west of england bristol, uk

72
Machine Vision Laboratory Machine Vision Laboratory The University of the West of The University of the West of England England Bristol, UK Bristol, UK 2 nd September 2010 ICEBT Photometri Photometri c Stereo c Stereo in 3D in 3D Biometrics Biometrics Gary A. Gary A. Atkinso Atkinso n n PSG College of Technology PSG College of Technology Coimbatore, India Coimbatore, India

Upload: padma

Post on 11-Jan-2016

37 views

Category:

Documents


2 download

DESCRIPTION

2 nd September 2010 ICEBT. Machine Vision Laboratory The University of the West of England Bristol, UK. Photometric Stereo in 3D Biometrics. Gary A. Atkinson. PSG College of Technology Coimbatore, India. Overview. What is photometric stereo? Why photometric stereo? The basic method - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Machine Vision Laboratory The University of the West of England Bristol, UK

Machine Vision LaboratoryMachine Vision LaboratoryThe University of the West of EnglandThe University of the West of England

Bristol, UKBristol, UK

2nd September 2010ICEBT

Photometric Photometric Stereo in 3D Stereo in 3D

BiometricsBiometrics

Gary A. Gary A. AtkinsonAtkinson

PSG College of TechnologyPSG College of TechnologyCoimbatore, IndiaCoimbatore, India

Page 2: Machine Vision Laboratory The University of the West of England Bristol, UK

Overview

1. What is photometric stereo?

2. Why photometric stereo?

3. The basic method

4. Advanced methods

5. Applications

Page 3: Machine Vision Laboratory The University of the West of England Bristol, UK

Overview

1. What is photometric stereo?

2. Why photometric stereo?

3. The basic method

4. Advanced methods

5. Applications

Page 4: Machine Vision Laboratory The University of the West of England Bristol, UK

1. What is Photometric Stereo?

A method of estimating surface geometry using multiple light source directions

Captured images

Page 5: Machine Vision Laboratory The University of the West of England Bristol, UK

1. What is Photometric Stereo?

A method of estimating surface geometry using multiple light source directions

Captured images Surface normals

Page 6: Machine Vision Laboratory The University of the West of England Bristol, UK

1. What is Photometric Stereo?

A method of estimating surface geometry using multiple light source directions

Depth map Surface normals

Page 7: Machine Vision Laboratory The University of the West of England Bristol, UK

1. What is Photometric Stereo?

A method of estimating surface geometry using multiple light source directions

Depth map Surface normals

Page 8: Machine Vision Laboratory The University of the West of England Bristol, UK

Overview

1. What is photometric stereo?

2. Why photometric stereo?

3. The basic method

4. Advanced methods

5. Applications

Page 9: Machine Vision Laboratory The University of the West of England Bristol, UK

2. Why photometric Stereo?

Why 3D? Why PS in particular?

Page 10: Machine Vision Laboratory The University of the West of England Bristol, UK

2. Why photometric Stereo?

Why 3D? Why PS in particular?

1. Robust face recognition

2. Ambient illumination independence

3. Facilitates pose correction

4. Non-contact fingerprint analysis

Richer dataset in 3D

Page 11: Machine Vision Laboratory The University of the West of England Bristol, UK

2. Why photometric Stereo?

Why 3D? Why PS in particular?

1. Robust face recognition

2. Ambient illumination independence

3. Facilitates pose, expression correction

4. Non-contact fingerprint analysis

• Same day• Same camera• Same expression• Same pose• Same background• Even same shirt• Different illumination

Completely different image

Page 12: Machine Vision Laboratory The University of the West of England Bristol, UK

2. Why photometric Stereo?

Why 3D? Why PS in particular?

1. Robust face recognition

2. Ambient illumination independence

3. Facilitates pose, expression correction

4. Non-contact fingerprint analysis

Page 13: Machine Vision Laboratory The University of the West of England Bristol, UK

2. Why photometric Stereo?

Why 3D? Why PS in particular?

1. Robust face recognition

2. Ambient illumination independence

3. Facilitates pose, expression correction

4. Non-contact fingerprint analysis

Page 14: Machine Vision Laboratory The University of the West of England Bristol, UK

2. Why photometric Stereo?

Why 3D? Why PS in particular?

1. Captures reflectance data for 2D matching

2. Compares well to other methods

*Depending on correspondence density

SFS Shape-from-shadingGS Geometric stereoLT Laser triangulationPPT Projected pattern triangulationPS Photometric stereo

Page 15: Machine Vision Laboratory The University of the West of England Bristol, UK

2. Why Photometric Stereo? – Alternatives

Shape-from-Shading

Estimate surface normals from shading patterns. More to follow...

Page 16: Machine Vision Laboratory The University of the West of England Bristol, UK

2. Why Photometric Stereo? – Alternatives

Geometric stereo

drdl

bfz

Page 17: Machine Vision Laboratory The University of the West of England Bristol, UK

2. Why Photometric Stereo? – Alternatives

Geometric stereo

[Li Wei, and Eung-Joo Lee, JDCTA 2010] [Wang, et al. JVLSI 2007]

Page 18: Machine Vision Laboratory The University of the West of England Bristol, UK

2. Why Photometric Stereo? – Alternatives

Laser triangulation

tandh

Page 19: Machine Vision Laboratory The University of the West of England Bristol, UK

2. Why Photometric Stereo? – Alternatives

Laser triangulation

f

j

i

if

b

z

y

x

cot

General case

Page 20: Machine Vision Laboratory The University of the West of England Bristol, UK

2. Why Photometric Stereo? – Alternatives

Laser triangulation

Page 21: Machine Vision Laboratory The University of the West of England Bristol, UK

2. Why Photometric Stereo? – Alternatives

Projected Pattern Triangulation

Page 22: Machine Vision Laboratory The University of the West of England Bristol, UK

2. Why Photometric Stereo? – Alternatives

Projected Pattern Triangulation

Greyscale camera

Pattern projector

Colour camera

Flash

Greyscale camera

Target

Page 23: Machine Vision Laboratory The University of the West of England Bristol, UK

2. Why Photometric Stereo? – Alternatives

Projected Pattern Triangulation

Page 24: Machine Vision Laboratory The University of the West of England Bristol, UK

2. Why Photometric Stereo? – Alternatives

Projected Pattern Triangulation

Page 25: Machine Vision Laboratory The University of the West of England Bristol, UK

2. Why Photometric Stereo? – Alternatives

Projected Pattern Triangulation

Page 26: Machine Vision Laboratory The University of the West of England Bristol, UK

2. Why Photometric Stereo? – Alternatives

Projected Pattern Triangulation

Page 27: Machine Vision Laboratory The University of the West of England Bristol, UK

Overview

1. What is photometric stereo?

2. Why photometric stereo?

3. The basic method

4. Advanced methods

5. Applications

Page 28: Machine Vision Laboratory The University of the West of England Bristol, UK

3. The Basic Method – Assumptions

θ

I = radiance (intensity)N = unit normal vectorL = unit source vectorθ = angle between N and L

1. No cast/self-shadows or specularities

2. Greyscale/linear imaging

3. Distant and uniform light sources

4. Orthographic projection

5. Static surface

6. Lambertian reflectance

Assumptions:

[Argyriou and Petrou]

LN cosI

Page 29: Machine Vision Laboratory The University of the West of England Bristol, UK

0 DCzByAx

TCBA ,,N

3. The Basic Method – Preliminary notes

Equation of a plane

Surface normal vector to plane

Page 30: Machine Vision Laboratory The University of the West of England Bristol, UK

0 DCzByAx

TCBA ,,N

3. The Basic Method – Preliminary notes

Equation of a plane

Surface normal vector to plane

C

Dy

C

Bx

C

Az

Page 31: Machine Vision Laboratory The University of the West of England Bristol, UK

0 DCzByAx

TCBA ,,N

3. The Basic Method – Preliminary notes

Equation of a plane

Surface normal vector to plane

C

Dy

C

Bx

C

Az

C

A

x

z

C

B

y

z

Page 32: Machine Vision Laboratory The University of the West of England Bristol, UK

0 DCzByAx

TCBA ,,N

3. The Basic Method – Preliminary notes

Equation of a plane

Surface normal vector to plane

C

Dy

C

Bx

C

Az

C

A

x

z

C

B

y

z

Rescaled surface normal T

C

B

C

A

1,,n

T

y

z

x

z

1,,

Page 33: Machine Vision Laboratory The University of the West of England Bristol, UK

0 DCzByAx

TCBA ,,N

3. The Basic Method – Preliminary notes

Equation of a plane

Surface normal vector to plane

Rescaled surface normal typically written

TT

qpy

z

x

z1,,1,,

n

C

Dy

C

Bx

C

Az

C

A

x

z

C

B

y

z

Page 34: Machine Vision Laboratory The University of the West of England Bristol, UK

3. The Basic Method – Reflectance Equation

Tqp 1,,

Tss qp 1,,

Consider the imaging of an object with one light source.

Page 35: Machine Vision Laboratory The University of the West of England Bristol, UK

Lambertian reflection

cosLE E = emittance = albedoL = irradiance

3. The Basic Method – Reflectance Equation

Tqp 1,,

Tss qp 1,,

Page 36: Machine Vision Laboratory The University of the West of England Bristol, UK

Lambertian reflection

cosLE E = emittance = albedoL = irradiance

cos111 2222 ssss qpqpqqpp

3. The Basic Method – Reflectance Equation

Tqp 1,,

Tss qp 1,,

Take scalar product of light source vector and normal vector to obtain cos:

Page 37: Machine Vision Laboratory The University of the West of England Bristol, UK

Perform substitution with Lambert’s law

11

12222

ss

ss

qpqp

qqppLE

3. The Basic Method – Shape-from-Shading

cosLE

Page 38: Machine Vision Laboratory The University of the West of England Bristol, UK

Perform substitution with Lambert’s law

11

12222

ss

ss

qpqp

qqppLE

3. The Basic Method – Shape-from-Shading

cosLE

11

1'

2222

ss

ss

qpqp

qqppI

If is re-defined and the camera response is linear, then

Page 39: Machine Vision Laboratory The University of the West of England Bristol, UK

Perform substitution with Lambert’s law

11

12222

ss

ss

qpqp

qqppLE

Known: ps, qs, I

Unknown: p, q,

1 equation,3 unknowns

Insoluble

3. The Basic Method – Shape-from-Shading

cosLE

11

12222

ss

ss

qpqp

qqppI

If is re-defined and the camera response is linear, then

Page 40: Machine Vision Laboratory The University of the West of England Bristol, UK

11

12222

ss

ss

qpqp

qqppI

0 ss qp

Increasing I/

Curves of constant I/

3. The Basic Method – Shape-from-Shading

For a given intensity measurement, the values of p and q are confined to one of the lines (circles here) in the graph.

Page 41: Machine Vision Laboratory The University of the West of England Bristol, UK

Increasing I/

3. The Basic Method – Shape-from-Shading

11

12222

ss

ss

qpqp

qqppI

This is the result for a different light source direction.

Shadowboundary

For a given intensity measurement, the values of p and q are confined to one of the lines (circles here) in the graph.

5.0 ss qp

Page 42: Machine Vision Laboratory The University of the West of England Bristol, UK

3. The Basic Method – Shape-from-Shading

Representation using conics

Possible cone of normal vectors forming a conic section.

Page 43: Machine Vision Laboratory The University of the West of England Bristol, UK

3. The Basic Method – Shape-from-Shading

Representation on unit sphere

We can overcome the cone ambiguity using several light source directions: Photometric Stereo

Page 44: Machine Vision Laboratory The University of the West of England Bristol, UK

Two sources: normal confined to two points– Or fully constrained if the albedo is known

3. The Basic Method – Two Sources

Page 45: Machine Vision Laboratory The University of the West of England Bristol, UK

Three sources: fully constrained

3. The Basic Method – Three Sources

Page 46: Machine Vision Laboratory The University of the West of England Bristol, UK

3. The Basic Method – Matrix Representation

(using slightly different symbols to aid clarity)

s

N Unit surface normal

Unit light source vector

z

y

x

T

z

y

x

N

N

N

s

s

s

I

I

sN

cos

Page 47: Machine Vision Laboratory The University of the West of England Bristol, UK

3. The Basic Method – Matrix Representation

(using slightly different symbols to aid clarity)

z

y

x

zyx

zyx

zyx

N

N

N

sss

sss

sss

I

I

I

333

222

111

3

2

1

s

N Unit surface normal

Unit light source vector

z

y

x

T

z

y

x

N

N

N

s

s

s

I

I

sN

cos

Page 48: Machine Vision Laboratory The University of the West of England Bristol, UK

3. The Basic Method – Matrix Representation

(using slightly different symbols to aid clarity)

z

y

x

zyx

zyx

zyx

N

N

N

sss

sss

sss

I

I

I

333

222

111

3

2

1

z

y

x

zyx

zyx

zyx

N

N

N

I

I

I

sss

sss

sss

3

2

1

1

333

222

111

s

N Unit surface normal

Unit light source vector

z

y

x

T

z

y

x

N

N

N

s

s

s

I

I

sN

cos

Page 49: Machine Vision Laboratory The University of the West of England Bristol, UK

3. The Basic Method – Matrix Representation

z

y

x

z

y

x

zyx

zyx

zyx

m

m

m

N

N

N

I

I

I

sss

sss

sss

3

2

1

1

333

222

111

Tqp 1,, nRecall that, based on the surface gradients,T

qpqp

q

qp

p

1

1,1

,1 222222

N

Page 50: Machine Vision Laboratory The University of the West of England Bristol, UK

3. The Basic Method – Matrix Representation

222,, zyxz

y

z

x mmmm

mq

m

mp

Substituting and re-arranging these equations gives us

That is, the surface normals/gradient and albedo have been determined.

z

y

x

z

y

x

zyx

zyx

zyx

m

m

m

N

N

N

I

I

I

sss

sss

sss

3

2

1

1

333

222

111

Tqp 1,, nRecall that, based on the surface gradients,T

qpqp

q

qp

p

1

1,1

,1 222222

N

Page 51: Machine Vision Laboratory The University of the West of England Bristol, UK

3. The Basic Method – Linear Algebra Note

222,, zyxz

y

z

x mmmm

mq

m

mp

That is, the surface normals/gradient and albedo have been determined.

If the three light source vectors are co-planar, then the light source matrix

becomes non-singular – i.e. cannot be inverted, and the equations are

insoluble.

Page 52: Machine Vision Laboratory The University of the West of England Bristol, UK

3. The Basic Method – Example results

Surface normals Albedo map

More on applications of this later...

What about the depth?

Page 53: Machine Vision Laboratory The University of the West of England Bristol, UK

3. The Basic Method – Surface Integration

T

y

z

x

z

1,,n xpzz ddx

zp

d

dRecall the relation between

surface normal and gradient:

Memory jogger from calculus:

xpzz

Page 54: Machine Vision Laboratory The University of the West of England Bristol, UK

3. The Basic Method – Surface Integration

P

PyqxpPzPz

0

dd0

cxvxpyyqvuzvu

d,d,0,00

cdqpyxzC

l,,

Recall the relation between surface normal and gradient:

So the height can be determined via an integral (or summation in the discrete world of computer vision). This can be written in several ways:

Memory jogger from calculus:

T

y

z

x

z

1,,n xpzz ddx

zp

d

d

xpzz

Page 55: Machine Vision Laboratory The University of the West of England Bristol, UK

3. The Basic Method – Surface Integration

So we can generate a height map by summing up individual normal components. Simple, right?

WRONG!!!

Page 56: Machine Vision Laboratory The University of the West of England Bristol, UK

3. The Basic Method – Surface Integration

WRONG!!!

• Depends on the path taken

• Is affected by noise

• Cannot handle discontinuities

• Suffers from non-integrable regions

xy

z

yx

z

22

(there’s some overlap here)

Further details are beyond the scope of this talk.

So we can generate a height map by summing up individual normal components. Simple, right?

Page 57: Machine Vision Laboratory The University of the West of England Bristol, UK

3. The Basic Method – Surface Integration

Page 58: Machine Vision Laboratory The University of the West of England Bristol, UK

Overview

1. What is photometric stereo?

2. Why photometric stereo?

3. The basic method

4. Advanced methods

5. Applications

Page 59: Machine Vision Laboratory The University of the West of England Bristol, UK

4. Advanced Methods

Recall the assumptions of standard PS:

1. No cast/self-shadows or specularities

2. Greyscale imaging

3. Distant and uniform light sources

4. Orthographic projection

5. Static surface

6. Lambertian reflectance

Page 60: Machine Vision Laboratory The University of the West of England Bristol, UK

4. Advanced Methods

Recall the assumptions of standard PS:

1. No cast/self-shadows or specularities

2. Greyscale imaging

3. Distant and uniform light sources

4. Orthographic projection

5. Static surface

6. Lambertian reflectance

The two highlighted assumptions are the two most problematic, and studied, assumptions.

Page 61: Machine Vision Laboratory The University of the West of England Bristol, UK

4. Advanced Methods – Shadows and Specularities

Recall that:

222,, zyxz

y

z

x mmmm

mq

m

mp

z

y

x

z

y

x

zyx

zyx

zyx

m

m

m

N

N

N

I

I

I

sss

sss

sss

3

2

1

1

333

222

111

Suppose we have a fourth light source

- Apply the above equation for each combination of three light sources. Four normal estimates

- Where error in estimates > camera noise an anomaly is present. Ignore one light source here

[Coleman and Jain-esque]

Page 62: Machine Vision Laboratory The University of the West of England Bristol, UK

4. Advanced Methods – Shadows and Specularities / Lambert’s Law

044332211 ssss aaaa

Due to the linear dependence of light source vectors, we know that

For some combination of constants a1, a2, a3 and a4.

[Barsky and Petrou]

Page 63: Machine Vision Laboratory The University of the West of England Bristol, UK

4. Advanced Methods – Shadows and Specularities / Lambert’s Law

044332211 ssss aaaa

[Barsky and Petrou]

Multiply by albedo and take scalar product with surface normal:

044332211 NsNsNsNs aaaa

Due to the linear dependence of light source vectors, we know that

For some combination of constants a1, a2, a3 and a4.

Page 64: Machine Vision Laboratory The University of the West of England Bristol, UK

4. Advanced Methods – Shadows and Specularities / Lambert’s Law

044332211 ssss aaaa

[Barsky and Petrou]

Multiply by albedo and take scalar product with surface normal:

044332211 NsNsNsNs aaaa

044332211 IaIaIaIa

Due to the linear dependence of light source vectors, we know that

For some combination of constants a1, a2, a3 and a4.

Page 65: Machine Vision Laboratory The University of the West of England Bristol, UK

4. Advanced Methods – Shadows and Specularities / Lambert’s Law

044332211 ssss aaaa

[Barsky and Petrou]

Multiply by albedo and take scalar product with surface normal:

044332211 NsNsNsNs aaaa

044332211 IaIaIaIa

Where this is satisfied (subject to the confines of camera noise) the pixel is not specular, not in shadow and follows Lambert’s law.

Due to the linear dependence of light source vectors, we know that

For some combination of constants a1, a2, a3 and a4.

Page 66: Machine Vision Laboratory The University of the West of England Bristol, UK

4. Advanced Methods – Lambert’s Law / Gauges

Attempt to overcome lighting non-uniformities and non-Lambertian behaviour using gauges.

Image scene in the presence of a “gauge” object of known geometry and uniform albedo.

Seek a mapping between normals on the object with normals on the gauge.

[Leitão et al.]

TMIII (scene)(scene)(scene)(scene)

21 I

TMIII (gauge)(gauge)(gauge)(gauge)

21 I

jiji (gauge)(scene):(gauge)(scene) NNII

Page 67: Machine Vision Laboratory The University of the West of England Bristol, UK

Overview

1. What is photometric stereo?

2. Why photometric stereo?

3. The basic method

4. Advanced methods

5. Applications

Page 68: Machine Vision Laboratory The University of the West of England Bristol, UK

5. Applications

Face recognition

Weapons detection

Archaeology

Skin analysis

Fingerprint recognition

Page 69: Machine Vision Laboratory The University of the West of England Bristol, UK

5. Applications – Face recognition

Recognition rates (on 61 subjects)

2D Photograph: 91.2%Surface normals: 97.5%

Computer monitor [Schindler]

Page 70: Machine Vision Laboratory The University of the West of England Bristol, UK

5. Applications – Fingerprint recognition

Demo

[Sun et al.]

Page 71: Machine Vision Laboratory The University of the West of England Bristol, UK

Conclusion

1. What is photometric stereo?Shape / normal estimation from multiple lights

2. Why photometric stereo?Cheap, high resolution, efficient

1. The basic method – Covered

2. Advanced methods – Introduced

3. ApplicationsFaces, weapons, fingerprints

Page 72: Machine Vision Laboratory The University of the West of England Bristol, UK

Thank YouThank You

Questions?Questions?

2rd September 2010

Photometric Stereo in 3D BiometricsPhotometric Stereo in 3D Biometrics