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
a54a3073
Commit
a54a3073
authored
Apr 13, 2013
by
Andrey Kamaev
Committed by
OpenCV Buildbot
Apr 13, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #810 from pengx17:master_fix_ocl_tmflag
parents
3b364330
33361929
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
match_template.cpp
modules/ocl/src/match_template.cpp
+2
-2
No files found.
modules/ocl/src/match_template.cpp
View file @
a54a3073
...
...
@@ -101,11 +101,11 @@ namespace cv
static
bool
useNaive
(
int
method
,
int
depth
,
Size
size
)
{
#ifdef HAVE_CLAMDFFT
if
(
method
==
CV_
TM_SQDIFF
&&
(
depth
==
CV_32F
||
!
Context
::
getContext
()
->
supportsFeature
(
Context
::
CL_DOUBLE
)))
if
(
method
==
TM_SQDIFF
&&
(
depth
==
CV_32F
||
!
Context
::
getContext
()
->
supportsFeature
(
Context
::
CL_DOUBLE
)))
{
return
true
;
}
else
if
(
method
==
CV_TM_CCORR
||
(
method
==
CV_
TM_SQDIFF
&&
depth
==
CV_8U
))
else
if
(
method
==
TM_CCORR
||
(
method
==
TM_SQDIFF
&&
depth
==
CV_8U
))
{
return
size
.
height
<
18
&&
size
.
width
<
18
;
}
...
...
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