Finds all the motion segments and marks them in seg_mask 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)

C# | Visual Basic | Visual C++ |

- mhi (IntPtr)
- Motion history image
- segMask (IntPtr)
- Image where the mask found should be stored, single-channel, 32-bit floating-point
- storage (IntPtr)
- Memory storage that will contain a sequence of motion connected components
- timestamp (Double)
- Current time in milliseconds or other units
- segThresh (Double)
- Segmentation threshold; recommended to be equal to the interval between motion history "steps" or greater

[Missing <returns> documentation for M:Emgu.CV.CvInvoke.cvSegmentMotion(System.IntPtr,System.IntPtr,System.IntPtr,System.Double,System.Double)]