MatCvtColor Method OpenCvSharp Class Library
Converts image from one color space to another

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

public Mat CvtColor(
	ColorConversion code,
	int dstCn = 0
)

Parameters

code
Type: OpenCvSharpColorConversion
The color space conversion code
dstCn (Optional)
Type: SystemInt32
The number of channels in the destination image; if the parameter is 0, the number of the channels will be derived automatically from src and the code

Return Value

Type: Mat
The destination image; will have the same size and the same depth as src
See Also

Reference