pylops.utils.metrics.psnr#
- pylops.utils.metrics.psnr(xref, xcmp, xmax=None)[source]#
Peak Signal to Noise Ratio (PSNR)
Compute Peak Signal to Noise Ratio between two vectors.
- Parameters
- xref
numpy.ndarray
Reference vector
- xcmp
numpy.ndarray
Comparison vector
- xmax
float
, optional Maximum value to use. If
None
, the actual maximum of the reference vector is used
- xref
- Returns
- psnr
float
Peak Signal to Noise Ratio of
xcmp
with respect toxref
- psnr