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
5968b881
Commit
5968b881
authored
Feb 04, 2014
by
Andrey Pavlenko
Committed by
OpenCV Buildbot
Feb 04, 2014
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2275 from ElenaGvozdeva:ocl_matchTemplate
parents
92c8b94b
85d519b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
templmatch.cpp
modules/imgproc/src/templmatch.cpp
+7
-2
No files found.
modules/imgproc/src/templmatch.cpp
View file @
5968b881
...
...
@@ -191,8 +191,13 @@ static bool matchTemplate_CCOEFF(InputArray _image, InputArray _templ, OutputArr
{
matchTemplate
(
_image
,
_templ
,
_result
,
CV_TM_CCORR
);
UMat
image_sums
;
integral
(
_image
,
image_sums
);
UMat
image_sums
,
temp
;
integral
(
_image
,
temp
);
if
(
temp
.
depth
()
==
CV_64F
)
temp
.
convertTo
(
image_sums
,
CV_32F
);
else
image_sums
=
temp
;
int
type
=
image_sums
.
type
(),
depth
=
CV_MAT_DEPTH
(
type
),
cn
=
CV_MAT_CN
(
type
);
...
...
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