rgb2_lab

Function rgb2_lab 

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

Converts an image from RGB color space to Lab color space.

The function converts an input image from BGR color space to Lab. The conventional ranges for R, G, and B channel values are 0 to 255.

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

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

§Parameters

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

§See also

RGB2YUV, RGB2LUV