Skip to main content

ssim

Function ssim 

Source
pub fn ssim(a: &DynamicImage, b: &DynamicImage) -> f64
Expand description

Compute structural-similarity (single-window, luma) between two images.

Returns a value in [-1, 1]; 1.0 means identical. Both images are converted to grayscale; if dimensions differ, the smaller is rescaled to match the larger via Lanczos3.