Function ssim_rgba8
pub fn ssim_rgba8(img1: &[u8], img2: &[u8], width: usize, height: usize) -> f32Expand description
Structural Similarity Index (SSIM) between two RGBA8 image buffers.
SSIM measures the structural similarity between two images, accounting for luminance, contrast, and structure. Returns a value in [0, 1] where 1 is identical. Uses a sliding window over the luminance channel.
Reference: Z. Wang, A. C. Bovik, H. R. Sheikh, E. P. Simoncelli, “Image quality assessment: from error visibility to structural similarity”, IEEE Transactions on Image Processing, 2004.