+ All Categories
Home > Documents > Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance...

Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance...

Date post: 06-Oct-2020
Category:
Upload: others
View: 0 times
Download: 0 times
Share this document with a friend
43
Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvi ´ c, Gerald Schweighofer and Axel Pinz Vision-based Measurement Group, Institute of Electrical Measurement and Measurement Signal Processing, Graz University of Technology Relative pose PE: (1) 1/19
Transcript
Page 1: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

Performance evaluation

of the five-point relative pose

with emphasis on planar scenes

Siniša Šegvic, Gerald Schweighofer and Axel Pinz

Vision-based Measurement Group,

Institute of Electrical Measurement and Measurement Signal Processing,

Graz University of Technology

Relative pose PE: (1) 1/19

Page 2: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

Relative pose (relative orientation): the mutual position of thetwo cameras imaging a common scene

2 3D rotation + translation up to scale (5 DOF)

2 absolute scale can not be recovered by monocular vision

Relative pose PE: intro(1) 2/19

Page 3: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

Relative pose (relative orientation): the mutual position of thetwo cameras imaging a common scene

2 3D rotation + translation up to scale (5 DOF)

2 absolute scale can not be recovered by monocular vision

2 important building block in structure and motion estimation

Relative pose PE: intro(1) 2/19

Page 4: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

Relative pose (relative orientation): the mutual position of thetwo cameras imaging a common scene

2 3D rotation + translation up to scale (5 DOF)

2 absolute scale can not be recovered by monocular vision

2 important building block in structure and motion estimation

Applications:

2 autonomous navigation and/or mapping

2 offline and online 3D modelling

2 augmented reality

2 compression

2 automated inspectionRelative pose PE: intro(1) 2/19

Page 5: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

We address performance evaluation of the novel 5pt algorithm

2 5pt algorithm performance on planar scenes

2 comparison with homography (planar, near-planar)

2 comparison with conditioned 8pt algorithms (near-planar)

Relative pose PE: intro(2) 3/19

Page 6: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

We address performance evaluation of the novel 5pt algorithm

2 5pt algorithm performance on planar scenes

2 comparison with homography (planar, near-planar)

2 comparison with conditioned 8pt algorithms (near-planar)

Contents:

2 The problem description

2 The three considered algorithms

2 Experimental setup

2 Results

2 Conclusion

Relative pose PE: intro(2) 3/19

Page 7: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

The relative pose is recovered from image correspondences:

2 many correspondence approaches, all seek a compromisebetween genuine matches and outliers

2 the main approaches: wide-baseline matching, tracking

2 the subpixel matching accuracy essential

Relative pose PE: problem(1) 4/19

Page 8: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

The relative pose is recovered from image correspondences:

2 many correspondence approaches, all seek a compromisebetween genuine matches and outliers

2 the main approaches: wide-baseline matching, tracking

2 the subpixel matching accuracy essential

Relative pose PE: problem(1) 4/19

Page 9: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

The relative pose is recovered from image correspondences:

2 many correspondence approaches, all seek a compromisebetween genuine matches and outliers

2 the main approaches: wide-baseline matching, tracking

2 the subpixel matching accuracy essential

Relative pose PE: problem(1) 4/19

Page 10: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

Three main contexts:

2 minimal case, with exact solutions (RANSAC loop)

2 overconstrained case: optimizing an algebraic criterion(closed-form re-estimation on the set of inliers)

2 iterative refinement: optimizing a nonlinear criterion(robust ML solution, may imply recovering structure as well)

Relative pose PE: problem(2) 5/19

Page 11: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

Three main contexts:

2 [CF] minimal case, with exact solutions (RANSAC loop)

2 [CF] overconstrained case: optimizing an algebraic criterion(closed-form re-estimation on the set of inliers)

2 iterative refinement: optimizing a nonlinear criterion(robust ML solution, may imply recovering structure as well)

Relative pose PE: problem(2) 5/19

Page 12: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

Three main contexts:

2 [CF] minimal case, with exact solutions (RANSAC loop)

2 [CF] overconstrained case: optimizing an algebraic criterion(closed-form re-estimation on the set of inliers)

2 iterative refinement: optimizing a nonlinear criterion(robust ML solution, may imply recovering structure as well)

What can be recovered in closed-form from two views?

2 the essential matrix† (epipolar geometry)q⊤

iB· E · qiA = 0 (E = [t]

×R, decomposition unique)

2 the homography matrix‡ (geometry of a planar scene)H · qiA ∼ qiB (H ∼ R + 1

dT · n⊤, decomposition not unique)

2 the affine epipolar geometry, affine homography(not considered here) Relative pose PE: problem(2) 5/19

Page 13: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

The eight point (8pt) algorithm:

