Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old...

74
Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book) Credits: M. Shah, UCF CAP5415, lecture 23 http://www.cs.ucf.edu/courses/cap6411/cap5415/, Trevor Darrell, Berkeley, C280, Marc Pollefeys Guido Gerig CS 6320 Spring 2012

Transcript of Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old...

Page 1: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Multi-View Geometry Part II

(Ch7 New book. Ch 10/11 old book)

Credits: M. Shah, UCF CAP5415, lecture 23 http://www.cs.ucf.edu/courses/cap6411/cap5415/, Trevor Darrell, Berkeley, C280, Marc Pollefeys

Guido Gerig CS 6320 Spring 2012

Page 2: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Multi-View Geometry

Relates

Page 3: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Multi-View Geometry

Relates

• 3D World Points

Page 4: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Multi-View Geometry

Relates

• 3D World Points

• Camera Centers

Page 5: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Multi-View Geometry

Relates

• 3D World Points

• Camera Centers

• Camera Orientations

Page 6: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Multi-View Geometry

Relates

• 3D World Points

• Camera Centers

• Camera Orientations

• Camera Intrinsic Parameters

Page 7: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Multi-View Geometry

Relates

• 3D World Points

• Camera Centers

• Camera Orientations

• Camera Intrinsic Parameters

• Image Points

Page 8: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Stereo

scene point

optical center

image plane

Page 9: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Stereo

Basic Principle: Triangulation • Gives reconstruction as intersection of two rays

Page 10: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Stereo

Basic Principle: Triangulation • Gives reconstruction as intersection of two rays

Page 11: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Stereo

Basic Principle: Triangulation • Gives reconstruction as intersection of two rays

Page 12: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Stereo

Basic Principle: Triangulation • Gives reconstruction as intersection of two rays

Page 13: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Stereo

Basic Principle: Triangulation • Gives reconstruction as intersection of two rays • Requires

– calibration – point correspondence

Page 14: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Stereo Constraints

p p’ ?

Given p in left image, where can the corresponding point p’ in right image be?

Page 15: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Stereo Constraints

X1

Y1

Z1 O1

Image plane

Focal plane

M

p

Page 16: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Stereo Constraints

X1

Y1

Z1 O1

Image plane

Focal plane

M

p

Y2 X2

Z2 O2

Page 17: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Stereo Constraints

X1

Y1

Z1 O1

Image plane

Focal plane

M

p p’ Y2

X2

Z2 O2

Page 18: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Stereo Constraints

X1

Y1

Z1 O1

Image plane

Focal plane

M

p p’ Y2

X2

Z2 O2

Page 19: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Stereo Constraints

X1

Y1

Z1 O1

Image plane

Focal plane

M

p p’ Y2

X2

Z2 O2

Page 20: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Stereo Constraints

X1

Y1

Z1 O1

Image plane

Focal plane

M

p p’ Y2

X2

Z2 O2

Page 21: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Stereo Constraints

X1

Y1

Z1 O1

Image plane

Focal plane

M

p p’ Y2

X2

Z2 O2

Page 22: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Stereo Constraints

X1

Y1

Z1 O1

Image plane

Focal plane

M

p p’ Y2

X2

Z2 O2

Page 23: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Stereo Constraints

X1

Y1

Z1 O1

Image plane

Focal plane

M

p p’ Y2

X2

Z2 O2

Page 24: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Stereo Constraints

X1

Y1

Z1 O1

Image plane

Focal plane

M

p p’ Y2

X2

Z2 O2

Epipolar Line

Page 25: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Stereo Constraints

X1

Y1

Z1 O1

Image plane

Focal plane

M

p p’ Y2

X2

Z2 O2

Epipolar Line

Epipole

Page 26: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Demo Epipolar Geometry

Java Applet credit to: Quang-Tuan Luong SRI Int. Sylvain Bougnoux

Page 27: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Source: M. Pollefeys

Epipolar constraint

