lookup_128.m
来自「Sphit算法针对128*128的灰度图象进行压缩处理」· M 代码 · 共 15 行
M
15 行
function y=lookup_128
% Prepare table of indices of descendants for 4 scales
y=extract(reshape([257:512],16,16)');
y=[y ; extract(reshape([513:768],16,16)')];
y=[y ; extract(reshape([769:1024],16,16)')];
%------------------------------------------------------------------------
y=[y ; extract(reshape([1025:2048],32,32)')];
y=[y ; extract(reshape([2049:3072],32,32)')];
y=[y ; extract(reshape([3073:4096],32,32)')];
y=[y ; extract(reshape([4097:8192],64,64)')];
y=[y ; extract(reshape([8193:12288],64,64)')];
y=[y ; extract(reshape([12289:16384],64,64)')];
y=[zeros(64,4);y]; % was 512
indices=y;
save indices
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?