[−][src]Function blockhash::blockhash16
pub fn blockhash16<I: Image>(img: &I) -> Blockhash16
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]));