Skip to content
This repository
tree: d3e98bb40e
Fetching contributors…

Cannot retrieve contributors at this time

file 23 lines (23 sloc) 1.102 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
%SEGMENTMOTION 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)
%
% ## Input
% * __mhi__ Motion history image.
% * __timestamp__ Current time in milliseconds or other units.
% * __segThresh__ Segmentation threshold that is recommended to be equal to the
% interval between motion history 'steps' or greater.
%
% ## Output
% * __segmask__ Image where the found mask should be stored, single-channel,
% 32-bit floating-point.
% * __boundingRects__ Vector containing ROIs of motion connected components.
%
% 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.
%
% See also cv.updateMotionHistory cv.calcMotionGradient cv.calcGlobalOrientation
%
Something went wrong with that request. Please try again.