[][src]Trait opencv::quality::QualityPSNRTrait

pub trait QualityPSNRTrait: QualityBase {
    pub fn as_raw_QualityPSNR(&self) -> *const c_void;
pub fn as_raw_mut_QualityPSNR(&mut self) -> *mut c_void; pub fn compute(&mut self, cmp: &dyn ToInputArray) -> Result<Scalar> { ... }
pub fn empty(&self) -> Result<bool> { ... }
pub fn clear(&mut self) -> Result<()> { ... }
pub fn get_max_pixel_value(&self) -> Result<f64> { ... }
pub fn set_max_pixel_value(&mut self, val: f64) -> Result<()> { ... } }

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

Required methods

Loading content...

Provided methods

pub fn compute(&mut self, cmp: &dyn ToInputArray) -> Result<Scalar>[src]

Compute the PSNR

Parameters

  • cmp: Comparison image

Returns

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

pub fn empty(&self) -> Result<bool>[src]

Implements Algorithm::empty()

pub fn clear(&mut self) -> Result<()>[src]

Implements Algorithm::clear()

pub fn get_max_pixel_value(&self) -> Result<f64>[src]

return the maximum pixel value used for PSNR computation

pub fn set_max_pixel_value(&mut self, val: f64) -> Result<()>[src]

sets the maximum pixel value used for PSNR computation

Parameters

  • val: Maximum pixel value
Loading content...

Implementors

impl QualityPSNRTrait for QualityPSNR[src]

impl QualityPSNRTrait for PtrOfQualityPSNR[src]

Loading content...