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
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
13 error 'Invalid number of parameters';
\r
18 [varargout{1:nargout}] = feval('cvwrap', 'MatchTemplate', varargin{:});
\r
20 feval('cvwrap', 'MatchTemplate', varargin{:});
\r