Problemadvanced
Translation averaging
Also called camera location estimation from directions.
Find camera positions from known rotations and measured pairwise translation directions, which fix them only up to a global scale and offset.
Translation averaging is the problem of finding the positions of cameras when their rotations are known and, for some pairs of cameras, the direction from one camera center to the other has been measured. The pairs are the edges of a view graph. The direction of an edge comes from the relative translation of the pair, which two-view geometry gives only up to scale, rotated into the world frame with the result of rotation averaging. Directions say nothing about distances, so the positions are fixed at best up to one common shift and one common positive scale, and only if the graph is parallel rigid, a condition on the graph similar to generic rigidity. It is the second step of global structure from motion, and usually the weakest one: directions are noisy for pairs with a short baseline, wrong pairs give wrong directions, and some natural cost functions collapse the cameras into clusters.
In plain words
You know which way every camera points, and for pairs of cameras you know in which direction one stands as seen from the other, but not how far away it is. Translation averaging finds where all the cameras stand. Picture a map with pins and, for some pairs of pins, an arrow that shows the direction from one pin to the other. You must place the pins so that the arrows fit. You can never learn the size of the map, or where it sits, from directions alone. If the pins are linked only in a chain, each link can still stretch or shrink, so you need loops of arrows, enough of them, to fix the shape. Some arrows are wrong, so a good method must not let them pull the whole map apart.
Definition
Input. A connected graph with , the camera rotations , and for each edge a relative translation , known up to a positive scale, with the convention .
Directions. With and the center , the exact relative translation is . So the unit direction of the edge in the world frame is
Output. Centers such that points along as well as possible, with the gauge fixed, for example by and . Common costs are:
- the linear cost , the squared distance of from the line of ;
- the chordal cost , which compares unit vectors;
- the least unsquared deviations (LUD) cost over the centers and scales .
Gauge. If is a solution, so is for any shift and scale , because has the same direction. The scale reverses every direction, so the sign of the directions fixes the mirror, but the linear cost does not see the sign.
Variants
- With points. The tracks can enter the problem: with known rotations, each observation gives the constraint , linear in points and translations. This uses all the data, not only one direction per pair, and handles collinear camera motion.
- With triplets. Jiang, Cui and Tan (2013) use triplets of cameras whose relative scales are fixed by the local geometry of the triangle, which gives linear equations that do not let the solution collapse.
- Robust variants. A fraction of the directions are outliers. The robust costs are LUD, the ShapeFit formulation, and losses that downweight long baselines or large residuals.
- Known scales. When the distances of the edges are known, as in SLAM with odometry or a stereo rig, the problem becomes linear least squares in the centers, the translation part of pose graph optimization.
Examples
- A triangle. Three cameras not on one line, with the three directions of the triangle: the triangle is fixed up to shift and scale, because its angles are fixed by the directions. This is the smallest parallel rigid graph.
- A chain is not enough. For 4 cameras on the path , each of the 3 edges can change its length independently, so the centers have a 3-parameter family of solutions, one of which is the global scale. With , the matrix of the linear cost has 3 zero eigenvalues. Closing the path into the cycle leaves a single zero eigenvalue, the scale, so the generic 4-cycle is parallel rigid in 3D. The reference code of global structure from motion checks both counts.
- Exact directions on 6 cameras. With 10 exact directions on 6 cameras in general position, the smallest eigenvector of the linear cost gives the true centers to after the gauge is fixed (a benchmark result of the same test).
- Collinear cameras. A camera that moves forward along a straight line gives the same direction for every pair. The relative distances along the line cannot be found from the directions at all, so a video of forward motion needs the points or known scales.
Known algorithms
- Linear least squares. Minimize the linear cost under the gauge constraint. The answer is the eigenvector of the smallest eigenvalue of a sparse matrix, a block Laplacian with the blocks (Govindu 2001; Brand, Antone and Teller 2004). It is fast, but it favors short baselines: pairs that are far apart cost more for the same angle error, so the minimum tends to pull cameras together into clusters (a known weakness, shown in many experiments).
- 1DSfM. Wilson and Snavely (2014) project all directions onto many random one-dimensional axes, solve an ordering problem on each to find edges that disagree, remove these outliers and then minimize the chordal cost by nonlinear least squares.
- LUD. Özyeşil and Singer (2015) minimize the least unsquared deviations cost, a convex problem, by iteratively reweighted least squares. The constraint prevents the collapse to a point.
- ShapeFit and its relatives. Goldstein, Hand and coauthors minimize the sum of the unsquared distances to the lines under one linear normalization, a convex program with exact recovery guarantees under random corruption models.
- Global linear method. Jiang, Cui and Tan (2013) solve one sparse linear system built from camera triplets.
Bounds
- Parallel rigidity (theorem). Exact directions determine the centers up to shift and scale if and only if the framework is parallel rigid. For centers in general position this depends only on the graph. In 3D each edge gives 2 independent constraints, and there are unknowns after the gauge, so is necessary (a counting argument). A random choice of directions and a rank test of the linear cost matrix decide generic parallel rigidity with probability 1.
- The counting condition is not sufficient. As for Laman's theorem in rigidity theory, the edges must also be spread out: a dense part of the graph cannot make up for a part that is only a chain, because the extra edges of the dense part are redundant.
- Exact recovery under corruption. Under random models of corrupted directions, convex methods such as ShapeFit and LUD recover the exact locations with high probability when the fraction of outliers is below a constant (theorems of their authors, under the stated models).
- Cost. The linear method costs one sparse eigenvector computation of size . LUD costs a sequence of sparse weighted least squares problems.
Reductions
- From global SfM. Global SfM reduces to rotation averaging, then translation averaging, then triangulation with fixed cameras.
- To an eigenvalue problem. With the linear cost and the constraint , the problem is the smallest eigenvalue problem of a symmetric positive semidefinite matrix (theorem).
- To rigidity theory. Parallel rigidity is the bearing version of the distance rigidity of frameworks, and the matrix of the linear cost plays the role of the rigidity matrix.
- To sensor network localization. Locating sensors from measured bearings is the same problem.
Applications
- The location step of global SfM systems, after rotation averaging.
- Camera network calibration and sensor network localization from bearings.
- Merging partial reconstructions whose relative directions are known.
References
- Onur Özyeşil and Amit Singer, Robust camera location estimation by convex programming, IEEE Conference on Computer Vision and Pattern Recognition (CVPR 2015), 2674-2683, the whole paper (parallel rigidity, the least unsquared deviations formulation and its solution)
- Kyle Wilson and Noah Snavely, Robust global translations with 1DSfM, Computer Vision ECCV 2014, Lecture Notes in Computer Science, Springer, 2014, 61-75, the whole paper (the outlier filter by one-dimensional projections and the chordal cost on the directions)
- Nianjuan Jiang, Zhaopeng Cui and Ping Tan, A global linear method for camera pose registration, IEEE International Conference on Computer Vision (ICCV 2013), 481-488, the linear constraints on the camera positions from triplets of cameras
- Venu Madhav Govindu, Combining two-view constraints for motion estimation, IEEE Conference on Computer Vision and Pattern Recognition (CVPR 2001), vol. 2, 218-225, the linear estimation of the translations from the pairwise directions
- Onur Özyeşil, Vladislav Voroninski, Ronen Basri and Amit Singer, A survey of structure from motion, Acta Numerica 26, 2017, 305-364, the section on location estimation (the formulations, parallel rigidity and the robust methods)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag B6KXJE Edit this page History Report an error Markdown