Table of Contents

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

mhi InputArray

Motion history image.

segmask OutputArray

Image where the found mask should be stored, single-channel, 32-bit floating-point.

boundingRects Rect[]

Vector containing ROIs of motion connected components.

timestamp double

Current time in milliseconds or other units.

segThresh double

Segmentation threshold that is recommended to be equal to the interval between motion history “steps” or greater.