http://www.ai.sri.com/~luong/research/Meta3DViewer/EpipolarGeo.html

Page 28: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

• Potential matches for p have to lie on the corresponding epipolar line l’.

Source: M. Pollefeys

Epipolar constraint

http://www.ai.sri.com/~luong/research/Meta3DViewer/EpipolarGeo.html

Page 29: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

• Potential matches for p have to lie on the corresponding epipolar line l’.

Source: M. Pollefeys

Epipolar constraint

http://www.ai.sri.com/~luong/research/Meta3DViewer/EpipolarGeo.html

Page 30: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

• Potential matches for p have to lie on the corresponding epipolar line l’.

Source: M. Pollefeys

Epipolar constraint

http://www.ai.sri.com/~luong/research/Meta3DViewer/EpipolarGeo.html

Page 31: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

• Potential matches for p have to lie on the corresponding epipolar line l’.

Source: M. Pollefeys

Epipolar constraint

http://www.ai.sri.com/~luong/research/Meta3DViewer/EpipolarGeo.html

Page 32: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

• Potential matches for p have to lie on the corresponding epipolar line l’.

• Potential matches for p’ have to lie on the corresponding epipolar line l.

Source: M. Pollefeys

Epipolar constraint

http://www.ai.sri.com/~luong/research/Meta3DViewer/EpipolarGeo.html

Page 33: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Finding Correspondences

Andrea Fusiello, CVonline

Strong constraints for searching for corresponding points!

Page 34: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Example

Parallel Cameras: Corresponding points on horizontal lines.

Page 35: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Epipolar Constraint

Page 36: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

From Geometry to Algebra

Page 37: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

From Geometry to Algebra

O O’

P

p p’

Page 38: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

From Geometry to Algebra

O O’

P

p p’

Page 39: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

From Geometry to Algebra

O O’

P

p p’

Page 40: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

From Geometry to Algebra

O O’

P

p p’

Page 41: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

From Geometry to Algebra

O O’

P

p p’

Page 42: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

From Geometry to Algebra

O O’

P

p p’

Page 43: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

From Geometry to Algebra

O O’

P

p p’

Page 44: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

From Geometry to Algebra

O O’

P

p p’

Page 45: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =
Page 46: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =
Page 47: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =
Page 48: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Linear Constraint: Should be able to express as matrix multiplication.

Page 49: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Review: Matrix Form of Cross Product

Page 50: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Review: Matrix Form of Cross Product

Page 51: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Matrix Form

Page 52: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

The Essential Matrix

Page 53: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

The Essential Matrix

• Based on the Relative Geometry of the

Cameras • Assumes Cameras are calibrated (i.e.,

intrinsic parameters are known) • Relates image of point in one camera to

a second camera (points in camera coordinate system).

• Is defined up to scale • 5 independent parameters

Page 54: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

The Essential Matrix

What is εp’ ?

Page 55: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

The Essential Matrix

Similarly p is the epipolar line corresponding to p in the right camera.

Te

p’

Page 56: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

The Essential Matrix

What is εe’ ? • line εp’ converges to epipole e • e’ (center of camera C2 expressed

in frame C1)

eTεe’ ?

e’ εe’

Page 57: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Pencil of epipolar lines

Page 58: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Pencil of epipolar lines

http://www.cse.psu.edu/~rcollins/CSE486/lecture19_6pp.pdf

Page 59: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Epipoles

• The epipolar line l’ = εx to each point x (except e) intersects the epipole e0.

Thus e’ satisfies e’T(εx) = (e’T ε)x = 0 for all x.

• This implies that e’T ε = 0T or εTe’ = 0. The epipole e’ is thus a null vector

to εT (in the left null-space of ε).

• Similarly, εe = 0, i.e. e is a null-vector

to ε (in the right null-space of ε).

MVG Hartley & Zisserman

Page 60: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

MVG Hartley & Zisserman

Page 61: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

MVG Hartley & Zisserman

