|
|
|
@ -688,7 +688,7 @@ static bool ocl_mixChannels(InputArrayOfArrays _src, InputOutputArrayOfArrays _d |
|
|
|
|
if (k.empty()) |
|
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
size_t argindex = 0; |
|
|
|
|
int argindex = 0; |
|
|
|
|
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) |
|
|
|
@ -712,9 +712,11 @@ void cv::mixChannels(InputArrayOfArrays src, InputOutputArrayOfArrays dst, |
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
bool src_is_mat = src.kind() != _InputArray::STD_VECTOR_MAT && |
|
|
|
|
src.kind() != _InputArray::STD_VECTOR_VECTOR; |
|
|
|
|
src.kind() != _InputArray::STD_VECTOR_VECTOR && |
|
|
|
|
src.kind() != _InputArray::STD_VECTOR_UMAT; |
|
|
|
|
bool dst_is_mat = dst.kind() != _InputArray::STD_VECTOR_MAT && |
|
|
|
|
dst.kind() != _InputArray::STD_VECTOR_VECTOR; |
|
|
|
|
dst.kind() != _InputArray::STD_VECTOR_VECTOR && |
|
|
|
|
dst.kind() != _InputArray::STD_VECTOR_UMAT; |
|
|
|
|
int i; |
|
|
|
|
int nsrc = src_is_mat ? 1 : (int)src.total(); |
|
|
|
|
int ndst = dst_is_mat ? 1 : (int)dst.total(); |
|
|
|
@ -743,9 +745,11 @@ void cv::mixChannels(InputArrayOfArrays src, InputOutputArrayOfArrays dst, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool src_is_mat = src.kind() != _InputArray::STD_VECTOR_MAT && |
|
|
|
|
src.kind() != _InputArray::STD_VECTOR_VECTOR; |
|
|
|
|
src.kind() != _InputArray::STD_VECTOR_VECTOR && |
|
|
|
|
src.kind() != _InputArray::STD_VECTOR_UMAT; |
|
|
|
|
bool dst_is_mat = dst.kind() != _InputArray::STD_VECTOR_MAT && |
|
|
|
|
dst.kind() != _InputArray::STD_VECTOR_VECTOR; |
|
|
|
|
dst.kind() != _InputArray::STD_VECTOR_VECTOR && |
|
|
|
|
dst.kind() != _InputArray::STD_VECTOR_UMAT; |
|
|
|
|
int i; |
|
|
|
|
int nsrc = src_is_mat ? 1 : (int)src.total(); |
|
|
|
|
int ndst = dst_is_mat ? 1 : (int)dst.total(); |
|
|
|
|