Move the sources to trunk
[opencv] / interfaces / matlab / toolbox / opencv / cvcanny.m
1 function varargout = cvcanny(varargin)\r
2 %CVCANNY             Canny edge detection\r
3 %   IMAGE dst = cvCanny(IMAGE src, lowThreshold, highThreshold, apertureSize);\r
4 %   src           - source image\r
5 %   lowThreshold,\r
6 %   highThreshold - tresholds, applied in hysteresis thresholding\r
7 %   apertureSize  - default 3. Size of Sobel operator aperture\r
8 %\r
9 %   dst - destination image\r
10 %\r
11 \r
12 if nargin < 3 | nargin > 4\r
13     error 'Invalid number of parameters';\r
14     return;\r
15 end\r
16 \r
17 if nargin < 4\r
18     varargin{4} = 3; % default apertureSize\r
19 end\r
20 \r
21 out = nargout;\r
22 if out < 1\r
23     out = 1;\r
24 end\r
25 \r
26 if out > 1\r
27     error 'Too many output parameters'\r
28     return;\r
29 end;\r
30 \r
31 [varargout{1:out}] = feval('cvwrap', 'Canny', varargin{:});\r
32 \r
33 return;