CN102223534B - All-parallel bit plane coding method for image compression - Google Patents

All-parallel bit plane coding method for image compression Download PDF

Info

Publication number
CN102223534B
CN102223534B CN 201110149538 CN201110149538A CN102223534B CN 102223534 B CN102223534 B CN 102223534B CN 201110149538 CN201110149538 CN 201110149538 CN 201110149538 A CN201110149538 A CN 201110149538A CN 102223534 B CN102223534 B CN 102223534B
Authority
CN
China
Prior art keywords
bit
row
original
state
coding
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 201110149538
Other languages
Chinese (zh)
Other versions
CN102223534A (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.)
Southeast University
Original Assignee
Southeast 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 Southeast University filed Critical Southeast University
Priority to CN 201110149538 priority Critical patent/CN102223534B/en
Publication of CN102223534A publication Critical patent/CN102223534A/en
Application granted granted Critical
Publication of CN102223534B publication Critical patent/CN102223534B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

本发明涉及用于图象压缩的全并行位平面编码方法,特别是应用于符合联合图像专家组(JPEG)2000图像压缩标准的、低内存消耗的,位平面与编码通道全并行编码的高速率位平面编码方法;该发明以单列比特位作为数据单元,仅需缓存前一列比特位的显著性状态信息,并读取当前列和后续两列的原始数据,便可在一个编码窗口内完成当前列的通道和位平面并行编码;之后每次仅需读入一列新的数据,即可实现编码循环;该编码方法的实现结构仅需259个周期就可处理完32

Figure 2011101495385100004DEST_PATH_IMAGE002
32的小波子带。

Figure 201110149538

The present invention relates to a fully parallel bit-plane encoding method for image compression, in particular to a high-speed full-parallel encoding of bit-planes and encoding channels that complies with the Joint Photographic Experts Group (JPEG) 2000 image compression standard, low memory consumption Bit-plane coding method; this invention uses a single column of bits as a data unit, and only needs to cache the significance status information of the previous column of bits, and read the original data of the current column and the following two columns, and the current The channel of the column and the bit plane are encoded in parallel; after that, only a new column of data needs to be read each time to realize the encoding cycle; the implementation structure of the encoding method only needs 259 cycles to process 32

Figure 2011101495385100004DEST_PATH_IMAGE002
32 wavelet subbands.

Figure 201110149538

Description

用于图像压缩的全并行位平面编码方法Fully Parallel Bit-Plane Coding Method for Image Compression

技术领域 technical field

本发明涉及用于图象压缩的全并行位平面编码方法,特别是应用于符合联合图像专家组(JPEG)2000图像压缩标准的、低内存消耗的,位平面与编码通道全并行编码的高速率位平面编码方法。The invention relates to a fully parallel bit-plane coding method for image compression, in particular to a high-speed full-parallel coding of bit-planes and coding channels that conforms to the Joint Photographic Experts Group (JPEG) 2000 image compression standard, low memory consumption Bit-plane encoding method.

背景技术 Background technique

目前国际最新的图像压缩标准JPEG2000(参考文献[1])具备帧内编码、压缩效果好、支持感兴趣区域编码和渐进式传输等品质,因而在高端数字图像应用中得到了推广。在图像压缩过程中,首先采用提升结构二维离散小波变换(DWT)原始图像,之后采用位平面编码器(BPC)处理小波系数子带生成上下文和码值(CX/D),再送入算术编码器(AC)进行压缩编码。由于BPC需要对图像的离散小波变换结果的每一个比特位建立上下文,计算复杂度极高,且需要消耗极大的内存。随着各类高清数字图像的应用普及,如何提高位平面编码方法的全并行程度,并有效降低内存消耗已经成了该领域研究热点之一。At present, the latest international image compression standard JPEG2000 (reference [1]) has the qualities of intra-frame coding, good compression effect, support for region-of-interest coding and progressive transmission, and thus has been promoted in high-end digital image applications. In the process of image compression, the original image of two-dimensional discrete wavelet transform (DWT) with lifting structure is firstly used, and then the bit plane coder (BPC) is used to process the subbands of wavelet coefficients to generate context and code values (CX/D), and then sent to arithmetic coding device (AC) for compression coding. Since BPC needs to establish a context for each bit of the discrete wavelet transform result of the image, the computational complexity is extremely high, and a large amount of memory is consumed. With the popularity of various high-definition digital images, how to improve the full parallelism of the bit-plane coding method and effectively reduce memory consumption has become one of the research hotspots in this field.

