Click or drag to resize

Cv2CvtColorTwoPlane Method

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.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static void CvtColorTwoPlane(
	InputArray src1,
	InputArray src2,
	OutputArray dst,
	ColorConversionCodes code
)

Parameters

src1
Type: OpenCvSharpInputArray
8-bit image (#CV_8U) of the Y plane.
src2
Type: OpenCvSharpInputArray
image containing interleaved U/V plane.
dst
Type: OpenCvSharpOutputArray
output image.
code
Type: OpenCvSharpColorConversionCodes
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
See Also