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.CVAssembly: 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
)
Public Shared Sub SegmentMotion (
mhi As IInputArray,
segMask As IOutputArray,
boundingRects As VectorOfRect,
timestamp As Double,
segThresh As Double
)
public:
static void SegmentMotion(
IInputArray^ mhi,
IOutputArray^ segMask,
VectorOfRect^ boundingRects,
double timestamp,
double segThresh
)
static member SegmentMotion :
mhi : IInputArray *
segMask : IOutputArray *
boundingRects : VectorOfRect *
timestamp : float *
segThresh : float -> unit
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