Calculates optical flow for a sparse feature set using iterative Lucas-Kanade method in pyramids
Namespace: OpenCvSharp
Assembly: OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void CalcOpticalFlowPyrLK( CvArr prev, CvArr curr, CvArr prevPyr, CvArr currPyr, CvPoint2D32f[] prevFeatures, out CvPoint2D32f[] currFeatures, CvSize winSize, int level, out sbyte[] status, CvTermCriteria criteria, LKFlowFlag flags )
Parameters
- prev
- Type: OpenCvSharpCvArr
First frame, at time t. - curr
- Type: OpenCvSharpCvArr
Second frame, at time t + dt . - prevPyr
- Type: OpenCvSharpCvArr
Buffer for the pyramid for the first frame. If the pointer is not null , the buffer must have a sufficient size to store the pyramid from level 1 to level #level ; the total size of (image_width+8)*image_height/3 bytes is sufficient. - currPyr
- Type: OpenCvSharpCvArr
Similar to prev_pyr, used for the second frame. - prevFeatures
- Type: OpenCvSharpCvPoint2D32f
Array of points for which the flow needs to be found. - currFeatures
- Type: OpenCvSharpCvPoint2D32f
Array of 2D points containing calculated new positions of input features in the second image. - winSize
- Type: OpenCvSharpCvSize
Size of the search window of each pyramid level. - level
- Type: SystemInt32
Maximal pyramid level number. If 0 , pyramids are not used (single level), if 1 , two levels are used, etc. - status
- Type: SystemSByte
Array. Every element of the array is set to 1 if the flow for the corresponding feature has been found, 0 otherwise. - criteria
- Type: OpenCvSharpCvTermCriteria
Specifies when the iteration process of finding the flow for each point on each pyramid level should be stopped. - flags
- Type: OpenCvSharpLKFlowFlag
Miscellaneous flags
See Also