Method CvtColorTwoPlane
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
CvtColorTwoPlane(InputArray, InputArray, OutputArray, ColorConversionCodes, AlgorithmHint)
Converts an image from one color space to another where the source image is stored in two planes. This function only supports YUV420 to RGB conversion as of now.
public static void CvtColorTwoPlane(InputArray src1, InputArray src2, OutputArray dst, ColorConversionCodes code, AlgorithmHint hint = AlgorithmHint.Default)
Parameters
src1InputArray8-bit image (#CV_8U) of the Y plane.
src2InputArrayimage containing interleaved U/V plane.
dstOutputArrayoutput image.
codeColorConversionCodesSpecifies the type of conversion. It can take any of the following values: - #COLOR_YUV2BGR_NV12 - #COLOR_YUV2RGB_NV12 - #COLOR_YUV2BGRA_NV12 - #COLOR_YUV2RGBA_NV12 - #COLOR_YUV2BGR_NV21 - #COLOR_YUV2RGB_NV21 - #COLOR_YUV2BGRA_NV21 - #COLOR_YUV2RGBA_NV21
hintAlgorithmHintHint that selects between alternative algorithm implementations (OpenCV 5).