Sse2 18 Fe Direct
Sse2 18 Fe Direct
Cyrill Stachniss
Topics of Today
Compute the
§ Fundamental matrix
given corresponding points Computing the
§ Essential matrix Fundamental Matrix
given corresponding points Given Corresponding Points
§ Rotation matrix and basis
given an essential matrix
3 4
Fundamental Matrix Fundamental Matrix
§ The fundamental matrix is The fundamental matrix can directly
be computed if we know the
§ calibration matrices
§ viewing direction of the cameras
§ It encodes the relative orientation
§ baseline
for two uncalibrated cameras
§ or the projection matrices
§ Coplanarity constraint through
7 8
Fundamental Matrix What is the Issue here?
From Corresponding Points
§ In standard least squares problems,
§ For each point, we have the we have a vector of unknowns
coplanarity constraint § Here, the matrix elements of F are
the unknowns
§ or
Question:
How to turn the unknown matrix
elements into a vector of unknowns?
unknowns! 9 10
11 12
Linear Dependency Linear Dependency
§ Linear function in the unknowns § Linear function in the unknowns
13 14
How Many Points Are Needed? How Many Points Are Needed?
§ The vector has 9 dimensions § The vector has 9 dimensions
19 20
More Than 8 Points… Singular Vector
§ In reality: noisy measurements § Use the singular vector of A that
§ With more than 8 points, the matrix A corresponds to the smallest singular
will become regular (but should not!) value is the solution
§ Use the singular vector of A that
corresponds to the smallest singular
value is the solution
=
21 22
with
and
25 26
27 28
Well-Conditioned Problem Conditioning/Normalization
to Obtain a Well-Conditioned
§ Example image 12MPixel camera
Problem
4000
§ Normalization of the point coordinates
substantially improves the stability
3000
29 30
cam1
cam2
33 34
solve Ae=0
Which constraints to consider? 39 More details: Förstner, Skript Photogrammetrie II, Sect 1.2.3 40
8-Point Algorithm for the Conditioning/Normalization
Essential Matrix to Obtain a Well-Conditioned
Problem (As Done Before)
§ As for the 8-Point algorithm for the
fundamental matrix, normalization of
build matrix A
the point coordinates is essential
solve Ae=0 § Transform the points so that the
build matrix Ea
center of mass of all points is at (0,0)
§ Scale the image so that the x and y
compute SVD of Ea
coordinated are within [-1,1]
build matrix E from Ea
by imposing constraints
41 42
43 44
5-Point Algorithm
§ Proposed by Nistér in 2003/2004
§ Standard solution today to obtaining
the direct solution
§ Solving a polynomial of degree 10
5-Point Algorithm § 10 possible solutions
§ Often used together RANSAC
§ RANSAC proposes correspondences
§ Evaluate all 5-point solutions based on
the other corresponding points
45 46
5-Point Algorithm
§ More details in the script by Förstner
“Photogrammetrie II”, Ch 1.2
§ Stewenius, Engels, Nistér: “Recent Computing the
Developments on Direct Relative Orientation Parameters
Orientation”, ISPRS 2006
Given the Essential Matrix
§ Li and Hartley: “Five-Point Motion
Estimation Made Easy”
47 48
Compute Basis and Rotation The Solution We Want…
Given E
§ In short:
49 50
51 52
Multiple Solutions from Math… Multiple Solutions from Math…
53 54
57 58
rotation
matrices
§ Define
skew-sym. mat rotation mat
§ So that
59 60
Solution by Hartley & Zisserman Solution by Hartley & Zisserman
61 62
4 solutions
63 64
Solution by Hartley & Zisserman Summary (1)
§ Compute the SVD of E: § Algorithms to compute the relative
§ Normalize by orientation from image data
§ Compute the four solutions § Allow us to estimate the camera
motion (except of the scale)
§ Direct solutions
§ Test for which solutions all points are § F from N>7 points (“8-Point Algorithm”)
in front of both cameras § E from N>7 points (“8-Point Algorithm”)
§ Return the physically plausible § E from N=5 points (“Nister’s 5-Point
configuration Algorithm”)
65 66