+++ /dev/null
-function varargout = cvcalcopticalflowpyrlk(varargin)\r
-%CVCALCOPTICALFLOWPYRLK Calculate optical flow between two images for certain set of points.\r
-% [featuresB, error] = cvCalcOpticalFlowPyrLK(IMAGE imgA, IMAGE imgB,\r
-% featuresA, guessFeaturesB,\r
-% winSize, level, [maxIter epsilon]);\r
-%\r
-% imgA - first frame\r
-% imgB - second frame\r
-% featuresA - [n][2] array of feature points on the first frame\r
-% guessFeaturesB - [n][2] initial guessess about newfeatures' locations.\r
-% May be empty.\r
-% winSize - [width height] size of search window\r
-% level - maximal pyramid level number\r
-% [maxIter epsilon] - specify when to stop search process.\r
-% One of them may be 0.\r
-%\r
-% featuresB - calculated feature points positions.\r
-% Coordinates of points for which flow was not found are [NaN NaN]\r
-% error - array of differences between\r
-% patches around the original and moved points\r
-\r
-if nargin ~= 7\r
- error 'Invalid number of parameters';\r
- return;\r
-end\r
-\r
-out = nargout;\r
-if out < 1\r
- out = 1;\r
-end\r
-\r
-if out > 2\r
- error 'Too many output parameters'\r
- return;\r
-end;\r
-for idx = out+1:2\r
- varargout{idx} = [];\r
-end\r
-\r
-[varargout{1:2}] = feval('cvwrap', 'CalcOpticalFlowPyrLK', varargin{:});\r
-\r
-return;
\ No newline at end of file