CN102088602B - Code rate control method for JPEG-LS (joint photographic experts group-lossless standard) image compression - Google Patents

Code rate control method for JPEG-LS (joint photographic experts group-lossless standard) image compression Download PDF

Info

Publication number
CN102088602B
CN102088602B CN 201010617932 CN201010617932A CN102088602B CN 102088602 B CN102088602 B CN 102088602B CN 201010617932 CN201010617932 CN 201010617932 CN 201010617932 A CN201010617932 A CN 201010617932A CN 102088602 B CN102088602 B CN 102088602B
Authority
CN
China
Prior art keywords
jpeg
value
adjustment
code rate
image
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.)
Active
Application number
CN 201010617932
Other languages
Chinese (zh)
Other versions
CN102088602A (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.)
Xian Institute of Space Radio Technology
Original Assignee
Xian Institute of Space Radio Technology
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 Xian Institute of Space Radio Technology filed Critical Xian Institute of Space Radio Technology
Priority to CN 201010617932 priority Critical patent/CN102088602B/en
Publication of CN102088602A publication Critical patent/CN102088602A/en
Application granted granted Critical
Publication of CN102088602B publication Critical patent/CN102088602B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a code rate control method for JPEG-LS (joint photographic experts group-lossless standard) image compression, which is used to dynamically adjust a parameter NEAR value based on the accumulated deviation value of an actual code rate and a target code rate, thus ensuring that different image contents can be output at a code rate approximate to a required code rate after being subjected to JPEG-LS compression. The method is fast in convergence rate and is easy to implement, can accurately control the JPEG-LS output code rate, and can ensure preferable compression performance. According to the code rate control method, a corresponding hardware implementation mode is designed. A compression encoding module and a code rate control module form a feedback loop; the feedback loop adaptively adjusts the parameter NEAR value for segmented sub-images; and the output compressed code stream is cached through a cache control module at first, and is then output at a constant code rate. Tests prove that the hardware is simple and effective to implement, is stable in control, and can ensure that the recovered images have good quality.

Description

