Docsity

Computer Vision - Multiple View Geometry - Lecture Slides | EECS 442, Study notes of Electrical and Electronics Engineering

Partial preview of the text

Download Computer Vision - Multiple View Geometry - Lecture Slides | EECS 442 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

EECS 442 – Computer vision Multiple view geometry Perspective Structure from Motion

Reading:

[HZ] Chapters: 10,18,19 [FP] Chapter: 13

Some slides of this lectures are courtesy of prof. S. Lazebnik

  • Perspective structure from motion problem- Ambiguities- Algebraic methods- Factorization methods- Bundle adjustment- Self-calibration

From the m

x

n correspondences

x

ij

, estimate:

m projection matrices

M

i

n 3D points

X

j

x

1

j

x

2

j

x

m

j

X

j

motion structure

M

1

M

2

M

m

Structure from motion problem

Structure from motion ambiguity

-Scale ambiguity:

it is impossible based on the images alone to

estimate the absolute scale of the scene (i.e. house height)

Structure from motion ambiguity

-The scene is determined by the images only up a similaritytransformation (rotation, translation and scaling)

⎤ ⎥ ⎦

⎡ ⎢ ⎣

→

⎤ ⎥ ⎦

⎡ ⎢ ⎣ ⎤ ⎥ ⎥ ⎥⎦

⎡ ⎢ ⎢ ⎢⎣

=

s / 1

0

t

R

1

0

t R 1 s s H

s

  • The ambiguity exists even for calibrated cameras

Structure from motion ambiguity

  • For calibrated cameras, the similarity ambiguity is theonly ambiguity

[Longuet-Higgins ’81]

Structure from motion ambiguity

[

]

i

i

i

i

T

R

K

M

j

i

j^

X

M

x

=

j

X

H

1

j

H

M

−

  • In the general case (nothingis known) the ambiguity isexpressed by an arbitraryaffine

or

projective

transformation

) j i j i j

X H H M X M x

-

Affine ambiguity

Structure from motion problem

Given

m images of

n fixed 3D points

x

ij

M

i^

X

j^

i =

, … , m,

j =

, … , n

x

1

j

x

2

j

x

m

j

X

j

M

1

M

2

M

m

The Structure-from-Motion Problem

Given

m images of

n fixed points X

j^

we can write

Problem: estimate the m 3

×

4 matrices M

i^

and

the n positions X

j^

from the m

×

n correspondences

x

ij

  • With no calibration info, cameras and points can onlybe recovered up to a 4x4 projective

j

i

ij

X

M

x

=

  • Given two cameras, how many points are needed?

So 7 points! [2x2x7 = 28;

11x2 + 3x7 – 15 = 28]

2m

×

n equations in 11m+3n – 15 unknowns

  • How many equations and how many unknown?
  • Algebraic approach

(by fundamental matrix)

  • Factorization method

(by SVD)

  • Bundle adjustment

Structure-from-Motion Algorithms

X

X

H

~

=

X 0 | I X x

b

Ax

b

x

×

=

× ′

~ ] [ ~ H M

1

1

=

=

−

Algebraic approach (Fundamental matrix)

b ~ ] 0 | I [ 1

~X~X~X

] 0 | I [ 1

~X~X~X

] | [ ~ ] | [

1 2 3

1 2 3

X A b A b A X b A x

X

b

A

X

x

~ ] | [ ~ H M

1

2

=

= ′

− 0 ) ( ) (

= ′ ⋅ × ′ = ′ ⋅ ×

x

b

x

x

b

Ax

?

b

A

x

b

a

b

a

]

[

0

0

0

×

=

⎤ ⎥ ⎥ ⎥⎦

⎡ ⎢ ⎢ ⎢⎣ ⎤ ⎥ ⎥ ⎥ ⎦

⎡ ⎢ ⎢ ⎢ ⎣

−

−

−

=

×

x y z

x

y

x

z

y

z

b b b

a

a

a

a

a

a

Cross product as matrix multiplication

Epipolar Constraint

[lecture 6]

O

1

O

2

x

2

X

x

1

e

1

e

2

  • F x

2

is the epipolar line associated with x

2

(l

1

= F x

2

• F

T

x

1

is the epipolar line associated with x

1

(l

2

= F

T

x

1

  • F is singular (rank two)• F e

2

and

F

T

e

1

  • F is 3x3 matrix; 7 DOF

A

b

F

]

[

×

=

Since

F b

b=e

Algebraic approach (Fundamental matrix)

A

= –[

b

×

]

F

Compute

b

as least sq.

solution of

F b

det(F)=0; |b|=

0

F T

=

′

x x 0 b ] [ b

=

⋅

=

⋅

×

A

b

F

[

] 0

I

M

1 p

=

[

] b

A

M

p 2

=

Perspective cameras are known