Function File: [peaksnr] = psnr (A, ref)
Function File: [peaksnr] = psnr (A, ref, peak)
Function File: [peaksnr, snr] = psnr (…)

Compute peak signal-to-noise ratio.

Computes the peak signal-to-noise ratio for image A, using ref as reference. A and ref must be of same size and class.

The optional value peak defines the highest value for the image and its default is class dependent (see getrangefromclass).

The second output snr is the simple signal-to-noise ratio.

See also: immse.

Package: image