iter_distortion

PURPOSE ^

It iterates the algorithm for some distortion values. It fits the

SYNOPSIS ^

function [Results] = iter_distortion(Im,algoritmo,variable,distorsiones,parametro,directorio)

DESCRIPTION ^

 It iterates the algorithm for some distortion values. It fits the
 epsilon and the number of bits, to reach such distortion value.
 It computes the entropies and gives an struct for each distortion value.

 Im         -> Original Image
 algoritmo  -> Algorithm.
               1  -> CTE + SVR
               2  -> RKi + SVR
               3  -> CSF + SVR
               4  -> NL1 + SVR
               5  -> NL2 + SVR
               6  -> JPEG91
               7  -> Malo99
               8  -> Epifanio03
               9  -> Malo06_1
               10 -> Malo06_2
 variable   -> Kind of distorsion to fit:
               'RMSE', 'SSIM', 'MPE lineal', 'MPE no lineal',
               'MPE no lineal JMLR'
 distorsiones -> Vector with the distortion values.
 parametro  -> Starting epsilon (for SVR) or starting uCP
 directorio -> String with the path to the folder to save BIN and ZIP files.

 USE: [Results] = iter_distortion(Im,algoritmo,variable,distorsiones,parametro,directorio)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 
0002 % It iterates the algorithm for some distortion values. It fits the
0003 % epsilon and the number of bits, to reach such distortion value.
0004 % It computes the entropies and gives an struct for each distortion value.
0005 %
0006 % Im         -> Original Image
0007 % algoritmo  -> Algorithm.
0008 %               1  -> CTE + SVR
0009 %               2  -> RKi + SVR
0010 %               3  -> CSF + SVR
0011 %               4  -> NL1 + SVR
0012 %               5  -> NL2 + SVR
0013 %               6  -> JPEG91
0014 %               7  -> Malo99
0015 %               8  -> Epifanio03
0016 %               9  -> Malo06_1
0017 %               10 -> Malo06_2
0018 % variable   -> Kind of distorsion to fit:
0019 %               'RMSE', 'SSIM', 'MPE lineal', 'MPE no lineal',
0020 %               'MPE no lineal JMLR'
0021 % distorsiones -> Vector with the distortion values.
0022 % parametro  -> Starting epsilon (for SVR) or starting uCP
0023 % directorio -> String with the path to the folder to save BIN and ZIP files.
0024 %
0025 % USE: [Results] = iter_distortion(Im,algoritmo,variable,distorsiones,parametro,directorio)
0026 function [Results] = iter_distortion(Im,algoritmo,variable,distorsiones,parametro,directorio)
0027 [perfil,K,exponente] = computing_parameters_entropy(algoritmo);
0028 if(algoritmo <= 5)
0029     Results = distortion_svr(algoritmo,variable,distorsiones,Im,parametro,K,perfil,exponente,directorio);
0030 else
0031     Results = distortion_ucp(algoritmo,variable,distorsiones,Im,parametro,exponente,directorio);
0032 end

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