JPEG2000图像压缩标准采用的BPC方法由David Taubman提出,该方法将量化后的P位有符号小波系数组织为N×N大小的代码块,然后自符号位向下,将小波系数的符号分割成一个独立的符号平面,将小波系数的比特位顺序分割成(P-1)层N×N大小的位平面;在单个位平面内,比特位每4行划分为一个条带。编码器按照光栅顺序,自最高位平面起,自上而下自左向右,逐位平面逐条带逐比特位的编码。The BPC method used in the JPEG2000 image compression standard was proposed by David Taubman. This method organizes the quantized P-bit signed wavelet coefficients into N×N code blocks, and then divides the signs of the wavelet coefficients into one An independent sign plane, which divides the bit order of the wavelet coefficient into (P-1) layers of N×N bit planes; in a single bit plane, every 4 rows of bits are divided into a strip. The encoder starts from the highest bit plane, top-to-bottom, left to right, and encodes bit-by-bit, bit-by-bit, bit-by-bit, according to the order of the raster.

单条带内比特位编码算法如下:The bit encoding algorithm in a single band is as follows:

1)判断当前比特位是否属于显著性传播通道(SPP):若比特位当前不显著,而临域的8个比特位中至少有一个是显著的,则其属于该通道,进行零编码(ZC)并计算上下文。进而判断其本身是否显著;若是则更新显著性状态,进行符号编码(SC);否则不进行。如果比特位临域皆不显著或比特位本身已经显著,则其不属于该通道,跳过该点去判断下一个点。对条带内所有比特位执行该操作,然后回到起始点执行2);1) Judging whether the current bit belongs to the significance propagation channel (SPP): if the bit is currently insignificant, but at least one of the 8 adjacent bits is significant, then it belongs to the channel and zero-coded (ZC ) and calculate the context. Then judge whether it is significant; if so, update the significance state and perform symbol coding (SC); otherwise, do not. If none of the adjacent areas of the bit is significant or the bit itself is already significant, then it does not belong to the channel, and this point is skipped to judge the next point. Perform this operation on all bits in the strip, and then return to the starting point to perform 2);

2)判断当前比特位是否属于幅值细化通道(MRP):若比特位当前显著且未编码,则属于该通道,进行幅值细化编码;否则不属于该通道,跳过该点去判断下一个点。对条带内所有比特位执行该操作,然后回到起始点执行3);2) Judging whether the current bit belongs to the amplitude refinement channel (MRP): if the bit is currently significant and unencoded, it belongs to the channel, and the amplitude refinement encoding is performed; otherwise, it does not belong to the channel, skip this point to judge next point. Perform this operation on all bits in the strip, and then return to the starting point to perform 3);

3)执行清除通道(CLP):使用游程编码(RLC)、零编码和符号编码对不属于显著性传播通道和幅值细化通道的所有剩余比特位进行编码。3) Execution of a clear pass (CLP): use run-length coding (RLC), zero coding, and sign coding to encode all remaining bits that do not belong to the saliency propagation pass and the magnitude refinement pass.

标准BPC算法自最高位平面起,自上而下自左向右,逐位平面逐条带逐比特位编码,并且按照SPP通道、MRP通道、CLP通道的顺序逐通道编码。这种顺序编码方式速度很慢,并且存储需要大量的中间数据,因此如何有效提高位平面编码器的编码速度并且减少内部存储消耗,成为国内外学者关注的学术热点之一。The standard BPC algorithm starts from the highest bit plane, from top to bottom, from left to right, bit-by-bit plane-by-strip, bit-by-bit, and codes channel-by-channel in the order of SPP channel, MRP channel, and CLP channel. This sequential encoding method is very slow, and storage requires a large amount of intermediate data. Therefore, how to effectively improve the encoding speed of bit-plane encoders and reduce internal storage consumption has become one of the academic hotspots concerned by scholars at home and abroad.

该领域具有代表性的研究成果有:文献[1]最早提出了基于像素点的位平面编码实现算法,并被JPEG2000标准所采纳;文献[2]采用状态机结构实现比特平面编码;文献[3]提出基于列的编码通道并行结构,即采用两个窗口编码器对3个通道同时进行扫描编码。由于通道扫描具有先后顺序,必须等到第一个窗口显著性状态更新后,第二个窗口才可以开始编码,两个窗口编码器之间需要交互,增加了控制复杂度;文献[4]提出了比特位跳过和列跳过算法,即跳过无上下文输出的比特位以及列,以减少计算次数。该方法无法发挥电路并行化的优势,优化程度依赖于图像数据,性能起伏较大。文献[5]提出了位平面并行算法,实现了编码的位平面间并行。但单个位平面的编码单元同时采用了文献[3]和[4]的方案,控制复杂度较高,且消耗资源较大,该缺点在实现位平面并行编码而进行硬件复用后尤为突出。The representative research results in this field are as follows: Document [1] firstly proposed a bit-plane coding algorithm based on pixels, which was adopted by the JPEG2000 standard; Document [2] adopted a state machine structure to realize bit-plane coding; Document [3] ] proposed a column-based encoding channel parallel structure, that is, two window encoders were used to simultaneously scan and encode three channels. Due to the sequential order of channel scanning, the second window can start encoding only after the saliency state of the first window is updated, and the two window encoders need to interact, which increases the control complexity; literature [4] proposed Bit skipping and column skipping algorithms, that is, skipping bits and columns of output without context to reduce the number of calculations. This method cannot take advantage of circuit parallelization, the degree of optimization depends on the image data, and the performance fluctuates greatly. Literature [5] proposed a bit-plane parallel algorithm, which realized parallelism between encoded bit-planes. However, the encoding unit of a single bit plane adopts the schemes of [3] and [4] at the same time, which has high control complexity and consumes a lot of resources. This shortcoming is particularly prominent after hardware multiplexing for parallel encoding of bit planes.

