基于MATLAB的图象压缩程序实现.doc

上传人:仙人指路1688 文档编号:2388547 上传时间:2023-02-17 格式:DOC 页数:2 大小:14.50KB
返回 下载 相关 举报
基于MATLAB的图象压缩程序实现.doc_第1页
第1页 / 共2页
基于MATLAB的图象压缩程序实现.doc_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

《基于MATLAB的图象压缩程序实现.doc》由会员分享,可在线阅读,更多相关《基于MATLAB的图象压缩程序实现.doc(2页珍藏版)》请在三一办公上搜索。

1、基于MATLAB的图象压缩程序实现 摘要游程编码(RLC:Run Length Coding)是图像压缩基本算法,它对于有较多灰度相同的图像具有较高的压缩比,RLC的原理简单,计算效率高。但RLC算法存在的1个致命弱点,即:如果图像中每两个相邻点的颜色都不同,用这种算法不但不能压缩,反而数据量会增加。为了克服游程编码的这个弱点,本文设计了1种算法分块RLC算法,利用分块编码(Block Truncation Coding)的思想对灰度图像进行处理后,再进行游程编码,实现了灰度图像的有损压缩,图像分块越大,所得到的压缩比越高,但较高的压缩比是以提高图像的失真度为代价的。本文还将分块RLC算法与D

2、CT(Discrete Cosine Transform)图像压缩算法进行了比较:分块RLC算法具有较高的压缩比,但其保真度却不如DCT图像压缩算法。本文使用MATLAB语言实现算法,将图像存储为矩阵的形式,充分利用了MATLAB语言在矩阵运算和图像处理工具方面的便利性,使得编程简单、速度快、误差小。关键词:MATLAB软件;游程编码;分块RLC编码;DCT变换;图像压缩AbstractRun length coding (RLC) is a basic algorithm of image compression. When using on the image of many same g

3、ray level ,RLC has a higher compression ratio. The principle of RLC is simple and the efficiency of computing is high.But RLC has a fatal disadvantage,it is that the gray level of two pixel together are all different, that will led RLC cannot to compress image and the quantity of the data will incre

4、ase.In order to overcome this disadvantage ,this paper designed a algorithm ,namely block run length coding,which used the idea of block truncation coding to deal with each block of grayscale image,and then used RLC to each block and realized the damaged compression of grayscale image. The bigger th

5、e block is,the higher the compression ratio is,but the higher compression ratio take the increasing of distortion degree as the price.This paper compared algorithm of block run length coding to algorithm of DCT image compression, algorithm of block run length coding has a higher compression ratio,bu

6、t its lifelike degree is inferior to the algorithm of DCT image compression. In order to fully used the convenience of MATLAB language in the matrix operation and the picture processing tool ,this paper used the MATLAB language to realize this algorithm and saved the picture for the matrix form ,therefore, the programming is easy,the speed is quick and the error is to be little.Key Words:MATLAB software; Block truncation RLC coding; Run length coding; DCT;Image compression

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 建筑/施工/环境 > 项目建议


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号