CN100534186C - JPEG2000 self-adapted rate control system and method based on pre-allocated code rate - Google Patents

JPEG2000 self-adapted rate control system and method based on pre-allocated code rate Download PDF

Info

Publication number
CN100534186C
CN100534186C CN 200710018190 CN200710018190A CN100534186C CN 100534186 C CN100534186 C CN 100534186C CN 200710018190 CN200710018190 CN 200710018190 CN 200710018190 A CN200710018190 A CN 200710018190A CN 100534186 C CN100534186 C CN 100534186C
Authority
CN
China
Prior art keywords
code
code block
coding
encoder
block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN 200710018190
Other languages
Chinese (zh)
Other versions
CN101106711A (en
Inventor
李云松
孔繁锵
王柯俨
吴成柯
刘凯
雷杰
周有喜
汪美珠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHANDONG HUAYU AEROSPACE SPACE TECHNOLOGY Co Ltd
Original Assignee
Xidian University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xidian University filed Critical Xidian University
Priority to CN 200710018190 priority Critical patent/CN100534186C/en
Publication of CN101106711A publication Critical patent/CN101106711A/en
Application granted granted Critical
Publication of CN100534186C publication Critical patent/CN100534186C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses a JPEG2000 self-adapting rate control system and a method based on pre-assignment of code rate, mainly solving the problem of large calculation amount and large memory size of JPEG2000 encoding method. The code block of the original image after pretreatment, wavelet transformation and quantification is output by two lines, one line directly enters the bit plane and MQ coder; for the other line, the entropy of each code block is estimated by the entropy estimate module, sent to the code rate assignment module to assign code rate, and the code rate of each code block is feed back to the bit plane and MQ coder through the encoding depth control module, after the code blocks are encoded by the bit plane, further feed back to the encoding depth control module to determine the output code stream of each encoded code block, and the output code stream is under optimal interception and code stream organization to output the ultimate code stream. At the same time, the invention can change the threshold value of the encoding depth control coefficient as required, to flexibly control the encoding depth in order to improve the image compression quality. The invention has the advantages of low complexity and easiness for hardware implementation, and is suitable for various JPEG2000 image real-time compression systems.

Description

Based on code check preallocated JPEG2000 adaptive rate control system and method
Technical field
The present invention relates to technical field of image processing, particularly a kind of based on the preallocated JPEG2000 optimization of code check bit rate control method, be used for the image compression encoding of various digital devices.
Background technology
Along with multimedia and development of internet technology and application, existing Joint Photographic Experts Group JPEG can not satisfy current market and requirement of actual application, and International Standards Organization has formulated the new standard JPEG2000 of rest image compression in November, 2000 for this reason.This new standard has adopted Australian scholar David Taubman at High PerformanceScalable Image Compression with EBCOT (IEEE Trans.Image Processing, vol.9, no.7, pp.1158-1170, July 2000) wavelet transformation and the rate-distortion optimization intercepting built-in code block encryption algorithm EBCOT that propose in the literary composition, this algorithm is divided into T1 encoder and T2 encoder two parts.T1 is made up of embedded bit-plane coding and MQ arithmetic encoder, finishes context and forms and arithmetic coding; Control of T2 part completion rate and code stream tissue.When carrying out rate-distortion optimization intercepting built-in code block encryption algorithm EBCOT coding, each wavelet sub-band is divided into littler code block, as 64 * 64, is that unit independently makes the T1 coding with the code block.The bitstream length that different code blocks produces is inequality, and they also are different to the contribution that recovers picture quality.Therefore for the bit stream of all code blocks generations, T2 has adopted the rate-distortion optimization technology to carry out the back compression and has handled, and finishes the rate control and the tissue of code stream.
JPEG2000 adopts PCRD (compression back rate-distortion optimization) algorithm accurately to carry out rate control, and this algorithm can make compressed image best in quality under the constant bit rate condition.But the PCRD optimized Algorithm is the global optimization procedure on entire image, after finishing, all channel codings that it must wait until all code blocks of entire image just can carry out the search of layering intercept point, and the T1 encoder has comprised most of amount of calculation in the JPEG2000 encoder, be about 45%~60%, yet T1 encoder a big chunk amount of calculation and memory space are redundant for final code stream, and huge amount of calculation and a large amount of internal memories are the bottlenecks of JPEG2000 hardware real-time implementation.
By optimization rate distortion intercepting algorithm as can be known: must learn the code length Δ Rik of coding pass of all code blocks and the distortion reduction amount of each coding pass
Figure C200710018190D0004155332QIETU
, this also just requires the T1 encoder must be to all bit-plane codings, and the coded data and the relevant information of storing each subband, as storage
Figure C200710018190D0004155332QIETU
With
Figure C200710018190D0004155332QIETU
Deng.Obviously, most of coded data wherein is not included in the final compressed bit stream, and this just causes most of amount of calculation of T1 encoder and memory use amount to be wasted on the useless data of final compressed bit stream.In order to improve the operating efficiency of encoder, the T1 encoder there is no need all bit-planes or all sub-band codings, as long as can in the process of T1 coding, determine a suitable coding depth at different bit rate self adaptations, guarantee that in this coding range each code block rate-distortion slope curve is that strictly monotone descends, carry out intercept point again and select, can reach the compression effectiveness of JPEG2000 standard substantially.According to EBCOT actual coding characteristics as can be known: the first, slope only compares computing when selecting to optimize intercept point, that is to say that the actual value of slope is unimportant, the magnitude relationship between the importantly used slope, this also is that we can be to the prerequisite of its prediction.Second, the rate-distortion slope curve of each code block is relevant with the type of the bit-planes of coding and the subband of encoding, and except individual other singular point, it is on a declining curve substantially, in same bit-planes, early the subband of coding is bigger than the rate-distortion slope of the subband of late coding.
Therefore, shortening time and minimizing memory space press for, and many scholars have made number of research projects in this respect, have proposed some algorithms, improve code efficiencies from different degree.Y.M.Yeung is at Efficient rate control forJPEG2000 image coding (IEEE Trans.on Circuits and Systems for Video Technology, vol.15, no.3, pp.335-344, March, 2005) high more in the literary composition according to bit-planes in the coding code block, the characteristics that the importance of its contained information is high have more proposed priority scan rate allocation algorithm PSRA, basic thought is to find out a maximum coding pass number in entire image coding code block, then according to this maximum coding pass number, all code blocks are encoded from high to low according to coding pass, until reaching target bit rate.On the basis of PSRA algorithm, Y.M.Yeung has proposed the best intercepting of priority scan algorithm PSOT again, its algorithm thought is according to the PSRA algorithm, high coding pass priority encoding, up to reaching the target code stream, then from finding out the minimum coding pass of rate-distortion slope the coding pass, each code block rate-distortion slope of encoding is greater than the coding pass of minimum rate-distortion slope, and the code stream with gained carries out the final code stream of rate-distortion optimization intercepting output at last.The PSOT algorithm has improved the performance of PSRA algorithm, and its Y-PSNR PSNR is substantially equal to the JPEG2000 canonical algorithm, but comparing the PSRA algorithm has but increased amount of calculation and memory space greatly, and has increased T2 rate-distortion optimization intercepting algorithm.In this high coding pass priority encoding framework, need in all code blocks, circulate and switch the code block coding, and the state informations such as context state variable that need to preserve all code blocks, algorithm complex is higher, the relevant information memory space is big, and this is difficult to accomplish in real-time system.Therefore the real-time JPEG2000 compression ratio control algolithm of low, the low memory requirement of designing and calculating amount is very important.Wu Zongze blocks Rate Control new algorithm and VLSI structural design (electronic letters, vol thereof in real time at JPEG2000, vol.33, no.8, pp.1457-1460.August, 2005) allocate the compressed code number of words of each code block in the literary composition in advance according to small echo quantization weight and coding pass number, proposed the preallocated rate control algolithm of JPEG2000 code check.This algorithm has greatly reduced the amount of calculation and the memory space of the T1 encoder of JPEG2000, realized blocking in real time coding, and the code stream of gained needn't carry out the intercepting of T2 rate-distortion optimization and directly carry out the code stream tissue and pack getting final product, algorithm complex is very low, helps large scale integrated circuit VLSI and realizes.But the Y-PSNR PSNR of this algorithm is lower, generally will be lower than more than the PCRD algorithm 0.8dB, and image quality loss is bigger.TaekonKim is at Memory Efficient Progressive Rate-Distortion Algorithm for JPEG2000 (IEEE Trans.on Circuits and Systems for Video Technology, vol.15, no.1, pp.181-187.January, 2005) the progressive rate-distortion optimization algorithm of efficient internal memory MEPRD has been proposed, the thought that the minimum slope that this algorithm proposes abandons makes the T1 encoder advantage of association rate distortion slope optimization intercepting algorithm effectively, its performance and canonical algorithm are basic identical, and encode required operand and time have been reduced significantly, but increase along with code check, coding redundancy also increases thereupon, and has increased the minimum slope searching algorithm.
The content of invention
The objective of the invention is to overcome the deficiency of above-mentioned prior art, provide a kind of based on code check preallocated JPEG2000 adaptive rate control system and method, simplify rate control algorithm complexity height, improve code efficiency and recover picture quality, realize the code check optimal control of JPEG2000.
The key problem in technology of realizing the object of the invention is to have introduced a prediction module, independently entropy estimation is carried out on significant bit plane to image wavelet transform and quantification back EBCOT coding code block, and estimate that with code block the entropy summation instructs code check preassignment, simultaneously the T2 encoder by the preassignment coding bit rate adaptively the FEEDBACK CONTROL coding depth, finish and optimize intercepting.
The present invention propose based on the preallocated JPEG2000 adaptive rate of code check control system, comprise: preliminary treatment, wavelet transformation, quantification, T1 encoder, T2 encoder, this T1 encoder is made up of bit-planes+MQ encoder, this T2 encoder intercepts by optimizing, the code stream tissue is formed, it is characterized in that having additional the entropy estimation module in the T1 encoder, have additional Data Rate Distribution module and coding depth control module in the T2 encoder; The code block of original image after preliminary treatment, wavelet transformation and quantification divides two-way output, one the tunnel directly enters bit-planes+MQ encoder, another road estimates the entropy of each code block by the entropy estimation module, send into the Data Rate Distribution module and carry out Data Rate Distribution, and the code check of each code block is fed back to bit-planes+MQ encoder by the coding depth control module, after carrying out the code block bit-plane coding, feed back to the coding depth control module again and determine the coding output code flow of each code block, and to this output code flow be optimized the intercepting and the code stream tissue, export final code stream.
The code check that adds up of the code block after described bit-planes+input of MQ encoder quantizes and each code block of coding depth control module feedback, be by the add up bit-plane coding of each code block of Rate Control of each code block, the code block code stream of each code block coding back output carries out self adaptation to the coding depth control module again and adjusts coding depth, to control the bit-plane coding code stream of each code block.
Described entropy coding module adopts the JPEG-LS prediction algorithm that the code block that quantizes input is estimated, and each code block entropy that will estimate is exported to the Data Rate Distribution module.
Estimation entropy and each code block preassignment weights that each code block entropy that described Data Rate Distribution module will be imported adds up and obtains entire image are exported the encoder bit rate of each code block and are given the coding depth control module.
Described coding depth control module adds up each code block code stream of bit-planes+MQ encoder output, and compare by the coding depth control module with the code block encoder bit rate of Data Rate Distribution module input, add up code check and code block code stream of output code block given bit-planes+MQ encoder respectively and optimized interception module.
The present invention propose based on the preallocated JPEG2000 self-adaption code rate of code check control system, comprise following process:
Step 1 utilizes the JPEG-LS prediction algorithm to through each code block after wavelet transformation and the quantification, carries out code block entropy H bEstimation, calculate the estimation entropy H of entire image and the encoder bit rate C of each code block b, scan by the code block scanning sequency of JPEG2000 standard, for the T1 coding of all code blocks is prepared;
Step 2, the initial code degree of depth that current code block is set is controlled thresholding d b=0;
Step 3 is carried out T1 coding to current code block, and the encoding code stream of the high channel of exporting that current code block do not encoded also adds up, promptly R b = Σ k Δ R b k , Wherein Be the encoding code stream length of k coding pass of current code block, when the distortion reduction amount of k coding pass of code block is
Figure C200710018190D00073
In the formula, b is the current code block number of image, and k is the current sign indicating number port number of current code block;
Step 4 compares encoding code stream and the code block allocated code code check that adds up, and adjusts coding depth control thresholding, and the coding of controlling each code block according to thresholding ends, and exports the encoding code stream of the code block of having encoded;
Step 5 is according to obtaining
Figure C200710018190D0007155506QIETU
With
Figure C200710018190D0007155506QIETU
, in the coding pass of having encoded, reject the singular point of each code block by rate-distortion optimization intercept point algorithm, calculate the rate-distortion slope between the neighboring candidate intercept point in each code block, search optimum intercept point at last, finish the code stream intercepting;
Step 6 is organized algorithm by the code stream of JPEG2000 standard, finishes code stream tissue and packing, exports final code stream.
Described step 4, carry out according to the following procedure:
1) coding depth of judging current code block is controlled thresholding d iWhether be 1, if d bBe not 1, then carry out (2), if d b=1, then carry out (3);
2) the encoding code stream R that adds up of judgement code block iWhether greater than the encoder bit rate C of code block bIf, R b≤ C b, returned for the 3rd step the high channel of not encoded of current code block carried out the T1 coding, if R bC b, coding depth control thresholding d is set b Be 1, returned for the 3rd step;
3) judge whether encoded finishing of all code blocks,, then export the encoding code stream of all code blocks, return the optimization intercepting that step 5 is carried out code stream again,, then carry out (4) if coding does not finish if all code blocks codings finish;
4), prepare the T1 coding of next code block, and return step 2 by the T1 of current code block coding.
The present invention is because employing is carried out independently entropy estimation to the significant bit plane of image wavelet transform and quantification back EBCOT coding code block, and estimate that with code block the entropy summation instructs code check preassignment, and by the preassignment encoder bit rate adaptively the FEEDBACK CONTROL coding depth, finish and optimize intercepting, thereby code check preassignment is accurate, amount of calculation and memory space have been reduced significantly, under different code checks, all improved code efficiency effectively, and obtained and the essentially identical high compression performance of canonical algorithm.
The compare test result of the PCRD algorithm that is adopted among the present invention and the JPEG2000 is as table 1~table 4.Relatively content comprises three aspects: the one, and the difference DELTA PSNR of Y-PSNR PSNR; The 2nd, the slip of amount of calculation, the slip of this amount of calculation is weighed with the coding pass number of T1 encoder encodes; The 3rd, the code stream byte number and the relevant information of storage, i.e. the distortion reduction amount of coding pass during the slip of the memory space of algorithm, the slip of this memory space are encoded with T1
Figure C200710018190D0008155624QIETU
, encoding code stream length
Figure C200710018190D0008155624QIETU
And rate-distortion slope
Figure C200710018190D0008155638QIETU
Byte number weigh;
The test of the Barbara image of table 1 couple standard 512*512 relatively
Figure C200710018190D00081
The test of the Lena image of table 2 couple standard 512*512 relatively
The test of the Field image of table 3 couple standard 1024*1024 relatively
The test of the Bridge image of table 4 couple standard 2048*2048 relatively
Figure C200710018190D00092
As can be seen, the present invention is under low code check from table 1~table 4, and mean P SNR difference is minimum to be 0.213dB, and along with the increase of code check, image quality loss is considerably less, and is approaching with the performance of PCRD standard method basically; Under different code checks, amount of calculation of the present invention and memory space all have significantly reduction, especially under 0.125bpp, the average computation amount slip of four width of cloth images and average memory space slip are respectively 77.6% and 92.6%, the rate distortion control structure that adopts the present invention to propose, can be reduced to originally 7.4% on storage resources, and under 2bpp, the average computation amount slip of four width of cloth images and average memory space slip are respectively 47.3% and 61.5%.As seen under different code checks, because the present invention has all significantly reduced amount of calculation and memory space, therefore not only can keep under the image quality loss prerequisite seldom, the amount of calculation and the memory space of whole JPEG2000 coded system have been reduced effectively, improve the efficient of encoder, and be easy to the hardware realization.
Description of drawings
Fig. 1 is the block diagram of the coded system of existing JPEG2000;
Fig. 2 is a coded system block diagram of the present invention;
Fig. 3 is the selection schematic diagram of prediction module of the present invention, wherein
Fig. 3 (a) is the macro-forecast template of code block,
Fig. 3 (b) is the prediction module of the first row pixel of code block,
Fig. 3 (c) is the prediction module of the first row pixel of code block;
Fig. 4 is a coding method flow chart of the present invention;
Fig. 5 be the present invention under different code checks with the PSNR mean difference schematic diagram of JPEG2000 standard method;
Fig. 6 be the present invention under different code checks with the amount of calculation slip schematic diagram of JPEG2000 standard method;
Fig. 7 be the present invention under different code checks with the memory space slip schematic diagram of JPEG2000 standard method.
Embodiment
With reference to figure 1, JPEG2000 core encoder system mainly comprises: preliminary treatment, wavelet transform, quantification, bit-planes+MQ encoder, optimization intercepting, code stream tissue.After the original processing image of input at first passes through preliminary treatment and wavelet transform, be transformed into a series of different frequency bands; Then the coefficient after the conversion is carried out quantification treatment according to compression requirements; Subband after quantizing is divided into code block, as the basic processing unit of JPEG2000 entropy coding; Each code block is carried out the entropy coding of arithmetic encoder MQ respectively and handle, generate the original compression code stream; Then, adopt the rate-distortion optimization intercepting algorithm in the T2 encoder to carry out the code stream intercepting according to demand; Carry out the code stream tissue at last and generate final compressed bit stream output.
With reference to figure 2, the present invention has increased entropy estimation module, Data Rate Distribution module and coding depth control module on the basis of JPEG2000 core encoder system.After the original processing image of input at first passes through preliminary treatment, wavelet transform and quantification, be divided into many code blocks, input to bit-planes+MQ encoder and entropy coding module respectively.The code check that adds up of the code block after this bit-planes+input of MQ encoder quantizes and each code block of coding depth control module feedback, by the add up bit-plane coding of each code block of Rate Control of each code block, the code block code stream of each code block coding back output carries out self adaptation to the coding depth control module again and adjusts coding depth, to control the bit-plane coding code stream of each code block.This entropy coding module adopts the JPEG-LS prediction algorithm that the code block that quantizes input is estimated, and each code block entropy that will estimate is exported to the Data Rate Distribution module.Estimation entropy and each code block preassignment weights that each code block entropy that this Data Rate Distribution module will be imported adds up and obtains entire image are exported the encoder bit rate of each code block and are given the coding depth control module.This coding depth control module adds up each code block code stream of bit-planes+MQ encoder output, and compare by coding depth control code block with the code block encoder bit rate of Data Rate Distribution module input, add up code check and code block code stream of output code block given bit-planes+MQ encoder respectively and optimized interception module.Then, adopt the rate-distortion optimization intercepting algorithm in the T2 encoder to carry out the code stream intercepting according to demand; Carry out the code stream tissue at last and generate final compressed bit stream output.
With reference to figure 4, utilize system of the present invention to realize that the process of self-adaption code rate control is as follows:
One. estimate the entropy of each code block, be each code block allocated code code stream
1. entropy estimation principle
Carry out the entropy method of estimation of independent estimations based on code block significant bit plane in the wavelet field, specifically describe as follows:
If it is x that certain image wavelet decomposes the coefficient of a certain subband in back Ij, i=0,1 ... .N-1, j=0,1 ... .M-1, the resolution of image is N * M, if be Δ with a step-length during image compression process lQuantizer quantize, l=0 wherein, 1 ... L-1, L are the subband number of types behind the wavelet transformation, have certain zero bit-planes through the code block after quantizing, and establishing the zero bit-planes number of code block is z b, b=0,1 ... B-1, B are the code block number of image, and the coefficient of code block coding is after then passing through quantification and removing code block zero bit-planes number:
x ij bp = x ij Δ l 2 z b
By coefficient
Figure C200710018190D00112
The entropy estimated value of each code block of forming is considered the accuracy that algorithm complex and entropy are estimated, the present invention adopts based on the JPEG-LS prediction algorithm, and its prediction module is shown in Fig. 3 (a), and predictor formula is:
Figure C200710018190D00113
If the pixel of prediction is first row or first row of code block, then use the prediction module of Fig. 3 (b) and Fig. 3 (c) respectively, predicted value is the value of previous pixel.This moment code block prediction entropy H bFor:
Figure C200710018190D00114
Then the estimation entropy H of entire image is:
H = &Sigma; b < B H b
Make W bBe each code block preassignment weights, then:
W b = H b &Sigma; b < B H b And &Sigma; b < B W b = 1
The preallocated byte number of each code block is C b=R Max* W b, R wherein MaxPacked byte number for original image; Then each code block is pressed C bCarrying out the EBCOT coding gets final product.
Calculating before code block estimates that entropy is encoded, at first to do preliminary treatment to image, wavelet transformation and quantification, thus obtain the code coefficient of each code block
Figure C200710018190D00118
The embodiment of the invention has adopted the classical test patterns of 4 width of cloth: be of a size of 512 * 512 Lena image, be of a size of 512 * 512 Barbara image, be of a size of 1024 * 1024 Field image, be of a size of 2048 * 2048 Bridge image, these images all carry out 4 grades of wavelet transformations by the Daubechies9/7 filter, and code block size is set at 64 * 64.13 subbands that image produces behind 4 grades of wavelet transformations are wherein with the resolution minimum of 4 subbands of low frequency sub-band LL peer.It to resolution 512 * 512 image, its subband minimum resolution is 32 * 32, and is littler than the code block size of original start, and then the code block size of these subbands is the size of subband resolution, thereby 4 32 * 32 code block and 63 64 * 64 code block, totally 67 code blocks are arranged.For resolution is 1024 * 1024 and 2048 * 2048 image, and all code block size are 64 * 64, and the image of these two kinds of resolution has 256 and 1024 code blocks respectively.
2. entropy estimation procedure
(1) to the prediction of all code block code coefficients.Each code block code coefficient after utilizing the JPEG-LS prediction algorithm to process wavelet transformation and quantification
Figure C200710018190D00121
Predict according to prediction masterplate shown in Figure 3, if
Figure C200710018190D00122
Be the value of code block first row or first row, then with this row maybe should row previous value as predicted value, as the prediction module of Fig. 3 (b) shown in (c), promptly Or
Figure C200710018190D00124
If
Figure C200710018190D00125
Be first value of code block, then predicted value is itself, promptly
Figure C200710018190D00126
If other positions of code block then adopt the prediction masterplate shown in Fig. 3 (a) to predict by predictor formula.For example the value of initial adjacent 4 pixels of first code block is respectively x 00 0 p = 2 , x 10 0 p = 3 , x 01 0 p = 1 , x 11 0 p = 4 , Then the predicted value of each point is respectively
Figure C200710018190D001213
Again because of x 00 0 p &GreaterEqual; min ( x 01 0 p , x 10 0 p ) , So
Figure C200710018190D001215
Predicted value
Figure C200710018190D001216
(2) the estimation entropy H of calculating entire image.After the predicted value that obtains all code block coefficients, can pass through earlier
Figure C200710018190D001217
Calculate the prediction entropy of each code block, pass through again H = &Sigma; b < B H b Calculate the estimation entropy of entire image.
At three kinds of image in different resolution in the foregoing description, there are 67,256 and 1024 code blocks to estimate entropy respectively, estimate that with these code blocks the entropy summation instructs code check preassignment during coding.
(3) distribute the encoder bit rate C of each code block bIf W bBe the preassignment weights of code block b, then: W b = H b H , The preallocated byte number of each code block is C b=R Max* W b, R wherein MaxPacked byte number for original image.
At three kinds of image in different resolution in the foregoing description, the encoder bit rate of 67,256 and 1024 code blocks is arranged respectively, the encoder bit rate with these code blocks during coding instructs coding depth control module control code block encoding.
(4) do the early-stage preparations that T1 encodes.Code block scanning sequency by the JPEG2000 standard scans all code blocks, arranges all code blocks according to scanning sequency, prepares the T1 coding of code block.
Two. the degree of depth control thresholding d of current code block is set b=0, be used for representing that current code block does not satisfy the coding depth of required code stream length.
The coding depth control thresholding d that introduces in the inventive method, its effect is the coding depth that control increases, and is made as 0 at this degree of depth control thresholding with current code block.
Three. carry out the T1 coding of current code block and carry out code stream and add up.
When coding code block b, the high channel that this code block of at first encoding had not been encoded, with gained code stream, this coding pass
Figure C200710018190D00131
With
Figure C200710018190D00132
Put into memory, according to R b = &Sigma; k &Delta; R b k Calculate the accumulative total code stream, and compare, wherein with the distribution code check of code block
Figure C200710018190D00134
Be the encoding code stream length of k coding pass of current code block,
Figure C200710018190D00135
It is the distortion reduction amount of k coding pass of current code block; B is the current code block number of image, and k is the current sign indicating number port number of current code block.
Four. self-adaption code rate control.
The encoding code stream and the code block allocated code code check that add up are compared, adjust coding depth control thresholding, the coding of controlling each code block according to thresholding ends, and exports the encoding code stream of the code block of having encoded.
(1) coding depth of judging current code block is controlled thresholding d bWhether be 1,
If d bBe not 1, then carry out (2),
If d b=1, then carry out (3);
(2) the encoding code stream R that adds up of judgement code block bWhether greater than the encoder bit rate C of code block b,
If R b≤ C b, current code block is carried out T1 coding, the encoding code stream of the high channel of exporting that current code block do not encoded also adds up,
If R bC b, coding depth control thresholding d is set b Be 1, current code block is carried out T1 coding, the encoding code stream of the high channel of exporting that current code block do not encoded also adds up;
(3) judge whether encoded finishing of all code blocks,
If all code block codings finish, then export the encoding code stream of all code blocks and be optimized intercepting, if coding does not finish, then carry out (4);
(4), prepare the T1 coding of next code block, and the initial code degree of depth control thresholding d of current code block is set by the T1 of current code block coding b=0.
Five optimize intercepting.
According to obtaining With In the coding pass of having encoded, by rate-distortion optimization intercept point algorithm reject successively each code block singular point, calculate the rate-distortion slope between the neighboring candidate intercept point in each code block, search optimum intercept point, finish the code stream intercepting;
Six code stream tissues are also exported final code stream.
Code stream by the JPEG2000 standard is organized algorithm, finishes code stream tissue and packing, exports final encoding code stream, realizes image compression.
Effect of the present invention can further specify by Fig. 5~7:
From Fig. 5 as seen, the present invention is under low code check, and mean P SNR difference is minimum to be 0.213dB, and along with the increase of code check, the present invention is substantially equal to the performance of PCRD standard method, and visible image quality loss of the present invention is considerably less.
From Fig. 6 as seen, along with the increase of compression multiple, amount of calculation of the present invention has significantly reduction, and especially under 0.125bpp, the average computation amount slip of four width of cloth images is 77.6%.
From Fig. 7 as seen, along with the increase of compression multiple, memory space of the present invention has significantly reduction, especially under 0.125bpp, the average memory space slip of four width of cloth images is 92.6%, and the rate distortion control structure that adopts the present invention to propose can be reduced to original 7.4% on storage resources.
As seen under different code checks, the present invention has all significantly reduced amount of calculation and memory space.Therefore the present invention improved the efficient of encoder, and algorithm complex of the present invention is low keeping having reduced amount of calculation and the memory space of EBCOT effectively under the image quality loss prerequisite seldom, is easy to hardware and realizes.
Specify:
Introduced coding depth control thresholding d in the inventive method, its effect is the coding depth that control increases, the thresholding of d is made as 1 in said method, the code check of compressed bit stream that is code block b gained is greater than target bit rate, and coding depth control module notice T1 encoder increases a coding pass again and encodes.The effect of introducing coding depth control thresholding is the range of choice that enlarges final code stream, thereby reduces indivedual rate-distortion slopes greater than the coding pass of the final λ influence intercepting effect that is not encoded as far as possible.Certainly the threshold value of coding depth control thresholding d is big more, and the quality and the canonical algorithm of the recovery image of the inventive method are close more, but take all factors into consideration, and it is 1 that the present invention selects the threshold value of d.

