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
98d55f34
Commit
98d55f34
authored
Oct 15, 2013
by
Andrey Pavlenko
Committed by
OpenCV Buildbot
Oct 15, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1625 from ilya-lavrenov:to_string
parents
1eb322fa
741e0242
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
arithm.cpp
modules/ocl/src/arithm.cpp
+1
-8
No files found.
modules/ocl/src/arithm.cpp
View file @
98d55f34
...
...
@@ -1345,13 +1345,6 @@ static void bitwise_unary_run(const oclMat &src1, oclMat &dst, string kernelName
enum
{
AND
=
0
,
OR
,
XOR
};
static
std
::
string
to_string
(
int
value
)
{
std
::
ostringstream
stream
;
stream
<<
value
;
return
stream
.
str
();
}
static
void
bitwise_binary_run
(
const
oclMat
&
src1
,
const
oclMat
&
src2
,
const
Scalar
&
src3
,
const
oclMat
&
mask
,
oclMat
&
dst
,
int
operationType
)
{
...
...
@@ -1366,7 +1359,7 @@ static void bitwise_binary_run(const oclMat &src1, const oclMat &src2, const Sca
std
::
string
kernelName
(
"arithm_bitwise_binary"
);
int
vlen
=
std
::
min
<
int
>
(
8
,
src1
.
elemSize1
()
*
src1
.
oclchannels
());
std
::
string
vlenstr
=
vlen
>
1
?
to_string
(
vlen
)
:
""
;
std
::
string
vlenstr
=
vlen
>
1
?
format
(
"%d"
,
vlen
)
:
""
;
std
::
string
buildOptions
=
format
(
"-D Operation=%c -D vloadn=vload%s -D vstoren=vstore%s -D elemSize=%d -D vlen=%d"
" -D ucharv=uchar%s"
,
operationMap
[
operationType
],
vlenstr
.
c_str
(),
vlenstr
.
c_str
(),
...
...
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