Conceptadvanced
Scale drift
Also called monocular scale ambiguity.
A single camera fixes motion only up to scale, and the scale estimate wanders over a long trajectory unless loop closure, stereo or inertia fixes it.
In plain words
One camera cannot measure size. A photo of a toy car close by can look the same as a photo of a real car far away. So a single moving camera can find the shape of its path, but not how long it is: a path of 1 meter and a path of 10 meters can give the same pictures. A method picks a scale at the start. Later frames get their scale from points seen before, and each time a little error enters. Over a long path these small errors multiply, and the scale wanders. The far end of the path can be too small or too large, even if every single step looks right.
The idea
The ambiguity (a theorem). Let a scene with points be seen by calibrated cameras with poses , so . For any , the scene with poses gives the same normalized image points, because and the projection divides by depth. So images alone determine the scene and the path only up to a similarity: a rotation, a translation and a scale, 7 degrees of freedom in all. Fixing the first pose removes 6; the scale is left (see gauge freedom). A monocular method fixes it by a choice, for example by setting the length of the first translation to 1 or by giving the depths of the first points.
How the scale is passed on. After the start, visual odometry passes the scale from frame to frame through the 3D points it shares. A new relative motion from two images has an unknown length; it is scaled so that the points triangulated from it agree with the points already in the map, or the new pose is found with perspective-n-point against those points. Either way, the new scale is only as good as the depths of the shared points. If those depths are all 2 percent too large, the new part of the path is 2 percent too large.
Why it drifts (a theorem for a simple model). Let the scale factor passed on at step be with small independent errors of mean 0 and variance . Then the scale after steps is , and is a random walk with standard deviation about . The error is multiplicative and has no restoring force, so nothing brings the scale back. Real errors are not independent: few points, short baselines and points far away give larger , and the errors of neighboring steps are correlated. The random walk is a model, not a measurement.
Why the scale is weaker than the rest. The rotation is measured in each image pair from the directions of the rays, so its error stays small for each step. The scale has no direct measurement at all: it comes only from the chain of shared points. Points far away give little depth information, so a camera that moves through open space with far points has worse scale drift than one in a room.
What fixes it.
- Another sensor. A stereo pair has a known baseline, and an inertial sensor measures acceleration in meters per second squared. Both make the scale observable, and the drift of the scale then stays bounded in the same way as the other errors.
- Loop closure with a similarity. When the camera comes back to a known place, the loop constraint gives the scale error around the loop. A pose graph whose edges are similarity transformations (rotation, translation and scale) can spread the correction along the loop. Strasdat, Montiel and Davison showed that a pose graph with only rigid edges cannot correct the scale drift, and that edges with 7 degrees of freedom can. See loop closure detection and pose graph optimization.
- Windowed optimization. Bundle adjustment over a window of keyframes uses all shared points at once, so the scale of the window rests on more points than one pair. This reduces the size of each ; it does not stop the drift.
- Known sizes. A known object size, the known height of the camera over a flat ground, or a known speed fixes the scale where it is seen.
Examples
Same images, different scale. A camera at the origin and a camera at , both with , see the point at the normalized points and . A camera at the origin and a camera at see the point at and . The images are the same, so no method can choose between the two.
A chain of scale errors. A path has 10 legs of true length 1. The first leg is given the length 1. Each later leg gets its scale from points of the leg before, with depths that are 2 percent too large. Then leg has length , and the last leg has length . The total length is instead of 10. If the errors alternate between and percent, the scale stays between and : the drift depends on how the errors add up, not on their size alone.
A random walk of the scale. With independent errors of 1 percent per step (), after 100 steps the standard deviation of is about . A scale that is off by a factor is a typical result, and factors of are not rare. After 10000 steps, the typical factor is .
Where it is used
- Monocular visual odometry and SLAM. Nister visual odometry, direct sparse odometry and semi-direct visual odometry all fix the scale at the start and carry it along, so they all have scale drift. Their windowed optimizations reduce it.
- Loop closing in monocular SLAM. ORB-SLAM computes a similarity transformation at each loop closure and corrects the path with a pose graph, following the idea of Strasdat, Montiel and Davison.
- Evaluation. Monocular methods are compared with the ground truth after an alignment by a similarity, which removes the global scale but not the drift within the path.
- Sensor design. The size of the scale drift of a monocular system is one reason to add a stereo camera or an inertial sensor.
References
- Hauke Strasdat, J. M. M. Montiel and Andrew J. Davison, Scale drift-aware large scale monocular SLAM, Robotics: Science and Systems (RSS), 2010, the analysis of scale drift in monocular SLAM and the pose graph optimization over similarity transformations (7 degrees of freedom) that corrects it at loop closures
- Davide Scaramuzza and Friedrich Fraundorfer, Visual odometry, Part I: the first 30 years and fundamentals, IEEE Robotics and Automation Magazine 18(4), 2011, 80-92, the monocular case, where the relative scale of each new motion must be computed from triangulated points
- Raul Mur-Artal, J. M. M. Montiel and Juan D. Tardos, ORB-SLAM: a versatile and accurate monocular SLAM system, IEEE Transactions on Robotics 31(5), 2015, 1147-1163, the loop closing, which computes a similarity transformation and corrects the scale drift in a pose graph
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 | W0 stub |
|
Tag V2XG7H Edit this page History Report an error Markdown