| CvOptFlowSegmentMotion Method |
Splits a motion history image into a few parts corresponding to separate independent motions
(for example, left hand, right hand).
Namespace:
OpenCvSharp.OptFlow
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static void SegmentMotion(
InputArray mhi,
OutputArray segmask,
out Rect[] boundingRects,
double timestamp,
double segThresh
)
Public Shared Sub SegmentMotion (
mhi As InputArray,
segmask As OutputArray,
<OutAttribute> ByRef boundingRects As Rect(),
timestamp As Double,
segThresh As Double
)
public:
static void SegmentMotion(
InputArray^ mhi,
OutputArray^ segmask,
[OutAttribute] array<Rect>^% boundingRects,
double timestamp,
double segThresh
)
static member SegmentMotion :
mhi : InputArray *
segmask : OutputArray *
boundingRects : Rect[] byref *
timestamp : float *
segThresh : float -> unit
Parameters
- mhi
- Type: OpenCvSharpInputArray
Motion history image. - segmask
- Type: OpenCvSharpOutputArray
Image where the found mask should be stored, single-channel, 32-bit floating-point. - boundingRects
- Type: OpenCvSharpRect
Vector containing ROIs of motion connected components. - timestamp
- Type: SystemDouble
Current time in milliseconds or other units. - segThresh
- Type: SystemDouble
Segmentation threshold that is recommended to be equal to the interval between motion history “steps” or greater.
See Also