Lucas-Kanade 20 Years On: A Unifying Framework
Simon BakerIain Matthews
Establishes a unifying framework for Lucas-Kanade image alignment by proving the first-order equivalence of forward, inverse, additive, and compositional approaches, demonstrating that the inverse compositional Gauss-Newton algorithm achieves dramatic computational speedups without sacrificing accuracy.
The Lucas-Kanade algorithm, introduced in 1981, established image alignment as a core computer vision technique for tasks such as optical flow, tracking, motion estimation, mosaic construction, and face modeling. Over two decades, numerous variants and extensions appeared, differing in how they approximate the error surface, update the warp, and handle gradient descent, which created confusion about their relative merits and computational costs.
This paper develops a single framework that classifies these algorithms along two independent axes: whether they perform additive or compositional updates to the warp, and whether they operate in a forwards or inverse manner. It derives closed-form expressions for each combination, proves that the four principal variants reach the same first-order solution, and validates the equivalence through controlled experiments on affine and homography warps using thousands of random initializations.
The analysis shows that the inverse compositional algorithm is the only variant that shifts the dominant Hessian computation into a one-time pre-computation while remaining applicable to any set of warps that forms a group. Among gradient-descent approximations, the Gauss-Newton and Levenberg-Marquardt forms converge fastest and most reliably; steepest-descent and diagonal-Hessian approximations converge far more slowly and are sensitive to parameterization. Timing measurements confirm that the inverse compositional Gauss-Newton method reduces per-iteration cost from O(n²N + n³) to O(nN + n³).
These results matter because practitioners can now select an algorithm on the basis of required speed and expected noise distribution rather than ad-hoc trial. When the template is less noisy than the input image, the inverse compositional Gauss-Newton or Levenberg-Marquardt algorithm is the clear practical choice; when the template is noisier, a forwards variant may be preferable despite its higher cost.
The paper notes that its empirical comparisons are limited to affine and homography warps and that performance still varies with image content. It defers treatment of robust error norms, linear appearance variation, and parameter priors to subsequent papers in the series.
- Paper: An Iterative Image Registration Technique with an Application to Stereo Vision, B. D. Lucas et al. (1981). Reading the original 1981 Lucas-Kanade paper is essential because the source paper builds directly upon its foundational image alignment formulation and gradient descent approximations.
- Paper: RAFT: Recurrent All-Pairs Field Transforms for Optical Flow, Zachary Teed et al. (2020). This paper extends classical optical flow and alignment frameworks like Lucas-Kanade into deep learning with recurrent all-pairs field transforms.
