Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
ada2879f
Commit
ada2879f
authored
May 15, 2014
by
Alexander Alekhin
Committed by
OpenCV Buildbot
May 15, 2014
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2756 from ElenaGvozdeva:ippi_matchTemplate
parents
cafcfc4d
ce0b808e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
templmatch.cpp
modules/imgproc/src/templmatch.cpp
+4
-2
No files found.
modules/imgproc/src/templmatch.cpp
View file @
ada2879f
...
@@ -634,7 +634,9 @@ void cv::matchTemplate( InputArray _img, InputArray _templ, OutputArray _result,
...
@@ -634,7 +634,9 @@ void cv::matchTemplate( InputArray _img, InputArray _templ, OutputArray _result,
#endif
#endif
#if defined HAVE_IPP
#if defined HAVE_IPP
if
(
method
==
CV_TM_SQDIFF
&&
cn
==
1
)
bool
useIppMT
=
(
templ
.
rows
<
img
.
rows
/
2
&&
templ
.
cols
<
img
.
cols
/
2
);
if
(
method
==
CV_TM_SQDIFF
&&
cn
==
1
&&
useIppMT
)
{
{
if
(
ipp_sqrDistance
(
img
,
templ
,
result
))
if
(
ipp_sqrDistance
(
img
,
templ
,
result
))
return
;
return
;
...
@@ -643,7 +645,7 @@ void cv::matchTemplate( InputArray _img, InputArray _templ, OutputArray _result,
...
@@ -643,7 +645,7 @@ void cv::matchTemplate( InputArray _img, InputArray _templ, OutputArray _result,
#endif
#endif
#if defined HAVE_IPP
#if defined HAVE_IPP
if
(
cn
==
1
)
if
(
cn
==
1
&&
useIppMT
)
{
{
if
(
!
ipp_crossCorr
(
img
,
templ
,
result
))
if
(
!
ipp_crossCorr
(
img
,
templ
,
result
))
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment