Click or drag to resize

Cv2CalcOpticalFlowPyrLK Method (InputArray, InputArray, Point2f, Point2f, Byte, Single, NullableSize, Int32, NullableTermCriteria, OpticalFlowFlags, Double)

computes sparse optical flow using multi-scale Lucas-Kanade algorithm

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntax
public static void CalcOpticalFlowPyrLK(
	InputArray prevImg,
	InputArray nextImg,
	Point2f[] prevPts,
	ref Point2f[] nextPts,
	out byte[] status,
	out float[] err,
	Nullable<Size> winSize = null,
	int maxLevel = 3,
	Nullable<TermCriteria> criteria = null,
	OpticalFlowFlags flags = OpticalFlowFlags.None,
	double minEigThreshold = 0.0001
)

Parameters

prevImg
Type: OpenCvSharpInputArray
nextImg
Type: OpenCvSharpInputArray
prevPts
Type: OpenCvSharpPoint2f
nextPts
Type: OpenCvSharpPoint2f
status
Type: SystemByte
err
Type: SystemSingle
winSize (Optional)
Type: SystemNullableSize
maxLevel (Optional)
Type: SystemInt32
criteria (Optional)
Type: SystemNullableTermCriteria
flags (Optional)
Type: OpenCvSharpOpticalFlowFlags
minEigThreshold (Optional)
Type: SystemDouble
See Also