PEAK_SNR_CVIP

peak_snr_cvip() - Computes peak signal to noise ratio.

Contents

SYNTAX

psnr = peak_snr_cvip(inimage1,inimage2,L)

Input parameters include :

Output parameter include :

DESCRIPTION

This function calculates the peak signal-to-noise ratio between images. Peak signal-to-noise ratio is an objective measure used to understand the amount of error in an image. In order to computer Peak SNR, inimage1 and inimage2 have to be of same size and of same bands If both inimage1 and inimage2 are same then, Peak_snr will be infinity.

REFERENCE

1. Scott E Umbaugh. DIGITAL IMAGE PROCESSING AND ANALYSIS: Applications with MATLAB and CVIPtools, 3rd Edition.

EXAMPLE

% Read images

  inimage1 = imread('Butterfly.tif');

  inimage2 = imread('castle.bmp');

  L      =  256;

% Calling function

  psnr = peak_snr_cvip(inimage1,inimage2,L)
psnr =

    9.1687    9.6511    9.6390

CREDITS

Author: Lakshmi Gorantla, June 2017
Copyright © 2017-2018 Scott E Umbaugh
For updates visit CVIP Toolbox Website