[go: up one dir, main page]

CN101442673A - Method for encoding and decoding Bell formwork image - Google Patents

Method for encoding and decoding Bell formwork image Download PDF

Info

Publication number
CN101442673A
CN101442673A CN 200810080232 CN200810080232A CN101442673A CN 101442673 A CN101442673 A CN 101442673A CN 200810080232 CN200810080232 CN 200810080232 CN 200810080232 A CN200810080232 A CN 200810080232A CN 101442673 A CN101442673 A CN 101442673A
Authority
CN
China
Prior art keywords
green
red
image
component
original
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.)
Granted
Application number
CN 200810080232
Other languages
Chinese (zh)
Other versions
CN101442673B (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.)
Taiyuan University of Technology
Original Assignee
Taiyuan University of 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 Taiyuan University of Technology filed Critical Taiyuan University of Technology
Priority to CN 200810080232 priority Critical patent/CN101442673B/en
Publication of CN101442673A publication Critical patent/CN101442673A/en
Application granted granted Critical
Publication of CN101442673B publication Critical patent/CN101442673B/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

本发明涉及数字图像压缩技术,具体为贝尔模板图像编码与解码方法。解决现有直接压缩原始贝尔模板图像数据的方法难以在压缩比、重构彩色图像质量和复杂度之间取得很好的平衡的问题。本发明采用LOCO-I技术对绿色分量进行无损编码;通过梯度插值法估计在红蓝分量位置上的绿色分量,可获得红蓝分量的小波低频子带与被估计绿色分量低频子带之间的色差信号,这种色差信号可由LOCO-I技术进行无损或近无损压缩。在解码端,首先要获得无损的绿色分量,与编码过程一样估计在红蓝分量位置上的绿色分量,被估计的绿色分量的小波高频子带可替换红蓝分量的相应小波高频子带,其余部分是编码的逆过程。本发明具有高效、低复杂度的特点。

The invention relates to digital image compression technology, in particular to a Bell template image encoding and decoding method. It solves the problem that the existing method of directly compressing the original Bell template image data is difficult to achieve a good balance between the compression ratio, the reconstructed color image quality and the complexity. The present invention adopts LOCO-I technology to perform lossless encoding on the green component; the green component at the position of the red and blue components is estimated by the gradient interpolation method, and the distance between the wavelet low frequency subband of the red and blue component and the estimated green component low frequency subband can be obtained Color-difference signal, this color-difference signal can be compressed losslessly or nearly losslessly by LOCO-I technology. At the decoding end, the lossless green component must be obtained first, and the green component at the position of the red and blue components is estimated as in the encoding process, and the wavelet high frequency subband of the estimated green component can replace the corresponding wavelet high frequency subband of the red and blue component , and the rest is the inverse process of encoding. The invention has the characteristics of high efficiency and low complexity.

Description

贝尔模板图像编码与解码方法 Bell template image encoding and decoding method

技术领域 technical field

本发明涉及数字图像处理技术,特别是数字图像压缩技术,具体为贝尔模板图像编码与解码方法。The invention relates to a digital image processing technology, in particular to a digital image compression technology, specifically a Bell template image encoding and decoding method.

背景技术 Background technique

随着具有类似贝尔彩色滤波阵列(简称贝尔模板)的图像传感器在数码相机、摄像机中的广泛应用,为了提高数字图像的存储与传输效率,图像数据压缩技术越来越显得重要。With the wide application of image sensors similar to Bell color filter array (referred to as Bell template) in digital cameras and video cameras, in order to improve the storage and transmission efficiency of digital images, image data compression technology is becoming more and more important.

在传统的数码摄像产品中,先对具有类似贝尔模板格式的数字图像(简称贝尔模板图像)进行插值处理来估计每个像素位置上缺失的另外两个颜色值,从而获得全彩色图像数据,然后采用基于小波变换的JPEG2000或JPEG国际标准对插值后的全彩数据进行压缩。显然这种传统的方法在插值过程中又产生了新的数据冗余,从而降低了压缩效率。近年来,直接压缩原始贝尔模板图像数据成为一个新的研究方向,产生了许多优秀的无损或有损压缩方法。与传统的压缩方法相比,直接压缩贝尔模板图像的优势在于:数码相机或摄像机的处理器不用执行插值算法,大大地降低了计算负荷,同时由于贝尔模板图像数据量仅为全彩图像的三分之一,有利于提高编码效率。贝尔模板图像解码及插值重构全彩图像可以在PC机上离线完成。In traditional digital camera products, the digital image with similar Bell template format (referred to as Bell template image) is interpolated to estimate the other two missing color values at each pixel position, thereby obtaining full-color image data, and then Use JPEG2000 or JPEG international standard based on wavelet transform to compress the interpolated full-color data. Obviously, this traditional method produces new data redundancy in the interpolation process, thus reducing the compression efficiency. In recent years, direct compression of raw Bell template image data has become a new research direction, resulting in many excellent lossless or lossy compression methods. Compared with the traditional compression method, the advantage of directly compressing the Bell template image is that the processor of the digital camera or video camera does not need to execute the interpolation algorithm, which greatly reduces the calculation load. 1/1, which is beneficial to improve the coding efficiency. Bell template image decoding and interpolation reconstruction of full-color images can be completed offline on a PC.

目前,贝尔模板图像无损压缩算法提供的压缩比很低,不能满足许多实际应用需求。为了提高压缩比,产生了基于JPEG2000等国际标准的多种有损压缩算法,这些算法存在的缺点是复杂度高,解压缩后的贝尔模板图像中各分量均产生失真且失真度较高,从而导致了即使在较低的压缩率时,采用优秀的插值算法也难以重构出令人满意的全彩图像。总之,这些算法难以在压缩比、重构彩色图像质量和复杂度之间取得很好的平衡。At present, the compression ratio provided by the Bell template image lossless compression algorithm is very low, which cannot meet the needs of many practical applications. In order to improve the compression ratio, a variety of lossy compression algorithms based on international standards such as JPEG2000 have been produced. The disadvantages of these algorithms are high complexity, and each component in the decompressed Bell template image is distorted and has a high degree of distortion. As a result, even at a low compression rate, it is difficult to reconstruct a satisfactory full-color image with an excellent interpolation algorithm. In short, these algorithms are difficult to achieve a good balance between compression ratio, reconstructed color image quality and complexity.

发明内容 Contents of the invention

本发明为了解决现有直接压缩原始贝尔模板图像数据的方法难以在压缩比、重构彩色图像质量和复杂度之间取得很好的平衡的问题,提供一种贝尔模板图像编码与解码方法。该方法实现贝尔模板图像有损压缩和解压缩。该方法在获得较高压缩比的同时,保证重构彩色图像质量更加接近基于无损编解码的贝尔模板图像重构的彩色图像质量,且兼顾算法的低复杂度。The present invention provides a Bell template image encoding and decoding method to solve the problem that it is difficult to achieve a good balance between the compression ratio, the reconstructed color image quality and the complexity in the existing method of directly compressing the original Bell template image data. This method implements lossy compression and decompression of Bell template images. While obtaining a higher compression ratio, this method ensures that the quality of the reconstructed color image is closer to that of the reconstructed color image based on the Bell template image based on lossless codec, and takes into account the low complexity of the algorithm.