2 recovers the essential matrix as a solution to thehomogeneous linear system An×9 · e = 0

2 requires at least 8 correspondences in general position

2 badly conditioned by default (forward bias), can be improvedin the overconstrained case

2 does not work with planes: “wrong” matrices satisfy theepipolar constraint.

Relative pose PE: algorithms(1) 6/19

Page 14: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

The five point algorithm:

2 epipolar geometry + the “calibrated” constraint:2 · EETE − trace(EET )E = 0

2 operates on matrices Ei obtained as the lowest fournull-vectors of An×9

2 the linear combination E = a · E6 + b · E7 + c · E8 + d · E9

plugged into the calibrated constraint2 the resulting cubic system solved for a, b, c, d

2 up to ten solutions (needs disambiguation)

Relative pose PE: algorithms(2) 7/19

Page 15: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

The five point algorithm:

2 epipolar geometry + the “calibrated” constraint:2 · EETE − trace(EET )E = 0

2 operates on matrices Ei obtained as the lowest fournull-vectors of An×9

2 the linear combination E = a · E6 + b · E7 + c · E8 + d · E9

plugged into the calibrated constraint2 the resulting cubic system solved for a, b, c, d

2 up to ten solutions (needs disambiguation)

2 can operate with only five correspondences

2 very good results in minimal cases (5 + 1 points)

2 can operate on planar scenes(but not with the plane at inifinity!)

Relative pose PE: algorithms(2) 7/19

Page 16: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

The linear recovery of the homography:

2 requires 4 or more correpondences, well conditioned

8/19

Page 17: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

The linear recovery of the homography:

2 requires 4 or more correpondences, well conditioned

The issue of planar ambiguity:

2 each homography gives rise to 8 motion hypoheses

2 the visibility constraint eliminates 6 or 7 of the 8

2 the ambiguity arises when all imaged points are closer toone of the two cameras!

8/19

Page 18: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

The linear recovery of the homography:

2 requires 4 or more correpondences, well conditioned

The issue of planar ambiguity:

2 each homography gives rise to 8 motion hypoheses

2 the visibility constraint eliminates 6 or 7 of the 8

2 the ambiguity arises when all imaged points are closer toone of the two cameras!

8/19

Page 19: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

The linear recovery of the homography:

2 requires 4 or more correpondences, well conditioned

The issue of planar ambiguity:

2 each homography gives rise to 8 motion hypoheses

2 the visibility constraint eliminates 6 or 7 of the 8

2 the ambiguity arises when all imaged points are closer toone of the two cameras!

8/19

Page 20: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

The linear recovery of the homography:

2 requires 4 or more correpondences, well conditioned

The issue of planar ambiguity:

2 each homography gives rise to 8 motion hypoheses

2 the visibility constraint eliminates 6 or 7 of the 8

2 the ambiguity arises when all imaged points are closer toone of the two cameras!

8/19

Page 21: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

θ=00◦:

Relative pose PE: algorithms(4) 9/19

Page 22: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

θ=10◦:

Relative pose PE: algorithms(4) 9/19

Page 23: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

θ=20◦:

Relative pose PE: algorithms(4) 9/19

Page 24: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

θ=30◦:

Relative pose PE: algorithms(4) 9/19

Page 25: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

θ=40◦:

Relative pose PE: algorithms(4) 9/19

Page 26: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

θ=50◦:

Relative pose PE: algorithms(4) 9/19

Page 27: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

θ=60◦:

Relative pose PE: algorithms(4) 9/19

Page 28: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

θ=70◦:

Relative pose PE: algorithms(4) 9/19

Page 29: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

θ=80◦:

Relative pose PE: algorithms(4) 9/19

Page 30: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

θ=90◦:

Relative pose PE: algorithms(4) 9/19

Page 31: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

Improving the numeric conditioning of the 8pt algorithm:

2 the standard 8pt algorithm:min |A · e| , subject to |e| = 1

2 in the overconstrained case, the choice of WL and WR

below dramatically affects the solution:WL · A · WR · e′ = 0 , where e′ = WR

−1 · e

Relative pose PE: algorithms(5) 10/19

Page 32: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

Improving the numeric conditioning of the 8pt algorithm:

2 the standard 8pt algorithm:min |A · e| , subject to |e| = 1

2 in the overconstrained case, the choice of WL and WR

below dramatically affects the solution:WL · A · WR · e′ = 0 , where e′ = WR

−1 · e

2 how to choose WL and WR (equilibrate the system)?→ Mühlich provides a convincing recipe for WR

Relative pose PE: algorithms(5) 10/19

Page 33: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

Improving the numeric conditioning of the 8pt algorithm:

2 the standard 8pt algorithm:min |A · e| , subject to |e| = 1

