Move the sources to trunk
[opencv] / interfaces / matlab / toolbox / opencv / cvmatchtemplate.m
1 function varargout = cvmatchtemplate(varargin)\r
2 %CVMATCHTEMPLATE      Match template against every location within the image.\r
3 %   IMAGE dst = cvmatchtemplate(IMAGE src, IMAGE template, method );\r
4 %   method:\r
5 %     0 - squared difference\r
6 %     1 - normalized squared difference\r
7 %     2 - cross correlation\r
8 %     3 - normalized cross correlation\r
9 %     4 - correlation coefficient\r
10 %     5 - normalized correlation coefficient\r
11 %\r
12 if nargin ~= 3\r
13     error 'Invalid number of parameters';\r
14     return;\r
15 end\r
16 \r
17 if nargout > 0\r
18     [varargout{1:nargout}] = feval('cvwrap', 'MatchTemplate', varargin{:});\r
19 else\r
20     feval('cvwrap', 'MatchTemplate', varargin{:});\r
21 end\r
22 return;\r