Two-View Geometry: Epipolar Geometry and the Fundamental Matrix - - PowerPoint PPT Presentation

two view geometry
SMART_READER_LITE
LIVE PREVIEW

Two-View Geometry: Epipolar Geometry and the Fundamental Matrix - - PowerPoint PPT Presentation

Two-View Geometry: Epipolar Geometry and the Fundamental Matrix Shao-Yi Chien Department of Electrical Engineering National Taiwan University Fall 2018 1 Outline Epipolar geometry and the fundamental matrix [Slides credit: Marc


slide-1
SLIDE 1

Two-View Geometry: Epipolar Geometry and the Fundamental Matrix

簡韶逸 Shao-Yi Chien Department of Electrical Engineering National Taiwan University Fall 2018

1

slide-2
SLIDE 2

Outline

  • Epipolar geometry and the fundamental matrix

2

[Slides credit: Marc Pollefeys]

slide-3
SLIDE 3

Three Questions

  • Correspondence geometry: Given an image

point x in the first view, how does this constrain the position of the corresponding point x’ in the second image?

  • Camera geometry (motion): Given a set of

corresponding image points {xi ↔x’i}, i=1,…,n, what are the cameras P and P’ for the two views?

  • Scene geometry (structure): Given

corresponding image points xi ↔x’i and cameras P, P’, what is the position of (their pre-image) X in space?

3

slide-4
SLIDE 4

C,C’,x,x’ and X are coplanar

The Epipolar Geometry

4

slide-5
SLIDE 5

What if only C,C’,x are known?

The Epipolar Geometry

5

slide-6
SLIDE 6

All points on p project on l and l’

The Epipolar Geometry

6

slide-7
SLIDE 7

Family of planes p and lines l and l’ Intersection in e and e’

The Epipolar Geometry

7

slide-8
SLIDE 8

Epipoles e,e’ = intersection of baseline with image plane = projection of projection center in other image = vanishing point of camera motion direction an epipolar plane = plane containing baseline (1-D family) an epipolar line = intersection of epipolar plane with image (always come in corresponding pairs)

The Epipolar Geometry

8

slide-9
SLIDE 9

Example: Converging Cameras

9

slide-10
SLIDE 10

Example: Motion Parallel with Image Plane

10

slide-11
SLIDE 11

e e’

Example: Forward Motion

11

slide-12
SLIDE 12

Algebraic representation of epipolar geometry

l' x 

we will see that mapping is (singular) correlation (i.e. projective mapping from points to lines) represented by the fundamental matrix F

The Fundamental Matrix F

12

slide-13
SLIDE 13

geometric derivation

x H x'

π

 x' e' l'  

 

Fx x H e'

π

 

mapping from 2-D to 1-D family (rank 2)

The Fundamental Matrix F

If a=(a1, a2, a3)T [𝒃]×= −𝑏3 𝑏2 𝑏3 −𝑏1 −𝑏2 𝑏1

13

slide-14
SLIDE 14

algebraic derivation

 

λC x P λ X  

 

I P P 

 

 

 P P' e' F x P P' C P' l

 

(note: doesn’t work for C=C’  F=0)

x P  

λ X

The Fundamental Matrix F

e'

14

slide-15
SLIDE 15

correspondence condition

Fx x'T 

The fundamental matrix satisfies the condition that for any pair of corresponding points x↔x’ in the two images

 

l' x'T 

The Fundamental Matrix F

15

slide-16
SLIDE 16

F is the unique 3x3 rank 2 matrix that satisfies x’TFx=0 for all x↔x’

(i) Transpose: if F is fundamental matrix for (P,P’), then FT is fundamental matrix for (P’,P) (ii) Epipolar lines: l’=Fx & l=FTx’ (iii) Epipoles: on all epipolar lines, thus e’TFx=0, x e’TF=0, similarly Fe=0 (iv) F has 7 d.o.f. , i.e. 3x3-1(homogeneous)-1(rank2) (v) F is a correlation, projective mapping from a point x to a line l’=Fx (not a proper correlation, i.e. not invertible)

The Fundamental Matrix F

16

slide-17
SLIDE 17

l,l’ epipolar lines, k line not through e  l’=F[k]xl and symmetrically l=FT[k’]xl’

l k e

k l

l Fk e'

(pick k=e, since eTe≠0)

  l

e F l'

  l'

e' F l

T 

The Epipolar Line Geometry

17

slide-18
SLIDE 18

Fundamental Matrix for Pure Translation

18

slide-19
SLIDE 19

Fundamental Matrix for Pure Translation

19

slide-20
SLIDE 20

   

  

  e' H e' F

 

RK K H

1   

         1 1

  • F

 

T

1,0,0 e'

example:

y' y    Fx x'T

Fundamental Matrix for Pure Translation

P=K[ I | 0], P’=K[ I | t]

Translation is parallel to the x-axis

20

slide-21
SLIDE 21

0]X | K[I PX x           Z x K t] | K[I X P' x'

  • 1

Z Kt/ x x'   Z X,Y,Z x/ K ) (

  • 1

T 

motion starts at x and moves towards e, faster depending on Z pure translation: F only 2 d.o.f., xT[e]xx=0  auto-epipolar

Fundamental Matrix for Pure Translation

21

slide-22
SLIDE 22

Z t/ K' x RK K' x'

  • 1 

 

Hx e' ' x 

 T

 

x ˆ e' ' x 

 T

General Motion

22

slide-23
SLIDE 23
  • 1
  • T FH

H' F ˆ x' H' ' x ˆ Hx, x ˆ    

Derivation based purely on projective concepts

 

X ˆ P ˆ X H PH PX x

  • 1

  

F invariant to transformations of projective 3-space

 

X ˆ ' P ˆ X H H P' X P' x'

  • 1

  

 

F P' P, 

 

P' P, F 

unique not unique canonical form

m] | [M P' 0] | [I P  

  M

m F

Projective Transformation and Invariance

Same matching point!

26

slide-24
SLIDE 24

previous slide: at least projective ambiguity this slide: not more! Show that if F is same for (P,P’) and (P,P’), there exists a projective transformation H so that P=PH and P’=P’H ~ ~ ~ ~

] a ~ | A ~ [ ' P ~ 0] | [I P ~ a] | [A P' 0] | [I P    

    A

~ a ~ A a F

 

 

 

T 1

av A A ~ ka a ~   

k

lemma:

 

ka a ~ F a ~ A a a aF

2 rank

   

      

  

T

av A

  • A

~ k A

  • A

~ k a A ~ a ~ A a     

  

      

 

k k I k H

T 1 1

v

 

' P ~ ] a | av

  • A

[ v a] | [A H P'

T 1 T 1 1

        

  

k k k k I k

Projective Ambiguity of Cameras Given F

27

slide-25
SLIDE 25

F matrix corresponds to P,P’ iff P’TFP is skew-symmetric

 

X 0, FPX P' X

T T

 

F matrix, S skew-symmetric matrix

] e' | [SF P' 0] | [I P  

                    F S F F e' F S F 0] | F[I ] e' | [SF

T T T T T T

(fund.matrix=F) Possible choice:

] e' | F ] [[e' P' 0] | [I P

 

Canonical representation:

] λe' | v e' F ] [[e' P' 0] | [I P

T

  

Canonical Cameras Given F

28

slide-26
SLIDE 26

≡fundamental matrix for calibrated cameras (remove K)

 

 

  t] R[R R t E

T

x ˆ E ' x ˆ T  FK K' E

T

 

x' K ' x ˆ x; K x ˆ

  • 1
  • 1

 

5 d.o.f. (3 for R; 2 for t up to scale) E is essential matrix if and only if two singularvalues are equal (and third=0)

T

0)V Udiag(1,1, E 

The Essential Matrix

Given E, P=[I|0], there are 4 possible choices for the second camera matrix P’

29

slide-27
SLIDE 27

(only one solution where points is in front of both cameras)

Four Possible Reconstructions from E

30