Skip to main content

ssim

Function ssim 

Source
pub fn ssim(img1: &[f32], img2: &[f32]) -> Result<f32, EvalError>
Expand description

Structural Similarity Index (SSIM) between two grayscale images.

Both inputs are flat f32 slices of the same length (H*W).