The Lucas-Kanade optical flow estimation method (LK81) is a technique for estimating the motion of interesting features across successive frames of a video. The goal is to associate a motion vector with each "interesting" pixel in the scene by comparing two consecutive images.
The algorithm makes the following assumptions:
Starting from the optical flow equation for each point :
| (7.2) |
| (7.3) |
| (7.4) |
Obviously, a single pixel does not contain enough information to solve this problem. To gather more observations, it is assumed that a neighborhood of the pixel exhibits the same motion, that is,
| (7.5) |
where
are the points in the neighborhood of the point to be estimated. The solution can be obtained through the method of normal equations
| (7.6) |
It is noteworthy that this is also the matrix of characteristic points utilized by Shi-Tomasi or Harris (see 5.2): the characteristic points of this matrix are points that can be easily tracked using the Lucas-Kanade algorithm.
When the motion is greater than one pixel, an iterative algorithm is required to solve the problem, along with a coarse-to-fine approach to avoid local minima: there will exist a scale at which the motion of the pixel is less than one pixel.
Paolo medici