pub fn peak_signal_to_noise_ratio<I, J, P>(original: &I, noisy: &J) -> f64where
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 aproximation. 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).