From: Sergei Nosov Date: Mon, 4 Feb 2013 08:57:03 +0000 (+0400) Subject: enable Tegra optimizations X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~1314^2~1549^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c768731e8974ce2d3c1d32e345faed22b68ba3bc;p=platform%2Fupstream%2Fopencv.git enable Tegra optimizations --- diff --git a/modules/imgproc/src/templmatch.cpp b/modules/imgproc/src/templmatch.cpp index 0a3b95d..ec7a92a 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);