CvInvokeBuildOpticalFlowPyramid Method |
http://www.emgu.com
Constructs the image pyramid which can be passed to calcOpticalFlowPyrLK.
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World.NetStandard (in Emgu.CV.World.NetStandard.dll) Version: 1.0.0
Syntaxpublic static int BuildOpticalFlowPyramid(
IInputArray img,
IOutputArrayOfArrays pyramid,
Size winSize,
int maxLevel,
bool withDerivatives = true,
BorderType pyrBorder = 4,
BorderType derivBorder = 0,
bool tryReuseInputImage = true
)
Public Shared Function BuildOpticalFlowPyramid (
img As IInputArray,
pyramid As IOutputArrayOfArrays,
winSize As Size,
maxLevel As Integer,
Optional withDerivatives As Boolean = true,
Optional pyrBorder As BorderType = 4,
Optional derivBorder As BorderType = 0,
Optional tryReuseInputImage As Boolean = true
) As Integer
public:
static int BuildOpticalFlowPyramid(
IInputArray^ img,
IOutputArrayOfArrays^ pyramid,
Size^ winSize,
int maxLevel,
bool withDerivatives = true,
BorderType^ pyrBorder = 4,
BorderType^ derivBorder = 0,
bool tryReuseInputImage = true
)
static member BuildOpticalFlowPyramid :
img : IInputArray *
pyramid : IOutputArrayOfArrays *
winSize : Size *
maxLevel : int *
?withDerivatives : bool *
?pyrBorder : BorderType *
?derivBorder : BorderType *
?tryReuseInputImage : bool
(* Defaults:
let _withDerivatives = defaultArg withDerivatives true
let _pyrBorder = defaultArg pyrBorder 4
let _derivBorder = defaultArg derivBorder 0
let _tryReuseInputImage = defaultArg tryReuseInputImage true
*)
-> int
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:
Int32Number of levels in constructed pyramid. Can be less than maxLevel.
See Also