[−][src]Trait opencv::prelude::QualityPSNRTrait
Full reference peak signal to noise ratio (PSNR) algorithm https://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio
Required methods
fn as_raw_QualityPSNR(&self) -> *const c_void
fn as_raw_mut_QualityPSNR(&mut self) -> *mut c_void
Provided methods
fn compute(&mut self, cmp: &dyn ToInputArray) -> Result<Scalar>
Compute the PSNR
Parameters
- cmp: Comparison image
Returns
Per-channel PSNR value, or std::numeric_limits
fn empty(&self) -> Result<bool>
Implements Algorithm::empty()
fn clear(&mut self) -> Result<()>
Implements Algorithm::clear()
fn get_max_pixel_value(&self) -> Result<f64>
return the maximum pixel value used for PSNR computation