Merge pull request #431 from snosov1:matchTemplate-tegra

This commit is contained in:
Andrey Kamaev
2013-02-05 14:50:15 +04:00
committed by OpenCV Buildbot
2 changed files with 86 additions and 0 deletions

View File

@@ -252,6 +252,11 @@ void cv::matchTemplate( InputArray _img, InputArray _templ, OutputArray _result,
_result.create(corrSize, CV_32F);
Mat result = _result.getMat();
#ifdef HAVE_TEGRA_OPTIMIZATION
if (tegra::matchTemplate(img, templ, result, method))
return;
#endif
int cn = img.channels();
crossCorr( img, templ, result, result.size(), result.type(), Point(0,0), 0, 0);