[1]Taubman D.High performance scalable image compression with EBCOT.IEEETrans.on Image Processing,2000,9(7):1158-1170[1] Taubman D. High performance scalable image compression with EBCOT.IEEETrans.on Image Processing, 2000, 9(7): 1158-1170

[2]Andra K.,Chakrabarti C.,Acharya T.,A high-performance JPEG 2000 architecture.IEEE Trans.on Circuits and System for Video Technology,2003,13(3):209-218[2] Andra K., Chakrabarti C., Acharya T., A high-performance JPEG 2000 architecture. IEEE Trans. on Circuits and System for Video Technology, 2003, 13(3): 209-218

[3]Chiang J.-S.,Lin Y.-S.,Hsieh C.-Y.,Efficient pass-parallel architecture for EBCOTin JPEG 2000.In:IEEE International Symposium on Circuits and Systems,2002.773-776[3] Chiang J.-S., Lin Y.-S., Hsieh C.-Y., Efficient pass-parallel architecture for EBCOTin JPEG 2000.In: IEEE International Symposium on Circuits and Systems, 2002.773-776

[4]Lian C.-J.,Chen K.-F.,Chen H.-H.,et al.Analysis and architecture design ofblock-coding engine for EBCOT in JPEG 2000.IEEE Trans.on Circuits and System forVideo Technology,2003,13(3):219-230[4] Lian C.-J., Chen K.-F., Chen H.-H., et al. Analysis and architecture design of block-coding engine for EBCOT in JPEG 2000. IEEE Trans. on Circuits and System for Video Technology , 2003, 13(3): 219-230

[5]Liu K.,Li Y.-S.,Wu C.-K.,A high performance EBCOT coding and its VLSIarchitecture.Journal of Software,2006,17(7):1553-1560[5] Liu K., Li Y.-S., Wu C.-K., A high performance EBCOT coding and its VLSIarchitecture. Journal of Software, 2006, 17(7): 1553-1560

发明内容 Contents of the invention

技术问题:本发明涉及的一种用于图像压缩的全并行位平面编码方法,通过去除位平面间的相关性,实现各个位平面的并行独立编码;在单个位平面内,以单列比特位作为数据单元,仅缓存前一列比特位的显著性状态信息,并读取当前列和后续两列的原始数据,在一个编码窗口内完成当前列的通道和位平面并行编码;之后每次仅需读入一列新的数据,实现编码循环。Technical problem: The present invention relates to a fully parallel bit-plane coding method for image compression, by removing the correlation between bit-planes, parallel and independent coding of each bit-plane is realized; in a single bit-plane, a single row of bits is used as The data unit only caches the significance status information of the previous column of bits, and reads the original data of the current column and the next two columns, and completes the parallel encoding of the channel and bit plane of the current column within one encoding window; after that, it only needs to read each time Enter a new column of data to realize the encoding cycle.

所述的去除了位平面间的相关性,实现各个位平面的并行独立编码,是指读入一列小波系数后,基于公式1和2对读入的小波系数进行转换,生成除符号位平面外所有比特位平面的显著性状态s和首次幅值细化状态mrf,从而去除了位平面间的相关性;各位平面使用生成的s和mrf,即可独立并行的编码;The described removal of the correlation between the bit planes to realize the parallel independent encoding of each bit plane means that after reading in a column of wavelet coefficients, the wavelet coefficients read in are converted based on formulas 1 and 2 to generate The significance state s of all bit planes and the first amplitude refinement state mrf, thereby removing the correlation between the bit planes; each bit plane can be encoded independently and in parallel by using the generated s and mrf;

s l n = Σ i = l + 1 MSB mag i n 公式1 the s l no = Σ i = l + 1 MSB mag i no Formula 1

Figure BDA0000066283630000022
Figure BDA0000066283630000022

公式1和公式2中,

