Lines Matching refs:_templ
169 static bool convolve_dft(InputArray _image, InputArray _templ, OutputArray _result) in convolve_dft() argument
173 CV_Assert(_templ.type() == CV_32F); in convolve_dft()
175 buf.create(_image.size(), _templ.size()); in convolve_dft()
179 UMat templ = _templ.getUMat(); in convolve_dft()
235 static bool convolve_32F(InputArray _image, InputArray _templ, OutputArray _result) in convolve_32F() argument
237 _result.create(_image.rows() - _templ.rows() + 1, _image.cols() - _templ.cols() + 1, CV_32F); in convolve_32F()
240 return(convolve_dft(_image, _templ, _result)); in convolve_32F()
244 UMat templ = _templ.getUMat(); in convolve_32F()
254 static bool matchTemplateNaive_CCORR(InputArray _image, InputArray _templ, OutputArray _result) in matchTemplateNaive_CCORR() argument
282 UMat image = _image.getUMat(), templ = _templ.getUMat(); in matchTemplateNaive_CCORR()
294 static bool matchTemplate_CCORR(InputArray _image, InputArray _templ, OutputArray _result) in matchTemplate_CCORR() argument
296 if (useNaive(_templ.size())) in matchTemplate_CCORR()
297 return( matchTemplateNaive_CCORR(_image, _templ, _result)); in matchTemplate_CCORR()
304 UMat templ = _templ.getUMat(); in matchTemplate_CCORR()
311 return(convolve_32F(_image, _templ, _result)); in matchTemplate_CCORR()
316 static bool matchTemplate_CCORR_NORMED(InputArray _image, InputArray _templ, OutputArray _result) in matchTemplate_CCORR_NORMED() argument
318 matchTemplate(_image, _templ, _result, CV_TM_CCORR); in matchTemplate_CCORR_NORMED()
327 UMat image = _image.getUMat(), templ = _templ.getUMat(); in matchTemplate_CCORR_NORMED()
347 static bool matchTemplateNaive_SQDIFF(InputArray _image, InputArray _templ, OutputArray _result) in matchTemplateNaive_SQDIFF() argument
359 UMat image = _image.getUMat(), templ = _templ.getUMat(); in matchTemplateNaive_SQDIFF()
370 static bool matchTemplate_SQDIFF(InputArray _image, InputArray _templ, OutputArray _result) in matchTemplate_SQDIFF() argument
372 if (useNaive(_templ.size())) in matchTemplate_SQDIFF()
373 return( matchTemplateNaive_SQDIFF(_image, _templ, _result)); in matchTemplate_SQDIFF()
376 matchTemplate(_image, _templ, _result, CV_TM_CCORR); in matchTemplate_SQDIFF()
385 UMat image = _image.getUMat(), templ = _templ.getUMat(); in matchTemplate_SQDIFF()
393 if (!sumTemplate(_templ, templ_sqsum)) in matchTemplate_SQDIFF()
405 static bool matchTemplate_SQDIFF_NORMED(InputArray _image, InputArray _templ, OutputArray _result) in matchTemplate_SQDIFF_NORMED() argument
407 matchTemplate(_image, _templ, _result, CV_TM_CCORR); in matchTemplate_SQDIFF_NORMED()
416 UMat image = _image.getUMat(), templ = _templ.getUMat(); in matchTemplate_SQDIFF_NORMED()
424 if (!sumTemplate(_templ, templ_sqsum)) in matchTemplate_SQDIFF_NORMED()
437 static bool matchTemplate_CCOEFF(InputArray _image, InputArray _templ, OutputArray _result) in matchTemplate_CCOEFF() argument
439 matchTemplate(_image, _templ, _result, CV_TM_CCORR); in matchTemplate_CCOEFF()
451 UMat templ = _templ.getUMat(); in matchTemplate_CCOEFF()
472 static bool matchTemplate_CCOEFF_NORMED(InputArray _image, InputArray _templ, OutputArray _result) in matchTemplate_CCOEFF_NORMED() argument
474 matchTemplate(_image, _templ, _result, CV_TM_CCORR); in matchTemplate_CCOEFF_NORMED()
486 UMat templ = _templ.getUMat(); in matchTemplate_CCOEFF_NORMED()
542 static bool ocl_matchTemplate( InputArray _img, InputArray _templ, OutputArray _result, int method) in ocl_matchTemplate() argument
549 typedef bool (*Caller)(InputArray _img, InputArray _templ, OutputArray _result); in ocl_matchTemplate()
558 return caller(_img, _templ, _result); in ocl_matchTemplate()
635 void crossCorr( const Mat& img, const Mat& _templ, Mat& corr, in crossCorr() argument
643 Mat templ = _templ; in crossCorr()
652 _templ.convertTo(templ, std::max(CV_32F, depth)); in crossCorr()
818 static void matchTemplateMask( InputArray _img, InputArray _templ, OutputArray _result, int method,… in matchTemplateMask() argument
822 CV_Assert( (depth == CV_8U || depth == CV_32F) && type == _templ.type() && _img.dims() <= 2 ); in matchTemplateMask()
824 Mat img = _img.getMat(), templ = _templ.getMat(), mask = _mask.getMat(); in matchTemplateMask()
900 void cv::matchTemplate( InputArray _img, InputArray _templ, OutputArray _result, int method, InputA… in matchTemplate() argument
904 cv::matchTemplateMask(_img, _templ, _result, method, _mask); in matchTemplate()
910 CV_Assert( (depth == CV_8U || depth == CV_32F) && type == _templ.type() && _img.dims() <= 2 ); in matchTemplate()
912 …bool needswap = _img.size().height < _templ.size().height || _img.size().width < _templ.size().wid… in matchTemplate()
915 … CV_Assert(_img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width); in matchTemplate()
919 …(!needswap ? ocl_matchTemplate(_img, _templ, _result, method) : ocl_matchTemplate(_templ, _img, _r… in matchTemplate()
927 Mat img = _img.getMat(), templ = _templ.getMat(); in matchTemplate()
1087 cvMatchTemplate( const CvArr* _img, const CvArr* _templ, CvArr* _result, int method ) in cvMatchTemplate() argument
1089 cv::Mat img = cv::cvarrToMat(_img), templ = cv::cvarrToMat(_templ), in cvMatchTemplate()