opencv::imgcodecs
pub const IMREAD_GRAYSCALE: i32 = 0;
If set, always convert image to the single channel grayscale image (codec internal conversion).