Epipoles

Page 62: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

The Essential Matrix

[ ] 0eR =¢=¢ ´tee

The essential matrix ε = [t]×R has 5 degrees of freedom; 3 rotation angles in R, 3 elements in t, but arbitrary scale. Essential Matrix is singular with rank 2.

Similarly, e [ ] [ ] 0=-== ´´ etRetRe TTTT

Page 63: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

What if Camera Calibration is not known

Page 64: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Review: Intrinsic Camera Parameters

X

Y

Z C

Image plane

Focal plane

M

m

( ) ( ) ( )( )CCC ZYX ,,

u

v i

j

I

J

( ) ( )( )II vu ,

( )

( )

( )

( )

( )

úúúúú

û

ù

êêêêê

ë

é

úúú

û

ù

êêê

ë

é-

-=

úúú

û

ù

êêê

ë

é

101000000

0

0

C

C

C

v

uI

I

ZYX

vfuf

Svu

°=Q====

90ba

vv

uu

fkffkf

Қ

Page 65: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Fundamental Matrix

eTp 0=¢p system coordinate camerain are and pp ¢

If u and u’ are corresponding image coordinates then we have:

pKupKu

¢=¢=

2

1 ( )uKp

KuuKpuKp TTTT

¢=¢

==®=-

---

12

11

11

1

eTT Ku -1 01

2 =¢- uK

0=¢Þ uFuT eTKF -= 11

2-K

Page 66: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Fundamental Matrix

Fundamental Matrix is singular with rank 2.

TKF -= 11

2-Ke0=¢uFuT

The fundamental matrix F has 7 degrees of freedom: A 3 × 3 homogenous matrix has 8 degrees of freedom. The constraint rank(F) = 2 or det(F) = 0 reduces the number to 7. In principal F has 7 parameters up to scale and can be estimated from 7 point correspondences. Direct Simpler Method requires 8 correspondences (Olivier Faugeras, Computer Vision textbook).

Page 67: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Estimating Fundamental Matrix 0=¢uFuT

Each point correspondence can be expressed as a linear equation:

[ ] 01

1

333231

232221

131211

=úúú

û

ù

êêê

ë

颢

úúú

û

ù

êêê

ë

évu

FFFFFFFFF

vu

[ ] 01

33

32

31

23

22

21

13

12

11

=

úúúúúúúúúúúú

û

ù

êêêêêêêêêêêê

ë

é

¢¢¢¢¢¢

FFFFFFFFF

vuvvvvuuvuuu

The 8-point algorithm (Faugeras)

Page 68: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

The 8-point Algorithm Scaling: Set F33 to 1 -> Solve for 8 parameters.

Page 69: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Example

http://www.cse.psu.edu/~rcollins/CSE486/lecture19_6pp.pdf

Page 70: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Example ctd.

http://www.cse.psu.edu/~rcollins/CSE486/lecture19_6pp.pdf

* *refers to normal form of line: rho = x cos(phi) + y sin(phi)

uTFu’ = 0 → Fu’=l’, where l’ is epipolar line associated to u.

Presenter
Presentation Notes
Why normalization: look at line equation: rho = xcos(phi)+ysin(phi) -> cos2 + sin2 = 1 -> normal form of line
Page 71: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Example: Left to Right

http://www.cse.psu.edu/~rcollins/CSE486/lecture19_6pp.pdf

Page 72: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Example: Right to Left

http://www.cse.psu.edu/~rcollins/CSE486/lecture19_6pp.pdf

Page 73: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Example: Epipoles?

http://www.cse.psu.edu/~rcollins/CSE486/lecture19_6pp.pdf

Page 74: Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)gerig/CS6320-S2013/Materials/CS6320-CV-F201… · Fundamental Matrix is singular with rank 2. F = K-T 1 1 2 T F u ¢ =

Example: Epipoles?

http://www.cse.psu.edu/~rcollins/CSE486/lecture19_6pp.pdf

e