⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cvcalcopticalflowpyrlk.m

📁 guide and some example with visualC++
💻 M
字号:
function varargout = cvcalcopticalflowpyrlk(varargin)
%CVCALCOPTICALFLOWPYRLK Calculate optical flow between two images for certain set of points.
%   [featuresB, error] = cvCalcOpticalFlowPyrLK(IMAGE imgA, IMAGE imgB,
%     featuresA, guessFeaturesB,
%     winSize, level, [maxIter epsilon]);
%
%   imgA              - first frame
%   imgB              - second frame
%   featuresA         - [n][2] array of feature points on the first frame
%   guessFeaturesB    - [n][2] initial guessess about newfeatures' locations.
%     May be empty.
%   winSize           - [width height] size of search window
%   level             - maximal pyramid level number
%   [maxIter epsilon] - specify when to stop search process.
%     One of them may be 0.
%
%   featuresB         - calculated feature points positions.
%     Coordinates of points for which flow was not found are [NaN NaN]
%   error             - array of differences between
%     patches around the original and moved points

if nargin ~= 7
    error 'Invalid number of parameters';
    return;
end

out = nargout;
if out < 1
    out = 1;
end

if out > 2
    error 'Too many output parameters'
    return;
end;
for idx = out+1:2
    varargout{idx} = [];
end

[varargout{1:2}] = feval('cvwrap', 'CalcOpticalFlowPyrLK', varargin{:});

return;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -