📄 mortonscan.asv
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -