基于DCT的图像压缩技术研究与仿真实现 计算机专业英语毕业论文.doc

上传人:来看看 文档编号:3920134 上传时间:2019-10-10 格式:DOC 页数:30 大小:384.52KB
返回 下载 相关 举报
基于DCT的图像压缩技术研究与仿真实现 计算机专业英语毕业论文.doc_第1页
第1页 / 共30页
基于DCT的图像压缩技术研究与仿真实现 计算机专业英语毕业论文.doc_第2页
第2页 / 共30页
基于DCT的图像压缩技术研究与仿真实现 计算机专业英语毕业论文.doc_第3页
第3页 / 共30页
基于DCT的图像压缩技术研究与仿真实现 计算机专业英语毕业论文.doc_第4页
第4页 / 共30页
基于DCT的图像压缩技术研究与仿真实现 计算机专业英语毕业论文.doc_第5页
第5页 / 共30页
点击查看更多>>
资源描述

《基于DCT的图像压缩技术研究与仿真实现 计算机专业英语毕业论文.doc》由会员分享,可在线阅读,更多相关《基于DCT的图像压缩技术研究与仿真实现 计算机专业英语毕业论文.doc(30页珍藏版)》请在三一文库上搜索。

1、基于基于 DCTDCT 的图像压缩技术研究与仿真实现的图像压缩技术研究与仿真实现 Abstract Discrete Cosine Transform (Discrete Cosine Transform, referred to as DCT) is often considered to be the voice and image signals as the best way of transforming. In order to achieve the required engineering, many scholars at home and abroad to spend a

2、 lot of energy to find or improve fast DCT algorithms. with the development of DSP in recent years, coupling with the advantages of ASIC design, DCT firmly established an important position in the current image coding algorithm,as to be an important part of the coding of H.261, JPEG, MPEG and other

3、international standards on the public . MATLAB is by the American Math-Works introduced for the numerical computation and graphics processing for scientific computing software, which combines numerical analysis, matrix computation, signal processing and graphics display functions in one and constitu

4、tes a convenient user-friendly environment. The Image Processing Toolboxs in MATLAB, is the set of packages of many MATLAB technical computing environment . This paper discusses the DCT transform methods, and discusses applied functions of the image processing toolbox in MATLAB and implement related

5、 to the use of C language to implement the discrete cosine transform image compression algorithm simulation. KEYWORD: :Discrete Cosine Transform(DCT);MATLAB;VC6.0,DCT Transformation method;Image Processing;Image Compression; CATALOG ABSTRACTV 1 INRODUCTION7 2 BASIC PRINCIPLES AND MODEL OF IMAGE COMP

6、RESSION 9 2.1 BASIC PRINCIPLES OF IMAGE COMPRESSION9 2.1.1 The basic idea of image compression9 2.1.2 Image compression method9 2.1.3 Image compression standard10 2.2 IMAGE COMPRESSION SYSTEM FLOW CHART.10 2.3 ANALYSIS OF THE MAIN MODULE OF IMAGE COMPRESSION.11 2.3.1 Color space conversion11 2.3.2 D

7、iscrete Cosine Transform12 2.3.3 Quantization.13 2.3.4 “Z“ shaped scan.13 2.3.5 Encoding and decoding14 2.4 THE PURPOSE OF IMAGE DATA COMPRESSION.15 2.5 BASIC MODEL OF IMAGE COMPRESSION16 3 DISCRETE COSINE TRANSFORM IN C LANGUAGE AND MATLAB SIMULATION .18 3.1 DISCRETE COSINE TRANSFORM18 3.2 THE FUNC

8、TION OF MATLAB.18 3.3 DISCRETE COSINE TRANSFORM IN C LANGUAGE AND MATLAB SIMULATION19 CONCLUSION.24 APPENDIX26 1 1 INRODUCTION In the 21st century, mankind has entered the information society, and new information technology revolution to the growing human being surrounded by multimedia information,

9、also happens to cater to the humans demand of visual information. There are three main forms of multimedia information: text, sound and images. From the history of the development of information transmission (telegraph, telephone, fax, radio, TV ,network until now) ,we can see, people gradually shif

10、t the focus from the sound transmission to the image transmission , however, the image data in the form of three types of information is the largest,which gives the image transmission and storage bring with great difficulties. For example, the datas of a 640 480 resolution 24-bit true color image ar

11、e about 900kb; a 100Mb hard disk can store only about l00 inactive pictures. For such a huge amount of digital image data, if not compressed,it is not only beyond the computers memory and processing power, but also in the existing communication channel transmission rate, unable to complete a large n

12、umber of real-time transmission of multimedia information,thus,the high-speed digital image transmission and the huge storage capacity has become the biggest obstacle to promote the digital image communication . Therefore, in order to store,process and transmit, these datas must be compressed. Image

