Computes flow for every pixel of the first input image using Horn & Schunck algorithm

C# | Visual Basic | Visual C++ |
public static void cvCalcOpticalFlowHS( IntPtr prev, IntPtr curr, int use_previous, IntPtr velx, IntPtr vely, double lambda, MCvTermCriteria criteria )

- prev (IntPtr)
- First image, 8-bit, single-channel
- curr (IntPtr)
- Second image, 8-bit, single-channel
- use_previous (Int32)
- Uses previous (input) velocity field
- velx (IntPtr)
- Horizontal component of the optical flow of the same size as input images, 32-bit floating-point, single-channel
- vely (IntPtr)
- Vertical component of the optical flow of the same size as input images, 32-bit floating-point, single-channel
- lambda (Double)
- Lagrangian multiplier
- criteria (MCvTermCriteria)
- Criteria of termination of velocity computing