cvcanny.m

来自「guide and some example with visualC++」· M 代码 · 共 33 行

M
33
字号
function varargout = cvcanny(varargin)
%CVCANNY             Canny edge detection
%   IMAGE dst = cvCanny(IMAGE src, lowThreshold, highThreshold, apertureSize);
%   src           - source image
%   lowThreshold,
%   highThreshold - tresholds, applied in hysteresis thresholding
%   apertureSize  - default 3. Size of Sobel operator aperture
%
%   dst - destination image
%

if nargin < 3 | nargin > 4
    error 'Invalid number of parameters';
    return;
end

if nargin < 4
    varargin{4} = 3; % default apertureSize
end

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

if out > 1
    error 'Too many output parameters'
    return;
end;

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

return;

⌨️ 快捷键说明

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