cvtColor¶

Functionality¶
Converts an image from one color space to another.
Inputs¶
- code_in – Color space conversion code (see cv::ColorConversionCodes).
- dstCn_in – Number of channels in the destination image; if the parameter is 0, the number of the channels is derived automatically from input image and code.
- image_in – Input image: 8-bit unsigned, 16-bit unsigned ( CV_16UC… ), or single-precision floating-point.
Outputs¶
- image_out – Output image of the same size and depth as input image.