Move the sources to trunk
[opencv] / interfaces / matlab / toolbox / opencv / cvupdatemotionhistory.m
1 function varargout = cvupdatemotionhistory(varargin)\r
2 %CVUPDATEMOTIONHISTORY Update motion history image\r
3 %   IMAGE mhi = cvUpdateMotionHistory(IMAGE silhouette, \r
4 %     timestamp, mhiDuration);\r
5 %   silhouette  - silhouette image\r
6 %   timestamp   - current system time\r
7 %   mhiDuration - maximal duration of motion track before it will be removed\r
8 %\r
9 %   mhi         - motion history image\r
10 \r
11 if nargin ~= 3\r
12     error 'Invalid number of parameters';\r
13     return;\r
14 end\r
15 \r
16 out = nargout;\r
17 if out < 1\r
18     out = 1;\r
19 end\r
20 \r
21 if out > 1\r
22     error 'Too many output parameters'\r
23     return;\r
24 end;\r
25 \r
26 [varargout{1}] = feval('cvwrap', 'UpdateMotionHistory', varargin{:});\r
27 \r
28 return;