本发明是采用如下技术方案实现的:贝尔模板图像编码与解码方法,包括编码和解码过程,编码过程包括如下步骤:1、分离贝尔模板图像中红绿蓝分量,并把分离出的红色、蓝色分量变成紧凑矩形图像,绿分量保持为梅花状图像;2、无损压缩绿色分量数据,第一步:采用因果插值的方法估计除绿色梅花状图像的前两行、前两列外的每个当前待编码原始绿色像素左侧和上方像素位置缺失的绿色像素值(一般的,绿色梅花状图像的前两行,两列作为编码的缓冲,是不做处理的),以满足LOCO-I编码器预测器和上下文建模的需求,每个当前待编码原始绿色像素左侧像素位置的绿色像素估计值等于该像素位置左侧和上方的原始绿色像素值的平均值,每个当前待编码原始绿色像素上方像素位置的绿色像素估计值等于该像素位置的左侧和右侧的原始绿色像素值的平均值与该像素位置的上方的原始绿色像素值相加再除以2,其中编码进行到绿色梅花状图像每行末端时,当前待编码原始绿色像素上方像素位置的绿色像素估计值等于该像素位置的左侧和上方的原始绿色像素值的平均值(显然,该方法采用真实的原始绿色像素值来插值估计缺失的绿色像素值,满足LOCO-I编码器的光栅顺序编码要求,有效地降低了绿色通道编码复杂度);第二步:应用LOCO-I编码器对每个原始绿色像素编码(即仅对贝尔模板图像中原始绿色像素编码,估计的绿色值并不被编码);3、采用梯度插值法(梯度插值法为现有技术)估计贝尔模板图像中原始红色、蓝色像素位置缺失的绿色像素值,并把原始红色、蓝色像素位置上估计的绿色像素分离出来,变成与步骤1中的红色、蓝色紧凑矩形图像对应的绿色紧凑矩形图像;4、对步骤1和步骤3中获得的红蓝紧凑矩形图像及其对应的绿色紧凑矩形图像分别进行小波变换;5、小波变换后,红蓝紧凑矩形图像低频子带与其对应的绿色紧凑矩形图像低频子带相减,得到红-绿低频子带色差和蓝-绿低频子带色差;6、应用LOCO-I编码器对红-绿低频子带色差和蓝-绿低频子带色差进行近无损或无损编码;7、把步骤2和步骤6获得的原始绿色分量编码后得到的码流和红蓝低频子带色差编码后得到的码流复合形成完整的贝尔模板图像压缩码流,而完成编码过程;解码过程包括如下步骤:1、从复合码流中取得贝尔模板图像绿色分量码流,应用LOCO-I解码器获得原始绿色像素值,并按照梅花状图像排列;在解码每个原始绿色像素前,需要采用因果插值法获得当前待编码原始绿色像素左侧及上方位置的绿色像素估计值,这与编码过程中的步骤2中的因果插值法是一样的;2、采用梯度插值法估计原始红色、蓝色像素位置缺失的绿色像素值,并把原始红色、蓝色像素位置上估计的绿色像素分离出来,分别变成与红蓝分量对应的绿色紧凑矩形图像,这与编码过程中的步骤3相同;3、对红蓝分量对应的绿色紧凑矩形图像进行小波变换,分别得到四个子带;4、从复合码流中取得红-绿、蓝-绿低频子带色差码流,应用LOCO-I解码器得到红-绿、蓝-绿低频子带色差信号;5、解码贝尔模板图像中的红、蓝分量数据,解码红分量数据的过程如下:第一步:将步骤4得到的红-绿低频子带色差信号与步骤3得到的对应绿色紧凑矩形图像的低频子带相减,得到红分量的低频子带,第二步:把步骤3得到对应红分量的绿色紧凑矩形图像的高频子带视为红分量的高频子带,第三步:至此已得到红分量的四个小波子带,经小波逆变换恢复出红色紧凑矩形图像;与解码红分量数据的过程一样,可同时解码蓝分量而恢复出蓝色紧凑矩形图像;6、在步骤1得到的原始梅花状绿色分量图像的基础上,按照编码前原始红蓝像素在贝尔模板图像中的位置,排列解码后的红蓝紧凑矩形图像中的每个像素,恢复成贝尔模板图像。The present invention is realized by adopting the following technical solutions: Bell template image encoding and decoding method, including encoding and decoding process, the encoding process comprises the following steps: 1, separate the red, green and blue components in the Bell template image, and separate the red, blue The color component becomes a compact rectangular image, and the green component remains a quincunx-shaped image; 2. Losslessly compress the green component data, the first step: use the causal interpolation method to estimate each A green pixel value missing at the left and upper pixel positions of the original green pixel currently to be encoded (generally, the first two rows and two columns of the green quincunx image are used as encoding buffers, which are not processed), so as to meet LOCO-I The requirements of the encoder predictor and context modeling, the estimated value of the green pixel at the pixel position to the left of the original green pixel currently to be encoded is equal to the average of the original green pixel values to the left and above the pixel position, each currently to be encoded The estimated value of the green pixel at the pixel position above the original green pixel is equal to the average value of the original green pixel values to the left and right of the pixel position and the original green pixel value above the pixel position and divided by 2, where the encoding is performed At the end of each line of the green quincunx image, the estimated value of the green pixel at the pixel position above the original green pixel to be encoded is equal to the average value of the original green pixel values on the left and above the pixel position (obviously, this method uses the real original The green pixel value is interpolated to estimate the missing green pixel value, which meets the raster order encoding requirements of the LOCO-I encoder and effectively reduces the coding complexity of the green channel); the second step: apply the LOCO-I encoder to each original green Pixel encoding (that is, only the original green pixel encoding in the Bell template image, the estimated green value is not encoded); 3, using gradient interpolation (gradient interpolation is the prior art) to estimate the original red and blue in the Bell template image The green pixel value missing at the pixel position, and separate the estimated green pixel at the original red and blue pixel positions, and turn it into a green compact rectangular image corresponding to the red and blue compact rectangular images in step 1; 4. For step The red and blue compact rectangular images obtained in step 1 and step 3 and their corresponding green compact rectangular images are respectively subjected to wavelet transformation; Subtract, obtain red-green low-frequency sub-band color difference and blue-green low-frequency sub-band color difference; 6, apply LOCO-I coder to red-green low-frequency sub-band color difference and blue-green low-frequency sub-band color difference to carry out nearly lossless or lossless coding; 7. Combine the code stream obtained after encoding the original green component obtained in step 2 and step 6 with the code stream obtained after the red-blue low-frequency sub-band color difference encoding to form a complete Bell template image compression code stream, and complete the encoding process; the decoding process Including the following steps: 1. Obtain the green component code stream of the Bell template image from the composite code stream, apply the LOCO-I decoder to obtain the original green pixel values, and arrange them according to the quincunx image; before decoding each original green pixel, it is necessary to use The causal interpolation method obtains the left and upper positions of the current original green pixel to be encoded This is the same as the causal interpolation method in step 2 in the encoding process; 2. Use the gradient interpolation method to estimate the green pixel value missing from the original red and blue pixel positions, and convert the original red and blue pixels to The green pixels estimated at the color pixel positions are separated and become green compact rectangular images corresponding to the red and blue components respectively, which is the same as step 3 in the encoding process; 3. Perform wavelet transformation on the green compact rectangular images corresponding to the red and blue components , obtain four sub-bands respectively; 4, obtain red-green, blue-green low-frequency sub-band color-difference code streams from composite code stream, apply LOCO-I decoder to obtain red-green, blue-green low-frequency sub-band color-difference signals; 5 1. Decoding the red and blue component data in the Bell template image, the process of decoding the red component data is as follows: the first step: the red-green low-frequency sub-band color difference signal obtained in step 4 and the low-frequency corresponding green compact rectangular image obtained in step 3 The sub-bands are subtracted to obtain the low-frequency sub-band of the red component. The second step: the high-frequency sub-band of the green compact rectangular image corresponding to the red component obtained in step 3 is regarded as the high-frequency sub-band of the red component. The third step: so far Obtain the four wavelet subbands of the red component, and restore the red compact rectangular image through wavelet inverse transformation; same as the process of decoding the red component data, the blue component can be decoded at the same time to restore the blue compact rectangular image; 6. Obtained in step 1 Based on the original quincunx-shaped green component image, according to the position of the original red and blue pixels in the Bell template image before encoding, arrange each pixel in the decoded red and blue compact rectangular image, and restore it into a Bell template image.

本发明中所述的LOCO-I编解码器是现有技术。所述LOCO-I编解码器见文献“Marcelo J.Weinberger,Gadiel Seroussi,Guillermo Sapiro,“The LOCO—Ilossless image compression algorithm:principles and standardization intoJPEG—LS”[J].IEEE Trans Image Processing,2000,9(6):1309-1364”。The LOCO-I codec described in this invention is prior art. The LOCO-I codec is shown in the document "Marcelo J.Weinberger, Gadiel Seroussi, Guillermo Sapiro," The LOCO—Ilossless image compression algorithm: principles and standardization into JPEG—LS" [J]. IEEE Trans Image Processing, 2000, 9 (6): 1309-1364".

本发明把贝尔模板图像分离为三色分量通道,基于因果插值对绿色分量进行无损编解码,保留了原始彩色图像的主要亮度信息,有效地利用色分量的小波子带相关性,对红蓝分量进行有损编解码。为了降低算法复杂度,三个通道编解码器均采用低复杂度的LOCO-I预测差分编解码技术。The invention separates the Bell template image into three-color component channels, performs lossless encoding and decoding on the green component based on causal interpolation, retains the main brightness information of the original color image, effectively utilizes the wavelet subband correlation of the color component, and converts the red and blue components Perform lossy codecs. In order to reduce the complexity of the algorithm, the codecs of the three channels all adopt the low-complexity LOCO-I predictive difference codec technology.

采用基于因果插值的LOCO-I技术对绿色分量进行无损编码;通过梯度插值法估计在红(蓝)分量位置上的绿色分量,被估计的绿色分量与红(蓝)分量之间对应的小波高频子带信息存在强烈的相关性,即被估计的绿色分量的小波高频子带可替换红(蓝)分量的相应小波高频子带,进一步可获得红(蓝)分量低频子带与被估计绿色分量低频子带之间的色差信号,这种色差信号可由低复杂度的LOCO-I技术进行无损或近无损压缩,从而完成高性能的贝尔模板图像编码。在解码端,首先要获得无损的绿色分量,其余部分是编码的逆过程。实验表明,解码后贝尔模板图像与编码前的贝尔模板图像相比,其PSNR平均值达到42dB以上,应用高性能的自适应滤波插值法可得到视觉无损的全彩图像。The LOCO-I technology based on causal interpolation is used to encode the green component losslessly; the green component at the position of the red (blue) component is estimated by the gradient interpolation method, and the corresponding wavelet height between the estimated green component and the red (blue) component There is a strong correlation between the frequency subband information, that is, the estimated green component wavelet high frequency subband can replace the corresponding wavelet high frequency subband of the red (blue) component, and further the red (blue) component low frequency subband and the estimated Estimate the color-difference signal between the low-frequency sub-bands of the green component. This color-difference signal can be lossless or near-lossless compressed by the low-complexity LOCO-I technology, thereby completing high-performance Bell template image coding. At the decoding end, the lossless green component must be obtained first, and the rest is the inverse process of encoding. Experiments show that the average PSNR of the Bell template image after decoding is more than 42dB compared with the Bell template image before encoding, and the visually lossless full-color image can be obtained by applying the high-performance adaptive filter interpolation method.

编码器在色分量分离后得到三路分量,即把红蓝分量分别紧凑为矩形图像,绿色分量保持梅花状图像,对每个分量图像分别编码,最后把多路码流合并为最终压缩码流。在贝尔模板图像中,绿色分量占总像素数的二分之一,包含原图像的主要亮度信息,因此对于绿色分量,采用LOCO-I技术无损编码。在编码每个原始贝尔模板像素前,应采用因果插值法估计在红蓝像素位置上缺失的绿色值,获得全分辨率的绿色分量图像,为LOCO-I的预测器和上下文模型提供了匹配的数据。应该注意,本发明仅对原始贝尔模板图像中绿色像素编码,在红蓝像素位置上估计的绿色值并不被编码。对贝尔模板红色分量进行编码时,把紧凑的矩形红分量和在同位置上插值估计的矩形绿分量进行一层小波变换,本发明优选bior3.3小波,实验表明对应的小波高频子带之间存在强烈相关性。在解码端,原始贝尔模板图像的绿色分量能被无损解码,可以插值估计出与原始贝尔模板红色分量相同位置上的矩形绿色分量。本发明中,把该矩形绿色分量的小波高频子带视为原始贝尔模板红色分量的高频子带,因而在编码端贝尔模板红色分量的高频子带不必编码传输,只需要编码贝尔模板红色分量的低频子带,其数据量仅为原始贝尔模板红色分量的四分之一,进一步,该低频子带与被估计的矩形绿色分量的低频子带相减得到低频子带色差信号,有效地去除了红绿分量间冗余,降低了编码的复杂度,最后采用LOCO-I技术进行无损或近无损(δ=1,δ=2)编码。同理可编码贝尔模板蓝色分量。The encoder obtains three-way components after the color components are separated, that is, the red and blue components are compacted into rectangular images, and the green component maintains a quincunx-shaped image, and each component image is encoded separately, and finally the multiple code streams are combined into the final compressed code stream . In the Bell template image, the green component accounts for one-half of the total number of pixels and contains the main brightness information of the original image. Therefore, for the green component, LOCO-I technology is used for lossless coding. Before encoding each raw Bell template pixel, a causal interpolation method should be used to estimate the missing green value at the red and blue pixel positions to obtain a full-resolution green component image, which provides a match for the LOCO-I predictor and context model. data. It should be noted that the present invention only encodes the green pixels in the original Bell template image, and the green values estimated at the red and blue pixel positions are not encoded. When the Bell template red component is encoded, the compact rectangular red component and the rectangular green component interpolated and estimated at the same position are subjected to one-layer wavelet transformation. The preferred bior3.3 wavelet of the present invention, experiments show that the corresponding wavelet high-frequency subbands There is a strong correlation between. At the decoding end, the green component of the original Bell template image can be decoded losslessly, and the rectangular green component at the same position as the original Bell template red component can be estimated by interpolation. In the present invention, the wavelet high-frequency sub-band of the rectangular green component is regarded as the high-frequency sub-band of the original Bell template red component, so the high-frequency sub-band of the Bell template red component does not need to be encoded and transmitted at the encoding end, only the Bell template needs to be encoded The low-frequency subband of the red component has only a quarter of the data of the red component of the original Bell template. Further, the low-frequency subband is subtracted from the low-frequency subband of the estimated rectangular green component to obtain the low-frequency sub-band color difference signal, which is effective Redundancy between red and green components is effectively removed, and the complexity of coding is reduced. Finally, LOCO-I technology is used for lossless or near-lossless (δ=1, δ=2) coding. Similarly, the blue component of the Bell template can be encoded.

在解码端,首先采用基于因果插值的LOCO-I解码器对绿色分量无损解码,获得原始的贝尔模板梅花状图像。应注意,正如LOCO-I编码器中一样,对于每个待解码的原始贝尔模板绿色像素,其解码器中的预测器和上下文模型也需要得到过去的红或蓝像素位置上缺失的绿色估计值,相应的估计方法仍然采用编码器中的因果插值法。在贝尔模板梅花状绿色分量图像基础上解码贝尔红色分量,采用与编码端相同的梯度插值法估计原始贝尔模板图像红像素位置的绿色像素值,并紧凑为绿色矩形图像,再进行与编码端一样的小波变换,得到一个绿色低频子带和三个绿色高频子带。在无损解码贝尔图像绿色分量的同时,红绿色差的低频子带也被解码,并与刚才得到的绿色低频子带相减获得红分量的低频子带,最后同已得到三个绿色高频子带合成并进行小波逆变换,便得到紧凑矩形的红色分量,显然与原始贝尔红色分量相比是失真的。同理可解码原始贝尔蓝色分量。最后,把解码后的矩形红蓝分量和梅花状绿色分量按照原始贝尔模板中位置恢复为贝尔图像即可,实验表明,解码后的贝尔模板图像与原始贝尔模板图像之间的峰值信噪比(PSNR)平均可达到42dB以上。At the decoding end, firstly, the LOCO-I decoder based on causal interpolation is used to decode the green component losslessly to obtain the original Bell template quincunx image. It should be noted that, just as in the LOCO-I encoder, for each original Bell template green pixel to be decoded, the predictor and context model in its decoder also need to obtain the missing green estimate at the past red or blue pixel position , the corresponding estimation method still adopts the causal interpolation method in the encoder. Decode the Bell red component on the basis of the Bell template quincunx-shaped green component image, use the same gradient interpolation method as the encoding end to estimate the green pixel value at the red pixel position of the original Bell template image, and compact it into a green rectangular image, and then proceed the same as the encoding end The wavelet transform of , get a green low-frequency sub-band and three green high-frequency sub-bands. While the green component of the Bell image is losslessly decoded, the low-frequency sub-band of the difference between red and green is also decoded, and subtracted from the green low-frequency sub-band obtained just now to obtain the low-frequency sub-band of the red component, and finally three green high-frequency sub-bands have been obtained Band synthesis and inverse wavelet transform result in a compact rectangular red component, which is obviously distorted compared with the original Bell red component. In the same way, the original Bell blue component can be decoded. Finally, the decoded rectangular red and blue components and quincunx-shaped green components can be restored to the Bell image according to the positions in the original Bell template. Experiments show that the peak signal-to-noise ratio between the decoded Bell template image and the original Bell template image ( PSNR) can reach above 42dB on average.

由于贝尔模板图像的绿色分量包含了原始彩色图像中主要的亮度信息,本发明对绿色分量进行无损压缩,对红蓝分量进行有损压缩,保证了本发明在所获得的压缩率下,与上述有损压缩方法相比,重构彩色图像质量更加接近基于无损编解码贝尔模板图像重构的彩色图像质量,且具有较低的复杂度。Since the green component of the Bell template image contains the main luminance information in the original color image, the present invention performs lossless compression on the green component and lossy compression on the red and blue components, which ensures that the present invention has the same compression rate as the above-mentioned Compared with the lossy compression method, the quality of the reconstructed color image is closer to the quality of the color image reconstructed based on the lossless codec Bell template image, and has a lower complexity.

图8给出了用PSNR评价编解码性能的流程。首先原始彩色图像被降采样得到原始贝尔模板图像,经编解码后得到的贝尔模板图像进行自适应滤波插值,得到重构的彩色图像,计算原始彩色图像与重构彩色图像之间的峰值信噪比(PSNR),具体计算公式如下Figure 8 shows the process of evaluating codec performance with PSNR. First, the original color image is down-sampled to obtain the original Bell template image, and the Bell template image obtained after encoding and decoding is adaptively filtered and interpolated to obtain a reconstructed color image, and the peak signal-to-noise between the original color image and the reconstructed color image is calculated Ratio (PSNR), the specific calculation formula is as follows

PSNRPSNR == 1010 lglg (( 255255 22 11 Hh ×× WW ΣΣ xx == 11 WW ΣΣ ythe y == 11 Hh (( II 11 (( xx ,, ythe y )) -- II 22 (( xx ,, ythe y )) )) 22 ))

其中,I1表示原始彩色图像数据,I2表示解码后插值重构的彩色图像数据,x,y表示像素点的坐标,H,W表示图像的有效高度和宽度。Among them, I 1 represents the original color image data, I 2 represents the color image data reconstructed by interpolation after decoding, x, y represent the coordinates of pixel points, H, W represent the effective height and width of the image.

所述的自适应滤波插值见文献“Dmitriy Paliy,Vladimir Katkovnik,RaduBilcu,Sakari Alenius,Karen Egiazarian,"Spatially Adaptive Color Filter ArrayInterpolation for Noiseless and Noisy Data",Wiley Periodicals,Inc.Vol.17,105-122(2007)”The adaptive filter interpolation described in the literature "Dmitriy Paliy, Vladimir Katkovnik, RaduBilcu, Sakari Alenius, Karen Egiazarian, "Spatially Adaptive Color Filter Array Interpolation for Noiseless and Noisy Data", Wiley Periodicals, Inc.Vol.17, 105-122 ( 2007)"

图9是从柯达标准图像集中选出的24幅彩色图像(24bit/像素),被广泛用于处理贝尔模板图像的各类算法的实验之中。按从左到右从上到下的排列顺序,对每张图编号,编号为1-24。Figure 9 is 24 color images (24bit/pixel) selected from the Kodak standard image set, which are widely used in experiments of various algorithms for processing Bell template images. Number each picture from 1-24 in order of arrangement from left to right and top to bottom.

本发明的技术效果如下:Technical effect of the present invention is as follows:

1)提供了一种基于小波变换的高效、低复杂度的贝尔模板图像数据压缩与解压方法。1) An efficient and low-complexity Bell template image data compression and decompression method based on wavelet transform is provided.

2)本发明算法结构简单,计算量小,完全采用整数运算,在各个编解码通道中可重用小波变换和LOCO-I编解码器,占用硬件资源少,易于硬件实现。2) The algorithm structure of the present invention is simple, the amount of calculation is small, and the integer operation is completely adopted, and the wavelet transform and the LOCO-I codec can be reused in each codec channel, which occupies less hardware resources and is easy to implement in hardware.

3)采用图8所示的流程来评价本发明效果。选用Kodak标准图片集中的24幅全彩图像(图9)作为实验数据。在给定比特率时,本发明与JPEG2000所产生的PSNR值列在表1中。实验结果表明,本发明在三种比特率下,针对几乎所有测试图像得到的PSNR值均高于JPEG2000对应值,而且更接近原始贝尔模板直接插值的结果,重构的彩色图像达到视觉无损效果。本发明的复杂度明显低于JPEG2000。3) Use the flow chart shown in Figure 8 to evaluate the effect of the present invention. 24 full-color images (Fig. 9) from the Kodak standard picture collection are selected as the experimental data. The PSNR values produced by the present invention and JPEG2000 are listed in Table 1 at a given bit rate. Experimental results show that under the three bit rates, the PSNR values obtained for almost all test images are higher than the corresponding values of JPEG2000, and are closer to the results of direct interpolation of the original Bell template, and the reconstructed color images achieve visually lossless effects. The complexity of the present invention is significantly lower than that of JPEG2000.

表1中,第二列表示采用自适应滤波插值法对原始贝尔模板图像直接插值重构后所获得彩色图像的PSNR值,第二列为本发明在三种码率下解码后插值重构得到彩色图像的PSNR值,第三列为JPEG2000在三种码率下解码后插值重构得到彩色图像的PSNR值。bpp表示压缩率,即平均每像素的比特数。其中2.73bbp为色差信号无损编码(δ=0)的压缩率,2.56bbp为有损编码方式(δ=1)的压缩率,2.49bbp为有损编码(δ=2)的压缩率。In Table 1, the second column represents the PSNR value of the color image obtained after direct interpolation and reconstruction of the original Bell template image using the adaptive filter interpolation method, and the second column is obtained by interpolation and reconstruction after decoding under three code rates in the present invention. The PSNR value of the color image, the third column is the PSNR value of the color image obtained by interpolation and reconstruction after JPEG2000 decoding at three bit rates. bpp represents the compression rate, that is, the average number of bits per pixel. Wherein 2.73bbp is the compression ratio of the color difference signal lossless coding (δ=0), 2.56bbp is the compression ratio of the lossy coding method (δ=1), and 2.49bbp is the compression ratio of the lossy coding (δ=2).

表1 本发明效果与JPEG2000的PSNR比较Table 1 The effect of the present invention is compared with the PSNR of JPEG2000

Figure A200810080232D00111
Figure A200810080232D00111

附图说明 Description of drawings

图1为编码过程的流程框图;Fig. 1 is the flowchart of encoding process;

图2为解码过程的流程框图;Fig. 2 is the flowchart of decoding process;

图3贝尔模板图像色分量分离图;Figure 3 Bell template image color component separation diagram;

图4绿色分量因果插值示意图;Figure 4 Schematic diagram of green component causal interpolation;

图5绿色分量梯度插值示意图;Figure 5 is a schematic diagram of green component gradient interpolation;

图6红色分量编码通道流程图;Fig. 6 flow chart of red component encoding channel;

