[][src]Function opencv::imgproc::cvt_color_two_plane

pub fn cvt_color_two_plane(
    src1: &dyn ToInputArray,
    src2: &dyn ToInputArray,
    dst: &mut dyn ToOutputArray,
    code: i32
) -> Result<()>

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.

Parameters

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