opencv::gapi

Function bgr2_gray

Source
pub fn bgr2_gray(src: &impl GMatTraitConst) -> Result<GMat>
Expand description

Converts an image from BGR color space to gray-scaled.

The conventional ranges for B, G, and R channel values are 0 to 255. Resulting gray color value computed as block formula

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

§Parameters

  • src: input image: 8-bit unsigned 3-channel image [CV_8UC1].

§See also

BGR2LUV