图7红色分量解码通道流程图;Figure 7 is a flow chart of the red component decoding channel;

图8PSNR评价原理图;Figure 8 PSNR evaluation schematic;

图9柯达标准图像集;Figure 9 Kodak standard image set;

具体实施方式 Detailed ways

贝尔模板图像编码与解码方法,包括编码和解码过程,编码过程包括如下步骤:1、分离贝尔模板图像中红绿蓝分量,并把分离出的红色、蓝色分量变成紧凑矩形图像,绿分量保持为梅花状图像;2、无损压缩绿色分量数据,第一步:采用因果插值的方法估计除绿色梅花状图像的前两行、前两列外的每个当前待编码原始绿色像素左侧和上方像素位置缺失的绿色像素值,每个当前待编码原始绿色像素左侧像素位置的绿色像素估计值等于该像素位置左侧和上方的原始绿色像素值的平均值,每个当前待编码原始绿色像素上方像素位置的绿色像素估计值等于该像素位置的左侧和右侧的原始绿色像素值的平均值与该像素位置的上方的原始绿色像素值相加再除以2,其中编码进行到绿色梅花状图像每行末端时,当前待编码原始绿色像素上方像素位置的绿色像素估计值等于该像素位置的左侧和上方的原始绿色像素值的平均值;第二步:应用LOCO-I编码器对每个原始绿色像素编码;3、采用梯度插值法估计贝尔模板图像中原始红色、蓝色像素位置缺失的绿色像素值,并把原始红色、蓝色像素位置上估计的绿色像素分离出来,变成与步骤1中的红色、蓝色紧凑矩形图像对应的绿色紧凑矩形图像;4、对步骤1和步骤3中获得的红蓝紧凑矩形图像及其对应的绿色紧凑矩形图像分别进行小波变换;5、小波变换后,红蓝紧凑矩形图像低频子带与其对应的绿色紧凑矩形图像低频子带相减,得到红-绿低频子带色差和蓝-绿低频子带色差;6、应用LOCO-I编码器对红-绿低频子带色差和蓝-绿低频子带色差进行近无损或无损编码;7、把步骤2和步骤6获得的原始绿色分量编码后得到的码流和红蓝低频子带色差编码后得到的码流复合形成完整的贝尔模板图像压缩码流,而完成编码过程;解码过程包括如下步骤:1、从复合码流中取得贝尔模板图像绿色分量码流,应用LOCO-I解码器获得原始绿色像素值,并按照梅花状图像排列;在解码每个原始绿色像素前,需要采用因果插值法获得当前待编码原始绿色像素左侧及上方位置的绿色像素估计值,这与编码过程中的步骤2中的因果插值法是一样的;2、采用梯度插值法估计原始红色、蓝色像素位置缺失的绿色像素值,并把原始红色、蓝色像素位置上估计的绿色像素分离出来,分别变成与红蓝分量对应的绿色紧凑矩形图像,这与编码过程中的步骤3相同;3、对红蓝分量对应的绿色紧凑矩形图像进行小波变换,分别得到四个子带;4、从复合码流中取得红-绿、蓝-绿低频子带色差码流,应用LOCO-I解码器得到红-绿、蓝-绿低频子带色差信号;5、解码贝尔模板图像中的红、蓝分量数据,解码红分量数据的过程如下:第一步:将步骤4得到的红-绿低频子带色差信号与步骤3得到的对应绿色紧凑矩形图像的低频子带相减,得到红分量的低频子带,第二步:把步骤3得到对应红分量的绿色紧凑矩形图像的高频子带视为红分量的高频子带,第三步:至此已得到红分量的四个小波子带,经小波逆变换恢复出红色紧凑矩形图像;与解码红分量数据的过程一样,可同时解码蓝分量而恢复出蓝色紧凑矩形图像;6、在步骤1得到的原始梅花状绿色分量图像的基础上,按照编码前原始红蓝像素在贝尔模板图像中的位置,排列解码后的红蓝紧凑矩形图像中的每个像素,恢复成贝尔模板图像。本发明中的小波变换选择bior3.3小波变换,小波逆变换选择bior3.3小波逆变换,以进一步提高编码和解码的效率。Bell template image encoding and decoding method, including encoding and decoding process, the encoding process comprises the following steps: 1, separate the red, green and blue components in the Bell template image, and turn the separated red and blue components into a compact rectangular image, and the green component Keep it as a quincunx-shaped image; 2. Losslessly compress the green component data, the first step: use the method of causal interpolation to estimate the left side and For the missing green pixel value at the upper pixel position, the estimated value of the green pixel at the left pixel position of each current original green pixel to be encoded is equal to the average value of the original green pixel values at the left and upper of the pixel position, and each current original green pixel to be encoded The green pixel estimate for a pixel position above the pixel is equal to the average of the original green pixel values to the left and right of that pixel position added to the original green pixel value above that pixel position and divided by 2, where encoding proceeds to green At the end of each line of the quincunx image, the estimated value of the green pixel at the pixel position above the original green pixel to be encoded is equal to the average value of the original green pixel values to the left and above the pixel position; the second step: apply the LOCO-I encoder Encode each original green pixel; 3. Use the gradient interpolation method to estimate the missing green pixel values at the original red and blue pixel positions in the Bell template image, and separate the green pixels estimated at the original red and blue pixel positions to become Become a green compact rectangular image corresponding to the red and blue compact rectangular images in step 1; 4, carry out wavelet transform respectively to the red and blue compact rectangular images and their corresponding green compact rectangular images obtained in steps 1 and 3; 5 1. After wavelet transform, the red-blue compact rectangular image low-frequency subband is subtracted from its corresponding green compact rectangular image low-frequency sub-band to obtain red-green low-frequency sub-band color difference and blue-green low-frequency sub-band color difference; 6. Apply LOCO-I encoding The red-green low-frequency sub-band color difference and the blue-green low-frequency sub-band color difference are nearly lossless or lossless encoded; 7. The code stream and the red-blue low-frequency sub-band color difference obtained after encoding the original green component obtained in steps 2 and 6 The code stream obtained after encoding forms a complete Bell template image compression code stream, and completes the encoding process; the decoding process includes the following steps: 1. Obtain the Bell template image green component code stream from the composite code stream, and apply the LOCO-I decoder Obtain the original green pixel value and arrange it according to the quincunx image; before decoding each original green pixel, it is necessary to use the causal interpolation method to obtain the estimated value of the green pixel at the left and upper positions of the original green pixel to be encoded, which is the same as that in the encoding process The causal interpolation method in step 2 is the same; 2. Use the gradient interpolation method to estimate the missing green pixel values at the original red and blue pixel positions, and separate the estimated green pixels at the original red and blue pixel positions, respectively Become a green compact rectangular image corresponding to the red and blue components, which is the same as step 3 in the encoding process; 3. Carry out wavelet transformation to the green compact rectangular image corresponding to the red and blue components to obtain four subbands respectively; 4. From the composite code Obtain the red-green, blue-green low-frequency sub-band color difference code stream in the stream, and apply LO The CO-I decoder obtains red-green, blue-green low-frequency sub-band color difference signals; 5, decodes the red and blue component data in the Bell template image, and the process of decoding the red component data is as follows: the first step: the obtained in step 4 The red-green low-frequency sub-band color difference signal is subtracted from the low-frequency sub-band corresponding to the green compact rectangular image obtained in step 3 to obtain the low-frequency sub-band of the red component. The second step: the green compact rectangular image corresponding to the red component obtained in step 3 The high-frequency sub-band is regarded as the high-frequency sub-band of the red component, the third step: the four wavelet sub-bands of the red component have been obtained so far, and the red compact rectangular image is restored by wavelet inverse transformation; the same as the process of decoding the red component data, The blue component can be decoded at the same time to restore the blue compact rectangular image; 6. On the basis of the original quincunx-shaped green component image obtained in step 1, arrange the decoded image according to the position of the original red and blue pixels in the Bell template image before encoding Each pixel in the red-blue compact rectangular image is restored to a Bell template image. The wavelet transform in the present invention selects bior3.3 wavelet transform, and the wavelet inverse transform selects bior3.3 wavelet inverse transform to further improve the efficiency of encoding and decoding.

