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