[][src]Function blockhash::blockhash144

pub fn blockhash144<I: Image>(img: &I) -> Blockhash144

Generates a 144-bit perceptual hash of an image.

Examples

use blockhash::{blockhash144, Blockhash144};

let img = image::open("images/512x512_rgb.png").unwrap();
let hash = blockhash144(&img);

assert_eq!(
    hash,
    Blockhash144::from([
        0x93, 0xfc, 0x0d, 0x91, 0x3b, 0xd3, 0x18, 0x33, 0x2b,
        0x37, 0xc3, 0x7d, 0x30, 0x83, 0x28, 0xe2, 0xef, 0x83,
    ]),
);