Function blockhash::blockhash16
source · [−]pub fn blockhash16<I: Image>(img: &I) -> Blockhash16
Expand description
Generates a 16-bit perceptual hash of an image.
Examples
use blockhash::{blockhash16, Blockhash16};
let img = image::open("images/512x512_rgb.png").unwrap();
let hash = blockhash16(&img);
assert_eq!(hash, Blockhash16::from([0x35, 0x6c]));