0001
0002
0003
0004
0005
0006
0007
0008
0009 function [IMM]=figueiredo(Im2,Var)
0010
0011 orientaciones=cell(3,1);
0012
0013 orientaciones{1}='H';
0014 orientaciones{2}='V';
0015 orientaciones{3}='D';
0016 pyr=[];
0017 pp=[];
0018 for subb=1:4
0019 for ori=1:3
0020 orientacion=orientaciones{ori};
0021
0022 switch lower(orientacion)
0023 case 'h'
0024 sub=1;
0025 case 'v'
0026 sub=2;
0027 case 'd'
0028 sub=3;
0029 end
0030
0031 [histograma,valores,subbanda,subbandacrop]=marginal_2(Im2,subb,orientacion,256);
0032 [x_est]=estimation_figueiredo(subbanda,Var);
0033 pyr=[pyr x_est'];
0034
0035 end
0036 end
0037 [QQ,ind]=buildwpyr(Im2,4);
0038 pyr=[pyr QQ(end-255:end)'];
0039 IMM=reconwpyr(pyr',ind);