mortonscan.asv

来自「EZW的matlab程序 基于小波变换对图像进行压缩编码的研究」· ASV 代码 · 共 21 行

ASV
21
字号
function [scanlist,flaglist]=mortonscan(Mat)
st=cputime;
% global row col
[row,col]=size(Mat);

% Normalization of flaglist

for r=1:row
    for c=1:col
        flaglist(r,c)='Z';
    end
end

matlist=mat2list(Mat);
scanorder=listorder(row,col,1,1);
scanlist=[];
for i=1:row*col
    scanlist=[scanlist;i scanorder(i,:) matlist(i)];
end

et=cputime-st

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?