Skip to main content

psnr

Function psnr 

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

Peak Signal-to-Noise Ratio between two images.

Both inputs are flat f32 slices (same length). max_val is the maximum pixel value.