Type Definition image_compare::GraySimilarityImage
source · [−]pub type GraySimilarityImage = ImageBuffer<Luma<f32>, Vec<f32>>;Expand description
a single-channel f32 typed image containing a result-score for each pixel
Trait Implementations
sourceimpl ToGrayScale for GraySimilarityImage
impl ToGrayScale for GraySimilarityImage
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 Read more