A kind of bit rate control method of JPEG-LS image compression
Technical field
The present invention relates to a kind of bit rate control method of JPEG-LS image compression, belong to the digital image compression field.
Background technology
The lossless data compression standard of generally acknowledging function admirable at present in the world is the JPEG-LS algorithm, but the output code flow of this algorithm has bigger fluctuation, and code check can not be controlled, and this has just limited its application in reality.Especially in remote sensing satellite was used, channel width received strict restriction, required the bit rate output of encoder to be complementary with channel code rate; Otherwise bit rate output is too high, can cause data to overflow, and causes information dropout; Bit rate output is low excessively, can cause the waste of channel resource again.Therefore the rate control algorithm of studying the JPEG-LS image compression has very important realistic meaning.
The Rate Control problem is not strange in the image compression field; In field of video compression, rate control algorithm has obtained using widely, the most typical rate control algorithm that just is based on the rate distortion analysis; It not only can well regulate the bit rate output after the compression; And the quality of assurance video image that can be high as far as possible, be applied to H.264, in the video image compression standards such as MPEG4 at present.In Joint Photographic Experts Group,, can it be divided into two big types according to the difference of Control Parameter; The first kind is exactly the compression standard of control code rate, such as JPEG2000, and CCSDS; Compression algorithms such as SPITE; This type algorithm all is based on the compression algorithm of small echo, have the function of self adaptation adjustment bit rate output, but reconstructed image quality is uncontrollable; Second type is exactly the compression standard of controlling quality, and like the JPEG-LS compression standard, it can directly control the recovery quality of reconstructed image, but since this algorithm use based on contextual predictive coding mode, its bit rate output is uncontrollable.According to the different compression standard; Usually need adopt the different code rate control strategy, at present, also few for the rate control algorithm research of JPEG-LS compression; The single order bit rate control method of mentioning in " jpeg-ls image compression dynamic code rate control strategy " that existing Xu Yan insults adopts part to regulate array value and fixed gate limit value Th to NEAR; Therefore it is relatively poor to control effect, and the second order bit rate control method calculation of complex of mentioning is unfavorable for the hardware realization; " Open-loop rate controlfor JPEC-LS near lossless image compression " every row that external J.Jiang and M.Reddy proposes all will carry out the adjustment of a NEAR value; And adjustment process is comparatively complicated, though control precision is high, bigger loss the compression performance of image.
Summary of the invention
Technology of the present invention is dealt with problems and is: the deficiency that overcomes prior art; To the uncontrollable defective of JPEG-LS Standard of image compression bit rate output; The present invention proposes a kind of JPEG-LS image compression code check control method, not only can realize the control of target bit rate more accurately, fast convergence rate; Be easy to realize, and can also guarantee compression performance preferably.
Technical scheme of the present invention is following:
A kind of bit rate control method of JPEG-LS image compression, step is following:
(1) the JPEG-LS image with input carries out the subgraph division according to same size; The subgraph size is r*c; The capable pixel that is listed as with c of r is promptly arranged; And corresponding one of each subgraph of subgraph size satisfied
Figure BSA00000405497100021
is dynamically adjusted factor NEAR, and each subgraph all is independently processing units; Said dynamic adjustment factor NEAR is the worst error that the picture quality recovery is allowed;
(2) confirm dynamically initial value initial_NEAR, minimum M in_NEAR and the maximum Max_NEAR of adjustment factor NEAR according to the JPEG-LS image of target compression ratio and input; After dynamically the minimum M in_NEAR of adjustment factor NEAR and maximum Max_NEAR decide, in the process that the JPEG-LS image of importing compresses, be fixed constant;
(3) according to the dynamic adjustment factor NEAR that obtains, current subgraph is carried out the JPEG-LS compressed encoding, calculate the cumulative departure amount E (i) of target compression ratio and current compression ratio;
(4) confirm dynamically adjustment compare threshold t1 and t2 through following formula:
t 1 = Σ t = 0 n CCR ( i - t ) / CR * α , t 2 = Σ t = 0 n CCR ( i - t ) / CR * β ,
Wherein, CR is a target compression ratio, and α, β are thresholding coefficient and α=1/8, β=1/32, and CCR (i-t) is the actual compression code flow of i-t sub-graphs, and when t=0, CCR (i) is the actual compression code flow of i sub-graphs, and i is a nonnegative integer; N is an adjustment number of times of dynamically adjusting factor NEAR adjustment numerical value, and n is nonnegative integer, and initial value is 0;
(5), calculate the dynamically updating value of adjustment factor NEAR through formula according to the t1, the t2 that obtain in cumulative departure amount E (i) that obtains in the step (3) and the step (4);
Wherein, Δ Q is the adjustment step-length; And
Figure BSA00000405497100032
NEAR (i) is the value of the dynamic adjustment factor NEAR that got of i sub-graphs; NEAR (i-1) is a last sub-graphs, i.e. the value of the dynamic adjustment factor NEAR that got of i-1 sub-graphs, and initial_NEAR is the dynamic initial value of adjustment factor NEAR; N is an adjustment number of times of dynamically adjusting factor NEAR adjustment numerical value; N is the accumulative total frequency,
Figure BSA00000405497100033
and N>=16, wherein; R*C represent the size of continuously adjustable input picture be R capable * C row; R=4096, the fabric width of C presentation video are the C row, and be consistent with the fabric width of the JPEG-LS image of input described in the step (1);
(6) the value NEAR (i) of the dynamic adjustment factor NEAR that is got according to the i sub-graphs that obtains in the step (5) carries out clamper through following formula to NEAR (i), gets into step (7) afterwards;
NEAR ( i ) = Max _ NEAR , NEAR ( i ) > Max _ NEAR Min _ NEAR , NEAR ( i ) < Min _ NEAR ,
Wherein, Min_NEAR is a minimum value of dynamically adjusting factor NEAR, and Max_NEAR is a maximum;
(7) the adjustment frequency n is operated as follows: give n with the n+1 assignment, promptly n=n+1 gets into step (8) afterwards;
(8) judge whether n equals N,, forward step (2) to, if n ≠ N then forwards step (3) to if n=N then makes n=0.
The cumulative departure amount E (i) that calculates target compression ratio and current compression ratio described in the step (3) carries out through following formula:
E ( i ) = &Sigma; t = 0 n | OCR - CCR ( i - t ) | , n = { 0,1 , . . . , N - 1 } ;
Wherein, OCR representes the targeted compression code flow, and N is the accumulative total frequency.
The present invention's advantage compared with prior art is:
(1) used Rate Control to adjust strategy continuously among the present invention; This is mainly reflected in two aspects: the one, for the calculating of the departure E (i) of target compression ratio and current compression ratio; This value is an accumulated value in the continuous adjustment cycle N (accumulative total frequency), is different from general deviate and calculates; The 2nd, updating value NEAR follows the example of, and this value is non return to zero in continuous adjustment cycle N (accumulative total frequency), promptly is a continuously adjustable process.This continuously adjustable strategy has not only solved when the texture sudden change takes place in the image; The adjustment factor can not follow the tracks of the epigraph content change immediately and the Real Time Compression that causes than the situation of discontented foot-eye compression ratio; And remedied and taken into account less stress or the toning problem that compression performance brings in the rate control algorithm; Therefore, this adjustment strategy makes that not only the present invention has wide range of applications, and control performance is stable.
(2) mentioned the problem of following the example of of dynamic adjustment factor initial value among the present invention; Dynamically the initial value of the adjustment factor is according to the target compression ratio of the characteristics (like precision) of waiting to adjust image and requirement and different; Be different from general the following the example of of a fixed value of getting; So just can accelerate the convergence rate of rate control algorithm so that the initial value of the adjustment factor drops near the target value of image in most cases; After adjusting factor adaptive adjustment a period of time simultaneously, exchange integral divisor initialize again, with the solution inaccurate problem of control that correlation is brought after descending between the subgraph far away of being separated by.
(3) mentioned the problem of the adjustment factor after upgrading being carried out clamper among the present invention; If the scope of NEAR value adjustment does not add restriction; Can make that the fluctuation range of search NEAR value is excessive, the speed of tracking image information is slow excessively, thus can't response diagram as the truth of information change.When doing the dynamic adjustment of NEAR value; Maximum to NEAR limits, and it is less than normal that the NEAR value of complicated image is obtained, and simultaneously the minimum value of NEAR carried out clamper; Make the NEAR value of simple image obtain bigger than normal; And the NEAR value is big more, and the degree that influence recovers picture quality is serious more, and the clamper operation of therefore adjusting the factor has also guaranteed to recover preferably picture quality to a certain extent.
(4) mentioned dynamic adjustment compare threshold t1 among the present invention; The problem of following the example of of t2; This compare threshold is not only relevant with the compressed capability of conventional images, and relevant with target compression ratio, also is dynamic change in the adjustment process of whole Rate Control; This threshold value follow the example of and fixedly following the example of of existing threshold value compared, have stronger adaptive adjustment capability.
(5) mentioned the problem of input picture being carried out the subgraph division among the present invention; Divide through input picture being carried out subgraph; Make the identical NEAR value of the interior employing of same subgraph compress; The compression performance that as far as possible keeps JPEG-LS, different subgraphs then adopt the NEAR value after the renewal to compress, to reach the purpose of the output code flow of controlling compressed bit stream.The size of subgraph r*c satisfied will keep the compression performance of JPEG-LS greatly, because the compression performance of JPEG-LS is more responsive to fabric width c.
(6) mentioned following the example of of adjustment step delta Q among the present invention; Variable quantity for Δ Q only defines three kinds of situation: 0,1 and 2; This following the example of not only makes hardware realize simply also meeting the universal law of image change, also guaranteed certain recovery picture quality simultaneously.Otherwise if the variable quantity scope of Δ Q is excessive, branch is too much; Not only hardware is realized complicated; And it is big to cause real-time output code flow to fluctuate owing to the amplitude of adjustment step-length adjustment is excessive, and the NEAR value difference is different big between the adjacent subgraph of recovery image, recovers the picture quality reduction thereby cause.
Description of drawings
Fig. 1 is the compression performance curves of remote sensing 10 bit image under different N EAR value;
Fig. 2 uses a condensing encoder of the present invention to realize block diagram;
Fig. 3 is the compression performance curves of remote sensing 8 bit image under different N EAR value;
Fig. 4 is that hardware of the present invention is realized port definition;
Fig. 5 is the Rate Control result of the present invention under remote sensing images 4 multiplication of voltages contract;
Fig. 6 is a flow chart of the present invention.
Embodiment
The concrete realization of the rate control algorithm of JPEG-LS compression is described below in conjunction with accompanying drawing and concrete realization example:
Fig. 1 is the more representational 10 bit remote sensing images of 9 amplitude ratios, and after the value in NEAR value traversal [0,9] scope, the compression performance curve that obtains, abscissa are the NEAR value, and ordinate is the compression ratio that obtains, and the image size is 2048*2048.Symbol among the figure " alashan ", " baoding ", " ice ", " india ", " ocean ", " pinshan ", " qinhuangdao ", " shijiazhuang ", " simao " are merely label, do not have physical meaning.Wherein, " india " corresponding curve 1, " ocean " corresponding curve 2; " ice " corresponding curve 3, " pinshan " corresponding curve 4, " alashan " corresponding curve 5; " baoding " corresponding curve 6; " qinhuangdao " corresponding curve 7, " simao " corresponding curve 8, " shijiazhuang " corresponding curve 9.
According to this width of cloth curve chart, we can obtain some compression rules of such image, and when rate control algorithm of the present invention was applied to the remote sensing images field, the value of some constant served as to obtain according to summing up with this curve chart.As when target compression ratio being 2 multiplication of voltages when contracting, our draw in the drawings earlier straight line (shown in the dotted line among the figure " 2 multiplication of voltages contract ") of a CompressRatio=2, this dotted line and every corresponding abscissa value of intersections of complex curve are the contract value of corresponding parameters NEAR of 2 multiplication of voltages; Value like the corresponding abscissa NEAR of the intersection point of curve shijiazhuang (curve 9) is 1, and the intersection point of curve india (curve 1) and 2 multiplication of voltage diminishing lines correspondence shows when NEAR gets minimum value 0 on the reverse extending line of curve; The compression ratio of india is greater than 2 times, and the value of the corresponding abscissa NEAR of the intersection point of curve qinhuangdao (curve 7) relatively approaches 1 between 0~1; Or the like, according to the value distribution of the corresponding NEAR of all curves, can find out; When 2 multiplication of voltages contracted, 9 width of cloth remote sensing images among Fig. 1 are got NEAR just can reach or exceed 2 times compression ratio at 1 o'clock, and therefore getting initial_NEAR=1, to carry out the code check adjustment that 2 multiplication of voltages contract be only; It is best that the minimum value of NEAR is taken as Min_NEAR=0; Because in JPEG-LS compressed encoding standard, regulation NEAR is a nonnegative integer, and as can be seen from Figure 1; There are a few width of cloth images when NEAR=0, just can reach the compression ratio that 2 multiplication of voltages contract; It is best that the maximum of NEAR is taken as Max_NEAR=2,1 just passable although the NEAR value maximum that 9 width of cloth remote sensing images, 2 multiplication of voltages of in Fig. 1, enumerating contract is got, and the contract span of NEAR of 2 multiplication of voltages itself is just little; Therefore the span that can suitably relax some NEAR makes the accommodation of algorithm wider.Like target compression ratio is 4 multiplication of voltages when contracting, parameter initial_NEAR, the obtaining value method of Min_NEAR and Max_NEAR with above be similar.In summary, be exactly characteristic, like the pixel precision according to input picture; Spatial resolution etc., select such input picture have the different images content (like land, the harbour; City etc.) a few width of cloth representative image are carried out the JPEG-LS compression of NEAR value traversal earlier, the curve relation figure of the NEAR value of drawing and compression ratio CompressRatio; According to target compression ratio, find out the NEAR value of different representative image correspondence under this compression ratio, again according to these NEAR values; Getting initial_NEAR is the median of concentrated NEAR value scope of value, and in follow-up adjustment process, the NEAR value will increase or reduce all is the fastest like this; Minimum value and maximum in Min_NEAR and the corresponding value of Max_NEAR difference; Certainly, Min_NEAR and Max_NEAR also can adjust a bit on this basis a little, to adapt to different concrete conditions.
Fig. 2 is the more representational 8 bit remote sensing images of 12 amplitude ratios, and after the value in NEAR value traversal [0,11] scope, the compression performance curve that obtains, abscissa are the NEAR value, and ordinate is the compression ratio that obtains, and the image size is 1024*1024.Similar with Fig. 1, the purpose of making this width of cloth statistical chart also is to be used for instructing the value of such image at the corresponding constant of rate control algorithm.
Fig. 3 is a realization block diagram of using a JPEG-LS condensing encoder of the present invention, below in conjunction with this block diagram, carries out 4 multiplication of voltages with remote sensing 10 bit image and is condensed to example, introduces the concrete realization of rate control algorithm in detail.
One, image buffer storage module
This module mainly is to accomplish original input picture is carried out image division according to the requirement of hardware realization condition and rate control algorithm; The input mode of general remote sensing image data is exactly along with pushing away line by line of CCD camera sweeps into the row input of pixel line by line, and except the fabric width of image was confirmed by the parameter of CCD camera, input picture did not have limitation in height; In order to carry out Rate Control; And the parallel processing and the antijamming capability that improves coding that make things convenient for hardware, must carry out subgraph to the remote sensing input picture and divide, it is fixed that the size of subgraph will be come according to the size of input picture; If input picture is less; Then in order to guarantee to adjust also corresponding get less of number of times subgraph, otherwise bigger as if input picture, subgraph can correspondingly be obtained big to keep the compression performance of JPEG-LS preferably.After subgraph was divided well, each subgraph adopted unified adjustment factor NEAR to carry out compressed encoding as an independent compressed unit in the subgraph, but adopts the control method of dynamically-adjusting parameter that the NEAR value is adjusted between subgraph and the subgraph.A concrete execution mode is the division that a sub-graphs realizes the input remote sensing images with 256 (OK) * 1024 (row) size exactly when the input picture fabric width is 1024.
Two, compressed encoding module
This module is mainly accomplished the compressed encoding processing of the input subgraph being carried out JPEG-LS; A concrete execution mode is that this compressed encoding module comprises 4 independent compressed coding units; Can carry out the compressed encoding of 4 road images simultaneously handles; With sub-graphs 256 (OK) * 1024 (row) size, be divided into 4 bands from height, each band 64 (OK) * 1024 (row); Give 4 road compressed encoding units simultaneously with 4 bands and carry out 4 tunnel parallel processings, this module is exported to the Rate Control module with the actual compression code flow CCR of current subgraph (summations of 4 road compressed encodings) 256 (OK) * 1024 (row).
Three, Rate Control module
This module is mainly passed through the deviation of actual compression code flow CCR and targeted compression code flow OCR; The size of dynamic adjustment parameter N EAR value; And feed back to the compressed encoding module; Thereby after making the pictures different content through the JPEG-LS compression, can both be to carry out the output of compressed bit stream near the code check that requires.The concrete steps of this bit rate control method are as shown in Figure 6:
(1) the JPEG-LS image with input carries out the subgraph division according to same size; The subgraph size is r*c; The capable pixel that is listed as with c of r is promptly arranged; And corresponding one of each subgraph of subgraph size satisfied
Figure BSA00000405497100081
is dynamically adjusted factor NEAR, and each subgraph all is independently processing units; Said dynamic adjustment factor NEAR is the worst error that the picture quality recovery is allowed.
(2) confirm dynamically initial value initial_NEAR, minimum M in_NEAR and the maximum Max_NEAR of adjustment factor NEAR according to the JPEG-LS image of target compression ratio and input; After dynamically the minimum M in_NEAR of adjustment factor NEAR and maximum Max_NEAR decide, in the process that the JPEG-LS image of importing compresses, be fixed constant.
According to the value of the target compression ratio GR that imports, to the parameter initialize, in this execution mode, input picture is 10 bit-depths; Target compression ratio is that 4 multiplication of voltages contract, and according to Fig. 1, the NEAR value of most of image all concentrates on when 4 multiplication of voltages contract near 4, and the initial value of therefore getting NEAR is 4; The maximum of corresponding NEAR value is 9 and 4 multiplication of voltages contract, and minimum value is 2 (having only a width of cloth), for the fluctuation range that makes NEAR not too big; Can be main, the minimum value of NEAR is taken as 3 with the situation of most images, promptly bigger than normal for the individual image actual compression ratio; But can make the NEAR value adjustment of most images level and smooth, in summary, parameter is taken as following value:
Min_NEAR=3,Max_NEAR=9,initial_NEAR=4。
(3) according to the dynamic adjustment factor NEAR that obtains, current subgraph is carried out the JPEG-LS compressed encoding, calculate the cumulative departure amount E (i) of target compression ratio and current compression ratio, that is:
E ( i ) = &Sigma; t = 0 n | OCR - CCR ( i - t ) | , n = { 0,1 , . . . , N - 1 }
Here; N is the accumulative total frequency;
Figure BSA00000405497100092
and N>=16, wherein, R*C represent the size of continuously adjustable input picture be R capable * C row; R=4096; The fabric width of C presentation video is the C row, and is consistent with the fabric width of the JPEG-LS image of input described in the step (1), and r*c is the subgraph size.
Input picture fabric width C=1024 in this example, the subgraph size is r=256, c=1024; Therefore; OCR is the targeted compression code flow, and after target compression ratio CR was given, can convert obtained; Reduction formula is
Figure BSA00000405497100094
wherein; The input data total amount of subgraph=subgraph line number r* subgraph columns c* subgraph pixel precision/8 bytes, the unit of account here is example with the byte, if the data total amount adopts other unit; Can convert on an equal basis); OCR is a constant in entire image compression bit rate adjustment process, and E (i) is the corresponding cumulative departure amount of i sub-graphs (current subgraph), and n is an adjustment number of times of dynamically adjusting factor NEAR adjustment numerical value; And n is a nonnegative integer, and initial value is 0; CCR (i-t) is the actual compression code flow of i-t sub-graphs; During like t=0; The actual compression code flow of CCR (i-0)=CCR (i) expression i sub-graphs, during t=1, the actual compression code flow of CCR (i-1) expression i-1 sub-graphs; Be the compressed code flow of a last sub-graphs of current subgraph (i sub-graphs), the rest may be inferred for the situation of t=2.
(4) calculate adjustment threshold value t1, the value of t2, that is:
t 1 = &Sigma; t = 0 n CCR ( i - t ) / CR * &alpha; , &alpha; = 1 / 8 ;
t 2 = &Sigma; t = 0 n CCR ( i - t ) / CR * &beta; , &beta; = 1 / 32 .
Wherein, CCR (i-t) is the actual compression code flow of i-t sub-graphs (256 row image), and CR is a target compression ratio, is 2 multiplication of voltages when contracting like target compression ratio, CR=2, and target compression ratio is 4 multiplication of voltages when contracting, CR=4.N is an adjustment number of times of dynamically adjusting factor NEAR adjustment numerical value, and n is nonnegative integer, and initial value is 0, and span is [0, N-1].
(5), calculate the updating value of dynamically adjusting factor NEAR through formula
Figure BSA00000405497100097
according to the cumulative departure amount E (i) that obtains and t1, t2;
Wherein, Δ Q is the adjustment step-length; And
Figure BSA00000405497100101
NEAR (i) is the value of the dynamic adjustment factor NEAR that got of i sub-graphs; NEAR (i-1) is a last sub-graphs, i.e. the value of the dynamic adjustment factor NEAR that got of i-1 sub-graphs, and initial_NEAR is the dynamic initial value of adjustment factor NEAR; N is an adjustment number of times of dynamically adjusting factor NEAR adjustment numerical value; N is the accumulative total frequency,
Figure BSA00000405497100102
and N>=16, wherein; R*C represent the size of continuously adjustable input picture be R capable * C row; R=4096, the fabric width of C presentation video are the C row, and be consistent with the fabric width of the JPEG-LS image of input described in the step (1).
Calculate the updating value of adjustment factor NEAR:
if(n==0)
NEAR(i)=initial_near;
else{
if(E(i)>t1)
NEAR(i)=NEAR(i-1)+2;
else?if(E(i)>t2)
NEAR(i)=NEAR(i-1)+1;
else?if(E(i)<-t1)
NEAR(i)=NEAR(i-1)-2;
else?if(E(i)<-t2)
NEAR(i)=NEAR(i-1)-1;
else
NEAR(i)=NEAR(i-1).
}
Wherein, the NEAR value that NEAR (i) expression i sub-graphs is got, the value of the NEAR that a last sub-graphs of NEAR (i-1) expression i sub-graphs is got.
(6) the value NEAR (i) of the dynamic adjustment factor NEAR that is got according to the i sub-graphs that obtains carries out clamper through following formula to NEAR (i);
NEAR ( i ) = Max _ NEAR , NEAR ( i ) > Max _ NEAR Min _ NEAR , NEAR ( i ) < Min _ NEAR ,
Wherein, Min_NEAR is a minimum value of dynamically adjusting factor NEAR, and Max_NEAR is a maximum, in case behind Min_NEAR and the Max_NEAR initialize, be exactly a constant in whole code check adjustment process, immobilizes.
(7) the adjustment frequency n is operated as follows: give n with the n+1 assignment, promptly n=n+1 judges afterwards whether n equals N, if n=N; Then make n=0, then forward step (2) to, if n ≠ N; Return step (3), circulation is gone down so always, in step (1), does not have till the view data input.
Fig. 4 is a port definition of realizing this module with FPGA, and wherein, OCR is the targeted compression code flow; CCR is the actual compression code flow, and the near_start signal is the enable signal of Rate Control module, when this signal is effective; The Rate Control module begins to carry out the renewal computing of NEAR value, and next_near is the parameter update value of the next subgraph of output, in the practical application; When no input picture, the near_start enable signal is a disarmed state, and this Rate Control module is not worked.
Four, code stream buffer memory control module
This module is mainly accomplished the compressed bit stream in the set time section T is cached among the SAM Stand Alone Memory RAM, through the read-write ping-pong operation of two RAM, accomplishes the continuous output of compressed bit stream.A kind of execution mode is that N continuously adjustable subgraph is cached among the RAM, then the code check output to require; Another kind of execution mode is to do level cache among the RAM with being cached to less than the N sub-graphs, and then carries out the L2 cache of subsequent treatment with the buffer memory that is not less than the N sub-graphs.
The reason of carrying out the code stream buffer memory is in practical application, usually need export constant code rate, and after the rate control algorithm convergence, bit rate output will carry out small fluctuation up and down at target bit rate in real time, therefore should not directly export.In conjunction with (be that the continuously adjustable input picture compresses the needed time, the code stream within R=4096) carries out after the buffer memory, with the effect that realizes the compressed code flow in the T is averaged, thereby has realized the requirement of constant output code check to a time period T.
Fig. 5 adopts above rate control algorithm; Result after the 10 bit remote sensing images of one width of cloth 4096*1024 are compressed, the red curve Average CR among the figure represent that blue curve Current CR representes the online bit rate output of current block from beginning the average bit rate output till the current line; As can be seen from the figure; Current CR is having small fluctuating after the algorithmic statement near 4 multiplication of voltages contract curve, but Average CR approaches the 4 multiplication of voltages code check that contracts, and output is stable.
Embodiment of the present invention is an example with the bit rate control method of remote sensing images JPEG-LS, but the scope of application of the present invention is not limited to the remote sensing images field.
The unspecified part of the present invention belongs to general knowledge as well known to those skilled in the art.

