Method SegmentMotion
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
SegmentMotion(InputArray, OutputArray, out Rect[], double, double)
Splits a motion history image into a few parts corresponding to separate independent motions (for example, left hand, right hand).
public static void SegmentMotion(InputArray mhi, OutputArray segmask, out Rect[] boundingRects, double timestamp, double segThresh)
Parameters
mhiInputArrayMotion history image.
segmaskOutputArrayImage where the found mask should be stored, single-channel, 32-bit floating-point.
boundingRectsRect[]Vector containing ROIs of motion connected components.
timestampdoubleCurrent time in milliseconds or other units.
segThreshdoubleSegmentation threshold that is recommended to be equal to the interval between motion history “steps” or greater.