ArticleslgStudy

mathematics

Bundle adjustment

Bundle adjustment is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Bundle adjustment rather than just read about it. In short: In photogrammetry and computer stereo vision, bundle adjustment is simultaneous refining of the 3D coordinates describing the scene geometry, the parameters of the relative motion, and the optical characteristics of the camera(s) employed to acquire the images, given a set of images depicting a number of 3D points from different viewpoints. Its name refers to the geometrical bundles of light rays originating from ea…

Bundle adjustment — main illustration
Bundle adjustment — illustration

Key takeaways

  • Bundle adjustment belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Bundle adjustment to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Bundle adjustment from memory before moving on to harder problems.

Reference excerpt

In photogrammetry and computer stereo vision, bundle adjustment is simultaneous refining of the 3D coordinates describing the scene geometry, the parameters of the relative motion, and the optical characteristics of the camera(s) employed to acquire the images, given a set of images depicting a number of 3D points from different viewpoints. Its name refers to the geometrical bundles of light rays originating from each 3D feature and converging on each camera's optical center, which are adjusted optimally according to an optimality criterion involving the corresponding image projections of all points.

Uses Bundle adjustment is almost always used as the last step of feature-based 3D reconstruction algorithms. It amounts to an optimization problem on the 3D structure and viewing parameters (i.e., camera pose and possibly intrinsic calibration and radial distortion), to obtain a reconstruction which is optimal under certain assumptions regarding the noise pertaining to the observed image features: If the image error is zero-mean Gaussian, then bundle adjustment is the Maximum Likelihood Estimator. Bundle adjustment was originally conceived in the field of photogrammetry during the 1950s and has increasingly been used by computer vision researchers during recent years.

General approach Bundle adjustment boils down to minimizing the reprojection error between the image locations of observed and predicted image points, which is expressed as the sum of squares of a large number of nonlinear, real-valued functions. Thus, the minimization is achieved using nonlinear least-squares algorithms. Of these, Levenberg–Marquardt has proven to be one of the most successful due to its ease of implementation and its use of an effective damping strategy that lends it the ability to converge quickly from a wide range of initial guesses. By iteratively linearizing the function to be minimized in the neighborhood of the current estimate, the Levenberg–Marquardt algorithm involves the solution of linear systems termed the normal equations. When solving the minimization problems arising in the framework of bundle adjustment, the normal equations have a sparse block structure owing to the lack of interaction among parameters for different 3D points and cameras. This can be exploited to gain tremendous computational benefits by employing a sparse variant of the Levenberg–Marquardt algorithm which explicitly takes advantage of the normal equations zeros pattern, avoiding storing and operating on zero-elements.

Mathematical definition Bundle adjustment amounts to jointly refining a set of initial camera and structure parameter estimates for finding the set of parameters that most accurately predicts the locations of the observed points in the set of available images. More formally, assume that n 3D points are seen in m views and let 𝐱ij be the projection of the ith point on image j. Let vij denote the binary variables that equal 1 if point i is visible in image j and 0 otherwise. Assume also that each camera j is parameterized by a vector 𝐚j and each 3D point i by a vector 𝐛i. Bundle adjustment minimizes the total reprojection error with respect to all 3D point and camera parameters, specifically

min𝐚j,𝐛i∑i=1n∑j=1mvijd(𝐐(𝐚j,𝐛i),𝐱ij)2, where 𝐐(𝐚j,𝐛i) is the predicted projection of point i on image j and d(𝐱,𝐲) denotes the Euclidean distance between the image points represented by vectors 𝐱 and 𝐲. Because the minimum is computed over many points and many images, bundle adjustment is by definition tolerant to missing image projections, and if the distance metric is chosen reasonably (e.g., Euclidean distance), bundle adjustment will also minimize a physically meaningful criterion.

See also Adjustment of observations Stereoscopy Levenberg–Marquardt algorithm Sparse matrix Collinearity equation Structure from motion Simultaneous localization and mapping

References

Further reading A. Zisserman. Bundle adjustment. CV Online.

External links

Software

[1]: Apero/MicMac, a free open source photogrammetric software. Cecill-B licence. sba: A Generic Sparse Bundle Adjustment C/C++ Package Based on the Levenberg–Marquardt Algorithm (C, MATLAB). GPL. cvsba Archived 2013-10-24 at the Wayback Machine: An OpenCV wrapper for sba library (C++). GPL. ssba: Simple Sparse Bundle Adjustment package based on the Levenberg–Marquardt Algorithm (C++). LGPL. OpenCV: Computer Vision library in the Images stitching module. BSD license. mcba: Multi-Core Bundle Adjustment (CPU/GPU). GPL3. libdogleg: General-purpose sparse non-linear least squares solver, based on Powell's dogleg method. LGPL. ceres-solver: A Nonlinear Least Squares Minimizer. BSD license. g2o: General Graph Optimization (C++) - framework with solvers for sparse graph-based non-linear error functions. LGPL. DGAP: The program DGAP implement the photogrammetric method of bundle adjustment invented by Helmut Schmid and Duane Brown. GPL. Bundler: A structure-from-motion (SfM) system for unordered image collections (for instance, images from the Internet) by Noah Snavely. GPL. COLMAP: A general-purpose Structure-from-Motion (SfM) and Multi-View Stereo (MVS) pipeline with a graphical and command-line interface. BSD license. Theia: A computer vision library aimed at providing efficient and reliable algorithms for Structure from Motion (SfM). New BSD license. Ames Stereo Pipeline has a tool for bundle adjustment (Apache II licence). 3Dsurvey software includes a bundle adjustment tool.

Illustrations

Bundle adjustment: A sparse matrix obtained when solving a modestly sized bundle adjustment problem. This is the arrowhead sparsity pattern of a 992×992 normal-equation (i.e. approximate Hessian) matrix. Black regions correspond to nonzero blocks.
A sparse matrix obtained when solving a modestly sized bundle adjustment problem. This is the arrowhead sparsity pattern of a 992×992 normal-equation (i.e. approximate Hessian) matrix. Black regions correspond to nonzero blocks.

Worked examples

Example 1 — a first encounter with Bundle adjustment

Start with the simplest possible case. Write down what Bundle adjustment claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Bundle adjustment before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Bundle adjustment ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Bundle adjustment

In research
Bundle adjustment appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Bundle adjustment in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Bundle adjustment is common in secondary-school and first-year university syllabi. It links to neighbouring topics Cartography, Geodesy, Geometry in computer vision, so understanding it makes those chapters shorter.
In everyday life
Look for Bundle adjustment outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Bundle adjustment” →

How to study Bundle adjustment in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Bundle adjustment means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Bundle adjustment out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Bundle adjustment in simple terms?

In photogrammetry and computer stereo vision, bundle adjustment is simultaneous refining of the 3D coordinates describing the scene geometry, the parameters of the relative motion, and the optical characteristics of the camera(s) employed to acquire the images, given a set of images depicting a num…

Why does Bundle adjustment matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Bundle adjustment?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Bundle adjustment.

Tags

  • Cartography
  • Geodesy
  • Geometry in computer vision
  • Photogrammetry
  • Surveying

Keep exploring