ezwdecode.m
来自「嵌入式零树小波变换编码 EZW 的MATLAB 程序」· M 代码 · 共 29 行
M
29 行
function DecodeMat=ezwdecode(Mat,T1,decodeDim,CodeList,LenSubCL,QuantiFlagList,LenSubQFL)
global row col
recvalue=[];
rIlist=[];
quantiflagOld=[];
scanorder=listorder(row,col,1,1);
flagMat(1:row,1:col)='Z';
for level=1:decodeDim
scancode=CodeList(1:LenSubCL(level));
CodeList=CodeList(LenSubCL(level)+1:end);
quantiflag=QuantiFlagList(1:LenSubQFL(level));
QuantiFlagList=QuantiFlagList(LenSubQFL(level)+1:end);
DecodeMat=Mat;
qrNum=1;
scNum=1;
[antiQuantiMat,rIlist,quantiflagOld]=antiquantifier(T1,level,rIlist,quantiflag,quantiflagOld);
[DecodeMat,recvalue,qrNum]=updateRecvalue(DecodeMat,recvalue,qrNum,quantiflag,antiQuantiMat,rIlist);
[DecodeMat,flagMat,recvalue]=decoding(DecodeMat,flagMat,recvalue,antiQuantiMat,quantiflag,rIlist,scanorder,scancode,scNum,qrNum);
% if level<decodeDim
% button = questdlg('Need the nest decode processing ?','Decode Level','Yes','No','Yes');
% if button(1)=='N'
% break;
% end
% end
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?