rgb2gray

Function rgb2gray 

Source
pub fn rgb2gray<T>(input: &Array<T>, r: f32, g: f32, b: f32) -> Array<T>
Expand description

Color(RGB) to Grayscale conversion

ยงParameters

  • r is fraction of red channel to appear in output
  • g is fraction of green channel to appear in output
  • b is fraction of blue channel to appear in output

#Return Values

An Array with image data in target color space