Algorithm Search⌘K

Structure from motion and visual odometry

Problems

  • Bundle adjustment

    Refine all camera parameters and 3D points together to minimize the total reprojection error, a large sparse nonlinear least squares problem.

    core
  • Nonlinear least squares

    Minimize a sum of squared nonlinear residuals of the parameters, the form of bundle adjustment, calibration and most refinement steps in vision.

    core
  • Structure from motion

    Recover the 3D points of a scene and the poses of the cameras that saw them from feature matches across a set of images.

    core
  • Visual odometry

    Estimate the motion of a camera over time from the images it takes, frame by frame and without building a global map.

    core
  • Rotation averaging

    Find absolute rotations of many cameras that best agree with measured relative rotations on the edges of a view graph.

    advanced
  • Translation averaging

    Find camera positions from known rotations and measured pairwise translation directions, which fix them only up to a global scale and offset.

    advanced

Algorithms

  • Gauss-Newton algorithm

    Minimize a sum of squares by linearizing the residuals at each step and solving the normal equations J^T J dx = -J^T r for the update.

    Θ(m n^2 + n^3) per_iteration1 languagescore
  • Incremental structure from motion

    Start from a good image pair, then add one image at a time by PnP, triangulate its new points and bundle adjust, rejecting outliers as it goes.

    O(N^2 m + N^4) total1 languagescore
  • Levenberg-Marquardt algorithm

    Gauss-Newton with a damping term added to J^T J, raised when a step fails and lowered when it succeeds, moving between Gauss-Newton and gradient descent.

    Θ(m n^2 + n^3) per_iteration1 languagescore
  • Tomasi-Kanade factorization

    Recover affine cameras and points from tracks in all views by a rank-3 SVD of the centered measurement matrix, followed by a metric upgrade.

    O(N n min(N, n)) total1 languagescore
  • Global structure from motion

    Solve for all camera rotations at once by rotation averaging, then all positions by translation averaging, then triangulate and bundle adjust once.

    O(N m + N^3) total1 languagesadvanced
  • Lie-algebraic rotation averaging

    Average rotations by repeated linear least squares on their logarithms in the Lie algebra so(3). Robust versions start from an L1 solution and then run IRLS with a robust cost.

    O(k (E + N^3)) total1 languagesadvanced
  • Nister visual odometry

    Match corners between frames, find each new camera pose with a five-point or three-point solver inside preemptive RANSAC, and triangulate, for a single camera or a stereo rig.

    O(N (M B + M log M + k n + f n)) worst · average1 languagesadvanced
  • Powell's dog leg method

    A trust region method for least squares whose step follows the path from the steepest descent point to the Gauss-Newton point, cut at the region boundary.

    Θ(m n^2 + n^3) per_iteration1 languagesadvanced
  • Sparse bundle adjustment

    Levenberg-Marquardt for bundle adjustment that eliminates the points by the reduced camera system, so a step costs O(N^3) in the N cameras and only linear time in the points.

    O(m + n N^2 + N^3) per_iteration1 languagesadvanced
  • Sturm-Triggs projective factorization

    Rescale the measurement matrix by projective depths from fundamental matrices so that it has rank 4, and factor it into projective cameras and points.

    O(N n min(N, n)) total1 languagesadvanced
  • Bundle adjustment in the large

    Solve the reduced camera system of very large bundle adjustments approximately by conjugate gradients with block Jacobi or Schur preconditioners.

    O(k (m + N)) per_iteration1 languagesresearch
  • Direct sparse odometry

    Track a camera by minimizing the photometric error of sparse high-gradient pixels, and optimize poses, inverse depths and affine brightness jointly over a window of keyframes.

    O(N (L k m + c s + k n W^2 + k W^3)) worst · average1 languagesresearch
  • Semi-direct visual odometry

    Track a camera by direct alignment of small patches around sparse map points, then refine the 2D features, the pose and the points by reprojection error.

    O(N (L k m + k m W + c (s + k) + P)) worst · average1 languagesresearch

Data structures

  • View graph

    A graph with one vertex per image and an edge for each verified pair, labeled by the relative pose, that global and incremental SfM work on.

    O(1) add_edge · cycle_error1 languagesadvanced

Techniques

  • Keyframe selection

    Keep only some frames, chosen when the view has changed enough, as the frames that carry the map and take part in optimization.

    core
  • Reduced camera system

    Eliminate the point blocks of the bundle adjustment normal equations by a Schur complement, leaving a smaller system in the camera parameters only.

    core
  • Direct image alignment

    Estimate camera motion by minimizing photometric error over raw pixel intensities rather than reprojection error of matched features.

    advanced
  • Sliding window bundle adjustment

    Optimize only the latest keyframes and the points they see, holding older ones fixed or marginalized, to keep visual odometry accurate at bounded cost.

    advanced

Concepts

  • Gauge freedom

    The directions in which a reconstruction can move, such as a global similarity, without changing the cost, which make the normal equations singular until fixed.

    advanced
  • Scale drift

    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.

    advanced

Definitions

  • Feature track

    The set of image features in several views that show one scene point, built by joining pairwise matches, often with union-find.

    1 languagescore
  • Photometric error

    The difference in intensity between a pixel and its warp into another image under an estimated pose and depth, the cost of direct methods.

    advanced