Claims (7)

1. one kind based on the preallocated JPEG2000 self-adaption code rate of code check control coded system, comprising:
Preliminary treatment, wavelet transformation, quantification, T1 encoder, T2 encoder, this T1 encoder is made up of bit-planes+MQ encoder, this T2 encoder is made up of optimization interception module, code stream molded tissue block, it is characterized in that having additional the entropy estimation module in this T1 encoder, have additional Data Rate Distribution module and coding depth control module in this T2 encoder; Original image is through preliminary treatment, code block after wavelet transformation and the quantification divides two-way output, one the tunnel directly enters bit-planes+MQ encoder, another road estimates the entropy of each code block by the entropy estimation module, and entropy is sent into the Data Rate Distribution module carry out Data Rate Distribution, the code check of each code block is fed back to bit-planes+MQ encoder by the coding depth control module, carry out the code block bit-plane coding, encoder bit rate with the bit-planes of each code block feeds back to the coding depth control module again, determine the coding output code flow of each code block by the coding depth control module, and this output code flow is optimized intercepting and code stream tissue by optimizing interception module and code stream molded tissue block, export final code stream.
2. coded system according to claim 1, the code check that adds up that it is characterized in that each code block of code block after the input of bit-planes+MQ encoder quantizes and coding depth control module feedback, by the add up bit-plane coding of each code block of Rate Control of each code block, the code block code stream of each code block coding back output carries out self adaptation to the coding depth control module again and adjusts coding depth, to control the bit-plane coding code stream of each code block.
3. coded system according to claim 1 it is characterized in that the entropy coding module adopts the JPEG-LS prediction algorithm that the code block that quantizes input is estimated, and each code block entropy that will estimate is exported to the Data Rate Distribution module.
4. coded system according to claim 1, it is characterized in that estimation entropy and each code block preassignment weights that each code block entropy that the Data Rate Distribution module will be imported adds up and obtains entire image, export the encoder bit rate of each code block and give the coding depth control module.
5. coded system according to claim 1, it is characterized in that the coding depth control module adds up each code block code check of bit-planes+MQ encoder output, and the add up code block encoder bit rate of code check and Data Rate Distribution module input of code block compared, control the encoding code stream of each code block; The coding depth control module is given add up code check and code block code stream of the code block of its output respectively bit-planes+MQ encoder and is optimized interception module.
6. one kind based on the preallocated JPEG2000 self-adaption code rate of code check control coding method, comprises following process:
Step 1 utilizes the JPEG-LS prediction algorithm to through each code block after wavelet transformation and the quantification, carries out code block entropy H bEstimation, calculate the estimation entropy H of entire image and the encoder bit rate C of each code block b, scan by the code block scanning sequency of JPEG2000 standard, for the T1 coding of all code blocks is prepared;
Step 2, the coding depth that current code block is set is controlled thresholding d bInitial value be 0;
Step 3 is carried out T1 coding to current code block, and the encoding code stream of the high channel of exporting that current code block do not encoded also adds up, promptly R b = &Sigma; k &Delta;R b k , Wherein
Figure C200710018190C00032
Be the encoding code stream length of k coding pass of current code block,
Figure C200710018190C00033
It is the distortion reduction amount of k coding pass of current code block; B is the current code block number of image, and k is the current sign indicating number port number of current code block;
Step 4 compares encoder bit rate and the code block allocated code code check that adds up, and adjusts coding depth control thresholding, and the coding of controlling each code block according to described coding depth control thresholding ends, and exports the encoding code stream of the code block of having encoded;
Step 5 is according to obtaining
Figure C200710018190C00034
With
Figure C200710018190C00035
In the coding pass of having encoded, by rate-distortion optimization intercept point algorithm reject successively each code block singular point, calculate the rate-distortion slope between the neighboring candidate intercept point in each code block, search optimum intercept point, finish the code stream intercepting;
Step 6 is organized algorithm by the code stream of JPEG2000 standard, finishes code stream tissue and packing, exports final encoding code stream.
7. according to the described self-adaption code rate of claim 6 control coding method, it is characterized in that described step 4 carries out according to the following procedure:
(1) coding depth of judging current code block is controlled thresholding d bWhether be 1, if d bBe not 1, then carry out (2), if d b=1, then carry out (3);
(2) the encoding code stream R that adds up of judgement code block bWhether greater than the encoder bit rate C of code block bIf, R b≤ C b, return step 3 the high channel of not encoded of current code block carried out the T1 coding, if R bC b, coding depth control thresholding d is set bBe 1, return step 3;
(3) judge whether encoded finishing of all code blocks,, then export the encoding code stream of all code blocks, return the optimization intercepting that step 5 is carried out code stream again,, then carry out (4) if coding does not finish if all code blocks codings finish;
(4), prepare the T1 coding of next code block, and return step 2 by the T1 of current code block coding.
CN 200710018190 2007-07-05 2007-07-05 JPEG2000 self-adapted rate control system and method based on pre-allocated code rate Expired - Fee Related CN100534186C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200710018190 CN100534186C (en) 2007-07-05 2007-07-05 JPEG2000 self-adapted rate control system and method based on pre-allocated code rate

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200710018190 CN100534186C (en) 2007-07-05 2007-07-05 JPEG2000 self-adapted rate control system and method based on pre-allocated code rate

