invimageproc.m

来自「基于图象的数据隐写和提取matlab代码」· M 代码 · 共 16 行

M
16
字号

function B=invimageproc(N)
%input here should always be square
%this takes a matrix that is "tiled" made up of
%8x8 DCT coefficents matricies and forms it back into
%a picture magnitude matrix using the 2D DCT
[dnk dnk x dnk]=size(N);
x1=x*8;
untiled=zeros(x1,x1);
q=qmat();
for i=1:x
    for j=1:x
        untiled(8*i-7:i*8,8*j-7:j*8)=idct2(N(:,:,i,j));
    end
end
B=untiled;

⌨️ 快捷键说明

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