www.pudn.com > SPIHT_bandelet.rar > btc_decode.m
function out_put=btc_decode(tmp1,Mu,Mi,block_size)
k=1;l=1;
[n,m]=size(tmp1);
K=block_size;
for i=1:K:n
for j=1:K:m
tmp21([1:K],[1:K])=tmp1([i:i+(K-1)],[j:j+(K-1)]);
tmp22=(tmp21*round(Mu(k)));k=k+1;
tmp21=((tmp21==0)*round(Mi(l)));l=l+1;
tmp21=tmp21+tmp22;
out_put([i:i+(K-1)],[j:j+(K-1)])=tmp21;
end
end