MATLAB File Help: cv.segmentMotion | Index |
Splits a motion history image into a few parts corresponding to separate independent motions (for example, left hand, right hand)
[segmask, boundingRects] = cv.segmentMotion(mhi, timestamp, segThresh)
The function finds all of the motion segments and marks them in segmask
with individual values (1,2,...). It also computes a vector with ROIs of
motion connected components. After that the motion direction for every
component can be calculated with cv.calcGlobalOrientation using the
extracted mask of the particular component.