ConvertColorSpaceSwapChannels Method

CVB.Net Documentation
Create a new image by rearranging the planes of the input image.

Namespace:  Stemmer.Cvb.Foundation
Assembly:  Stemmer.Cvb.Foundation (in Stemmer.Cvb.Foundation.dll) Version: 14.0.0.0
Syntax

public static Image SwapChannels(
	Image img,
	int[] newArrangement
)

Parameters

img
Type: Stemmer.CvbImage
Input image.
newArrangement
Type: SystemInt32

Array that defines the new plane arrangement.

For example for an RGB image, the array [2,1,0] would cause the image planes to be rearranged to BGR plane order.

Return Value

Type: Image
New transformed image.
Exceptions

ExceptionCondition
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed
Remarks

This method differs from Map(IEnumerableInt32) in that this creates a new interleaved image buffer instead of just giving a new view on the data.
See Also

Reference