Claims (2)

1. the bit rate control method of a JPEG-LS image compression is characterized in that step is following:
(1) the JPEG-LS image with input carries out the subgraph division according to same size; The subgraph size is r*c; The capable pixel that is listed as with c of r is promptly arranged; And corresponding one of each subgraph of subgraph size satisfied
Figure DEST_PATH_FSB00000801565800011
is dynamically adjusted factor NEAR, and each subgraph all is independently processing units; Said dynamic adjustment factor NEAR is the worst error that the picture quality recovery is allowed;
(2) confirm dynamically initial value initial_NEAR, minimum M in_NEAR and the maximum Max_NEAR of adjustment factor NEAR according to the JPEG-LS image of target compression ratio and input; After dynamically the minimum M in_NEAR of adjustment factor NEAR and maximum Max_NEAR decide, in the process that the JPEG-LS image of importing compresses, be fixed constant;
(3) according to the dynamic adjustment factor NEAR that obtains, the i sub-graphs is carried out the JPEG-LS compressed encoding, calculate the cumulative departure amount E (i) of target compression ratio and current compression ratio;
(4) confirm dynamically adjustment compare threshold t1 and t2 through following formula:
Figure DEST_PATH_FSB00000801565800013
Wherein, CR is a target compression ratio, and α, β are thresholding coefficient and α=1/8, β=1/32, and CCR (i-t) is the actual compression code flow of i-t sub-graphs, and when t=0, CCR (i) is the actual compression code flow of i sub-graphs, and i is a nonnegative integer; N is an adjustment number of times of dynamically adjusting factor NEAR adjustment numerical value, and n is nonnegative integer, and initial value is 0;
(5), calculate the dynamically updating value of adjustment factor NEAR through formula
Figure DEST_PATH_FSB00000801565800014
according to the t1, the t2 that obtain in cumulative departure amount E (i) that obtains in the step (3) and the step (4);
Wherein, Δ Q is the adjustment step-length, and
Figure DEST_PATH_FSB00000801565800015
NEAR (i) be the i sub-graphs got moving
The value of attitude adjustment factor NEAR; NEAR (i-1) is a last sub-graphs, i.e. the value of the dynamic adjustment factor NEAR that got of i-1 sub-graphs, and initial_NEAR is the dynamic initial value of adjustment factor NEAR; N is an adjustment number of times of dynamically adjusting factor NEAR adjustment numerical value; N is the accumulative total frequency,
Figure RE-FSA00000405497000022
and N>=16, wherein; R*C represent the size of continuously adjustable input picture be R capable * C row; R=4096, the fabric width of C presentation video are the C row, and be consistent with the fabric width of the JPEG-LS image of input described in the step (1);
(6) the value NEAR (i) of the dynamic adjustment factor NEAR that is got according to the i sub-graphs that obtains in the step (5) carries out clamper through following formula to NEAR (i), gets into step (7) afterwards;
Wherein, Min_NEAR is a minimum value of dynamically adjusting factor NEAR, and Max_NEAR is a maximum;
(7) the adjustment frequency n is operated as follows: give n with the n+1 assignment, promptly n=n+1 gets into step (8) afterwards;
(8) judge whether n equals N,, forward step (2) to, if n ≠ N then forwards step (3) to if n=N then makes n=0.
2. the bit rate control method of a kind of JPEG-LS image compression according to claim 1 is characterized in that: the cumulative departure amount E (i) that calculates target compression ratio and current compression ratio described in the step (3) carries out through following formula:
Figure RE-FSA00000405497000024
Wherein, OCR representes the targeted compression code flow, and N is the accumulative total frequency.
CN 201010617932 2010-12-22 2010-12-22 Code rate control method for JPEG-LS (joint photographic experts group-lossless standard) image compression Active CN102088602B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010617932 CN102088602B (en) 2010-12-22 2010-12-22 Code rate control method for JPEG-LS (joint photographic experts group-lossless standard) image compression

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010617932 CN102088602B (en) 2010-12-22 2010-12-22 Code rate control method for JPEG-LS (joint photographic experts group-lossless standard) image compression