结合附图对本发明作进一步描述:The present invention will be further described in conjunction with accompanying drawing:

图1是本发明编码过程的流程框图。先对贝尔模板图像进行色分量分离,绿色分量保持梅花状,红色和蓝色分量变成紧凑矩形图像。编码分为三个通道,每个通道都采用低复杂度的LOCO-I编码器进行编码,整体上降低了编码器的算法复杂度。由于绿色分量包含了贝尔模板图像亮度的主要信息,还要为红蓝分量编码通道提供信息,因此绿色分量进行无损压缩。在绿色编码通道中,因果插值模块的作用是保证在编码某个绿色像素值之前估计其相应上下文中缺失的绿色像素值,开关K1表示只输出对应梅花状图像中原始绿色像素的码字,而不输出被因果插值估计的绿色像素的码字。在红色分量编码通道中,基于绿色梅花状图像进行梯度插值来估计红分量像素位置的绿色像素值,然后对红分量紧凑图像及其同像素位置的绿色紧凑图像分别进行一层小波分解,所采用小波为bior3.3,二者的低频子带对应系数相减得到红-绿低频子带色差信号,最后应用LOCO-I编码器进行无损或近无损编码。同理可编码蓝色通道。开关K2表示红蓝编码通道可依次复用LOCO-I编码器。最终把三个通道的码流复合为完整的贝尔模板图像码流。Fig. 1 is a flowchart of the encoding process of the present invention. First, the color components of the Bell template image are separated, the green component remains in the shape of a quincunx, and the red and blue components become a compact rectangular image. The encoding is divided into three channels, and each channel is encoded by a low-complexity LOCO-I encoder, which reduces the algorithmic complexity of the encoder as a whole. Since the green component contains the main information of the brightness of the Bell template image, and also provides information for the coding channel of the red and blue components, the green component is losslessly compressed. In the green encoding channel, the function of the causal interpolation module is to ensure that the missing green pixel value in the corresponding context is estimated before encoding a certain green pixel value. The switch K1 indicates that only the codeword corresponding to the original green pixel in the quincunx-shaped image is output, and Codewords for green pixels estimated by causal interpolation are not output. In the red component encoding channel, gradient interpolation is performed based on the green quincunx image to estimate the green pixel value of the red component pixel position, and then a layer of wavelet decomposition is performed on the red component compact image and the green compact image at the same pixel position respectively. The wavelet is bior3.3, and the corresponding coefficients of the two low-frequency sub-bands are subtracted to obtain the red-green low-frequency sub-band color difference signal, and finally the LOCO-I encoder is used for lossless or near-lossless encoding. The blue channel can be encoded in the same way. Switch K2 indicates that the red and blue encoding channels can be multiplexed with the LOCO-I encoder in sequence. Finally, the code streams of the three channels are combined into a complete Bell template image code stream.

图2是本发明解码过程的流程框图。对应编码器,解码器也分为三个通道,分别解码红绿蓝分量,红蓝解码通道可并行工作。首先从编码流中分离出各分量的码流,然后应用LOCO-I解码器和因果插值模块得到原始的绿色像素,并把这些像素排列为如编码端的梅花状图像。接着应用如编码端的梯度插值法估计原始红蓝像素位置的绿色像素值,形成各自对应的绿色紧凑矩形图像,分别进行一层小波分解得到各自的四个小波子带。在红通道解码时,首先应用LOCO-I解码器得到红-绿低频子带色差信号,再与其对应的绿色矩形图像的低频子带相减获得红分量低频子带,该低频子带与红分量对应的绿色矩形图像的高频子带合成四个子带并进行小波逆变换,便得到原始红分量的解码值。同理可进行蓝通道解码。开关K2表示红蓝编码通道可依次复用LOCO-I解码器。最后,将各通道解码的像素按照原始贝尔模板图像位置重新组合,恢复成贝尔模板图像。Fig. 2 is a flowchart of the decoding process of the present invention. Corresponding to the encoder, the decoder is also divided into three channels, which decode the red, green and blue components respectively, and the red and blue decoding channels can work in parallel. First, the code stream of each component is separated from the code stream, and then the LOCO-I decoder and the causal interpolation module are applied to obtain the original green pixels, and these pixels are arranged into a quincunx-shaped image at the code end. Then apply the gradient interpolation method at the encoding end to estimate the green pixel value of the original red and blue pixel positions to form their corresponding green compact rectangular images, and perform a layer of wavelet decomposition to obtain their respective four wavelet subbands. When decoding the red channel, first apply the LOCO-I decoder to obtain the red-green low-frequency sub-band color difference signal, and then subtract it from the low-frequency sub-band of the corresponding green rectangular image to obtain the red component low-frequency sub-band, the low-frequency sub-band and the red component The high-frequency sub-bands of the corresponding green rectangular image are synthesized into four sub-bands and subjected to wavelet inverse transformation to obtain the decoded value of the original red component. In the same way, blue channel decoding can be performed. Switch K2 indicates that the red and blue coding channels can be multiplexed with the LOCO-I decoder in turn. Finally, the decoded pixels of each channel are recombined according to the position of the original Bell template image, and the Bell template image is restored.

图3是对贝尔模板图像色分量进行分离的示意图。分离后,绿色分量保持梅花状图像,红色、蓝色分量变成紧凑矩形图像。Fig. 3 is a schematic diagram of separating color components of a Bell template image. After separation, the green component remains a quincunx image, and the red and blue components become compact rectangular images.

图4为因果插值示意图。基于图3中分离得到的绿色梅花状图像,设待编码像素为G34,LOCO-I编码器需要知道G34左侧和上方缺失的绿色像素值,分别以GL,GU表示,估计方法如下Figure 4 is a schematic diagram of causal interpolation. Based on the green quincunx-shaped image separated in Figure 3, assuming that the pixel to be encoded is G 34 , the LOCO-I encoder needs to know the missing green pixel values on the left and upper sides of G 34 , which are denoted by G L and G U respectively. The estimation method as follows

Figure A200810080232D00151
Figure A200810080232D00151

Figure A200810080232D00152
Figure A200810080232D00152

此外,如果待编码像素到达图像行的末端,设待编码像素为G36,GL的估计方法不变,GU的估计方法变为:In addition, if the pixel to be encoded reaches the end of the image line, let the pixel to be encoded be G 36 , the estimation method of GL remains unchanged, and the estimation method of G U becomes:

Figure A200810080232D00153
Figure A200810080232D00153

显然,该方法仅采用待编码像素过去的真实像素来插值估计缺失的绿色像素值,满足LOCO-I编码器的光栅顺序编码要求,有效地降低了绿色通道编码复杂度。Obviously, this method only uses the past real pixels of the pixel to be encoded to interpolate and estimate the missing green pixel value, which meets the raster order encoding requirements of the LOCO-I encoder and effectively reduces the encoding complexity of the green channel.

图5是绿色分量梯度插值示意图。基于图3中分离得到的绿色梅花状图像,估计红蓝分量矩形图像对应的绿色矩形图像的值,以估计R33像素位置缺失的绿色像素

Figure A200810080232D00161
为例,方法如下Fig. 5 is a schematic diagram of the gradient interpolation of the green component. Based on the green quincunx image separated in Figure 3, estimate the value of the green rectangular image corresponding to the red and blue component rectangular image to estimate the missing green pixel at the R 33 pixel position
Figure A200810080232D00161
For example, the method is as follows

GG ^^ 3333 == roundround (( ▿▿ Hh ·· GG VV ++ ▿▿ VV ·· GG Hh ▿▿ Hh ++ ▿▿ VV ))

其中:in:

G H = 1 2 ( G 32 + G 34 ) ,   G V = 1 2 ( G 23 + G 43 ) G h = 1 2 ( G 32 + G 34 ) , G V = 1 2 ( G twenty three + G 43 )

