Peak signal-to-noise ratio (PSNR)
The psnr
function implements this equation to calculate PSNR:
peakval
is either specified by the user or taken from the range of the
image data type. For example, for image of uint8
data type, then
peakval
is 255
. MSE is
the mean square error between A
and
ref
.