Docsity

Affine Structure from Motion - Lecture Slides | EECS 442, Study notes of Electrical and Electronics Engineering

Partial preview of the text

Download Affine Structure from Motion - Lecture Slides | EECS 442 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

EECS 442 – Computer vision Multiple view geometry Affine structure from Motion

Reading:

[HZ] Chapters: 6,14,18^ [FP] Chapter: 12

Some slides of this lectures are courtesy of prof. J. Ponce,prof

FF Li, prof

S. Lazebnik &

prof. M. Hebert

  • Affine structure from motion problem- Algebraic methods- Factorization methods

Structure from motion problem

x^1

j

x^2

j

x^3

j

X j

M 1

M 2

M 3

Given

m images of

n fixed 3D points

  • x

=ij M

X i

,^ j

i =

^1 , … , m,

j =

^1 , … , n

Affine structure from motion

(simpler problem) Image

World^ Image

From the m

x^ n correspondences

x

, estimate: ij

  • m projection matrices

M

(affine cameras) i

  • n 3D points

X

j

Finite cameras

p q r

R Q

O

P

[^

]^ X T

R K x^

= ⎤ ⎥ ⎥^ ⎥⎦

y

x s

K

o y

o

x

=^
T R 0 1 0 0
0 0 0 1 K M

(^3) x 3 M

Perspective projection matrix

Homography (in 3D)

Homography(in 2D)

Orthographic Projection Weak-Perspective Projection

⎤ ⎥ ⎥ ⎥⎦

⎡ ⎢=⎢ ⎢⎣

1 0 0

0 1 0

0 0 1 K

⎤ ⎥ ⎥ ⎥⎦

⎡ ⎢=⎢ ⎢⎣

1 0 0

0

0

0 0

K^

y x

α α^

Scaling function of the distance

Orthographic Projection Weak-Perspective Projection

⎤ ⎥ ⎥ ⎥⎦

⎡ ⎢=⎢ ⎢⎣

1 0 0

0 1 0

0 0 1 K

⎤ ⎥ ⎥ ⎥⎦

⎡ ⎢=⎢ ⎢⎣

1 0 0

0

0

0 0

K^

y x

α α

X

x

x’^ ; 1 M

x y

⎤ ⎥ ⎦ ⎡ ⎢ ⎣ =

= ⎞ ⎟⎟ ⎠ ⎛ ⎜⎜ ⎝ =^

X

b

AX

x^

[^

] b

A

M

=

Affine cameras

M = camera matrix

To recap: from now on we define M as the camera matrix for the affine case

The Affine Structure-from-Motion Problem^ Given

m images of

n fixed points

P^ j^

(=X

) we can writei^

Problem: estimate the m 2

×4 matrices M

i^

and

the n positions P

from the mj

×n correspondences p

ij^

.

2m

×^

n equations in 8m+3n unknowns

How many equations and how many unknown? Two approaches: - Algebraic approach (affine epipolar geometry) - Factorization method

The Affine Fundamental Matrix!

where

Algebraic analysis (2-view case)

Affine Epipolar Geometry

Note: the epipolar lines are parallel.

Estimating F

  • From at least 4 correspondences, we obtain a linear system on the unknown alpha, beta, etc…
  • Measurements: u, u’, v, v’

0 1 v u v u

1

v

u

v

u

n

n

n

n

1

1

1

1

= ⎤ ⎥ ⎥ ⎥⎦

⎡ ⎢ ⎢ ⎢⎣

′

′

′

′

f M M M M M

•Computed by least square and by enforcing |f|=

If^

M

andi^

P

are solutions,i

then M

’^ i^

and

P

’^ i

are also solutions,

and

Q is an affinetransformation.

Estimating projection matrices

from epipolar constraints

where Proof:

P

p

p’

Estimating projection matrices from epipolar constraints

[^

T]d 0 ~b

c b a

1 0 0 ~A ′^ =

⎤ ⎥ ⎦

⎡ ⎢ ⎣ ′=

Estimating projection matrices from epipolar constraints Choose Q such that…

Function of the parameters of F

Canonical affine cameras

[^
T] 0

0 ~b

0 1 0

0 0 1 ~A^ =

⎤ ⎥ ⎦

⎡ =⎢ ⎣