▿ H = | G 32 - G 34 | ,   ▿ V = | G 23 - G 43 | ▿ h = | G 32 - G 34 | , ▿ V = | G twenty three - G 43 |

同理可估计其它位置缺失的绿色像素值。最后把估计的绿色像素排列为对应图3中红蓝分量矩形图像的绿色矩形图像。In the same way, the green pixel values missing in other positions can be estimated. Finally, the estimated green pixels are arranged into a green rectangular image corresponding to the red and blue component rectangular image in Fig. 3 .

图6为红分量编码通道的流程图。红分量矩形图像及其对应的绿色矩形图像通过bior3.3小波一层分解后获得各自低频子带,分别表示为

Figure A200810080232D00167
和RLL,令
Figure A200810080232D00168
和RLL子带中对应系数相减,得到红-绿低频子带色差信号
Figure A200810080232D00169
,并输入LOCO-I编码器,可以选择无损编码(δ=0)或有损编码方式(δ=1,δ=2)。蓝分量编码通道工作原理与此相同。FIG. 6 is a flow chart of the red component encoding channel. The red component rectangular image and its corresponding green rectangular image are decomposed by one layer of bior3.3 wavelet to obtain their respective low-frequency subbands, which are expressed as
Figure A200810080232D00167
and R LL , let
Figure A200810080232D00168
Subtract the corresponding coefficients in the R LL sub-band to obtain the red-green low-frequency sub-band color difference signal
Figure A200810080232D00169
, and input to the LOCO-I encoder, lossless coding (δ=0) or lossy coding (δ=1, δ=2) can be selected. The blue component encoding pass works the same way.

图7为红色分量解码通道的流程图。LOCO-I解码器输出红-绿低频子带色差信号

Figure A200810080232D001610
,同时原始红分量图像对应的绿色矩形图像通过bior3.3小波一层分解后获得四个子带
Figure A200810080232D001611
Figure A200810080232D001613
,则得到红分量低频子带RLL,进一步与
Figure A200810080232D001614
合成四个小波子带并通过bior3.3小波逆变换,即可得到解码的红分量矩形图像。蓝分量解码通道工作原理与此相同。FIG. 7 is a flow chart of the red component decoding channel. LOCO-I decoder outputs red-green low frequency sub-band color difference signal
Figure A200810080232D001610
At the same time, the green rectangular image corresponding to the original red component image is decomposed by one layer of bior3.3 wavelet to obtain four subbands
Figure A200810080232D001611
and make
Figure A200810080232D001613
, then the red component low-frequency sub-band R LL is obtained, further combined with
Figure A200810080232D001614
By synthesizing four wavelet subbands and inverse bior3.3 wavelet transformation, the decoded red component rectangular image can be obtained. The blue component decoding pass works the same way.

Claims (2)

1, a kind of Bell formwork image encoding and decoding method, comprise the Code And Decode process, it is characterized by: cataloged procedure comprises the steps: 1, separates RGB component in the Bell formwork image, and isolated redness, blue component become compact rectangular image, green component remains plum blossom shape image; 2, the lossless compress green component data, the first step: adopt the method for cause and effect interpolation to estimate to go except that preceding two of green plum blossom shape image, each the current original green pixel to be encoded left side that preceding two row are outer and the green pixel values of top location of pixels disappearance, the green pixel estimated value of each current original green pixel left pixel to be encoded position equals the mean value of the original green pixel values of this location of pixels left side and top, the green pixel estimated value of each current original green pixel to be encoded top location of pixels equals the original green pixel values addition of top of the mean value of original green pixel values on the left side of this location of pixels and right side and this location of pixels again divided by 2, wherein coding proceeds to the every row of green plum blossom shape image when terminal, and the green pixel estimated value of current original green pixel to be encoded top location of pixels equals the mean value of the original green pixel values of the left side of this location of pixels and top; Second step: use the LOCO-I encoder to each original green pixel coding; 3, adopt the gradient interpolation method to estimate the green pixel values of original redness, blue pixel topagnosis in the Bell formwork image, and the green pixel of estimating on original redness, the blue pixel position separated, become with step 1 in redness, the green compact rectangular image that blue compact rectangular image is corresponding; 4, compact rectangular image of red indigo plant and the corresponding green compact rectangular image thereof that obtains in step 1 and the step 3 carried out wavelet transformation respectively; 5, behind the wavelet transformation, the green compact rectangular image low frequency sub-band that the compact rectangular image low frequency sub-band of red indigo plant is corresponding with it subtracts each other, and obtains red-green low frequency sub-band aberration and indigo plant-green low frequency sub-band aberration; 6, use the LOCO-I encoder red-green low frequency sub-band aberration and indigo plant-green low frequency sub-band aberration are carried out closely harmless or lossless coding; 7, the bit stream complex that obtains behind code stream that obtains behind the original green component coding of step 2 and step 6 acquisition and the red blue low frequency sub-band aberration coding is formed complete Bell formwork image compressed bit stream, and finish cataloged procedure;
Decode procedure comprises the steps: 1, obtains Bell formwork image green component code stream from composite bit stream, uses the LOCO-I decoder and obtains original green pixel values, and arrange according to plum blossom shape image; 2, adopt the gradient interpolation method to estimate the green pixel values of original redness, blue pixel topagnosis, and the green pixel of estimating on original redness, the blue pixel position is separated, become the green compact rectangular image corresponding respectively with red blue component; 3, the green compact rectangular image to red blue component correspondence carries out wavelet transformation, obtains four subbands respectively; 4, from composite bit stream, obtain red-green, indigo plant-green low frequency sub-band aberration code stream, use the LOCO-I decoder and obtain red-green, indigo plant-green low frequency sub-band color difference signal; 5, red, the blue component data in the decoding Bell formwork image, the process of red component data of decoding is as follows: the first step: red-green low frequency sub-band color difference signal that step 4 is obtained subtracts each other with the low frequency sub-band of the corresponding green compact rectangular image that step 3 obtains, obtain the low frequency sub-band of red component, second step: the high-frequency sub-band that step 3 is obtained the green compact rectangular image of corresponding red component is considered as the high-frequency sub-band of red component, the 3rd step: so far obtained four wavelet sub-bands of red component, recovered red compact rectangular image through wavelet inverse transformation; The same with the process of the red component data of decoding, can decode blue component simultaneously and recover blue compact rectangular image; 6, on the basis of the original plum blossom shape green component image that step 1 obtains, according to the position of original red blue pixel in Bell formwork image before the coding, each pixel in the compact rectangular image of red indigo plant behind the permutation decoding reverts to Bell formwork image.
2, Bell formwork image encoding and decoding method as claimed in claim 1 is characterized by: wavelet transformation is selected the bior3.3 wavelet transformation, and wavelet inverse transformation is selected the bior3.3 wavelet inverse transformation.
CN 200810080232 2008-12-19 2008-12-19 Method for encoding and decoding Bell formwork image Expired - Fee Related CN101442673B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810080232 CN101442673B (en) 2008-12-19 2008-12-19 Method for encoding and decoding Bell formwork image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810080232 CN101442673B (en) 2008-12-19 2008-12-19 Method for encoding and decoding Bell formwork image

Publications (2)

Publication Number Publication Date
CN101442673A true CN101442673A (en) 2009-05-27
CN101442673B CN101442673B (en) 2010-08-11

Family

ID=40726891

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810080232 Expired - Fee Related CN101442673B (en) 2008-12-19 2008-12-19 Method for encoding and decoding Bell formwork image

Country Status (1)

