Trait image_compare::ToGrayScale
source · pub trait ToGrayScale {
// Required method
fn to_grayscale(&self) -> GrayImage;
}Required Methods§
sourcefn to_grayscale(&self) -> GrayImage
fn to_grayscale(&self) -> GrayImage
Clamps each input pixel to (0., 1.) and multiplies by 255 before converting to u8. See tests/data/*_compare.png images for examples