Cv2SegmentMotion Method OpenCvSharp Class Library
Splits a motion history image into a few parts corresponding to separate independent motions (for example, left hand, right hand).

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static void SegmentMotion(
	InputArray mhi,
	OutputArray segmask,
	out Rect[] boundingRects,
	double timestamp,
	double segThresh
)

Parameters

mhi
Type: OpenCvSharp.CPlusPlusInputArray
Motion history image.
segmask
Type: OpenCvSharp.CPlusPlusOutputArray
Image where the found mask should be stored, single-channel, 32-bit floating-point.
boundingRects
Type: OpenCvSharp.CPlusPlusRect
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

Reference