Publications (2)

Publication Number Publication Date
CN102088602A CN102088602A (en) 2011-06-08
CN102088602B true CN102088602B (en) 2012-08-22

Family

ID=44100177

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010617932 Active CN102088602B (en) 2010-12-22 2010-12-22 Code rate control method for JPEG-LS (joint photographic experts group-lossless standard) image compression

Country Status (1)

Country Link
CN (1) CN102088602B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102695055B (en) * 2012-05-18 2014-09-17 西安电子科技大学 JPEG_LS (Joint Pho-tographic Experts Group-Lossless Standard) bit rate control method under high bit rate
CN102801981B (en) * 2012-08-30 2015-04-22 西安空间无线电技术研究所 Multipath compressed kernel parallel encoding control method on basis of JPEG-LS (Joint Pho-tographic Experts Group-Lossless Standard) algorithm
CN102970531B (en) * 2012-10-19 2015-04-22 西安电子科技大学 Method for implementing near-lossless image compression encoder hardware based on joint photographic experts group lossless and near-lossless compression of continuous-tone still image (JPEG-LS)
CN102938838A (en) * 2012-10-19 2013-02-20 西安电子科技大学 Joint Photographic Experts Group Lossless and near_lossless compression of conituous_tone still image (JPEG-LS) standard based dynamic code rate control method
CN105828070B (en) * 2016-03-23 2016-12-28 华中科技大学 The JPEG LS image lossless of error-propagation prevention/near lossless compression hardware algorithm implementation method
CN106060548B (en) * 2016-05-26 2019-03-29 安凯(广州)微电子技术有限公司 A kind of method and apparatus of code rate control
CN106658006B (en) * 2017-01-12 2019-08-13 武汉轻工大学 A kind of bit rate control method of the JPEG-LS image near lossless compression of distortion performance near-optimization
CN107888922B (en) * 2017-11-20 2019-12-20 西安空间无线电技术研究所 Image preprocessing method and device for preventing code stream overflow of JPEG-LS lossless compression algorithm
CN115996293B (en) * 2023-03-22 2023-06-09 山东云海国创云计算装备产业创新中心有限公司 Video image coding method, system, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534373A (en) * 2009-04-24 2009-09-16 北京空间机电研究所 Remote sensing image near-lossless compression hardware realization method based on improved JPEG-LS algorithm
CN101895760A (en) * 2010-07-29 2010-11-24 西安空间无线电技术研究所 Joint photographic expert group-lossless and near lossless (JPEG-LS) algorithm-based code stream splicing system and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080044097A1 (en) * 2006-08-21 2008-02-21 Siemens Medical Solutions Usa, Inc. Fast JPEG-LS Based Compression Method for Medical Images

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534373A (en) * 2009-04-24 2009-09-16 北京空间机电研究所 Remote sensing image near-lossless compression hardware realization method based on improved JPEG-LS algorithm
CN101895760A (en) * 2010-07-29 2010-11-24 西安空间无线电技术研究所 Joint photographic expert group-lossless and near lossless (JPEG-LS) algorithm-based code stream splicing system and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张高,等.JPEG-LS视频编码的自适应率控制.《上海交通大学学报》.2000,第34卷(第7期), *
徐燕凌,等.JPEG-LS图像压缩动态码率控制策略.《计算机工程》.2008,第34卷(第7期), *

