clear all
close all
format compact
format long

A=img2var('image/lenna.jpg');

B=noiseadd(A,25,'gaussian');

figure
imshow(uint8(B))

fprintf('Press to continue... \n')
pause

C=gaussian(B,2,5);
figure
imshow(uint8(C))

fprintf('Press to continue... \n')
pause

D=img2var('image/lenna_Gaussian25_ROF.jpg');
figure
imshow(uint8(D))

snr(0,A)
snr(A,A)
snr(B,A)
snr(C,A)
snr(D,A)