func_writeraw.m

来自「SPIHT的MATLAB源代码,希望对有需要的朋友有所帮助.」· M 代码 · 共 19 行

M
19
字号
function func_WriteRaw(in_image,filename)
% Matlab implementation of SPIHT (without Arithmatic coding stage)
%
% Read a RAW format gray scale image from disk
%
% input:     in_image : input image data    
%            filename : output file
%

fid = fopen(filename,'wb');
if (fid==1)
   error('Cannot creat image file...press CTRL-C to exit ');pause
end

% fwrite(fid,in_image', 'uchar');
fwrite(fid,in_image', 'int32');
fclose(fid);

⌨️ 快捷键说明

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