[][src]Struct opencv::quality::QualityPSNR

pub struct QualityPSNR { /* fields omitted */ }

Full reference peak signal to noise ratio (PSNR) algorithm https://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio

Implementations

impl QualityPSNR[src]

impl QualityPSNR[src]

pub const MAX_PIXEL_VALUE_DEFAULT: f64[src]

pub fn create(
    ref_: &dyn ToInputArray,
    max_pixel_value: f64
) -> Result<Ptr<QualityPSNR>>
[src]

Create an object which calculates quality

Parameters

  • ref: input image to use as the source for comparison
  • maxPixelValue: maximum per-channel value for any individual pixel; eg 255 for uint8 image

C++ default parameters

  • max_pixel_value: QualityPSNR::MAX_PIXEL_VALUE_DEFAULT

pub fn compute(
    ref_: &dyn ToInputArray,
    cmp: &dyn ToInputArray,
    quality_map: &mut dyn ToOutputArray,
    max_pixel_value: f64
) -> Result<Scalar>
[src]

static method for computing quality

Parameters

  • ref: reference image
  • cmp: comparison image
  • qualityMap: output quality map, or cv::noArray()
  • maxPixelValue: maximum per-channel value for any individual pixel; eg 255 for uint8 image

Returns

PSNR value, or std::numeric_limits::infinity() if the MSE between the two images == 0

C++ default parameters

  • max_pixel_value: QualityPSNR::MAX_PIXEL_VALUE_DEFAULT

Trait Implementations

impl AlgorithmTrait for QualityPSNR[src]

impl Boxed for QualityPSNR[src]

impl Drop for QualityPSNR[src]

impl QualityBase for QualityPSNR[src]

impl QualityPSNRTrait for QualityPSNR[src]

impl Send for QualityPSNR[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.