关键字:JPEG;有损压缩;行程编码;哈夫曼编码
Abstract
This paper introduces the encoding and decoding of JPEG and the specific realization of program on vc++ platform. The encoding part of this program can encode a picture whose format is BMP and save relevant data as binary system. The decoding program can decode the compression data and reconstruct the origin image. While conveying pictures we often encode still pictures into the style of JPEG. JPEG is of lossy compression which can not recover all the image data, some data are losed. Although we refer to non-lossy compression, however, the compression ratio of lossy compression( the times that data bytes before compression to that after compression )is bigger than that of non-lossy compression. JPEG encoding translate image color from RBG to luminance Y and chroma Cr、Cb. Because people’ eyes are less sensitive to chroma comparing with luminance , some of chroma data are abandoned to reduce data size.
JPEG envolves some kinds of ways of encoding including Run Length Coding and Huffman Coding, so it has high compression ratio. Before Coding ,we divide data into blocks , DCT and quantify each block. The low-frequency signals that have more energy are maintained and others are rejected . While decoding , data stream are readed , decoded , inverse-quantified and then IDCT .
Keywords: JPEG;lossy compression;Run Length Coding;Huffman Code
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >>