[−][src]Trait opencv::quality::QualityPSNRTrait
Full reference peak signal to noise ratio (PSNR) algorithm https://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio
Required methods
pub fn as_raw_QualityPSNR(&self) -> *const c_void
[src]
pub fn as_raw_mut_QualityPSNR(&mut self) -> *mut c_void
[src]
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
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