1 structure from motion with unknown correspondence (aka: how to combine em, mcmc, nonlinear ls!)...

29
1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian Thrun slides courtesy of Frank Dellaert, adapted by Steve Seitz

Post on 19-Dec-2015

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian

1

Structure from Motion with Unknown Correspondence

(aka: How to combine EM, MCMC, Nonlinear LS!)

Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian Thrun

slides courtesy of Frank Dellaert, adapted by Steve Seitz

Page 2: 1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian

2

Traditionally: 2 Problems

1. Correspondence

2. Compute 3D positions, camera motion

Page 3: 1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian

3

The Correspondence Problem

Page 4: 1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian

4

The Structure from Motion Problem• Find the most likely structure and motion

Page 5: 1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian

5

jik

=

Structure From Motion

uik

mimi’

xj

Image i Image i’

Non-linear Least-Squares (Rick Szeliski’s lecture)

Page 6: 1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian

6

Question

How to recover structure and motion with unknown correspondence?

Aside: related subproblems– known correspondence, unknown structure, motion

• structure from motion– known motion, unknown correspondence, structure

• stereo– known structure, unknown correspondence, motion

• 3D registration, ICP

Page 7: 1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian

7

Without Correspondence:Try Tracking Features

Lucas-Kanade Tracker (figures from Tommasini et. al. 98)

Page 8: 1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian

8

New Idea: try all correspondences

Likelihood: P(; U, J)

structure + motion image features correspondence

Marginalize over J: P(; U) = J P(; U, J)

Page 9: 1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian

9

Combinatorial Explosion

• 3 images, 4 features: 4!3=13,824

• 5 images, 30 features: 30!5=1.3131e+162

• (number of stars:1e+20, atoms: 1e+79)

• Computing P( ; U, J) is intractable !

Page 10: 1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian

10

EM for Correspondence

Page 11: 1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian

11

Expectation Maximization

Page 12: 1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian

12

E-Step: Soft Correspondences

View 1 View 3View 2

P(J | U,t)

Page 13: 1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian

13

M-Step: SFM

• Compute expected SFM solution

• Problem: this requires solving an exponential number of SFM problems

• If we assume correspondences jik are independent, we can simplify...

Page 14: 1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian

14

Virtual Measurements

View 2

AA BB

CC

22

11

33

44 DD

AA

vA=p1Au1+p2Au2+p3Au3+p4Au4

DD

CC

BB

Page 15: 1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian

15

jik

M-Step: SFM

vij

mimi’

xj

Image i Image i’

one SFM problem on virtual measurements

Page 16: 1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian

16

Structure from Motion without Correspondence via EM:

In each image, calculate the n2 “soft correspondences”

Page 17: 1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian

17

Key Issue: Calculating Weights

AA BB

CC

22

11

33

44 DD

Page 18: 1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian

18

Calculating Weights

Weights = Marginal Probabilities

Page 19: 1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian

19

Mutual Exclusion

Page 20: 1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian

20

Monte Carlo EM

Page 21: 1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian

21

Monte Carlo Approximation

Page 22: 1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian

22

Sampling Assignments using the Metropolis Algorithm (1953)

),|(

),|(,1min

'

ti

ri

tii

P

Pa

UJ

UJ P( )= -------------- P( )

Page 23: 1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian

23Swap Proposals (inefficient)

a b c d e f

Page 24: 1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian

24‘Chain Flipping’ Proposals

Page 25: 1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian

25Efficient Sampling (Example)

Page 26: 1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian

26

a b c d e f

MCMC to deal with mutex

Page 27: 1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian

27

Input Images

• Manual measurements

• Random order

Page 28: 1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian

28

Results: Cube

Page 29: 1 Structure from Motion with Unknown Correspondence (aka: How to combine EM, MCMC, Nonlinear LS!) Frank Dellaert, Steve Seitz, Chuck Thorpe, and Sebastian

29Soft Correspondences

scene feature xj

ui

EM iterations