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
ff8e5a04
Commit
ff8e5a04
authored
Oct 09, 2013
by
Andrey Pavlenko
Committed by
OpenCV Buildbot
Oct 09, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1586 from ilya-lavrenov:ocl_setto_win_fix
parents
d04c4ef7
bdd5038d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
matrix_operations.cpp
modules/ocl/src/matrix_operations.cpp
+7
-7
No files found.
modules/ocl/src/matrix_operations.cpp
View file @
ff8e5a04
...
...
@@ -362,8 +362,8 @@ static std::vector<uchar> cvt2(const cv::Scalar & s)
{
std
::
vector
<
uchar
>
_buf
(
sizeof
(
CLT
));
CLT
*
const
buf
=
reinterpret_cast
<
CLT
*>
(
&
_buf
[
0
]);
buf
->
s
0
=
saturate_cast
<
PT
>
(
s
[
0
]);
buf
->
s
1
=
saturate_cast
<
PT
>
(
s
[
1
]);
buf
->
s
[
0
]
=
saturate_cast
<
PT
>
(
s
[
0
]);
buf
->
s
[
1
]
=
saturate_cast
<
PT
>
(
s
[
1
]);
return
_buf
;
}
...
...
@@ -372,10 +372,10 @@ static std::vector<uchar> cvt4(const cv::Scalar & s)
{
std
::
vector
<
uchar
>
_buf
(
sizeof
(
CLT
));
CLT
*
const
buf
=
reinterpret_cast
<
CLT
*>
(
&
_buf
[
0
]);
buf
->
s
0
=
saturate_cast
<
PT
>
(
s
[
0
]);
buf
->
s
1
=
saturate_cast
<
PT
>
(
s
[
1
]);
buf
->
s
2
=
saturate_cast
<
PT
>
(
s
[
2
]);
buf
->
s
3
=
saturate_cast
<
PT
>
(
s
[
3
]);
buf
->
s
[
0
]
=
saturate_cast
<
PT
>
(
s
[
0
]);
buf
->
s
[
1
]
=
saturate_cast
<
PT
>
(
s
[
1
]);
buf
->
s
[
2
]
=
saturate_cast
<
PT
>
(
s
[
2
]);
buf
->
s
[
3
]
=
saturate_cast
<
PT
>
(
s
[
3
]);
return
_buf
;
}
...
...
@@ -428,7 +428,7 @@ static void set_to_withoutmask_run(const oclMat &dst, const Scalar &scalar, stri
// run on OpenCL 1.1 platform if library binaries are compiled with OpenCL 1.2 support
if
(
Context
::
getContext
()
->
supportsFeature
(
FEATURE_CL_VER_1_2
)
&&
dst
.
isContinuous
())
{
std
::
vector
<
uchar
>
p
=
::
scalarToCLVector
(
scalar
,
dst
.
type
(
));
std
::
vector
<
uchar
>
p
=
::
scalarToCLVector
(
scalar
,
CV_MAKE_TYPE
(
dst
.
depth
(),
dst
.
oclchannels
()
));
clEnqueueFillBuffer
(
getClCommandQueue
(
dst
.
clCxt
),
(
cl_mem
)
dst
.
data
,
(
void
*
)
&
p
[
0
],
p
.
size
(),
0
,
dst
.
step
*
dst
.
rows
,
0
,
NULL
,
NULL
);
...
...
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