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