The Octave Forge package repository is no longer actively maintained. Please find Octave Packages at https://packages.octave.org.

Navigation

Operators and Keywords

Function List:

C++ API

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