http://www.emgu.com
The function cvMixChannels is a generalized form of cvSplit and cvMerge and some forms of cvCvtColor. It can be used to change the order of the planes, add/remove alpha channel, extract or insert a single plane or multiple planes etc.

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.10.1935 (2.4.10.1935)

Syntax

C#
public static void cvMixChannels(
	IntPtr[] src,
	int srcCount,
	IntPtr[] dst,
	int dstCount,
	int[] fromTo,
	int pairCount
)
Visual Basic
Public Shared Sub cvMixChannels ( 
	src As IntPtr(),
	srcCount As Integer,
	dst As IntPtr(),
	dstCount As Integer,
	fromTo As Integer(),
	pairCount As Integer
)
Visual C++
public:
static void cvMixChannels(
	array<IntPtr>^ src, 
	int srcCount, 
	array<IntPtr>^ dst, 
	int dstCount, 
	array<int>^ fromTo, 
	int pairCount
)
F#
static member cvMixChannels : 
        src : IntPtr[] * 
        srcCount : int * 
        dst : IntPtr[] * 
        dstCount : int * 
        fromTo : int[] * 
        pairCount : int -> unit 

Parameters

src
Type: array<System..::..IntPtr>[]()[][]
The array of input arrays.
srcCount
Type: System..::..Int32
The number of input arrays
dst
Type: array<System..::..IntPtr>[]()[][]
The array of output arrays
dstCount
Type: System..::..Int32
The number of output arrays
fromTo
Type: array<System..::..Int32>[]()[][]
The array of pairs of indices of the planes copied. from_to[k*2] is the 0-based index of the input plane, and from_to[k*2+1] is the index of the output plane, where the continuous numbering of the planes over all the input and over all the output arrays is used. When from_to[k*2] is negative, the corresponding output plane is filled with 0's.
pairCount
Type: System..::..Int32
The number of pairs in from_to, or the number of the planes copied

See Also