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
0876ec7a
Commit
0876ec7a
authored
Jul 11, 2014
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2935 from vbystricky:oclopt_meanStdDev
parents
cbf63b07
690c932d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
stat.cpp
modules/core/src/stat.cpp
+8
-2
No files found.
modules/core/src/stat.cpp
View file @
0876ec7a
...
...
@@ -918,8 +918,14 @@ static bool ocl_meanStdDev( InputArray _src, OutputArray _mean, OutputArray _sdv
int
type
=
_src
.
type
(),
depth
=
CV_MAT_DEPTH
(
type
),
cn
=
CV_MAT_CN
(
type
);
bool
doubleSupport
=
ocl
::
Device
::
getDefault
().
doubleFPConfig
()
>
0
,
isContinuous
=
_src
.
isContinuous
();
int
groups
=
ocl
::
Device
::
getDefault
().
maxComputeUnits
();
size_t
wgs
=
ocl
::
Device
::
getDefault
().
maxWorkGroupSize
();
const
ocl
::
Device
&
defDev
=
ocl
::
Device
::
getDefault
();
int
groups
=
defDev
.
maxComputeUnits
();
if
(
defDev
.
isIntel
())
{
static
const
int
subSliceEUCount
=
10
;
groups
=
(
groups
/
subSliceEUCount
)
*
2
;
}
size_t
wgs
=
defDev
.
maxWorkGroupSize
();
int
ddepth
=
std
::
max
(
CV_32S
,
depth
),
sqddepth
=
std
::
max
(
CV_32F
,
depth
),
dtype
=
CV_MAKE_TYPE
(
ddepth
,
cn
),
...
...
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