13、 compression has been able to Compressed because the original image data is highly relevant,with a big data redundancy. Redundant information contained the digital images generally have the several as the following: spatial redundancy, temporal redundancy, entropy redundancy, statistical redundancy,

14、 structural redundancy, visual redundancy and knowledge redundancy. Image compression algorithm in a premise of guaranting a certain image reconstruction quality, try ones best to remove the redundant information in order to achieve the purpose of image compression Discrete cosine transform (DCT) is

15、 the orthogonal transformation method proposed by N. Ahmed in 1974 . It is often considered to be the best way to transform the voice and image signals .In recent years,with the development of DSP in recent years, coupling with the advantages of ASIC design, DCT firmly established an important posit

16、ion in the current image coding algorithm,as to be an important part of the coding of H.261, JPEG, MPEG and other international standards on the public . In video compression, the most commonly used transform is DCT, DCT is considered to be close to the performance-optimal KL transform , the main fe

17、atures of Transform Coding are as the following: (1)The transform domain are simpler than space domain In video images. (2)Video image correlation decreased, the signal energy is concentrated in a few transform coefficients,and use the quantization and entropy coding to compress the data effectively

18、. (3)There is a strong anti-interference ability, during transmission of the image the influence of the bit error to quality is much smaller than predictive coding. Typically, high-quality images, DMCP required low bit error rate, and transform coding only requires low bit error rate. MATLAB is by t

19、he American Math-Works introduced for the numerical computation and graphics processing for scientific computing software, which combines numerical analysis, matrix computation, signal processing and graphics display functions in one and constitutes a convenient user-friendly environment. The Image

20、Processing Toolboxs in MATLAB, is the set of packages of many MATLAB technical computing environment . This paper discusses the principle of image compression and discusses the applied functions in the Image Processing Toolbox and commands in the relevant to achieve the discrete cosine transform ima

21、ge compression algorithm simulation of MATLAB2007 published. 2 2 Basic principles and model of image compression 2.12.1 Basic principles of image compression 2.1.12.1.1 The basic idea of image compression The basic idea of any compression mechanism is to remove existing correlation of data. The so-c

22、alled correlation, is to get the adjacent parts of the datas according to the given datas . The fundamental idea is to remove the correlation exists, which is also to remove the image datas that be deduced from according to the other datas . 2.1.2 Image compression method At present, many methods of

23、 image compression, the method of its classification was also different as a different starting point. Common classifications are: (1)Redundancy compression. The core of the method is to reduce or completely remove the redundancy of the source of data , while maintaining the same information,which i

24、s based on statistical models. For example, in the image data, the gray-scale of large probability is expressed with relatively short codes and the gray-scale of small probability is expressed with relatively long codes ,therefore,the average length of codes with encoding compression is shorter than

25、 the average length of codes with unencoding . In the decoding process, according to the appropriate rules or algorithms, we insert the amount of redundancy into the image data, to restore strictly the original image, achieving the reciprocal of encoding and decoding. Therefore, the redundant encodi

26、ng is also known as lossless compression , which is typically used for text file compression. Well-known Huffman (Huffman) coding and Shannon (Shannon) coding fall into this category. (2)Entropy compression. This is an encoding compression method as the cost of sacrificing some of the information to

27、 reduce the average code length . Because its loss of the part of the informations are allowed in the compression process. so the image uncompressed and the image restored will be not completely the same, so people will called the compression as lossy compression.The advantage of the compression mec

28、hanism is that have much higher the compression ratio than the lossless compression, but it can only be used to be the approximate data instead of the original data. In practice, lossy compression is more popular, mainly duing to its is relatively large compression ratios, and works well. 2.1.3 Imag

29、e compression standard Uniform international standards is the basis of coordinating products of different countries and manufacturers . The existing international image codi ng standard (or recommended), such as Recommendation of H.261, JPEG standard, MPEG-1, MPEG-2 standard and H.263 standards, rel

30、ating to binary image compression facsimile, still image transmission, video telephony, video conferencing, VCD, DVD, regular digital television, high definition television, multimedia, visual communications, multimedia, video on demand and transmission applications. 2.22.2 Image compression system

31、flow chart DCT-based image compression algorithm is lossy. Saying simply, it inverts a large amount into small datas and the real meaningful datas, deletes the datas with only minimal visual information, and express the datas as different codes according to the probability of datas . Because the hum

32、an eyes are more sensitive to luminance information, while the color of the reaction is relatively weak, so you can convert the image of the three primary colors (RGB) color representation to the image of a luminance (YCbCr) representation according to color space conversion, then sample secondly co

