• 大小: 0.66M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-03-28
  • 语言: Matlab
  • 标签: matlab  

资源简介


基于MATLAB的图像压缩程序(包含各种压缩编码与解码方法),算法包含详细代码,是图像编码技术的总结

资源截图

代码片段和文件信息

function AR_Compression

[filenamepathnameindex]=uigetfile(...
    {‘*.bmp;*.jpg;*.tif;*.png‘‘图片(*.bmp*.jpg*.tif*.png)‘;...
    ‘*.*‘‘所有文件(*.*)‘}...
    ‘请选择图像文件(可多选)‘‘MultiSelect‘‘on‘);
    if index==0
        return;
    end
    
    if class(filename)==‘char‘
        AR_pro([pathnamefilename]);
    else
        PN=size(filename2);
        for nn=1:PN
            AR_pro([pathnamefilename{nn}]);
        end
    end
    
end
function AR_pro(FileName_g)

g=imread(FileName_g);
[M1M2]=size(g);
% g=rgb2gray(g);
figuresubplot(121);imshow(g);title(‘原始图像‘);
%Arithmetic Coding

tic;
[arithCodedDatasrtdCntindexdimensions]=arithmeticCode(g);
t1=toc;
Sequence_length=M1*M2*8;
length_Coded_sequence=length(arithCodedData);
Compression_ratio=Sequence_length/length_Coded_sequence;
xl1=sprintf(‘图像编码用时%4.2f秒\n图像压缩比为:%4.1f:1\n‘t1Compression_ratio);
xlabel(xl1);

%Arithmetic Decoding
tic;
[decodedData] = arithmeticDecode(arithCodedDatasrtdCnti

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       2933  2014-04-02 00:01  Image Compression(v.2)\AR_Compression.m

     文件        502  2014-04-01 15:00  Image Compression(v.2)\BD_Transform.m

     文件       1579  2014-04-02 00:22  Image Compression(v.2)\DCT_Compression.m

     文件       1487  2014-04-02 00:33  Image Compression(v.2)\FFT_Compression.m

     文件       5203  2014-04-02 00:10  Image Compression(v.2)\Huffen_Compression.m

     文件        433  2014-03-30 14:16  Image Compression(v.2)\imageratio.m

     文件        547  2014-04-01 10:01  Image Compression(v.2)\Lossless_Compression.m

     文件        518  2014-04-01 10:00  Image Compression(v.2)\Lossy_Compression.m

     文件       1828  2014-04-02 00:11  Image Compression(v.2)\LPC_Compression.m

     文件        761  2014-04-02 00:34  Image Compression(v.2)\Main_Image_Compression.m

     文件        245  2009-01-03 10:07  Image Compression(v.2)\psnr.m

     文件       1678  2014-04-01 23:48  Image Compression(v.2)\RLE_Compression.m

     文件       1065  2014-04-01 10:55  Image Compression(v.2)\Size_Transform.m

     文件      16570  2003-01-08 16:31  Image Compression(v.2)\Test Picture\1.tif

     文件       3878  2003-01-08 16:33  Image Compression(v.2)\Test Picture\2.tif

     文件       2863  2003-01-08 16:34  Image Compression(v.2)\Test Picture\3.tif

     文件       1996  2003-01-08 16:35  Image Compression(v.2)\Test Picture\5.tif

     文件       3863  2003-01-08 16:37  Image Compression(v.2)\Test Picture\7.tif

     文件     263224  2007-11-16 20:51  Image Compression(v.2)\Test Picture\baboo.bmp

     文件      66616  2007-11-16 20:48  Image Compression(v.2)\Test Picture\brain.bmp

     文件      16720  2003-01-13 17:18  Image Compression(v.2)\Test Picture\bridge.tif

     文件      17462  2012-03-19 16:49  Image Compression(v.2)\Test Picture\cammraman.bmp

     文件     263222  2007-11-16 14:55  Image Compression(v.2)\Test Picture\lena.bmp

     文件       4200  2003-01-08 16:37  Image Compression(v.2)\Test Picture\lena128.tif

     文件     263222  2007-11-16 20:51  Image Compression(v.2)\Test Picture\peppers.BMP

     文件       3936  2003-01-08 16:39  Image Compression(v.2)\Test Picture\worker.TIF

     目录          0  2014-04-02 00:36  Image Compression(v.2)\Test Picture

     目录          0  2014-04-02 00:36  Image Compression(v.2)

     文件         39  2014-04-01 01:14  运行 Main_Image_Compression.m文件即可.txt

----------- ---------  ---------- -----  ----

............此处省略2个文件信息

评论

共有 条评论