demo_denoising

PURPOSE ^

This demo shows how to denoise an image using different local frequency methods developped by

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 This demo shows how to denoise an image using different local frequency methods developped by
  J. Gutierrez, F. J. Ferri and J. Malo
  Regularization Operators for Natural Images Based on Nonlinear Perception Models,
  IEEE Transactions on Image Processing, Vol 15, No 1, pp 189-200, Jan 2006

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % This demo shows how to denoise an image using different local frequency methods developped by
0002 %  J. Gutierrez, F. J. Ferri and J. Malo
0003 %  Regularization Operators for Natural Images Based on Nonlinear Perception Models,
0004 %  IEEE Transactions on Image Processing, Vol 15, No 1, pp 189-200, Jan 2006
0005 %
0006 %
0007 figure;
0008 
0009 clc;
0010 echo off;
0011 
0012 if (isempty(who('Id')))
0013    disp('To run this script there should be an image named Id in the workspace.');
0014    disp('Id must contain the noise image.');
0015    disp('apply_degradation.m  can be used to simulate several degradations');
0016    disp('For instace:');
0017    disp('    load barbara256');
0018    disp('    [Id,PSF]=apply_degradetion(Im,''gn'',400);');
0019    return;
0020 end
0021 
0022 PSF = zeros(11);
0023 PSF(6,6)=1;
0024 
0025 Nlambdas = 60;
0026 
0027 lambdas = logspace(-4,3,Nlambdas);
0028 
0029 disp(['Restoring image using L2 (' num2str(Nlambdas) ' values of lambda)']);
0030 
0031 imrl2=restore(Id,'L2',PSF,lambdas);
0032 
0033 imshow(imrl2/255);
0034 title('Restored (L2)');
0035 
0036 disp('Press any key...');
0037 pause;
0038 
0039 disp(['Restoring image using CSF (' num2str(Nlambdas) ' values of lambda)']);
0040 
0041 imrcsf=restore(Id,'CSF',PSF,lambdas);
0042 
0043 figure;
0044 imshow(imrcsf/255);
0045 title('Restored (CSF)');
0046 
0047 disp('Press any key...');
0048 pause;
0049 
0050 disp(['Restoring image using AR4 (' num2str(Nlambdas) ' values of lambda)']);
0051 
0052 imrar4=restore(Id,'AR4',PSF,lambdas);
0053 
0054 figure;
0055 imshow(imrar4/255);
0056 title('Restored (AR4)');
0057 
0058 disp('Press any key...');
0059 pause;
0060 
0061 disp(['Restoring image using AR8 (' num2str(Nlambdas) ' values of lambda)']);
0062 
0063 imrar8=restore(Id,'AR8',PSF,lambdas);
0064 
0065 figure;
0066 imshow(imrar8/255);
0067 title('Restored (AR8)');
0068 
0069 disp('Press any key...');
0070 pause;
0071 
0072 disp(['Restoring image using AR12 (' num2str(Nlambdas) ' values of lambda)']);
0073 
0074 imrar12=restore(Id,'AR12',PSF,lambdas);
0075 
0076 figure;
0077 imshow(imrar12/255);
0078 title('Restored (AR12)');
0079 
0080 disp('Press any key...');
0081 pause;
0082 
0083 disp(['Restoring image using PERCEPTUAL (' num2str(Nlambdas) ' values of lambda)']);
0084 
0085 imrper=restore(Id,'PER',PSF,lambdas);
0086 
0087 figure;
0088 imshow(imrper/255);
0089 title('Restored (PERCEPTUAL)');
0090 
0091

Generated on Fri 07-Mar-2014 13:28:33 by m2html © 2005