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
2d5723cc
Commit
2d5723cc
authored
Dec 30, 2013
by
Andrey Pavlenko
Committed by
OpenCV Buildbot
Dec 30, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2095 from ilya-lavrenov:tapi_mixchannels_fix
parents
967703c3
a2e683d1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
convert.cpp
modules/core/src/convert.cpp
+3
-6
No files found.
modules/core/src/convert.cpp
View file @
2d5723cc
...
...
@@ -692,7 +692,7 @@ static bool ocl_mixChannels(InputArrayOfArrays _src, InputOutputArrayOfArrays _d
for
(
size_t
i
=
0
;
i
<
npairs
;
++
i
)
argindex
=
k
.
set
(
argindex
,
ocl
::
KernelArg
::
ReadOnlyNoSize
(
srcargs
[
i
]));
for
(
size_t
i
=
0
;
i
<
npairs
;
++
i
)
argindex
=
k
.
set
(
argindex
,
ocl
::
KernelArg
::
Read
OnlyNoSize
(
dstargs
[
i
]));
argindex
=
k
.
set
(
argindex
,
ocl
::
KernelArg
::
Write
OnlyNoSize
(
dstargs
[
i
]));
k
.
set
(
k
.
set
(
argindex
,
size
.
height
),
size
.
width
);
size_t
globalsize
[
2
]
=
{
size
.
width
,
size
.
height
};
...
...
@@ -737,12 +737,9 @@ void cv::mixChannels(InputArrayOfArrays src, InputOutputArrayOfArrays dst,
if
(
fromTo
.
empty
())
return
;
if
(
ocl
::
useOpenCL
()
&&
src
.
isUMatVector
()
&&
dst
.
isUMatVector
()
/*&&
ocl_mixChannels(src, dst, &fromTo[0], fromTo.size()>>1)*/
)
{
CV_Assert
(
ocl_mixChannels
(
src
,
dst
,
&
fromTo
[
0
],
fromTo
.
size
()
>>
1
));
if
(
ocl
::
useOpenCL
()
&&
src
.
isUMatVector
()
&&
dst
.
isUMatVector
()
&&
ocl_mixChannels
(
src
,
dst
,
&
fromTo
[
0
],
fromTo
.
size
()
>>
1
))
return
;
}
bool
src_is_mat
=
src
.
kind
()
!=
_InputArray
::
STD_VECTOR_MAT
&&
src
.
kind
()
!=
_InputArray
::
STD_VECTOR_VECTOR
&&
...
...
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