Click or drag to resize
CvInvokeMixChannels Method
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.World (in Emgu.CV.World.dll) Version: 3.2.0.2682 (3.2.0.2682)
Syntax
public static void MixChannels(
	IInputArrayOfArrays src,
	IInputOutputArray dst,
	int[] fromTo
)

Parameters

src
Type: Emgu.CVIInputArrayOfArrays
The array of input arrays.
dst
Type: Emgu.CVIInputOutputArray
The array of output arrays
fromTo
Type: SystemInt32
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.
Remarks
Unlike many other new-style C++ functions in OpenCV, mixChannels requires the output arrays to be pre-allocated before calling the function.
See Also