Click or drag to resize

CvInvokeBuildOpticalFlowPyramid Method

http://www.emgu.com
Constructs the image pyramid which can be passed to calcOpticalFlowPyrLK.

Namespace:  Emgu.CV
Assembly:  Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntax
public static int BuildOpticalFlowPyramid(
	IInputArray img,
	IOutputArrayOfArrays pyramid,
	Size winSize,
	int maxLevel,
	bool withDerivatives = true,
	BorderType pyrBorder = BorderType.Reflect101,
	BorderType derivBorder = BorderType.Constant,
	bool tryReuseInputImage = true
)

Parameters

img
Type: Emgu.CVIInputArray
8-bit input image.
pyramid
Type: Emgu.CVIOutputArrayOfArrays
Output pyramid.
winSize
Type: System.DrawingSize
Window size of optical flow algorithm. Must be not less than winSize argument of calcOpticalFlowPyrLK. It is needed to calculate required padding for pyramid levels.
maxLevel
Type: SystemInt32
0-based maximal pyramid level number.
withDerivatives (Optional)
Type: SystemBoolean
Set to precompute gradients for the every pyramid level. If pyramid is constructed without the gradients then calcOpticalFlowPyrLK will calculate them internally.
pyrBorder (Optional)
Type: Emgu.CV.CvEnumBorderType
The border mode for pyramid layers.
derivBorder (Optional)
Type: Emgu.CV.CvEnumBorderType
The border mode for gradients.
tryReuseInputImage (Optional)
Type: SystemBoolean
put ROI of input image into the pyramid if possible. You can pass false to force data copying.

Return Value

Type: Int32
Number of levels in constructed pyramid. Can be less than maxLevel.
See Also