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

C# | Visual Basic | Visual C++ |
public static void HS( Image<Gray, byte> prev, Image<Gray, byte> curr, bool usePrevious, Image<Gray, float> velx, Image<Gray, float> vely, double lambda, MCvTermCriteria criteria )
Public Shared Sub HS ( _ prev As Image(Of Gray, Byte), _ curr As Image(Of Gray, Byte), _ usePrevious As Boolean, _ velx As Image(Of Gray, Single), _ vely As Image(Of Gray, Single), _ lambda As Double, _ criteria As MCvTermCriteria _ )
public: static void HS( Image<Gray, unsigned char>^ prev, Image<Gray, unsigned char>^ curr, bool usePrevious, Image<Gray, float>^ velx, Image<Gray, float>^ vely, double lambda, MCvTermCriteria criteria )

- usePrevious (Boolean)
- Uses previous (input) velocity field
- velx (Image<(Of <(Gray, Single>)>))
- Horizontal component of the optical flow of the same size as input images, 32-bit floating-point, single-channel
- vely (Image<(Of <(Gray, Single>)>))
- 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