|
Lucas-Kanade method of estimating optical flow Optical flow methods try to calculate the motion between two image frames which are taken at times t and t + δt at every pixel position. 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: Optical flow is a concept for considering the motion of objects within a visual representation. ...
- I(x,y,z,t) = I(x + δx,y + δy,z + δz,t + δt)
Assuming the movement to be small enough, we can develop the image constraint at I(x,y,z,t) with Taylor series to get:  where H.O.T. means higher order terms, which are small enough to be ignored. From these equations we achieve:  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. We will write Ix,Iy, Iz and It 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 we need another set of equations which is 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 we get a set of equations:     With this we get more then three equations for the three unknowns and thus an over-determined system. We get:  or  To solve the over-determined system of equations we use the least squares method: or  or  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. 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 roboustness in presence of noise.
Reference 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 |