⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 func_readraw.m

📁 SPIHT的MATLAB源代码,希望对有需要的朋友有所帮助.
💻 M
字号:
function result = func_ReadRaw(filename,nRow,nColumn)% Matlab implementation of SPIHT (without Arithmatic coding stage)%% Read a RAW format gray scale image from disk%% input:    filename : input file%           nSize : size of the output image%           nRow : row of the output image%           nColumn : column of the output image%% output:   result : output data in matrix formatfid = fopen(filename,'rb');if (fid==1)   error('Cannot open image file...press CTRL-C to exit ');pauseendnSize=nRow*nColumn;temp = fread(fid, nSize, 'int32');% temp = fread(fid, nSize, 'uchar');% temp=imread(filename);temp=double(temp);fclose(fid);% result = reshape(temp, [nRow nColumn])';result = reshape(temp, [nColumn nRow])';% result=double(temp);

⌨️ 快捷键说明

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