2 in the overconstrained case, the choice of WL and WR

below dramatically affects the solution:WL · A · WR · e′ = 0 , where e′ = WR

−1 · e

2 how to choose WL and WR (equilibrate the system)?→ Mühlich provides a convincing recipe for WR

2 Hartley’s normalization recovers E′ = T2−⊤ET1

−1 relatingthe transformed points q′

ik = Tkqik, k = A, B

2 normalization is a proper subset of right equilibration.

Relative pose PE: algorithms(5) 10/19

Page 34: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

The artificial experimental setup:

2 planar motion along a unit circle:1 DOF rotation (φ) + 1 DOF translation (θ)around the common y axis

2 the target point cloud instantiated between two planes(distance, depth, slant)

2 i.i.d. Gaussian noise σ expressed in pixels of a 384×288image

Relative pose PE: setup(1) 11/19

Page 35: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

(−5◦,90◦,10,5,0◦) (−23◦,60◦,2,1,0◦) (23◦,−60◦,2,1,−30◦)

(φ,θ, distance, depth, slant)Relative pose PE: setup(2) 12/19

Page 36: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

Experimental design:

2 we look at the distribution of the angular error in therecovered epipole, ∆t := ∡(t, t), for n=10000

2 q1{∆t} (minimal), med{∆t} (overconstrained)

2 the experiments were performed in2 Matlab (prototype, 3D figures)2 C++ with a little help from Python (production)

2 used 5pt implementations by the original authors (Matlab)and from the library VW34 from Oxford (C++)

Relative pose PE: setup(3) 13/19

Page 37: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

The 5pt(6) algorithm and the planar scenes:

2 frequency distributions of t (top), and ∆t (bottom)

2 the unlabeled arrow denotes t

2 in the presence of ambiguity, both solutions are recovered(preference may be present!)

0 20 40 60 80 100 120 140 160 1800

200

400

600

800

1000

1200

0 20 40 60 80 100 120 140 160 1800

100

200

300

400

500

600

0 20 40 60 80 100 120 140 160 1800

50

100

150

200

250

300

350

400

0 20 40 60 80 100 120 140 160 1800

50

100

150

200

250

300

0 20 40 60 80 100 120 140 160 1800

50

100

150

200

250

300

350

0 20 40 60 80 100 120 140 160 1800

50

100

150

200

250

300

350

400

450

500

Left: depth=0, σ=(0.05,0.1,0.2); Right: depth=(1,2,5), σ=0.2θ=150◦, slant=10◦

Relative pose PE: results(1) 14/19

Page 38: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

5pt algorithm vs. homography (5pt vs. hg) for planar scenes:

2 minimal (left), and overconstrained cases (right)

2 makes sense to compare: 5pt(6) vs hg(6)(and 5pt-ideal(5) vs hg-ideal(5))

2 the homography is better in minimal cases, and even morebetter in the overconstrained cases

15/19

Page 39: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

5pt vs. 8pt for 3D scenes (depth=5):

2 minimal (left), and overconstrained cases (right)

2 5pt(6) beats 8pt(8) (with less information!)

2 in the default overconstrained case 8pt-muehlich is better(this depends on sample size, depth, distance, σ, αH)

16/19

Page 40: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

5pt vs. 8pt vs. hg for near-planar scenes:

2 log-ratio of {q1,med} against the depth, θ=0◦, 45◦, 90◦

2 hg and 5pt level-off between depth=2 and depth=4

2 in the overconstrained cases, 5pt is never the best option

θ=0◦ θ=45◦17/19

Page 41: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

5pt vs. 8pt vs. hg for near-planar scenes (cont.):

2 log-ratio of the accuracy against the depth

θ=90◦

Relative pose PE: results(5) 18/19

Page 42: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

The addressed issues:

2 “planar degradation” of the 5pt algorithm

2 comparison 5pt vs hg (planar, near-planar scenes)

2 comparison 5pt vs conditioned 8pt (near-planar, 3D scenes)

Relative pose PE: conclusion(1) 19/19

Page 43: Performance evaluation of the planar relative posessegvic/pubs/oagm07slides.pdf · Performance evaluation of the five-point relative pose with emphasis on planar scenes Siniša Šegvic,

The addressed issues:

2 “planar degradation” of the 5pt algorithm

2 comparison 5pt vs hg (planar, near-planar scenes)

2 comparison 5pt vs conditioned 8pt (near-planar, 3D scenes)

Conclusions:

2 5pt is usually not a method of choice in the overconstrainedcases (planar and 3D)

2 5pt is the best option in minimal 3D cases

2 5pt is a viable option in a minimal planar case,but hg scores better

2 Model selection required for best results

Relative pose PE: conclusion(1) 19/19


Recommended