Cv2ExtractImageCOI Method OpenCvSharp Class Library
Extract the selected image channel

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static void ExtractImageCOI(
	CvArr arr,
	OutputArray coiimg,
	int coi = -1
)

Parameters

arr
Type: OpenCvSharpCvArr
The source array. It should be a pointer to CvMat or IplImage
coiimg
Type: OpenCvSharp.CPlusPlusOutputArray
The destination array; will have single-channel, and the same size and the same depth as src
coi (Optional)
Type: SystemInt32
If the parameter is >=0, it specifies the channel to extract; If it is <0, src must be a pointer to IplImage with valid COI set - then the selected COI is extracted. [By default this is -1]
See Also

Reference