SNR_CVIP

snr_cvip() - computes signal to noise ratio between two images.

Contents

SYNTAX

snr = snr_cvip(inimage1,inimage2)

Input Parameters include:

Output parameter include:

DESCRIPTION

This function calculates the Signal-to-Noise ratio between the two input images. Singal-to-Noise Ratio (SNR) is an objective measure of similarity between two images. For the function to calculate the SNR of two images, the input images have to be of same size and of same band. If the input images are same, the SNR will be Infinite.

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');

 % Calling function

  snr = snr_cvip(inimage1,inimage2)
snr =

    1.7117    1.8995    1.5217

CREDITS

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