Converts image from one color space to another
            
 
    Namespace: 
   OpenCvSharp
    Assembly:
   OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
 Syntax
Syntaxpublic Mat CvtColor(
	ColorConversionCodes code,
	int dstCn = 0
)
Public Function CvtColor ( 
	code As ColorConversionCodes,
	Optional dstCn As Integer = 0
) As Mat
public:
Mat^ CvtColor(
	ColorConversionCodes code, 
	int dstCn = 0
)
member CvtColor : 
        code : ColorConversionCodes * 
        ?dstCn : int 
(* Defaults:
        let _dstCn = defaultArg dstCn 0
*)
-> Mat 
function CvtColor(code, dstCn);
Parameters
- code
- Type: OpenCvSharpColorConversionCodes
 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: 
MatThe destination image; will have the same size and the same depth as src
 See Also
See Also