projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db9de43
)
enable Tegra optimizations
author
Sergei Nosov
<sergei.nosov@itseez.com>
Mon, 4 Feb 2013 08:57:03 +0000
(12:57 +0400)
committer
Sergei Nosov
<sergei.nosov@itseez.com>
Mon, 4 Feb 2013 08:57:03 +0000
(12:57 +0400)
modules/imgproc/src/templmatch.cpp
patch
|
blob
|
history
diff --git
a/modules/imgproc/src/templmatch.cpp
b/modules/imgproc/src/templmatch.cpp
index
0a3b95d
..
ec7a92a
100644
(file)
--- 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);