pub fn ssim(img1: &[f32], img2: &[f32]) -> Result<f32, EvalError>
Structural Similarity Index (SSIM) between two grayscale images.
Both inputs are flat f32 slices of the same length (H*W).