Function nv12to_gray

Source
pub fn nv12to_gray(
    src_y: &impl GMatTraitConst,
    src_uv: &impl GMatTraitConst,
) -> Result<GMat>
Expand description

Converts an image from NV12 (YUV420p) color space to gray-scaled. The function converts an input image from NV12 color space to gray-scaled. The conventional ranges for Y, U, and V channel values are 0 to 255.

Output image must be 8-bit unsigned 1-channel image [CV_8UC1].

Note: Function textual ID is “org.opencv.imgproc.colorconvert.nv12togray”

§Parameters

  • src_y: input image: 8-bit unsigned 1-channel image [CV_8UC1].
  • src_uv: input image: 8-bit unsigned 2-channel image [CV_8UC2].

§See also

YUV2RGB, NV12toBGR