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)
Syntaxpublic 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
)
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 = BorderType.Reflect101,
Optional derivBorder As BorderType = BorderType.Constant,
Optional tryReuseInputImage As Boolean = true
) As Integer
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
)
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 BorderType.Reflect101
let _derivBorder = defaultArg derivBorder BorderType.Constant
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