• 大小: 270KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-20
  • 语言: Matlab
  • 标签: 灰度  jpeg  压缩  matlab  

资源简介

灰度图象的jpeg压缩 matlab

资源截图

代码片段和文件信息

function ACH = AC_Huffman(ACn);
%亮度AC系数码表
T1={    ‘00‘ ‘01‘ ‘100‘ ‘1011‘ ‘11010‘ ‘1111000‘ ‘11111000‘ ‘1111110110‘ ‘1111111110000010‘ ‘1111111110000011‘;
        ‘1100‘ ‘11011‘ ‘1111001‘ ‘111110110‘ ‘11111110110‘ ‘1111111110000100‘ ‘1111111110000101‘ ‘1111111110000110‘ ‘1111111110000111‘ ‘1111111110001000‘;
        ‘11100‘ ‘11111001‘ ‘1111110111‘ ‘111111110100‘ ‘1111111110001001‘ ‘1111111110001010‘ ‘1111111110001011‘ ‘1111111110001100‘ ‘1111111110001101‘ ‘1111111110001110‘;
        ‘111010‘ ‘111110111‘ ‘111111110101‘ ‘1111111110001111‘ ‘1111111110010000‘ ‘1111111110010001‘ ‘1111111110010010‘ ‘1111111110010011‘ ‘1111111110010100‘ ‘1111111110010101‘;
        ‘111011‘ ‘1111111000‘ ‘1111111110010110‘ ‘1111111110010111‘ ‘1111111110011000‘ ‘1111111110011001‘ ‘1111111110011010‘ ‘1111111110011011‘ ‘1111111110011100‘ ‘1111111110011101‘;
        ‘1111010‘ ‘11111110111‘ ‘1111111110011110‘ ‘1111111110011111‘ ‘1111111110100000‘ ‘1111111110100001‘ ‘1111111110100010‘ ‘1111111110100011‘ ‘1111111110100100‘ ‘1111111110100101‘;%%%
        ‘1111011‘ ‘111111110110‘ ‘1111111110100110‘ ‘1111111110100111‘ ‘1111111110101000‘ ‘1111111110101001‘ ‘1111111110101010‘ ‘1111111110101011‘ ‘1111111110101100‘ ‘1111111110101101‘;
        ‘11111010‘ ‘111111110111‘ ‘1111111110101110‘ ‘1111111110101111‘ ‘1111111110110000‘ ‘1111111110110001‘ ‘1111111110110010‘ ‘1111111110110011‘ ‘1111111110110100‘ ‘1111111110110101‘;
        ‘111111000‘ ‘111111111000000‘ ‘1111111110110110‘ ‘1111111110110111‘ ‘1111111110111000‘ ‘1111111110111001‘ ‘1111111110111010‘ ‘1111111110111011‘ ‘1111111110111100‘ ‘1111111110111101‘;
        ‘111111001‘ ‘1111111110111110‘ ‘1111111110111111‘ ‘1111111111000000‘ ‘1111111111000001‘ ‘1111111111000010‘ ‘1111111111000011‘ ‘1111111111000100‘ ‘1111111111000101‘ ‘1111111111000110‘;
        ‘111111010‘ ‘1111111111000111‘ ‘1111111111001000‘ ‘1111111111001001‘ ‘1111111111001010‘ ‘1111111111001011‘ ‘1111111111001100‘ ‘1111111111001101‘ ‘1111111111001110‘ ‘1111111111001111‘;
        ‘1111111001‘ ‘1111111111010000‘ ‘1111111111010001‘ ‘1111111111010010‘ ‘1111111111010011‘ ‘1111111111010100‘ ‘1111111111010101‘ ‘1111111111010110‘ ‘1111111111010111‘ ‘1111111111011000‘;
        ‘1111111010‘ ‘1111111111011001‘ ‘1111111111011010‘ ‘1111111111011011‘ ‘1111111111011100‘ ‘1111111111011101‘ ‘1111111111011110‘ ‘1111111111011111‘ ‘1111111111100000‘ ‘1111111111100001‘;
        ‘11111111000‘ ‘1111111111100010‘ ‘1111111111100011‘ ‘1111111111100100‘ ‘1111111111100101‘ ‘1111111111100110‘ ‘1111111111100111‘ ‘1111111111101000‘ ‘1111111111101001‘ ‘1111111111101010‘;
        ‘1111111111101011‘ ‘1111111111101100‘ ‘1111111111101101‘ ‘1111111111101110‘ ‘1111111111101111‘ ‘1111111111110000‘ ‘1111111111110001‘ ‘1111111111110010‘ ‘1111111111110011‘ ‘1111111111110100‘;
        ‘1111111111110101‘ ‘1111111111110110‘ ‘1111111111110111‘ ‘1111111111111000‘ ‘1111111111111001‘ ‘1111111111111010‘ ‘1111111111111011‘ ‘1111111111111100‘ ‘1111111111111101‘ ‘1111111111111110‘};
%色度AC系数码表    
T2={    ‘01

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

     文件      10650  2014-01-06 17:57  jpeg_gray\AC_Huffman.m

     文件        247  1999-03-27 15:05  jpeg_gray\bin2int.m

     文件       2629  2014-01-03 11:44  jpeg_gray\DC_Huffman.m

     文件        411  1999-03-27 18:18  jpeg_gray\dezz.m

     文件        211  2001-02-11 11:34  jpeg_gray\divq.m

     文件        801  2001-02-11 11:35  jpeg_gray\dpcm.m

     文件         31  1999-03-27 16:28  jpeg_gray\idivq.m

     文件       1590  2014-01-03 14:38  jpeg_gray\ijpegdemo.m

     文件        888  2001-02-11 11:37  jpeg_gray\int2bin.m

     文件       8617  2014-01-06 18:51  jpeg_gray\jacdec.m

     文件       9199  2014-01-06 18:50  jpeg_gray\jacenc.m

     文件       1499  1999-03-25 16:51  jpeg_gray\jdcdec.m

     文件       1435  1999-03-25 17:05  jpeg_gray\jdcenc.m

     文件       4265  2014-01-06 18:57  jpeg_gray\jpegdemo.m

     文件     267701  2006-05-09 00:00  jpeg_gray\Lena.bmp

     文件       1422  2014-01-06 19:01  jpeg_gray\test2.m

     文件       9592  1999-03-27 11:14  jpeg_gray\tobdel.m

     文件        681  2013-12-26 19:05  jpeg_gray\Zigzag.m

     目录          0  2014-01-06 19:02  jpeg_gray

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

               321869                    19


评论

共有 条评论