Why did you change the "array or matrix vector" to just "the matrix array"?
As for the argument fromTo, I will try to expand this paragraph.
array of index pairs specifying which channels are copied and where;
[In, Out, In, Out, In, Out,...]. , . .
fromTo[k*2] is a 0-based index of the input channel in src,
fromTo[k*2+1] is an index of the output channel in dst;
, fromTo , .
the continuous channel numbering is used: the first input image channels
are indexed from 0 to src[0].channels()-1, the second input image
channels are indexed from
src[0].channels() to src[0].channels() + src[1].channels()-1, and so on,
. , , . src[0] - , src[1] - .
, : 0, 1, 2, 3, 4, 5. , 0, 1, 2 ( "0 to src[0].channels()-1" ), 3, 4, 5 ( "src[0].channels()" (.. 3) "to src[0].channels() + src[1].channels()-1" (.. 3 + 3 - 1 = 5))
, .
the same scheme is used for the output image channels;
, .
as a special case, when fromTo[k*2] is negative,
the corresponding output channel is filled with zero .
/, - -1, 3, , 3, .