pub fn peak_signal_to_noise_ratio<I, J, P>(original: &I, noisy: &J) -> f64
where I: GenericImageView<Pixel = P>, J: GenericImageView<Pixel = P>, P: Pixel, P::Subpixel: ValueInto<f64> + Primitive,
Expand description

Returns the peak signal to noise ratio for a clean image and its noisy approximation. All channels are considered equally. If you do not want this (e.g. if using RGBA) then change image formats first. See also peak signal-to-noise ratio (wikipedia).