Add the optical flow function (using the LK algorithm)