ezwdecode.asv
来自「EZW的matlab程序 基于小波变换对图像进行压缩编码的研究」· ASV 代码 · 共 30 行
ASV
30 行
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);
[antiQuantiMat,rIlist,quantiflagOld]=antiquantifier(T1,level,rIlist,quantiflag,quantiflagOld);
DecodeMat=Mat;
qrNum=1;
scNum=1;
[DecodeMat,recvalue,qrNum]=updateRecvalue(DecodeMat,recvalue,qrNum,quantiflag,quantifierMat,rIlist);
[DecodeMat,Decodeflag,flagMat,recvalue]=decoding(DecodeMat,flagMat,quantifierMat,quantiflag,rIlist,scanorder,scancode,scNum,qrNum,recvalue);
% 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 + -
显示快捷键?