pylops.utils.metrics.psnr¶
- pylops.utils.metrics.psnr(xref, xcmp, xmax=None, xmin=0.0)[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- xmin
float, optional Minimum value to use. If
None, the actual minimum of the reference vector is used (0is default for backward compatibility)
- xref
- Returns:
- psnr
float Peak Signal to Noise Ratio of
xcmpwith respect toxref
- psnr