Click or drag to resize
CvInvokeSegmentMotion Method
http://www.emgu.com
Finds all the motion segments and marks them in segMask with individual values each (1,2,...). It also returns a sequence of CvConnectedComp structures, one per each motion components. After than the motion direction for every component can be calculated with cvCalcGlobalOrientation using extracted mask of the particular component (using cvCmp)

Namespace: Emgu.CV
Assembly: Emgu.CV.World (in Emgu.CV.World.dll) Version: 3.2.0.2682 (3.2.0.2682)
Syntax
public static void SegmentMotion(
	IInputArray mhi,
	IOutputArray segMask,
	VectorOfRect boundingRects,
	double timestamp,
	double segThresh
)

Parameters

mhi
Type: Emgu.CVIInputArray
Motion history image
segMask
Type: Emgu.CVIOutputArray
Image where the mask found should be stored, single-channel, 32-bit floating-point
boundingRects
Type: Emgu.CV.UtilVectorOfRect
Vector containing ROIs of motion connected components.
timestamp
Type: SystemDouble
Current time in milliseconds or other units
segThresh
Type: SystemDouble
Segmentation threshold; recommended to be equal to the interval between motion history "steps" or greater
See Also