Figure BDA0000066283630000023
表示第l位平面的第n列比特位的显著性状态,
Figure BDA0000066283630000024
表示第l位平面的第n列比特位的首次幅值细化状态,
Figure BDA0000066283630000025
表示第i位平面第n列比特位的幅度,MSB表示最高位平面的层数,∑表示或运算。In Equation 1 and Equation 2,
Figure BDA0000066283630000023
Indicates the significance state of the bits in the nth column of the lth bit plane,
Figure BDA0000066283630000024
Represents the first amplitude refinement state of the nth column bit of the lth bit plane,
Figure BDA0000066283630000025
Indicates the magnitude of the bit in the nth column of the i-th bit plane, MSB indicates the number of layers of the highest bit plane, and ∑ indicates an OR operation.

所述的在单个位平面内,以单列比特位作为数据单元,仅缓存前一列比特位的显著性状态信息,并读取当前列和后续两列的原始数据,在一个编码窗口内完成当前列的通道和位平面并行编码;之后每次仅需读入一列新的数据,实现编码循环,是指:In a single bit plane, a single column of bits is used as a data unit, only the significance state information of the previous column of bits is cached, and the original data of the current column and the following two columns are read, and the current column is completed within one coding window The channels and bit planes are encoded in parallel; after that, only one column of new data needs to be read each time to realize the encoding cycle, which means:

标准位平面编码BPC算法规定,对单一位平面中第n列比特位进行SPP判决时,其本身及前后相邻列的显著性状态分别为

Figure BDA0000066283630000026
Figure BDA0000066283630000027
Figure BDA0000066283630000028
其中
Figure BDA0000066283630000029
表示第(n-1)列比特位经显著性传播通道SPP编码更新后的显著性状态,
Figure BDA0000066283630000031
表示第n列比特位原始显著性状态;对第n列比特位进行幅值细化通道MRP判决时,其本身及前后列显著性状态分别为
Figure BDA0000066283630000032
Figure BDA0000066283630000034
对当前列进行清除通道CLP判决时,其本身及前后列显著性状态分别为
Figure BDA0000066283630000036
Figure BDA0000066283630000037
若比特位属于SPP或CLP,则可能采用零编码和符号编码进行编码,从而更新比特位的显著性状态;若比特位属于MRP,则必然采用幅值细化编码进行编码,不会对比特位的显著性状态进行更新;推得公式3:The standard bit-plane coding BPC algorithm stipulates that when the SPP decision is made on the nth column of bits in a single bit-plane, the significance states of itself and adjacent columns are respectively
Figure BDA0000066283630000026
Figure BDA0000066283630000027
Figure BDA0000066283630000028
in
Figure BDA0000066283630000029
Indicates the saliency state of the (n-1)th column bit after being updated by the saliency propagation channel SPP code,
Figure BDA0000066283630000031
Indicates the original saliency state of the bit in the nth column; when the MRP judgment of the amplitude refinement channel is performed on the bit in the nth column, the saliency state of itself and the preceding and following columns are respectively
Figure BDA0000066283630000032
Figure BDA0000066283630000034
When making a clear channel CLP judgment on the current column, the saliency status of itself and the front and rear columns are respectively
Figure BDA0000066283630000036
Figure BDA0000066283630000037
If the bit belongs to SPP or CLP, it may use zero coding and sign coding to update the significance state of the bit; if the bit belongs to MRP, it must use amplitude refinement coding to code, and will not Update the salience state of ; deduce the formula 3:

s update _ mrp n = s update _ spp n 公式3 the s update _ mrp no = the s update _ spp no Formula 3

根据公式3,第n列比特位在三个通道判决前后显著性状态更新条件可归纳为:According to formula 3, the condition for updating the saliency state of the bits in the nth column before and after the judgment of the three channels can be summarized as:

s update _ spp n = f ( s update _ spp n - 1 , s original n , s original n + 1 ) s update _ mrp n = f ( s update _ spp n - 1 , s original n , s original n + 1 , s original n + 2 ) s update _ clp n = f ( s update _ clp n - 1 , s original n , s original n + 1 , s original n + 2 ) n ≥ 1 公式4 the s update _ spp no = f ( the s update _ spp no - 1 , the s original no , the s original no + 1 ) the s update _ mrp no = f ( the s update _ spp no - 1 , the s original no , the s original no + 1 , the s original no + 2 ) the s update _ clp no = f ( the s update _ clp no - 1 , the s original no , the s original no + 1 , the s original no + 2 ) no &Greater Equal; 1 Formula 4

公式4中,

Figure BDA00000662836300000310
用于预测第(n+1)列在SPP编码后的显著性状态 In formula 4,
Figure BDA00000662836300000310
Used to predict the significance status of the (n+1)th column after SPP encoding

标准位平面编码算法规定,条带左右边界以外的显著性状态默认为0,则第0列比特位在三个通道编码前后的显著性状态更新条件为:The standard bit-plane coding algorithm stipulates that the saliency state outside the left and right borders of the strip is 0 by default, then the saliency state update conditions of the bits in column 0 before and after three-channel coding are:

