Lucas–Kanade Optical Flow Method
From Wikipedia, the free encyclopedia
In computer vision, the Lucas–Kanade method is a two-frame differential method for optical flow estimation developed by Bruce D. Lucas and Takeo Kanade. It introduces an additional term to the optical flow by assuming the flow to be constant in a local neighbourhood around the central pixel under consideration at any given time.
Contents |
[edit] Concept
The Lucas–Kanade method is still one of the most popular versions of two-frame differential methods for motion estimation (which is also called optical flow estimation). The solution assumes a locally constant flow. The method is based upon the Optical Flow equation. The additional constraint needed for the estimation of the flow field is introduced in this method by assuming that the flow (Vx,Vy) is constant in a small window of size
with m > 1, which is centered at Pixel x,y and numbering the pixels within as 1...n, n = m2, a set of equations can be found:
With this there are more than two equations for the two unknowns and thus the system is over-determined. Hence:
or
[edit] Possible Solution
To solve the over-determined system of equations, besides other methods, the least squares method can also be used:
or
or
with the sums running from i=1 to n.
This means that the optical flow can be found by calculating the derivatives of the image in along all dimensions. A weighting function W(i,j), with
should be added to give more prominence to the central pixel of the window. Gaussian functions are preferred for this purpose however, other functions or weighting schemes are also possible. Besides for computing local translations, the flow model can also be extended to affine image deformations.
[edit] Improvements
As generally more equations are available for flow estimation then needed (over determined system) the Lucas-Kanade algorithm can be used in combination with statistical methods to improve the performance in presence of outliers as in noisy images. A statistical analysis marks the outliers and the flow is then estimated based on the remaining equations or weighted accordingly.
When applied to image registration, such as stereo matching or images with large displacements, the Lucas–Kanade method is usually carried out in a coarse-to-fine iterative manner, in such a way that the spatial derivatives are first computed at a coarse scale in scale-space (or a pyramid), one of the images is warped by the computed deformation, and iterative updates are then computed at successively finer scales.
[edit] Properties
One of the characteristics of the Lucas–Kanade algorithm, and that of other local optical flow algorithms, is that it does not yield a very high density of flow vectors, i.e. the flow information fades out quickly across motion boundaries and the inner parts of large homogenous areas show little or no motion. Its advantage is the comparative robustness in presence of noise.
[edit] See also
[edit] References
- Lucas B D and Kanade T 1981, An iterative image registration technique with an application to stereo vision. Proceedings of Imaging understanding workshop, pp 121--130 (pdf).
- Lucas B D 1984, Generalized Image Matching by the Method of Differences, doctoral dissertation
- KLT: An Implementation of the Kanade–Lucas–Tomasi Feature Tracker
- [1]: Takeo Kanade
[edit] External links
- The image stabilizer plugin for ImageJ based on the Lucas–Kanade method
- Mathworks Lucas-Kanade Matlab implementation of inverse and normal affine Lucas-Kanade








