Lucas Kanade method
From Wikipedia, the free encyclopedia
{tooshort} {context}
The Lucas-Kanade method is the still most popular version two-frame differential methods for motion estimation (which is also called optical flow estimation). Such methods try to calculate the motion between two image frames which are taken at times t and t + δt at every pixel position. These methods are called differential since they are based on local Taylor series approximations of the image signal, that is: they use partial derivatives with respect to the spatial and temporal coordinates. As a pixel at location (x,y,z,t) with intensity I(x,y,z,t) will have moved by δx, δy, δz and δt between the two frames, following image constraint equation can be given:
- I(x,y,z,t) = I(x + δx,y + δy,z + δz,t + δt)
Assuming the movement to be small enough, the image constraint at I(x,y,z,t) with Taylor series can be developed to get:
where H.O.T. means higher order terms, which are small enough to be ignored. From these equations it follows that:
or
which results in
where Vx,Vy,Vz are the x,y and z components of the velocity or optical flow of I(x,y,z,t) and ,
,
and
are the derivatives of the image at (x,y,z,t) in the corresponding directions. Ix,Iy, Iz and It can be written for the derivatives in the following.
Thus
- IxVx + IyVy + IzVz = − It
or
This is an equation in three unknowns and cannot be solved as such. This is known as the aperture problem of the optical flow algorithms. To find the optical flow another set of equations is needed, given by some additional constraint. The solution as given by Lucas and Kanade is a non-iterative method which assumes a locally constant flow.
Assuming that the flow (Vx,Vy,Vz) is constant in a small window of size with m > 1, which is centered at voxel x,y,z and numbering the pixels as 1...n, a set of equations can be found:
With this there are more than three equations for the three unknowns and thus the system is over-determined. Hence:
or
To solve the over-determined system of equations, the least squares method is 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 all four dimensions. A weighting function W(i,j,k), with should be added to give more prominence to the center pixel of the window. Gaussian functions are preferred for this purpose. Other functions or weighting schemes are possible. Besides for computing local translations, the flow model can also be extended to affine image deformations.
When applied to image registration, such as stereo matching, the Lukas-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.
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 motion. Its advantage is the comparative robustness in presence of noise.
[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.
- KLT: An Implementation of the Kanade-Lucas-Tomasi Feature Tracker
- Lucas B D 1984, Generalized Image Matching by the Method of Differences, doctoral dissertation