s update _ spp 0 = f ( 0 , s original 0 , s original 1 ) s update _ mrp 0 = f ( 0 , s original 0 , s original 1 , s original 2 ) s update _ clp 0 = f ( 0 , s original 0 , s original 1 , s original 2 ) n = 0 公式5 the s update _ spp 0 = f ( 0 , the s original 0 , the s original 1 ) the s update _ mrp 0 = f ( 0 , the s original 0 , the s original 1 , the s original 2 ) the s update _ clp 0 = f ( 0 , the s original 0 , the s original 1 , the s original 2 ) no = 0 Formula 5

在读取第n列,第(n+1)列,第(n+2)列的小波系数后,通过公式1和公式2获得各个位平面的

Figure BDA00000662836300000313
Figure BDA00000662836300000314
构成一个编码窗口;若同时已知第(n-1)列的
Figure BDA00000662836300000316
Figure BDA00000662836300000317
作为辅助列,即可根据公式3和公式4完成第n列的编码通道并行编码,并将
Figure BDA00000662836300000318
Figure BDA00000662836300000319
缓存作为新的辅助列;之后,编码窗口只需读入一列新的小波系数即可实现编码算法的循环;而编码窗口初始编码时所需的首列显著性状态辅助信息则可以通过公式5求得。After reading the wavelet coefficients of column n, column (n+1) and column (n+2), the values of each bit plane are obtained by formula 1 and formula 2
Figure BDA00000662836300000313
Figure BDA00000662836300000314
Constitute a coding window; if the (n-1)th column is known at the same time
Figure BDA00000662836300000316
and
Figure BDA00000662836300000317
As an auxiliary column, the parallel encoding of the encoding channel of the nth column can be completed according to formula 3 and formula 4, and
Figure BDA00000662836300000318
and
Figure BDA00000662836300000319
cache as a new auxiliary column; after that, the encoding window only needs to read in a new column of wavelet coefficients to realize the cycle of the encoding algorithm; and the first column of saliency state auxiliary information required for the initial encoding of the encoding window can be obtained by formula 5 have to.

有益效果:本算法同时实现了位平面和通道并行,其优越性在于易于对应实现硬件流水线操作;仅需一个编码窗口,计算和控制简单,存储量小,在硬件实现时可以保持较小的资源开销;可有效降低DWT和BPC之间的输入输出操作复杂度。BPC取出三列小波系数后,即可同时完成首列在所有位平面的CX/D计算,并将当前列的SPP编码后和CLP编码后的显著性状态缓存。之后,每次循环读入一列新的小波系数,即可进行下一列的位平面编码。在硬件实现时对应流水线操作,极易实现。在单个位平面内,仅需存储当前编码窗口所需的辅助参数,无需更多的缓存消耗。编码窗口每次仅对一列数据进行编码,计算量小,数据读取依靠流水线操作,控制复杂度低。因此,在硬件实现时会保持较低资源消耗。因为在实现位平面并行编码时,需要对单个位平面编码器的硬件单元进行复用,因此这个品质尤为重要。采用该种算法在读入三列小波系数后,BPC从DWT每取出一列数据就可立即操作,完成编码和输出,无需多余的存储和控制,极大提高了BPC和DWT之间的数据输入输出的效率。Beneficial effects: this algorithm realizes bit plane and channel parallelism at the same time, and its advantage lies in that it is easy to implement corresponding hardware pipeline operation; only one coding window is needed, the calculation and control are simple, the storage capacity is small, and small resources can be kept in hardware implementation Overhead; can effectively reduce the complexity of input and output operations between DWT and BPC. After the BPC takes out the three columns of wavelet coefficients, it can simultaneously complete the CX/D calculation of the first column in all bit planes, and cache the saliency status of the current column after SPP encoding and CLP encoding. Afterwards, a new column of wavelet coefficients is read in each cycle, and the bit-plane encoding of the next column can be performed. Corresponding to the pipeline operation in the hardware implementation, it is very easy to realize. In a single bit plane, only the auxiliary parameters required by the current encoding window need to be stored, and no more buffer consumption is required. The encoding window only encodes one column of data at a time, with a small amount of calculation, and the data reading relies on pipeline operations, so the control complexity is low. Therefore, resource consumption is kept low when implemented in hardware. This quality is especially important because of the need to multiplex the hardware units of a single bit-plane encoder when implementing bit-plane parallel encoding. Using this algorithm, after reading in three columns of wavelet coefficients, BPC can immediately operate each column of data taken out from DWT to complete encoding and output without redundant storage and control, which greatly improves the data input and output between BPC and DWT s efficiency.

附图说明 Description of drawings

下面结合附图和实施例对本发明做进一步说明。The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

图1BPC算法中,条带、比特位按照光栅顺序扫描编码示意图。In the BPC algorithm in Fig. 1, a schematic diagram of scanning and coding of strips and bits in raster order.

