| 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
)
Public Shared Sub CvtColorTwoPlane (
src1 As InputArray,
src2 As InputArray,
dst As OutputArray,
code As ColorConversionCodes
)
public:
static void CvtColorTwoPlane(
InputArray^ src1,
InputArray^ src2,
OutputArray^ dst,
ColorConversionCodes code
)
static member CvtColorTwoPlane :
src1 : InputArray *
src2 : InputArray *
dst : OutputArray *
code : ColorConversionCodes -> unit
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