Publications (2)

Publication Number Publication Date
CN101106711A CN101106711A (en) 2008-01-16
CN100534186C true CN100534186C (en) 2009-08-26

Family

ID=39000346

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200710018190 Expired - Fee Related CN100534186C (en) 2007-07-05 2007-07-05 JPEG2000 self-adapted rate control system and method based on pre-allocated code rate

Country Status (1)

Country Link
CN (1) CN100534186C (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101365138B (en) * 2008-10-10 2010-12-08 中国航天科技集团公司第五研究院第五〇四研究所 JPEG2000 image compression processing system
CN101867809A (en) * 2010-04-09 2010-10-20 中国科学院光电技术研究所 High-speed image compression VLSI coding method based on systolic array, and encoder
CN102939750B (en) 2010-04-13 2016-07-06 Ge视频压缩有限责任公司 Across planar prediction
CN106454370B (en) 2010-04-13 2019-11-01 Ge视频压缩有限责任公司 Decoder, method, encoder, coding method and the data flow for rebuilding array
JP5718453B2 (en) 2010-04-13 2015-05-13 フラウンホーファー−ゲゼルシャフト・ツール・フェルデルング・デル・アンゲヴァンテン・フォルシュング・アインゲトラーゲネル・フェライン Decryption method
ES2907203T3 (en) 2010-04-13 2022-04-22 Ge Video Compression Llc Video encoding using multitree image subdivisions
CN105915918B (en) * 2010-04-13 2019-09-06 Ge视频压缩有限责任公司 Method and apparatus across planar prediction
CN102186076B (en) * 2011-04-29 2013-07-10 中国科学院光电技术研究所 Image compression method and device for real-time code rate pre-distribution
CN102800110B (en) * 2011-05-24 2015-02-04 中国移动通信集团公司 Method and device for determining perception amount of image and method and device for encoding image
EP3174295B1 (en) 2012-04-13 2018-12-12 GE Video Compression, LLC Low delay picture coding
CN102769744B (en) * 2012-06-19 2014-07-16 南京信息工程大学 Satellite image encoding method
CN115442626A (en) 2012-06-29 2022-12-06 Ge视频压缩有限责任公司 Video data stream, encoder, method of encoding video content and decoder
CN102790882B (en) * 2012-07-25 2014-10-22 南京信息工程大学 Encoding method of remote sensing image
CN103118259B (en) * 2013-02-22 2015-07-22 南京信息工程大学 JPEG2000 image coding method
CN103152568B (en) * 2013-02-27 2016-02-24 西安理工大学 A kind of JPEG2000 coding method and implementation system thereof blocking code stream in real time
CN103179396A (en) * 2013-03-04 2013-06-26 中国科学院长春光学精密机械与物理研究所 System and method for controlling CCSDS (consultative committee for space data system) image compressing code in spatial TDICCD (time delayed integration charge coupled device) camera application
CN108495134B (en) * 2018-03-26 2019-10-11 西安电子科技大学 Bayer image compression method based on JPEG2000 standard
CN110430430B (en) * 2019-08-08 2021-07-06 浙江芯昇电子技术有限公司 Image processing method and device, storage medium and electronic device
CN110602508A (en) * 2019-09-19 2019-12-20 天津大学 Image preprocessing VLSI structure applied to JPEG2000

Also Published As

Publication number Publication date
CN101106711A (en) 2008-01-16

Similar Documents

Publication Publication Date Title
CN100534186C (en) JPEG2000 self-adapted rate control system and method based on pre-allocated code rate
CN1223959C (en) Appts. and method for macroblock based rate control in coding system
CN104796716B (en) Use the enhancing intraframe predictive coding of plane expression
CN102065298B (en) High-performance macroblock coding implementation method
Yeung et al. Efficient rate control for JPEG2000 image coding
CN104967850A (en) Method and apparatus for encoding and decoding image by using large transform unit
CN105357540A (en) Method and apparatus for decoding video
JP2000516050A (en) Apparatus and method for optimizing rate control in a coding system
JPH05276501A (en) Method for variable-length-compressing adaptive video and device therefor
CN103024392B (en) Method and device for intra-frame mode prediction based on two-dimensional Hadamard transformation
JPH08275165A (en) Method and apparatus for coding video signal
CN101841713B (en) Video coding method for reducing coding code rate and system
CN101938654B (en) Method and device for optimizing and quantifying conversion coefficients
CN101102502A (en) A code rate control method and device based on image characteristics
CN107666472B (en) Method and apparatus for hybrid digital-analog coding
CN102215385A (en) Real-time lossless compression method for image
CN1725858A (en) The equipment and the method that are used for the control bit rate
CN1267858C (en) JPEG 2000 speed control method through real time cut-off
JP2011023922A (en) Image coding apparatus and program thereof
KR100938498B1 (en) JPEG2000 Steganography Apparatus for minimizing the changes of code-block noise variances and methode threrefor
Wu et al. Efficient rate-control system with three stages for JPEG2000 image coding
WO2024001433A1 (en) Encoding mode prediction method and apparatus, electronic device and storage medium
Ardizzone et al. A new algorithm for bit rate allocation in JPEG2000 tile encoding
Guo et al. Memory-efficient architecture including DWT and EC for JPEG2000
JP2011003946A (en) Image encoding/decoding method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: XI'AN XIDIAN UNIVERSITY ASSETS OPERATION CO., LTD.

Free format text: FORMER OWNER: XIDIAN UNIVERSITY

Effective date: 20130314

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20130314

Address after: 710071 box 2, 388 Taibai South Road, Shaanxi, Xi'an

Patentee after: Shaanxi Xi'an electronic large Assets Management Co., Ltd.

Address before: Xi'an City, Shaanxi province Taibai Road 710071 No. 2

Patentee before: Xidian University

ASS Succession or assignment of patent right

Owner name: SHANDONG WEIHANG ELECTRONIC TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: XI'AN XIDIAN UNIVERSITY ASSETS OPERATION CO., LTD.

Effective date: 20130916

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 710071 XI'AN, SHAANXI PROVINCE TO: 264670 YANTAI, SHANDONG PROVINCE

TR01 Transfer of patent right

Effective date of registration: 20130916

Address after: 264670 Yantai high tech Development Zone, Shandong Province, No. 513

Patentee after: SHANDONG WEIHANG ELECTRONIC SCIENCE AND TECHNOLOGY CO.,LTD

Address before: 710071 box 2, 388 Taibai South Road, Shaanxi, Xi'an

Patentee before: Shaanxi Xi'an electronic large Assets Management Co., Ltd.

TR01 Transfer of patent right

Effective date of registration: 20181211

Address after: 264670 Aerospace Road 513, Yantai High-tech Zone, Shandong Province

Patentee after: Shandong Huayu Aerospace Space Technology Co., Ltd.

Address before: 264670 Aerospace Road 513, Yantai High-tech Zone, Shandong Province

Patentee before: SHANDONG WEIHANG ELECTRONIC SCIENCE AND TECHNOLOGY CO.,LTD

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090826

Termination date: 20200705

CF01 Termination of patent right due to non-payment of annual fee