| Cv2CvtColor Method |
Converts image from one color space to another
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static void CvtColor(
InputArray src,
OutputArray dst,
ColorConversionCodes code,
int dstCn = 0
)
Public Shared Sub CvtColor (
src As InputArray,
dst As OutputArray,
code As ColorConversionCodes,
Optional dstCn As Integer = 0
)
public:
static void CvtColor(
InputArray^ src,
OutputArray^ dst,
ColorConversionCodes code,
int dstCn = 0
)
static member CvtColor :
src : InputArray *
dst : OutputArray *
code : ColorConversionCodes *
?dstCn : int
(* Defaults:
let _dstCn = defaultArg dstCn 0
*)
-> unit
Parameters
- src
- Type: OpenCvSharpInputArray
The source image, 8-bit unsigned, 16-bit unsigned or single-precision floating-point - dst
- Type: OpenCvSharpOutputArray
The destination image; will have the same size and the same depth as src - 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
See Also