Method PSNR
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
PSNR(InputArray, InputArray, double)
Computes the Peak Signal-to-Noise Ratio (PSNR) image quality metric.
This function calculates the Peak Signal-to-Noise Ratio(PSNR) image quality metric in decibels(dB), between two input arrays src1 and src2.The arrays must have the same type.
public static double PSNR(InputArray src1, InputArray src2, double r = 255)
Parameters
src1InputArrayfirst input array.
src2InputArraysecond input array of the same size as src1.
rdoublethe maximum pixel value (255 by default)