chalmers university of technology...rotation averaging ground truth local minimum-background-well...

45
Rotation Averaging and Strong Duality Fredrik Kahl Chalmers University of Technology

Upload: others

Post on 15-Nov-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Rotation Averaging and Strong Duality

Fredrik Kahl

Chalmers University of Technology

Page 2: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Collaborators

Carl Olsson Anders Eriksson Viktor Larsson Tat-Jun Chin

Chalmers/Lund University of ETH Zurich University ofQueensland Adelaide

Page 3: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Structure from Motion

Visual Localization

Visual Navigation

Page 4: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Outline

Main topic: Semidefinite relaxations for optimization over SO(3)

- Introduction

- Problem formulation and examples

- Analysis: Relaxations, tightness and extreme points

- In depth: Rotation averaging

- Conclusions

Page 5: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

1

6

5

4

3

2

Rotation averaging

- Goal: Recover camera poses given relative pairwise measurements

Page 6: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Hand-eye calibration

Page 7: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

The Chordal distance

- Defined as the Euclidean distance in the embedding space,

- Equivalent to:

Page 8: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Registration of points, lines and planes

Page 9: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Problem formulation

Let

where each .

Page 10: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

How to overcome the problem of non-convexity?

- One idea: Relax some constraints and solve relaxed problem

- How to relax?

1. Linearize2. Convexify

- Tightness: When is the solution to the original and relaxed problem the same?

Page 11: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Linearization

- Longuet-Higgins, 1981

- Stefanovic, 1973

- Thompson, 1959

- Chasles, 1855

- Hesse, 1863

- Hauck, 1883

Page 12: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Convexification

- Quasi-convexity

- Semidefinite relaxations

F. Kahl, R. Hartley, PAMI 2008

Q. Ke, T. Kanade, PAMI 2007

F. Kahl, D. Henrion, IJCV 2007

C. Aholt, S. Agarwal, R. Thomas, ECCV 2012

Page 13: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Estimating a single rotation

Page 14: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Estimating a single rotation

- Is the relaxation always tight?

- Are all minimizers Λ* of the convex relaxation rank one?

Original problem Relaxed problem

Page 15: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Empirical result for 1000 random Q:s

Page 16: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many
Page 17: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Sums of squares polynomials

Multi-variate polynomial p(r) is a sums of squares (SOS) if

Page 18: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

The SO(3)-variety

Page 19: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

A theorem by Blekherman et al, J. Amer. Math. Soc., 2016

Page 20: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Extreme points

- Are all minimizers Λ* of the convex relaxation rank one?

Original problem Relaxed problem

Page 21: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Empirical result for 1000 random Q:s for SO(3)xSO(3)

Page 22: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Rotation averaging in Structure from Motion

Page 23: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

A possible pipeline:

1. Estimate relative epipolar geometries (5-point algorithm)

2. Given relative rotations, estimate absolute rotations

3. Compute camera positions and 3D points (L -optimization)

Estimate camera poses

Page 24: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

1

6

5

4

3

2

Rotation averaging

- Goal: Recover camera poses given relative pairwise measurements

Page 25: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Literature

- Quaternions:

- Single rotation estimation:

- Duality:

- Analysis:

V.M. Govindu, CVPR 2001

R.I. Hartley, J. Trumpf, Y. Dai and H. Li, IJCV 2013

A. Singer, Applied and Computational Harmonic Analysis, 2011

J. Fredriksson, C. Olsson, ACCV 2012

L. Carlone, D.M. Rosen, G. Calafiore, J.J. Leonard, F. Dellaert,

IROS 2015

K. Wilson, D. Bindel and N. Snavely, ECCV 2016

Page 26: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Rotation averaging

- Problem formulation

Graph (V,E) where V = camera poses and E = relative rotations

1

6

5

4

3

2

Page 27: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Rotation averaging

- Problem formulation

Graph (V,E) where V = camera poses and E = relative rotations

Page 28: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

- Non-convex problem

- Three local minima

Rotation averaging

Ground truth Local minimum

Page 29: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

- Background

- Well established theory on duality for convex optimization

- Duality is at the core of many existing optimization algorithms

- Less understood about the non-convex case

- Aims

- Can we obtain guarantees of global optimality?

- How to design efficient optimization algorithms?

Optimization

Page 30: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Duality

Page 31: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Duality

- Lagrangian:

- Dual function:

Page 32: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Duality

Primal problem Dual problem

(P) (D)

Since (D) is a relaxation of (P), we have

Page 33: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Primal and dual rotation averaging

Dual problem

(P)

(D)

Lagrangian

Primal problem

Page 34: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Concurrent work

D. Cifuentes, S. Agarwal, P. Parrilo, R. Thomas,

”On the Local Stability of Semidefinite Relaxations”, Arxiv 2017

Page 35: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Main Result

Note : Any local minimizer that fulfills this error bound will be global!

Page 36: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Example:

Corollaries

Page 37: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Corollaries

Example: For complete graphs,

Page 38: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Experiments

Page 39: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Further results

- Full analysis with proofs

- New primal-dual algorithm

- More experimental results

A. Eriksson, C. Olsson, F. Kahl, T.J. Chin, to appear PAMI 2019

Page 40: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Conclusions

- Strong duality (= zero duality gap) for rotatation averaging providedbounded noise levels

- Practically useful sufficient condition for global optimality

- Analysis also leads to efficient algorithm

Page 41: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Future work

- Robust cost functions, e.g., L1 with IRLS

- Further analysis – when is duality gap zero and for what problems?

Page 42: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Point averaging

Page 43: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

High-quality night-time images

Seasonal changes, urban; Low-quality night-time images

Seasonal changes, (sub)urban

Visual localization

www.visuallocalization.netBenchmark challenge and workshop at CVPR 2019

Page 44: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

Estimating a single rotation

J. Briales and J. Gonzalez-Jimenez, CVPR 2017

Page 45: Chalmers University of Technology...Rotation averaging Ground truth Local minimum-Background-Well established theory on duality for convex optimization-Duality is at the core of many

A. Eriksson, C. Olsson, F. Kahl, T.-J. Chin

Rotation Averaging and Strong Duality, CVPR 2018

something else here