You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No UMat support in functions split() and merge() #12231
question (invalid tracker)ask questions and other "no action" items here: https://forum.opencv.org
question (invalid tracker)ask questions and other "no action" items here: https://forum.opencv.org
Activity
AMI-Systems commentedon Aug 16, 2018
It is not a question how to solve it.
The split() and the merge() functions should be expanded to support UMat class in accordance to other image functions.
alalek commentedon Aug 16, 2018
Raw arrays (pointers) are unsafe and these interfaces should be deprecated / dropped / removed.
UMat has support via
std::vector<UMat>ascv::InputArrayOfArrays(and probably viastd::array<UMat>in C++11).AMI-Systems commentedon Aug 17, 2018
ok, thanx.
buni-rock commentedon Aug 20, 2018
@alalek : what that really means? How can I get my way around using the split and merge with UMat?
mshabunin commentedon Aug 20, 2018
Using these overloads: https://docs.opencv.org/3.4/d2/de8/group__core__array.html#ga61f2f2bde4a0a0154b2333ea504fab1d and https://docs.opencv.org/3.4/d2/de8/group__core__array.html#ga8027f9deee1e42716be8039e5863fbd9
AMI-Systems commentedon Aug 20, 2018
Maybe the documentation is unclear. The accepted "dst output array" parameter does not mean plain "array" ( UMat m[3]; ) but vector ( std::vector m ).
alalek commentedon Aug 20, 2018
There are different overloads for these functions. Mentioned one doesn't work, but other works - check existed tests.
JulienMaille commentedon Jun 3, 2019
@alalek May I ask what is the recommended way (using Python) to merge 2 UMat into a single 2-channels UMat?
zachlowry commentedon Oct 23, 2019
Is there still no way to split/merge a UMat in Python?
Use argument value for 'mat' in call to format for vector_mat and vec…
Use argument value for 'mat' in call to format for vector_mat and vec…
Use argument value for 'mat' in call to format for vector_mat and vec…
tyler274 commentedon Nov 7, 2020
Are python users still left up a creek without a paddle here?
Huud commentedon Dec 21, 2020
Since this is the first result in google, you can use mixChannels with UMat, but instead of writing it like this:
do it like this:
Use argument value for 'mat' in call to format for vector_mat and vec…
Use argument value for 'mat' in call to format for vector_mat and vec…