Country Link
CN (1) CN101442673B (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841720A (en) * 2010-05-25 2010-09-22 东南大学 Stereo video coding method based on modified view lifting schemes
CN102104783A (en) * 2009-12-18 2011-06-22 索尼公司 Image processing apparatus, image processing method, and image capturing apparatus
CN102665030A (en) * 2012-05-14 2012-09-12 浙江大学 Improved bilinear Bayer format color interpolation method
CN102687509A (en) * 2009-10-27 2012-09-19 英特尔公司 Scalable compression using JPEG-LS
CN103369325A (en) * 2013-06-17 2013-10-23 中国人民解放军总参谋部第六十一研究所 Compression and transmission method of video with low complexity for wireless video sensing network
CN103856767A (en) * 2012-11-30 2014-06-11 三星泰科威株式会社 Method and apparatus for processing image
CN104751794A (en) * 2013-12-31 2015-07-01 乐金显示有限公司 Organic light emitting display device and driving method thereof
CN105306941A (en) * 2015-11-12 2016-02-03 贺新 Video coding method
CN105578160A (en) * 2015-12-23 2016-05-11 天津天地伟业数码科技有限公司 Fine definition demosaicking interpolation method based on FPGA platform
WO2016131370A1 (en) * 2015-08-12 2016-08-25 中兴通讯股份有限公司 Wavelet denoising method and device
CN108495134A (en) * 2018-03-26 2018-09-04 西安电子科技大学 Bayer image compression method based on JPEG2000 standards
CN110636308A (en) * 2019-09-21 2019-12-31 苏州维赛智芯体育科技有限公司 Linear array image data compression mode based on improved run length coding
CN111263128A (en) * 2018-11-30 2020-06-09 展讯通信(上海)有限公司 Image interpolation method and device, storage medium and terminal
CN112200825A (en) * 2020-10-14 2021-01-08 长光卫星技术有限公司 Space target luminosity inversion method based on Bell coding image
CN114902276A (en) * 2019-10-30 2022-08-12 英托皮克斯公司 Image processor
CN115022646A (en) * 2021-06-23 2022-09-06 黑芝麻智能科技有限公司 Image compression method, image decompression method and electronic equipment
CN118044202A (en) * 2021-08-26 2024-05-14 影图辟开思公司 Method and apparatus for performing compression on color image

Cited By (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102687509B (en) * 2009-10-27 2016-08-03 英特尔公司 Use the scalable compression of JPEG-LS
CN102687509A (en) * 2009-10-27 2012-09-19 英特尔公司 Scalable compression using JPEG-LS
CN102104783A (en) * 2009-12-18 2011-06-22 索尼公司 Image processing apparatus, image processing method, and image capturing apparatus
CN102104783B (en) * 2009-12-18 2014-11-19 索尼公司 Image processing apparatus, image processing method, and image capturing apparatus
US8948503B2 (en) 2009-12-18 2015-02-03 Sony Corporation Image processing device, image processing method, and image pickup device
US9565406B2 (en) 2009-12-18 2017-02-07 Sony Corporation Image processing device, image processing method, and image pickup device
CN101841720B (en) * 2010-05-25 2011-08-10 东南大学 Stereo video coding method based on modified view lifting schemes
CN101841720A (en) * 2010-05-25 2010-09-22 东南大学 Stereo video coding method based on modified view lifting schemes
CN102665030A (en) * 2012-05-14 2012-09-12 浙江大学 Improved bilinear Bayer format color interpolation method
CN102665030B (en) * 2012-05-14 2014-11-12 浙江大学 Improved bilinear Bayer format color interpolation method
CN103856767B (en) * 2012-11-30 2017-05-03 韩华泰科株式会社 Method and apparatus for processing image
CN103856767A (en) * 2012-11-30 2014-06-11 三星泰科威株式会社 Method and apparatus for processing image
CN103369325B (en) * 2013-06-17 2016-08-10 中国人民解放军总参谋部第六十一研究所 A kind of low complex degree video compress transmission method being applicable to wireless video Sensor Network
CN103369325A (en) * 2013-06-17 2013-10-23 中国人民解放军总参谋部第六十一研究所 Compression and transmission method of video with low complexity for wireless video sensing network
CN104751794A (en) * 2013-12-31 2015-07-01 乐金显示有限公司 Organic light emitting display device and driving method thereof
US9966035B2 (en) 2013-12-31 2018-05-08 Lg Display Co., Ltd. Organic light emitting display device and driving method thereof
WO2016131370A1 (en) * 2015-08-12 2016-08-25 中兴通讯股份有限公司 Wavelet denoising method and device
CN105306941A (en) * 2015-11-12 2016-02-03 贺新 Video coding method
CN105306941B (en) * 2015-11-12 2019-05-24 成都图影视讯科技有限公司 A kind of method for video coding
CN105578160A (en) * 2015-12-23 2016-05-11 天津天地伟业数码科技有限公司 Fine definition demosaicking interpolation method based on FPGA platform
CN108495134A (en) * 2018-03-26 2018-09-04 西安电子科技大学 Bayer image compression method based on JPEG2000 standards
CN111263128B (en) * 2018-11-30 2021-06-25 展讯通信(上海)有限公司 Image interpolation method and device, storage medium and terminal
CN111263128A (en) * 2018-11-30 2020-06-09 展讯通信(上海)有限公司 Image interpolation method and device, storage medium and terminal
CN110636308A (en) * 2019-09-21 2019-12-31 苏州维赛智芯体育科技有限公司 Linear array image data compression mode based on improved run length coding
CN110636308B (en) * 2019-09-21 2022-05-10 苏州维赛智芯体育科技有限公司 Linear array image data compression method based on improved run length coding
CN114902276A (en) * 2019-10-30 2022-08-12 英托皮克斯公司 Image processor
CN112200825A (en) * 2020-10-14 2021-01-08 长光卫星技术有限公司 Space target luminosity inversion method based on Bell coding image
CN112200825B (en) * 2020-10-14 2022-06-14 长光卫星技术股份有限公司 Space target luminosity inversion method based on Bell coding image
CN115022646A (en) * 2021-06-23 2022-09-06 黑芝麻智能科技有限公司 Image compression method, image decompression method and electronic equipment
CN118044202A (en) * 2021-08-26 2024-05-14 影图辟开思公司 Method and apparatus for performing compression on color image
CN118044202B (en) * 2021-08-26 2024-12-27 影图辟开思公司 Method and apparatus for performing compression on color image

Also Published As

Publication number Publication date
CN101442673B (en) 2010-08-11

Similar Documents

Publication Publication Date Title
CN101442673A (en) Method for encoding and decoding Bell formwork image
CN107018422B (en) Still image compression method based on depth convolutional neural networks
KR100880039B1 (en) Method and system for achieving coding gain in wavelet based image codec
CN101938656B (en) Video coding and decoding system based on keyframe super-resolution reconstruction
JP6141295B2 (en) Perceptually lossless and perceptually enhanced image compression system and method
CN103607591A (en) Image compression method combining super-resolution reconstruction
CN104427349B (en) A kind of Bayer method for compressing image
US7792370B2 (en) Residual color transform for 4:2:0 RGB format
Gharavi et al. Application of quadrature mirror filtering to the coding of monochrome and color images
CN104144279B (en) Method and apparatus for processing image/video data
JP5243701B2 (en) Method for hierarchical encoding of video source image and method for decoding video source image from subband information
CN102333223A (en) Video data coding method, decoding method, coding system and decoding system
Richter et al. Bayer pattern compression with JPEG XS
Lee et al. Lossless compression of CFA sampled image using decorrelated Mallat wavelet packet decomposition
CN106534870A (en) Rate-distortion optimization coding method based on RGB source video
CN106559668B (en) A kind of low code rate image compression method based on intelligent quantization technology
Daho et al. A JPEG-like algorithm for compression of single-sensor camera image
JP2891246B2 (en) Digital camera
TWI392373B (en) The Method of Reverse Conversion and Sub - sampling of Low Computational Complexity
GB2455979A (en) Video processing using quincunx sub-sampling
Bazhyna et al. A lossy compression algorithm for bayer pattern color filter array data
KR20020035726A (en) Image compression and expansion method based on jpeg using wavelet transform
Mai et al. A wavelet-based intra-prediction lossless image compression scheme
Ilgin et al. Image and Video Compression Artifact Reduction at Low Bit Rates Using Local Cosine Transform in Conjunction with Significance Map Coding
Hlaing Implementation of Wavelet-based Video Codec

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: 20100811

Termination date: 20141219

EXPY Termination of patent right or utility model