From c768731e8974ce2d3c1d32e345faed22b68ba3bc Mon Sep 17 00:00:00 2001 From: Sergei Nosov Date: Mon, 4 Feb 2013 12:57:03 +0400 Subject: [PATCH] enable Tegra optimizations --- modules/imgproc/src/templmatch.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/imgproc/src/templmatch.cpp b/modules/imgproc/src/templmatch.cpp index 0a3b95d7c7..ec7a92a223 100644 --- a/modules/imgproc/src/templmatch.cpp +++ b/modules/imgproc/src/templmatch.cpp @@ -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);