图2通过一个编码窗口,实现三个编码通道并行编码通道原理示意图。Fig. 2 is a schematic diagram of the principle of implementing three encoding channels in parallel through one encoding window.

图3位平面并行编码示意图。Fig. 3 Schematic diagram of bit-plane parallel encoding.

图4全并行位平面编码方法实现结构示意图。Fig. 4 is a schematic diagram of the implementation structure of the fully parallel bit-plane encoding method.

具体实施方式 Detailed ways

下面结合附图和发明人给出的实施实例对本发明做进一步详细说明。The present invention will be described in further detail below in conjunction with the accompanying drawings and the implementation examples given by the inventor.

本发明首先去除了各个位平面间的相关性,即通过状态参数生成单元获取各个位平面显著性状态s和首次幅值细化状态mrf;经过寄存器缓冲单元缓冲后,在单个位平面内,缓存前一列比特位的显著性状态信息,并读取当前列和后续两列的原始数据,便可在一个编码窗口内完成当前列的通道和位平面并行编码;之后每次仅需读入一列新的数据,即可实现编码循环。The present invention first removes the correlation between each bit plane, that is, obtains the significance state s of each bit plane and the first amplitude refinement state mrf through the state parameter generation unit; after being buffered by the register buffer unit, in a single bit plane, the buffer By reading the significance status information of the previous column of bits and reading the original data of the current column and the next two columns, the parallel encoding of the channel and bit plane of the current column can be completed within one encoding window; after that, only one new column needs to be read each time The data can realize the encoding cycle.

具体实施实例如下:The specific implementation examples are as follows:

1)读入一列小波系数,基于公式1和2对读入的小波系数进行转换,生成除了符号位平面和最高位平面之外的所有位平面的显著性状态和首次幅值细化状态,送入各个位平面并行进行编码;各位平面的编码结构和编码过程是一样的;1) Read in a list of wavelet coefficients, convert the read-in wavelet coefficients based on formulas 1 and 2, generate the salience state and the first amplitude refinement state of all bit planes except the sign bit plane and the highest bit plane, and send to Each bit plane is encoded in parallel; the encoding structure and encoding process of each bit plane are the same;

2)编码窗口输出缓存已编好的第(n-1)列显著性状态参数、首次幅值细化状态参数、幅度和符号作为辅助,并读入新的第(n+2)显著性状态参数、首次幅值细化状态参数、幅度和符号,加上编码窗口内已有的第n列和第(n+1)列,开始对第n列进行编码;2) The encoding window output buffers the programmed (n-1)th column saliency state parameters, the first amplitude refinement state parameters, amplitude and sign as auxiliary, and reads in the new (n+2) saliency state Parameters, the first amplitude refinement state parameters, amplitude and sign, plus the existing nth column and (n+1)th column in the encoding window, start encoding the nth column;

3)根据显著性状态参数判断各比特位所属的通道,若某比特位显著性为“0”,而与其相邻的比特位中任有一比特位显著性为“1”则该比特位属于SPP,若某比特位显著性为“1”,则该比特位属于MRP,其他比特位属于CLP,判断完成后对各比特位按照不同通道进行编码,各通道的编码是并行的;3) Judging the channel to which each bit belongs according to the significance state parameter, if the significance of a certain bit is "0", and the significance of any one of the bits adjacent to it is "1", then this bit belongs to SPP , if the significance of a certain bit is "1", then this bit belongs to MRP, and other bits belong to CLP. After the judgment is completed, each bit is encoded according to different channels, and the encoding of each channel is parallel;

4)对于SPP通道,对幅度为“0”的比特位使用ZC计算CX/D,对幅度为“1”的比特位使用ZC和SC计算CX/D,更新进行了SPP通道的各比特位的显著性并寄存,供对下一列数据进行SPP通道时使用;对于MRP通道,首先预测各比特位经过SPP通道之后的显著性,并对各比特位的显著性进行更新,然后使用MRC计算各比特位的CX/D,更新进行了MRP通道的各比特位的显著性,供对下一列数据进行MRP通道时使用;对于CLP通道,首先预测各比特位经过SPP通道之后的显著性,并对各比特位的显著性进行更新,然后对于本身显著性为“0”,且与其相邻的比特位显著性也全为“0”时,使用RLC计算CX/D,对于其他比特位,若该比特位幅度为“0”,使用ZC计算CX/D,若幅度为“1”,使用ZC和SC计算CX/D,更新进行了CLP通道的各比特位的显著性,供对下一列数据进行CLP通道时使用。4) For the SPP channel, use ZC to calculate CX/D for bits with an amplitude of "0", use ZC and SC to calculate CX/D for bits with an amplitude of "1", and update each bit of the SPP channel Significance and register for use in SPP channel for the next column of data; for MRP channel, first predict the significance of each bit after passing through the SPP channel, and update the significance of each bit, and then use MRC to calculate each bit For the CX/D of the bit, the significance of each bit of the MRP channel is updated for use in the MRP channel for the next column of data; for the CLP channel, the significance of each bit after the SPP channel is first predicted, and each bit The significance of the bit is updated, and then when the significance of itself is "0" and the significance of its adjacent bits is all "0", use RLC to calculate CX/D. For other bits, if the bit If the bit amplitude is "0", use ZC to calculate CX/D, if the amplitude is "1", use ZC and SC to calculate CX/D, and update the significance of each bit of the CLP channel for CLP on the next column of data channel used.

5)对第n列编码结束后,返回1),开始读入新的一列继续循环编码。5) After encoding the nth column, return to 1), and start to read a new column to continue cyclic encoding.

Claims (2)

1. a full parallel bit plane coding method that is used for image compression is characterized in that removing the correlation of using the bit plane that obtains in the JPEG2000 image compression process, realizes the parallel absolute coding of each bit plane; In single bit plane, as data cell, the conspicuousness state information of buffer memory previous column bit only, and read initial data when prostatitis and follow-up two row is finished passage and bit plane parallel encoding when the prostatitis in a coding window with single-row bit; Only need read in afterwards the new data of row at every turn, realize the coding circulation;
The described correlation of having removed between bit plane, realize the parallel absolute coding of each bit plane, after referring to read in a row wavelet coefficient, change based on formula 1 and 2 pairs of wavelet coefficients that read in, generate conspicuousness state s and the first amplitude refinement state mrf on divided-by symbol bit plane and out-of-plane all the bit planes of highest order, thereby removed the correlation between bit plane; Each bit plane uses s and the mrf that generates, and gets final product the coding of independent parallel;
s l n = Σ i = l + 1 MSB mag i n Formula 1
Figure FDA0000229620792
Formula 2
In formula 1 and the formula 2,
Figure FDA0000229620793
The conspicuousness state that represents the n row bit of l bit plane,
Figure FDA0000229620794
The first amplitude refinement state that represents the n row bit of l bit plane,
Figure FDA0000229620795
Represent the amplitude of i bit plane n row bit, MSB represents the number of plies on highest order plane, and Σ represents exclusive disjunction.
2. a kind of full parallel bit plane coding method for image compression as claimed in claim 1, it is characterized in that described in single bit plane, with single-row bit as data cell, the conspicuousness state information of buffer memory previous column bit only, and read when prostatitis and follow-up two initial data that are listed as, in a coding window, finish passage and bit plane parallel encoding when the prostatitis; Only need read in afterwards the new data of row at every turn, realize the coding circulation, refer to:
Standard bit plane coding BPC algorithm dictates, when n row bit in the bit-plane was carried out the SPP judgement, the conspicuousness state of itself and front and back adjacent column was respectively
Figure FDA0000229620796
, ,
Figure FDA0000229620798
Wherein
Figure FDA0000229620799
The conspicuousness state of expression (n-1) row bit after conspicuousness propagation ducts SPP coding upgrades,
Figure FDA00002296207910
Represent the original conspicuousness state of n row bit; When n row bit was carried out amplitude refinement MRP judgement, itself and front and back row conspicuousness state were respectively
Figure FDA00002296207911
,
Figure FDA00002296207912
,
Figure FDA00002296207913
When adjudicating remove channel C LP when the prostatitis, itself and front and back row conspicuousness state are respectively
Figure FDA00002296207914
,
Figure FDA00002296207915
,
Figure FDA00002296207916
If bit belongs to SPP or CLP, then may adopt Zero-code and symbolic coding to encode, thus the conspicuousness state of update bit position; If bit belongs to MRP, then must adopt the amplitude refinement to encode, can the conspicuousness state of bit not upgraded; Push away to get formula 3:
s update _ mrp n = s update _ spp n Formula 3
Can be summarized as according to formula 3, the n row bits conspicuousness state update condition before and after three passage judgements:
s update _ spp n = f ( s update _ spp n - 1 , s original n , s original n + 1 ) s update _ mrp n = f ( s update _ spp n - 1 , s original n , s original n + 1 , s original n + 2 ) s update _ clp n = f ( s update _ clp n - 1 , s original n , s original n + 1 , s original n + 2 ) n ≥ 1 Formula 4
In the formula 4,
Figure FDA00002296207919
Be used for the conspicuousness state after prediction (n+1) is listed in the SPP coding
Figure FDA00002296207920
Standard bit plane encryption algorithm regulation, the conspicuousness state beyond the border, the band left and right sides is defaulted as 0, and then the conspicuousness state update condition of the 0th row bit before and after three channel codings is:
s update _ spp 0 = f ( 0 , s original n , s original 1 ) s update _ mrp 0 = f ( 0 , s original 0 , s original 1 , s original 2 ) s update _ clp 0 = f ( 0 , s original 0 , s original 1 , s original 2 ) n = 0 Formula 5
Reading n row, (n+1) row behind the wavelet coefficient of (n+2) row, obtain each bit planes by formula 1 and formula 2 ,
Figure FDA00002296207923
,
Figure FDA00002296207924
, consist of a coding window; If known (n-1) is listed as simultaneously
Figure FDA00002296207925
With As supplementary column, can finish the coding pass parallel encoding of n row according to formula 3 and formula 4, and will
Figure FDA00002296207927
With
Figure FDA00002296207928
Buffer memory is as new supplementary column; Afterwards, coding window only need read in the circulation that the new wavelet coefficient of row can be realized encryption algorithm; First required during coding window initial code conspicuousness state supplementary then can be tried to achieve by formula 5.
CN 201110149538 2011-06-03 2011-06-03 All-parallel bit plane coding method for image compression Expired - Fee Related CN102223534B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110149538 CN102223534B (en) 2011-06-03 2011-06-03 All-parallel bit plane coding method for image compression

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110149538 CN102223534B (en) 2011-06-03 2011-06-03 All-parallel bit plane coding method for image compression

