Peak Signal-to-Noise Ratio (PSNR)
The psnr
function implements the following
equation to calculate the Peak Signal-to-Noise Ratio (PSNR):
where peakval is either specified by the
user or taken from the range of the image datatype (e.g. for uint8
image
it is 255
). MSE is the mean
square error, i.e. MSE between A
and ref
.