A New Rate Control Method Based on JPEG2000

Publisher:冰山火影1977Latest update time:2011-04-18 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Abstract: Although the post-compression rate-distortion optimization algorithm of the JPEG2000 still image compression standard can maintain good image quality, it has a large amount of computation and occupies a lot of memory. This paper proposes a new rate control method based on prior information scanning, which has an image quality basically equivalent to that of rate-distortion optimization. This method can effectively reduce the computational complexity of entropy coding and reduce memory usage.
Keywords: JPEG2000; image compression; rate-distortion optimization; scanning

0 Introduction
With the continuous development of multimedia and network technology, how to effectively use channel bandwidth when transmitting image or video information has become one of the main topics of discussion today. Rate control is a method that must be used to control the bit rate in image or video encoding. Its ultimate goal is to reasonably distribute the target bit rate to the image or video in order to obtain the minimum distortion.
JPEG2000 is a new international standard for still image compression encoding. Because it adopts a new structure different from other image compression standards, JPEG2000 has the advantages of high compression ratio, support for lossy and lossless compression, and random access and processing of code streams. The encoding algorithm of JPEG2000 includes discrete wavelet transform (DWT) and bit plane entropy coding. In JPEG2000, rate control can be performed by trying different quantization step sizes: and through the bit plane MQ encoder, JPEG2000 can accurately and simply control the bit rate to achieve the required bit rate. The core encoding method of JPEG2000 is embedded code block coding (EBCOT). Its optimal truncation is a rate control method that minimizes image distortion. This process is after the wavelet coefficients are entropy coded (compressed), so it is also called compressed rate-distortion optimization (PCRD).
According to the actual rate-distortion information of all compressed data, PCRD technology can calculate the image distortion minimization of the target bitstream. However, this also requires all the bitstream data of the image. In fact
, a lot of data will not be output, and this process will also take up a lot of memory and calculation. To this end, this paper proposes a new rate control method that can effectively reduce the amount of calculation and memory usage, while achieving similar results.

1 Introduction to JPEG2000
As a new international compression standard, JPEG2000 can usually be regarded as six parts: wavelet transform (DWT), scalar quantization, bit coefficient modeling, arithmetic coding, post-compression rate distortion optimization and bitstream organization.
Wavelet transform can decompose the image into four sub-bands: LL, HL, LH and HH, and can be decomposed at multiple levels. LL is where the low-frequency information of the image is located, and the other three sub-bands contain the high-frequency information of the image. After these wavelet coefficients are quantized, they can enter the EBCOT coding process.
1.1 Entropy coding
The entropy coding process generally includes coefficient modeling and arithmetic coding. It is essentially a bit plane coding process. In this process, each coding block is encoded independently and passes through three coding channels, namely the importance channel, the amplitude refinement channel and the zeroing channel. These coding channels will find the context of each bit coefficient according to the bit coefficient model, and then perform context-based arithmetic coding (MQ) on this bit coefficient.
1.2 Rate control
Rate control involves three parts: quantization, entropy coding and bitstream organization. Quantization is the process of repeatedly adjusting the quantization step size according to the required compression rate to achieve the target bit rate. This is an interactive control method. Another method of using post-compression processing is to set a truncation point for each coding block in the bitstream data. This truncation point can determine the amount of data encoded by the coding channel of each code block. This is the post-compression rate-distortion optimization of JPEG2000. The specific algorithm is as follows:
First, set the bit rate of the coding block Bi to be 16a.JPG , the distortion to be 16b.JPG , and the target bit rate of the final compressed data to be Rmax. Then the truncation point of each coding block can be freely selected. It only needs the final bit rate to satisfy the following formula:

16d.JPG

If the distortion of the reconstructed image is represented by the sum of the distortions of each coding block, the distortion of the reconstructed image is:
16e.JPG
Thus, at the intercept point ni, its rate-distortion slope is:

16f.JPG
Then, using the Lagrange multiplier method, the optimal truncation point λ can be found, thereby achieving optimal truncation coding.

2 New rate control method
The optimal truncation point λ can only be obtained through the actual rate-distortion slope of all truncation points, which requires that all bit plane data encoded by the entropy coding process and all encoded code streams are stored in the memory, and even those code streams that do not need to be transmitted after code stream control must be encoded and stored. However, through research, it is found that if the rate-distortion slope of each truncation point is arranged in a descending manner, the arrangement order is related to the number of bit plane layers. In general, the rate-distortion slope of a high bit plane is greater than that of a low bit plane; secondly, the rate-distortion slope of the first encoded channel is greater than that of the later encoded channel.
Based on the above two points, the bit plane information of the image can be scanned first, and then those with large rate-distortion slopes can be encoded. The unimportant bits at the end can be left unencoded. The process of this method is first to calculate the highest bit plane number Pi of each code block Bi according to the following formula;
16g.JPG
where is the maximum coefficient in the code block Bi. Then, the maximum number of planes is calculated:

16h.JPG

The sequence diagram for scanning each code block is shown in Figure 1. For each scanned code block, there are generally the following three conditions:

16i.JPG


(1) First, determine whether Pi = Pmax. If so, encode the unencoded bit plane channel of this coding block, then reduce Pi by 1, and then check condition (2). Otherwise, check condition (3);
(2) If the accumulated bit rate is greater than the target bit rate, exit encoding immediately. Otherwise, check condition (3);
(3) If this is the last coding block, then reduce Pmax by 1, and then enter the encoding of the next layer. Otherwise, continue scanning the next coding block.
Since the above condition (2) is satisfied 16j.JPG , the bit rate will not exceed the compression rate limit. Conditions (1) and (3) fully consider the importance of bit planes and coding channels, thereby ensuring the best image quality.

3 Experimental results
Here, we use 512x512 lena images for testing. Table 1 records the comparison between PCRD and the new method in terms of computational complexity and memory usage. Table 2 lists the comparison of the two methods in terms of PSNR. The decompressed image effects of the two methods are shown in Figure 2.

16k.JPG

4 Conclusion
Through the analysis of JPEG2000, this paper proposes a method to control the bit rate by estimating rate-distortion information. Since this method does not need to encode all the data, it can effectively reduce redundant calculations and memory usage while maintaining image quality.

Reference address:A New Rate Control Method Based on JPEG2000

Previous article:The Difference Between Digital Potentiometer and Digital-to-Analog Converter
Next article:Research on the Design of USB Control System Based on CY7C68013A

Latest Industrial Control Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号