http://www.emgu.com
Swap channels.

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

Syntax

C#
public static void SwapChannels(
	IntPtr src,
	int[] dstOrder,
	IntPtr stream
)
Visual Basic
Public Shared Sub SwapChannels ( 
	src As IntPtr,
	dstOrder As Integer(),
	stream As IntPtr
)
Visual C++
public:
static void SwapChannels(
	IntPtr src, 
	array<int>^ dstOrder, 
	IntPtr stream
)
F#
static member SwapChannels : 
        src : IntPtr * 
        dstOrder : int[] * 
        stream : IntPtr -> unit 

Parameters

src
Type: System..::..IntPtr
The image where the channels will be swapped
dstOrder
Type: array<System..::..Int32>[]()[][]
Integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGBA image, aDstOrder = [3,2,1,0] converts this to ABGR channel order.
stream
Type: System..::..IntPtr
Use a Stream to call the function asynchronously (non-blocking) or IntPtr.Zero to call the function synchronously (blocking).

See Also