ihuffman.m
来自「EZW implementation which will use wavele」· M 代码 · 共 17 行
M
17 行
function decode_x=ihuffman(encode_x,h,sortindex)
len=length(encode_x);
decode_x=[];
for i=1:4:len,
if encode_x(1,i:i+3)==h(find(sortindex==1),1:4);
decode_x=[decode_x,'p'];
end
if encode_x(1,i:i+3)==h(find(sortindex==2),1:4);
decode_x=[decode_x,'n'];
end
if encode_x(1,i:i+3)==h(find(sortindex==3),1:4);
decode_x=[decode_x,'z'];
end
if encode_x(1,i:i+3)==h(find(sortindex==4),1:4);
decode_x=[decode_x,'t'];
end
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?