欢迎来到天天文库
浏览记录
ID:12191769
大小:67.80 KB
页数:9页
时间:2018-07-16
《信息论与编码实验报告》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、《信息论与编码》实验报告QQ417860489一、实验目的1、理解信源编码的基本原理;2、熟练掌握Huffman编码的方法;3、理解无失真信源编码和限失真编码方法在实际图像信源编码应用中的差异。二、实验设备与软件1、PC计算机系统2、VC++6.0语言编程环境3、基于VC++6.0的图像处理实验基本程序框架imageprocessing4、常用图像浏览编辑软件Acdsee和数据压缩软件winrar。5、实验所需要的bmp格式图像(灰度图象若干幅)。三、实验内容与步骤1、针对“图像1.bmp”、“图像2.bmp”和“图像3.b
2、mp”进行灰度频率统计(即计算图像灰度直方图),在此基础上添加函数代码构造Huffman码表,针对图像数据进行Huffman编码,观察和分析不同图像信源的编码效率和压缩比。(1)各个图像的灰度频率统计如下(2)对图像1进行Huffman编码,得到码表如下像素值概率分布Huffman编码(未差分) 像素值概率分布Huffman编码(未差分) 像素值概率分布Huffman编码(未差分)00.0118360001101000.000000011001100110010112000.000000011001100001011010.
3、000000011001100100000001010.01003311001012010.000000011001100001011120.000000011001100100000011020.000000011001100110011002020.01598310010130.000000011001100100000101030.000000011001100110011012030.000000011001100001100040.0213091111011040.0000000110011001100111020
4、40.000000011001100001100150.000000011001100100000111050.0194301110002050.000000011001100001101060.000000011001100100001001060.000000011001100110011112060.01524101111070.000000011001100100001011070.000000011001100110100002070.000000011001100001101180.022653000011080
5、.000000011001100110100012080.000000011001100001110090.000000011001100100001101090.0133950100112090.0000000110011000011101100.000000011001100100001111100.000000011001100110100102100.012887010001110.000000011001100100010001110.000000011001100110100112110.000000011001
6、1000011110120.0037240110011011120.000000011001100110101002120.0000000110011000011111130.000000011001100100010011130.0140170101112130.0000000110011000100000140.000000011001100100010101140.000000011001100110101012140.0000000110011000100001150.000000011001100100010111
7、150.000000011001100110101102150.017783101101160.022806000101160.000000011001100110101112160.0000000110011000100010170.000000011001100100011001170.0164751001112170.0000000110011000100011180.000000011001100100011011180.000000011001100110110002180.00000001100110001001
8、00190.000000011001100100011101190.000000011001100110110012190.012412001100200.004404011001111200.000000011001100110110102200.00000001100110001001
此文档下载收益归作者所有