computing_parameters_entropy

PURPOSE ^

Obtains the parameters for the compression algorithm and the values for the

SYNOPSIS ^

function [perfil,H,exponente] = computing_parameters_entropy(algoritmo)

DESCRIPTION ^

 Obtains the parameters for the compression algorithm and the values for the
 distortion algorithm.

 perfil    -> Epsilon profile
 H         -> SVR Kernel (SVR-CTE, SVR-RKi, SVR-CSF,
              SVR-NL exp ~= 1, SVR-NL exp = 2).
 exponente -> Exponent for the nonlinearity (SVR-NL exp ~= 1, SVR-NL exp = 2).


 Algorithms:

 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

 USE: [perfil,H,exponente] = computing_parameters_entropy(algoritmo)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % Obtains the parameters for the compression algorithm and the values for the
0002 % distortion algorithm.
0003 %
0004 % perfil    -> Epsilon profile
0005 % H         -> SVR Kernel (SVR-CTE, SVR-RKi, SVR-CSF,
0006 %              SVR-NL exp ~= 1, SVR-NL exp = 2).
0007 % exponente -> Exponent for the nonlinearity (SVR-NL exp ~= 1, SVR-NL exp = 2).
0008 %
0009 %
0010 % Algorithms:
0011 %
0012 % 1  -> CTE + SVR
0013 % 2  -> RKi + SVR
0014 % 3  -> CSF + SVR
0015 % 4  -> NL1 + SVR
0016 % 5  -> NL2 + SVR
0017 % 6  -> JPEG91
0018 % 7  -> Malo99
0019 % 8  -> Epifanio03
0020 % 9  -> Malo06_1
0021 % 10 -> Malo06_2
0022 %
0023 % USE: [perfil,H,exponente] = computing_parameters_entropy(algoritmo)
0024 
0025 function [perfil,H,exponente] = computing_parameters_entropy(algoritmo)
0026 
0027 N = 16;
0028 
0029 switch(algoritmo)
0030     case 1,
0031         perfil = ones(1,N^2 - 1)';
0032         H = kernel2d_variance(N,1);
0033         exponente = [];
0034     case 2,
0035 
0036         fc = 18;
0037         perfil = low_pass(N,fc);
0038         perfil = perfil(2:end);
0039         H = kernel2d_variance(N,1);
0040         exponente = [];
0041     case 3,
0042         perfil = CSF(N);
0043         perfil = perfil(2:end);
0044         H = kernel2d_variance(16,1);
0045         exponente = [];
0046     case 4,
0047         perfil = [];
0048         H = kernel2d_variance(16,1);
0049         exponente = 1;
0050     case 5,
0051         perfil = [];
0052         H = kernel2d_variance(16,1);
0053         exponente = 2;
0054     case 6,
0055         exponente = [];
0056         perfil = [];
0057         H = [];
0058     case 7,
0059         exponente = [];
0060         perfil = [];
0061         H = [];
0062     case 8,
0063         perfil = [];
0064         H = [];
0065         exponente = [];
0066     case 9,
0067         perfil = [];
0068         H = [];
0069         exponente = 1;
0070     case 10,
0071         perfil = [];
0072         H = [];
0073         exponente = 2;
0074 end
0075

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