pub fn ssim(a: &DynamicImage, b: &DynamicImage) -> f64Expand 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.