Click or drag to resize

Cv2CalcOpticalFlowPyrLK Method (InputArray, InputArray, InputArray, InputOutputArray, OutputArray, OutputArray, NullableSize, Int32, NullableTermCriteria, OpticalFlowFlags, Double)

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

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static void CalcOpticalFlowPyrLK(
	InputArray prevImg,
	InputArray nextImg,
	InputArray prevPts,
	InputOutputArray nextPts,
	OutputArray status,
	OutputArray err,
	Nullable<Size> winSize = null,
	int maxLevel = 3,
	Nullable<TermCriteria> criteria = null,
	OpticalFlowFlags flags = OpticalFlowFlags.None,
	double minEigThreshold = 0.0001
)

Parameters

prevImg
Type: OpenCvSharpInputArray

[Missing <param name="prevImg"/> documentation for "M:OpenCvSharp.Cv2.CalcOpticalFlowPyrLK(OpenCvSharp.InputArray,OpenCvSharp.InputArray,OpenCvSharp.InputArray,OpenCvSharp.InputOutputArray,OpenCvSharp.OutputArray,OpenCvSharp.OutputArray,System.Nullable{OpenCvSharp.Size},System.Int32,System.Nullable{OpenCvSharp.TermCriteria},OpenCvSharp.OpticalFlowFlags,System.Double)"]

nextImg
Type: OpenCvSharpInputArray

[Missing <param name="nextImg"/> documentation for "M:OpenCvSharp.Cv2.CalcOpticalFlowPyrLK(OpenCvSharp.InputArray,OpenCvSharp.InputArray,OpenCvSharp.InputArray,OpenCvSharp.InputOutputArray,OpenCvSharp.OutputArray,OpenCvSharp.OutputArray,System.Nullable{OpenCvSharp.Size},System.Int32,System.Nullable{OpenCvSharp.TermCriteria},OpenCvSharp.OpticalFlowFlags,System.Double)"]

prevPts
Type: OpenCvSharpInputArray

[Missing <param name="prevPts"/> documentation for "M:OpenCvSharp.Cv2.CalcOpticalFlowPyrLK(OpenCvSharp.InputArray,OpenCvSharp.InputArray,OpenCvSharp.InputArray,OpenCvSharp.InputOutputArray,OpenCvSharp.OutputArray,OpenCvSharp.OutputArray,System.Nullable{OpenCvSharp.Size},System.Int32,System.Nullable{OpenCvSharp.TermCriteria},OpenCvSharp.OpticalFlowFlags,System.Double)"]

nextPts
Type: OpenCvSharpInputOutputArray

[Missing <param name="nextPts"/> documentation for "M:OpenCvSharp.Cv2.CalcOpticalFlowPyrLK(OpenCvSharp.InputArray,OpenCvSharp.InputArray,OpenCvSharp.InputArray,OpenCvSharp.InputOutputArray,OpenCvSharp.OutputArray,OpenCvSharp.OutputArray,System.Nullable{OpenCvSharp.Size},System.Int32,System.Nullable{OpenCvSharp.TermCriteria},OpenCvSharp.OpticalFlowFlags,System.Double)"]

status
Type: OpenCvSharpOutputArray

[Missing <param name="status"/> documentation for "M:OpenCvSharp.Cv2.CalcOpticalFlowPyrLK(OpenCvSharp.InputArray,OpenCvSharp.InputArray,OpenCvSharp.InputArray,OpenCvSharp.InputOutputArray,OpenCvSharp.OutputArray,OpenCvSharp.OutputArray,System.Nullable{OpenCvSharp.Size},System.Int32,System.Nullable{OpenCvSharp.TermCriteria},OpenCvSharp.OpticalFlowFlags,System.Double)"]

err
Type: OpenCvSharpOutputArray

[Missing <param name="err"/> documentation for "M:OpenCvSharp.Cv2.CalcOpticalFlowPyrLK(OpenCvSharp.InputArray,OpenCvSharp.InputArray,OpenCvSharp.InputArray,OpenCvSharp.InputOutputArray,OpenCvSharp.OutputArray,OpenCvSharp.OutputArray,System.Nullable{OpenCvSharp.Size},System.Int32,System.Nullable{OpenCvSharp.TermCriteria},OpenCvSharp.OpticalFlowFlags,System.Double)"]

winSize (Optional)
Type: SystemNullableSize

[Missing <param name="winSize"/> documentation for "M:OpenCvSharp.Cv2.CalcOpticalFlowPyrLK(OpenCvSharp.InputArray,OpenCvSharp.InputArray,OpenCvSharp.InputArray,OpenCvSharp.InputOutputArray,OpenCvSharp.OutputArray,OpenCvSharp.OutputArray,System.Nullable{OpenCvSharp.Size},System.Int32,System.Nullable{OpenCvSharp.TermCriteria},OpenCvSharp.OpticalFlowFlags,System.Double)"]

maxLevel (Optional)
Type: SystemInt32

[Missing <param name="maxLevel"/> documentation for "M:OpenCvSharp.Cv2.CalcOpticalFlowPyrLK(OpenCvSharp.InputArray,OpenCvSharp.InputArray,OpenCvSharp.InputArray,OpenCvSharp.InputOutputArray,OpenCvSharp.OutputArray,OpenCvSharp.OutputArray,System.Nullable{OpenCvSharp.Size},System.Int32,System.Nullable{OpenCvSharp.TermCriteria},OpenCvSharp.OpticalFlowFlags,System.Double)"]

criteria (Optional)
Type: SystemNullableTermCriteria

[Missing <param name="criteria"/> documentation for "M:OpenCvSharp.Cv2.CalcOpticalFlowPyrLK(OpenCvSharp.InputArray,OpenCvSharp.InputArray,OpenCvSharp.InputArray,OpenCvSharp.InputOutputArray,OpenCvSharp.OutputArray,OpenCvSharp.OutputArray,System.Nullable{OpenCvSharp.Size},System.Int32,System.Nullable{OpenCvSharp.TermCriteria},OpenCvSharp.OpticalFlowFlags,System.Double)"]

flags (Optional)
Type: OpenCvSharpOpticalFlowFlags

[Missing <param name="flags"/> documentation for "M:OpenCvSharp.Cv2.CalcOpticalFlowPyrLK(OpenCvSharp.InputArray,OpenCvSharp.InputArray,OpenCvSharp.InputArray,OpenCvSharp.InputOutputArray,OpenCvSharp.OutputArray,OpenCvSharp.OutputArray,System.Nullable{OpenCvSharp.Size},System.Int32,System.Nullable{OpenCvSharp.TermCriteria},OpenCvSharp.OpticalFlowFlags,System.Double)"]

minEigThreshold (Optional)
Type: SystemDouble

[Missing <param name="minEigThreshold"/> documentation for "M:OpenCvSharp.Cv2.CalcOpticalFlowPyrLK(OpenCvSharp.InputArray,OpenCvSharp.InputArray,OpenCvSharp.InputArray,OpenCvSharp.InputOutputArray,OpenCvSharp.OutputArray,OpenCvSharp.OutputArray,System.Nullable{OpenCvSharp.Size},System.Int32,System.Nullable{OpenCvSharp.TermCriteria},OpenCvSharp.OpticalFlowFlags,System.Double)"]

See Also