[][src]Function imageproc::stats::peak_signal_to_noise_ratio

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

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).