Table of Contents

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

src1 InputArray

8-bit image (#CV_8U) of the Y plane.

src2 InputArray

image containing interleaved U/V plane.

dst OutputArray

output image.

code ColorConversionCodes

Specifies 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

hint AlgorithmHint

Hint that selects between alternative algorithm implementations (OpenCV 5).