33、lor information of little effect on the visual effection, make the input of the encoder reduce a half of the amount of information at first, then each component is divided into 8 8 pixel blocks.These blocks input into the encoder in a specific order, such as the system flow chart shown in Figure 2.1

34、. Figure 2.1 DCT-based encoder system flow chart Steps of specific work of Image encoder : firstly,datas are passed by the forward cosine transformer, so that really useful information of each block centrates into the upper left corner of the block, and then quantified as the numerical accuracy and

35、to make the smaller value be zero, Z-scan can increase the length of the zero-length, Huffman coding will become to be more effective.And at last ,it be encoded by Huffman coding data stream. 2.32.3 Analysis of the main module of image compression 2.3.1 Color space conversion At present, many of the

36、 original image are expressed by RGB three primary colors . Through the color space conversion ,RGB three-color image is converted to CCIR601 recommended color space. This color space consists of three components Y (luminance), Cb (blue degrees), Cr (redness), achevied as the RGB three primary color

37、s by the following relations: Color Space Tranxfomation SamplingBlock processing Forward DCT Quantanitilize Scan Decode Quantization table Compressed data stream Decoder Pre-Processing Y=0.299R+0.587G+0.114B Cb =-0.168 7R-0.331 3G+0.5B+128 Cr =0.5R-0.418 7G-0.081 3B+128 Similarly, the decoder can re

38、cover the RGB values by the following relationship: R=Y+1.402(Cr-128) G=Y-0.344 14(Cb-128)-0.714 14(Cr-128) B=Y+1.772(Cb-128) 2.3.2 Discrete Cosine Transform Discrete cosine transform (DCT) is closely related with the discrete Fourier transform of the orthogonal transformation, 8 8 discrete cosine t

39、ransform two- dimensional image space expression can be converted to the frequency domain, only requring a small number of data points used to express the image , Using the expression f (x, y) to express the values of the 8 8 pixel image block ,the expression F (u, v) express the values after two-di

40、mensional discrete cosine transforming , the specific expression is as follows: (2.1) The inverse transformation equation as the following: (2.2) Among them, (2.3) 7 0 7 0 16 12 cos 16 12 cos, 4 1 , xy vu vyux yxfCCvuF 7 0 7 0 16 12 cos 16 12 cos, 4 1 , xy vuvu vyux yxFCCCCyxF 其他情况 当 1 0u 2 2 v CC v

41、u Two-dimensional discrete cosine transform core has a detachable feature ,alse that each line can be one-dimensional discrete cosine transform, and then each column be the one-dimensional discrete cosine transform, therefore, two-dimensional discrete cosine transform can be expressed as: (2.4) (2.5

42、) according to the Upper function, it computes largely.So the practical application in general is that using fast Fourier transform (FFT) algorithm to achieve fast computation of discrete cosine transform. 2.3.3 Quantization Quantification of data compression, instead of the A / D converter quantiza

43、tion, is about the orthogonal transformed data quantification, quantifying large dynamic range of input values, and the output datas can only express with a finite number of integer quantized values with fewer bits. Quantification always bring a group of input quantization to an output level, which

44、reducing the value of precision, but reducing the amount of data. The DCT coefficients of Output data in the upper left corner express the low- frequency component, about which the human eye is sensitive, So it should be expressed with high accuracy, and the DCT coefficients at the lower right corne

45、r can be expressed with lower accuracy , so we can define a quantization table on different data using different quantization levels, the quantization table according to the desired compression ratio can be adjusted, in general, the greater the compression quantization table element values greater t

46、han, of course, the greater the degree of image distortion. 7 0 16 12 cos, 2 1 , x u ux vxGCvuF 7 0 16 12 cos, 2 1 , y u ux vxGCvuG 2.3.4 “Z“ shaped scan Quantized data can already be Encoded with RLE, but in order to improve the efficiency of run-length encoding, we must try to increase the length

47、of the zero-length. Quantized coefficients based on the arrangement of features, the use of “Z“ shaped scan can effectively increase the length of the zero-length. “Z“ shaped scan trajectory shown in Figure 2.2: Figure 2.2 “Z“ shaped scan path 2.3.5 Encoding and decoding Run length encoding, variabl

48、e length coding and Huffman coding is used as the simulation study. 1. run length encoding, also known as run-length coding (RLC), the basic idea is that when the binary image from left to right in accordance with the order to observe each scan line, a certain number of continuous white point and bl

49、ack point of a certain number of consecutive always alternating as shown. Usually have the same gray value of neighboring pixels as a sequence-length, run-length in the number of pixels is called run- length, short travel long; to continuous white point and black point numbers are called “white stroke“ and “black stroke.“ If the stroke length for different probability distribution assigne

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

当前位置:首页 > 其他


经营许可证编号:宁ICP备18001539号-1