Quiz: structure from motion and bundle adjustment

Short questions to test your understanding. Try each on paper first, then open the answer.


Q1. Put the steps of incremental structure from motion in order: bundle adjust; triangulate new points; match all pairs; resect a new camera; estimate E for an initial pair.

A new camera’s pose is found from points that are already reconstructed.

Match all pairs → estimate E for an initial pair (and triangulate its points) → resect a new camera → triangulate new points → bundle adjust → back to resecting the next camera.


Q2. What does bundle adjustment minimise, and over which unknowns?

Unit 1 minimised the same kind of error for a calibration.

The total (squared, or robust) reprojection error: the pixel distances between all observed image points and the projections of the estimated 3D points by the estimated cameras. Unknowns: every camera’s pose (and possibly intrinsics and distortion) and every 3D point.


Q3. Gauss–Newton diverges from a poor starting guess, Levenberg–Marquardt does not. Why?

What does a large damping \mu do to the step?

Gauss–Newton trusts the linearisation fully and takes its full step, which can be far off when the residuals are strongly nonlinear. Levenberg–Marquardt rejects steps that increase the error and then increases \mu, which shortens the step and turns it towards the downhill gradient direction; as it gets close, \mu shrinks and it becomes Gauss–Newton.


Q4. Why must the gauge be fixed, and what is the minimum you have to fix in 3D?

Which transformations of the whole reconstruction leave every image unchanged?

Translating, rotating or scaling the whole reconstruction (cameras and points together) changes no image: 7 directions with exactly the same error. The solution is not unique and the normal equations are singular. Fix 7 numbers: e.g. the first camera’s pose (6) and one distance or coordinate of a second camera (1); a known length also gives the true scale.


Q5. Why is bundle adjustment with 1000 cameras and a million points feasible at all?

How many unknowns does one residual depend on?

Each residual depends on one camera and one point, so the Jacobian is extremely sparse and J^\top J has an arrowhead pattern with a block-diagonal point part. Eliminating the points (each a 3 \times 3 block, solved on its own) leaves a system of size 6 \times 1000 for the cameras (the Schur complement), which is manageable.


Q6. A few wrong matches remain after RANSAC. What happens with the squared loss, and what does a Huber loss change?

Compare how hard a 20 px residual pulls under each loss.

With the squared loss the pull of a residual grows with its size, so a 20 px outlier pulls 100× harder than a 0.2 px inlier, and the solver distorts cameras and points to reduce it. The Huber loss caps the pull for residuals beyond \delta: the outlier keeps a large residual (and becomes recognisable), the inliers determine the solution.


Q7. A camera moves along a long corridor and the reconstruction slowly bends. What is happening, and what fixes it?

Each new pose is computed from the previous ones.

Drift: small errors accumulate along the chain of cameras, like the chain of tiles in a mosaic. A loop closure (seeing an earlier part of the scene again) adds matches between the end and the start of the chain; bundle adjustment then distributes the accumulated error around the loop. A few known distances or control points also help.


Q8. In a plane sweep, the colours of all views agree at a depth of 3 m for one pixel. Name two situations in which that depth can nevertheless be wrong.

Think of the stereo failures.

A textureless surface (the views agree at many depths, so the minimum is decided by noise) and a repetitive pattern (agreement one period off). Also: a specular surface (colours change with the viewpoint, so the true depth may disagree) and occlusion (one view sees something else at the true depth).


Q9. (math) One Gauss–Newton step for the residual r(Z) = 0.25 - 1/Z from Z_0 = 3: compute Z_1.

Z_1 = Z_0 - r(Z_0)/r'(Z_0) with r'(Z) = 1/Z^2.

r(3) = 0.25 - 0.333 = -0.0833, r'(3) = 1/9 = 0.111, so Z_1 = 3 + 0.75 = 3.75 (the solution is Z = 4).