Also Published As

Publication number Publication date
CN102088602A (en) 2011-06-08

Similar Documents

Publication Publication Date Title
CN102088602B (en) Code rate control method for JPEG-LS (joint photographic experts group-lossless standard) image compression
US10496903B2 (en) Using image analysis algorithms for providing training data to neural networks
Song et al. Variable-rate deep image compression through spatially-adaptive feature transform
US20190114804A1 (en) Object tracking for neural network systems
CN105578082A (en) adaptive black level correction method
TWI770432B (en) Method, device and electronic apparatus for image restoration and storage medium thereof
CN101755462A (en) Image coding device and image coding method
WO2022128105A1 (en) Decoding and encoding of neural-network-based bitstreams
CN110555800A (en) image processing apparatus and method
CN104639946A (en) Apparatus and method for processing image
KR20230072487A (en) Decoding with signaling of segmentation information
KR20230070492A (en) Decoding with signaling of feature map data
Pinkham et al. Algorithm-aware neural network based image compression for high-speed imaging
Kim et al. Fine-grained neural architecture search
Zhang et al. Mfvp: Mobile-friendly viewport prediction for live 360-degree video streaming
Zhang et al. Batch adaptative streaming for video analytics
CN102523446A (en) Adaptive compression method of radar video in vessel traffic navigation system
Yuan et al. AccDecoder: Accelerated decoding for neural-enhanced video analytics
KR101319722B1 (en) Method and system for parallel video coding of time-space division
Xing et al. MABNet: a lightweight stereo network based on multibranch adjustable bottleneck module
CN110087078B (en) Image component block compressed sensing-oriented measurement end observation efficiency regulation and control method
CN104702974B (en) Bit rate control method and method for video coding based on fuzzy logic
Roy et al. Compression of time evolutionary image data through predictive deep neural networks
Zhou et al. Bandwidth-efficient edge video analytics via frame partitioning and quantization optimization
Ko et al. An energy-efficient wireless video sensor node with a region-of-interest based multi-parameter rate controller for moving object surveillance

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