翻新时间:2022-10-18
基于MATLAB的图象压缩程序实现
摘要
游程编码(RLC:Run Length Coding)是图像压缩基本算法,它对于有较多灰度相同的图像具有较高的压缩比,RLC的原理简单,计算效率高。但RLC算法存在的1个致命弱点,即:如果图像中每两个相邻点的颜色都不同,用这种算法不但不能压缩,反而数据量会增加。为了克服游程编码的这个弱点,本文设计了1种算法分块RLC算法,利用分块编码(Block Truncation Coding)的思想对灰度图像进行处理后,再进行游程编码,实现了灰度图像的有损压缩,图像分块越大,所得到的压缩比越高,但较高的压缩比是以提高图像的失真度为代价的。本文还将分块RLC算法与DCT(Discrete Cosine Transform)图像压缩算法进行了比较:分块RLC算法具有较高的压缩比,但其保真度却不如DCT图像压缩算法。本文使用MATLAB语言实现算法,将图像存储为矩阵的形式,充分利用了MATLAB语言在矩阵运算和图像处理工具方面的便利性,使得编程简单、速度快、误差小。
关键词:MATLAB软件;游程编码;分块RLC编码;DCT变换;图像压缩
Abstract
Run length coding (RLC) is a basic algorithm of image compression. When using on the image of many same gray 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 increase.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 the 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,but 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
下载文档
网友最新关注
- 我最要感谢的人——老师
- 我的自画像
- 真正的微笑
- 镜子里的我
- 我的同学外号
- 我的乒乓球老爸
- 老师我想对您说
- 如此追星
- 我长大了
- 我被“皮”附身了
- 我印象最深的人
- “刘翔的老妈”,你慢点吧
- 寒风中,一朵绽放的雪莲
- 我的弟弟
- 班有“五侠”
- 管理学论文范文介绍
- 关于经济全球化时代国家经济主权认识与维护研究
- 论中国缺陷产品召回制度中制造商适用的归责原则
- 简述遗传资源的法律保护——以国家经济主权为视角
- 我国政府人力资源管理外包模式的构建论文
- 浅谈由金融危机看中国经济
- 2008年我国宏观经济研究
- 国际货币体系失衡对中国经济影响分析
- 浅谈我国的对外直接投资
- 当前经济形势下工商管理的策略分析论文
- 关于经济全球化国家经济主权的挑战与法律对策
- 非价格竞争:现代市场营销竞争的趋势及策略
- 浅谈安徽省农村公共产品需求供给调查和对比分析
- 浅谈金融海啸下我国经济的发展
- 湖北投资环境创新及产业集群研究
- 《七律·长征》教学设计
- 《最后一分钟》教学设计
- 《难忘的一课》教学设计
- 《七律·长征》教案学案设计
- 《七律·长征》教学设计与反思
- 《七律·长征》教学设计与反思
- 《七律·长征》教学设计
- 《开国大典》教学设计
- 《开国大典》教学设计
- 《难忘的一课》教学设计
- 《七律·长征》教学设计
- 《七律·长征》教学设计
- 《难忘的一课》教学设计
- 《七律·长征》教学设计
- 《七律·长征》教学设计