Publications (2)

Publication Number Publication Date
CN102223534A CN102223534A (en) 2011-10-19
CN102223534B true CN102223534B (en) 2013-03-20

Family

ID=44779941

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110149538 Expired - Fee Related CN102223534B (en) 2011-06-03 2011-06-03 All-parallel bit plane coding method for image compression

Country Status (1)

Country Link
CN (1) CN102223534B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103826028B (en) 2012-11-19 2017-08-25 腾讯科技(深圳)有限公司 A kind of method and apparatus of Lossless Compression picture
CN103108185B (en) * 2013-01-31 2015-09-02 西安电子科技大学 Meet bit-plane coding hardware configuration and the method for CCSDS standard
CN103686193B (en) * 2013-12-09 2016-09-28 中国电影科学技术研究所 A kind of JPEG2000 picture decoding and the method for coding
CN105939479B (en) * 2016-06-15 2019-06-21 北京奇艺世纪科技有限公司 A kind of parallel encoding method and apparatus
WO2020132853A1 (en) 2018-12-25 2020-07-02 Zhejiang Dahua Technology Co., Ltd. Systems and methods for image processing

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1216485C (en) * 2003-07-03 2005-08-24 复旦大学 High-speed EBCOT coder applicable to JPEG2000 standard
CN101192303B (en) * 2006-11-24 2010-04-07 北京中电华大电子设计有限责任公司 High speed bit flat surface decoding method and circuit suitable for Jpeg2000 standard
CN101488225B (en) * 2009-03-05 2012-03-28 山东大学 A VLSI System of Bit Plane Coder

Also Published As

Publication number Publication date
CN102223534A (en) 2011-10-19

Similar Documents

Publication Publication Date Title
JP4878262B2 (en) Entropy encoding device
CN102396222B (en) Adaptive entropy coding for images and videos using set partitioning in generalized hierarchical trees
CN102223534B (en) All-parallel bit plane coding method for image compression
CN101404772B (en) VLSI Image Compression Encoder Based on Wavelet Transform
CN1998152A (en) Conditional lapped transform
CN101848311B (en) JPEG2000 EBCOT encoder based on Avalon bus
TW201342919A (en) Data encoding and decoding
CN101202910A (en) Image decoding device, image encoding device, and system LSI
JP2010515317A (en) Apparatus and method for encoding transform coefficient block
CN102833546B (en) High-speed image compression method and device based on wavelet sub-band interleaving optimal quantization
CN101867809A (en) High-speed image compression VLSI coding method and coder based on systolic array
CN1589028A (en) Predicting device and method based on pixel flowing frame
JP2011091575A (en) Coding apparatus and method
CN101488225B (en) A VLSI System of Bit Plane Coder
Li et al. A three-level parallel high-speed low-power architecture for EBCOT of JPEG 2000
CN102333222A (en) Two-dimensional Discrete Wavelet Transform Circuit and Image Compression Method Using the Circuit
CN1262973C (en) Bit plane parallel rate distortion optimized cut-out built-in code block coding structure
CN115883842B (en) Filtering and encoding and decoding method, device, computer readable medium and electronic device
CN105635731B (en) The inter-frame predicated reference point preprocess method of efficient video coding
CN113473145B (en) Video compression method, video decompression method, intelligent terminal and storage medium
CN103152567A (en) Columbus encoder with index of any order and method thereof
CN102281437A (en) Lifting structure two-dimensional discrete wavelet transform interlaced scanning method for image compression
WO2020215193A1 (en) Coder, coding system, and coding method
CN101356817A (en) Method of encoding a sign, method of decoding a sign and device thereof
Zhao et al. A high throughput JPEG2000 lossless encoder architecture

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130320

Termination date: 20160603