[][src]Function dhash::to_grey_signature_image

pub fn to_grey_signature_image<I: GenericImageView + 'static>(
    img: &I
) -> ImageBuffer<Luma<<<I as GenericImageView>::Pixel as Pixel>::Subpixel>, Vec<<<I as GenericImageView>::Pixel as Pixel>::Subpixel>>

Converts the image to a dhash image

Returns an image that is a 9x8 grayscale image so the pixels can be used in comparison

Used internally by the get_dhash method and is not normally needed to be called directly

Example

let img = image::open("test.jpg").expect("Could not open image");
let grey_signature_image = to_grey_signature_image(&img);