main_decoder

PURPOSE ^

Using a '.zip' file, it identify the compression method and applies

SYNOPSIS ^

function ImR = main_decoder(directorio,fichero)

DESCRIPTION ^

 Using a '.zip' file, it identify the compression method and applies
 the decoder to recover the image

 USE: main_decoder(directorio,fichero)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 
0002 % Using a '.zip' file, it identify the compression method and applies
0003 % the decoder to recover the image
0004 %
0005 % USE: main_decoder(directorio,fichero)
0006 function ImR = main_decoder(directorio,fichero)
0007 cd(directorio);
0008 if(~isempty(findstr(fichero,'cte_svr')) || ~isempty(findstr(fichero,'robinson03')) || ~isempty(findstr(fichero,'gomez05')))
0009     K = kernel2d_variance(16,1);
0010     ImR = svr_dct_decoder(K,directorio,fichero);
0011 elseif(~isempty(findstr(fichero,'camps08')))
0012     K = kernel2d_variance(16,1);
0013     exponente = 1;
0014     ImR = svr_nl_decoder(K,exponente,directorio,fichero);
0015 elseif(~isempty(findstr(fichero,'nl2_svr')))
0016     K = kernel2d_variance(16,1);
0017     exponente = 2;
0018     ImR = svr_nl_decoder(K,exponente,directorio,fichero);
0019 elseif(~isempty(findstr(fichero,'jpeg91')))
0020     ImR = jpeg91_decoder(directorio,fichero);
0021 elseif(~isempty(findstr(fichero,'malo99')))
0022     ImR = malo99_decoder(directorio,fichero);
0023 elseif(~isempty(findstr(fichero,'malo06')))
0024     exponente = 1;
0025     ImR = malo06_decoder(exponente,directorio,fichero);
0026 elseif(~isempty(findstr(fichero,'malo06_2')))
0027     exponente = 2;
0028     ImR = malo06_decoder(exponente,directorio,fichero);
0029 else
0030     disp('The decoding algorithm cannot be obtained from the file name!');
0031 end

Generated on Fri 07-Mar-2014 13:29:20 by m2html © 2005