7 % PSNR value of the denoised image
10 fid = fopen('barbara','r');
11 s = fread(fid,[512 512],'unsigned char');
13 %s = imread('zoe.bmp','bmp');
24 % Run local adaptive image denoising algorithm
30 % Calculate the PSNR value
31 PSNR = 20*log10(256/std(err(:)))