CN1610377A - Method for color space transformation for compressing 16-bit color images - Google Patents

Method for color space transformation for compressing 16-bit color images Download PDF

Info

Publication number
CN1610377A
CN1610377A CN 200410084350 CN200410084350A CN1610377A CN 1610377 A CN1610377 A CN 1610377A CN 200410084350 CN200410084350 CN 200410084350 CN 200410084350 A CN200410084350 A CN 200410084350A CN 1610377 A CN1610377 A CN 1610377A
Authority
CN
China
Prior art keywords
formula
space
series
rycrcb
color space
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 200410084350
Other languages
Chinese (zh)
Other versions
CN1301003C (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.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
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 Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CNB2004100843507A priority Critical patent/CN1301003C/en
Publication of CN1610377A publication Critical patent/CN1610377A/en
Application granted granted Critical
Publication of CN1301003C publication Critical patent/CN1301003C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

本发明公开了一种用于压缩16位彩色图像的颜色空间变换的方法。在传统的图像或视频压缩技术基础上,例如JPEG系列、MPEG系列、H.26X系列,编码端增加24位RGB格式到16位RGB格式的转化,并采用该颜色空间变换方法,可以去除输入端多余的信息并简化解码端的操作步骤,从而可以降低解码复杂度,提高视频压缩质量。The invention discloses a color space conversion method for compressing 16-bit color images. On the basis of traditional image or video compression technologies, such as JPEG series, MPEG series, and H.26X series, the conversion of 24-bit RGB format to 16-bit RGB format is added at the encoding end, and the color space conversion method can be used to remove the input redundant information and simplify the operation steps of the decoding end, thereby reducing the decoding complexity and improving the video compression quality.

Description

用于压缩16位彩色图像的颜色空间变换的方法Method for color space transformation for compressing 16-bit color images

技术领域technical field

本发明涉及便携移动设备相关的多媒体技术领域,特别是涉及一种用于压缩16位彩色图像的颜色空间变换的方法。The invention relates to the field of multimedia technologies related to portable mobile devices, in particular to a color space conversion method for compressing 16-bit color images.

背景技术Background technique

随着便携移动设备的普及,例如个人数字助手(PDA),手机等,基于便携移动设备的多媒体应用大量涌现。便携移动设备存在计算能力弱、电池寿命短、液晶显示板为16位彩色等问题;而多媒体中,视频解码的计算复杂度相对较高,因此传统的视频编码方式用于便携移动设备,无法满足用户对多媒体尤其是视频技术相关应用的需求。针对便携设备固有特点,对通用视频编解码技术进行改造,可以提高视频解码的处理速度和视频压缩算法的性能。With the popularization of portable mobile devices, such as personal digital assistants (PDAs), mobile phones, etc., a large number of multimedia applications based on portable mobile devices have emerged. Portable mobile devices have problems such as weak computing power, short battery life, and 16-bit color LCD panels; and in multimedia, the computational complexity of video decoding is relatively high, so traditional video encoding methods for portable mobile devices cannot meet the requirements. Users' requirements for multimedia, especially video technology-related applications. According to the inherent characteristics of portable devices, the transformation of general video codec technology can improve the processing speed of video decoding and the performance of video compression algorithm.

所谓用于压缩图像的颜色空间变换,是指对输入的数字图像进行线性变换,映射到对应压缩算法所定义的颜色空间。该颜色空间适用于数字图像及视频的压缩。这里的数字图像,包括通常的数字图像和数字视频序列中的帧。The so-called color space transformation for compressing images refers to performing linear transformation on the input digital image and mapping it to the color space defined by the corresponding compression algorithm. This color space is suitable for the compression of digital images and videos. The digital images here include the usual digital images and frames in digital video sequences.

数字图像及视频编码技术普遍采用YCrCb作为用于压缩的颜色空间。当输入为RGB图像时,该颜色空间将RGB颜色信息分成一个亮度分量Y和两个色度分量CrCb。由于人眼对亮度的敏感程度远大于色度,因此在压缩过程对亮度进行1∶1采样,而对色度进行小于等于1∶1的采样,从而实现一定程度的压缩。目前,传统压缩技术将24位RGB图像变换为YCrCb格式。Digital image and video coding technologies generally use YCrCb as the color space for compression. When the input is an RGB image, the color space divides the RGB color information into a luminance component Y and two chrominance components CrCb. Since the human eye is much more sensitive to luminance than chroma, the luminance is sampled 1:1 during the compression process, while the chroma is sampled less than or equal to 1:1, so as to achieve a certain degree of compression. Currently, traditional compression techniques transform 24-bit RGB images into YCrCb format.

如前所述,便携移动设备的液晶显示板不支持24位RGB格式的图像,而是支持16位RGB格式图像,包括RGB565和RGB555两种具体格式。采用传统的压缩技术,显示端必须将解码后的图像由YCrCb先转换到24位RGB格式,然后再变成可以显示的16位RGB格式。这样的方法必然会增加运算量,同时RGB24格式比RGB16格式包含了更多的颜色信息,而这些信息在只支持RGB16格式的显示设备上是多余的。As mentioned above, the liquid crystal display panel of the portable mobile device does not support images in 24-bit RGB format, but supports images in 16-bit RGB format, including two specific formats of RGB565 and RGB555. Using traditional compression technology, the display terminal must first convert the decoded image from YCrCb to 24-bit RGB format, and then into a displayable 16-bit RGB format. Such a method will inevitably increase the amount of calculation, and the RGB24 format contains more color information than the RGB16 format, and this information is redundant on display devices that only support the RGB16 format.

如果能针对RGB16颜色空间的特点,定义一个从RGB16到YCrCb的颜色空间映射,则可以提高压缩效率,并降低解码复杂度。If a color space mapping from RGB16 to YCrCb can be defined according to the characteristics of the RGB16 color space, the compression efficiency can be improved and the decoding complexity can be reduced.

发明内容Contents of the invention

本发明的目的在于提供一种用于压缩16位彩色图像的颜色空间变换的方法。The object of the present invention is to provide a color space conversion method for compressing 16-bit color images.

本发明解决其技术问题采用的技术方案如下:The technical scheme that the present invention solves its technical problem adopts is as follows:

1)编码时,将16位RGB格式的彩色图像按照公式(1)变换到新的颜色空间,命名为rYCrCb,该颜色空间的性质同YcrCb一样,RGB颜色信息分成一个亮度分量Yr和两个色度分量Crr、Cbr,可以用于压缩;后续的压缩过程,包括采样、DCT变换、量化、游程编码、变长编码,可在所得变换结果上,根据现有的图像或者视频压缩标准,包括JPEG系列、MPEG系列、H.26X系列,采用其编码算法步骤,进行即可;1) When encoding, the color image in 16-bit RGB format is transformed into a new color space according to formula (1), named rYCrCb, the nature of this color space is the same as that of YcrCb, RGB color information is divided into a brightness component Y r and two The chrominance components Cr r and Cb r can be used for compression; the subsequent compression process, including sampling, DCT transformation, quantization, run-length coding, and variable length coding, can be based on existing image or video compression standards on the obtained transformation results , including JPEG series, MPEG series, and H.26X series, use the encoding algorithm steps to proceed;

Yr=R+G+BY r =R+G+B

Cbr=4B-Yr=-R-G+3B    (1)Cb r =4B-Y r =-R-G+3B (1)

Crr=4R-Yr=3R-G-BCr r =4R-Y r =3R-GB

其中:R,G,B分别代表16位RGB图像中象素点的R,G,B三个分量的数值,Yr代表rYCrCb空间中亮度分量,Cbr、Crr分别代表rYCrCb空间中两个色度分量;下面的公式(2)是公式(1)的矩阵形式表达;Among them: R, G, B respectively represent the value of R, G, B three components of the pixel in the 16-bit RGB image, Y r represents the brightness component in the rYCrCb space, Cb r and Cr r represent the two values in the rYCrCb space Chromaticity component; The following formula (2) is the matrix form expression of formula (1);

YY rr CbCb rr CrCr rr == 11 11 11 -- 11 -- 11 33 33 -- 11 -- 11 ·&Center Dot; RR GG BB -- -- -- (( 22 ))

其中:符号与公式(1)的相同;Where: the symbols are the same as those of formula (1);

2)解码时,根据现有的图像或者视频压缩标准,包括JPEG系列、MPEG系列、H.26X系列,采用其编码算法步骤得到rYCrCb空间上的数据,根据公式(3)的反变换方法得到16位RGB格式的数据,直接输出到便携设备显示;2) During decoding, according to existing image or video compression standards, including JPEG series, MPEG series, and H.26X series, the data on the rYCrCb space is obtained by using its encoding algorithm steps, and 16 is obtained according to the inverse transformation method of formula (3). Bit RGB format data, directly output to portable devices for display;

G=(2Yr-Cbr-Crr)//4G=(2Y r -Cb r -Cr r )//4

R=(Yr+Crr)//4         (3)R=(Y r +Cr r )//4 (3)

B=(Yr+Cbr)//4B=(Y r +Cb r )//4

其中:字母符号与公式(1)相同,“//”表示四舍五入。Among them: the letter symbols are the same as formula (1), and "//" means rounding.

本发明与背景技术相比,具有的有益的效果是:Compared with the background technology, the present invention has the beneficial effects that:

本发明是一种全新的颜色空间变换的方法。它适用于16位RGB彩色图像或者视频的压缩。在传统的图像或视频压缩技术基础上,例如JPEG系列、MPEG系列、H.26X系列,编码端增加24位RGB格式到16位RGB格式的转化,并采用该颜色空间变换方法,可以去除输入端多余的信息并简化解码端的操作步骤,从而可以降低解码复杂度,提高视频压缩质量。The invention is a brand-new method for color space transformation. It is suitable for compression of 16-bit RGB color images or videos. On the basis of traditional image or video compression technologies, such as JPEG series, MPEG series, and H.26X series, the conversion of 24-bit RGB format to 16-bit RGB format is added at the encoding end, and the color space conversion method can be used to remove the input redundant information and simplify the operation steps of the decoding end, thereby reducing the decoding complexity and improving the video compression quality.

具体实施方式Detailed ways

在实施数字图像或者视频压缩时,所有算法必须在某一特定的颜色空间上进行。例如,在当前广泛采用的压缩标准,JPEG系列、MPEG系列、H.26X系列,当输入的数字图像或者视频的格式为RGB24时,则使用推荐的变换公式,变换到YCrCb空间,然后进行采样、DCT变换、量化、游程编码和变长编码等压缩步骤;如果格式为RGB16时,则通过补位把RGB16格式变换到RGB24格式,然后进行上述操作步骤。解码过程则反之,最终可得到RGB24格式的图像或者视频;如果需要显示RGB16格式,则通过截位把RGB24格式变换到RGB16格式。在此过程中,压缩空间为YCrCb空间。When implementing digital image or video compression, all algorithms must be performed in a specific color space. For example, in the currently widely used compression standards, JPEG series, MPEG series, and H.26X series, when the format of the input digital image or video is RGB24, use the recommended transformation formula to transform to YCrCb space, and then perform sampling, Compression steps such as DCT transformation, quantization, run-length coding, and variable-length coding; if the format is RGB16, the RGB16 format is converted to the RGB24 format by complementing bits, and then the above operation steps are performed. The decoding process is reversed, and finally an image or video in RGB24 format can be obtained; if RGB16 format needs to be displayed, the RGB24 format is converted to RGB16 format by truncation. In this process, the compressed space is YCrCb space.

在便携移动设备上,若针对RGB16格式的图像或者视频压缩,采用本发明设计的压缩空间rYCrCb空间,只需将上述过程中颜色空间变换模块进行替换即可。具体步骤如下:On the portable mobile device, if the image or video in RGB16 format is compressed, the compression space rYCrCb space designed by the present invention is adopted, and only the color space conversion module in the above process needs to be replaced. Specific steps are as follows:

编码时,当输入的数字图像或者视频的格式为RGB16时,使用公式(1),将数据变换到rYCrCb空间;如果格式为RGB24,则通过截位将RGB24格式变换到RGB16格式,再使用公式(1)。在压缩空间rYCrCb上,即可采用传统的采样、DCT变换、量化、游程编码和变长编码等压缩步骤进行压缩。该步骤可以消除多余的信息,可以提高压缩效率。When encoding, when the format of the input digital image or video is RGB16, use the formula (1) to transform the data into the rYCrCb space; if the format is RGB24, convert the RGB24 format to the RGB16 format by truncation, and then use the formula ( 1). In the compressed space rYCrCb, the compression steps such as traditional sampling, DCT transformation, quantization, run length coding and variable length coding can be used for compression. This step can eliminate redundant information and improve compression efficiency.

解码时,首先进行传统的解压缩步骤,得到rYCrCb空间的数据。此时,使用公式(3),即可得到RGB16格式的图像或者视频,直接输出到支持RGB16格式的显示设备。因此,该方法的解码复杂度低,效率则更高。When decoding, the traditional decompression step is performed first to obtain the data in the rYCrCb space. At this time, the image or video in RGB16 format can be obtained by using formula (3), and can be directly output to a display device supporting RGB16 format. Therefore, the decoding complexity of this method is low, and the efficiency is higher.

Claims (1)

1. method that is used to compress the color notation conversion space of 16 coloured images is characterized in that:
1) when coding transforms to new color space with the coloured image of 16 rgb formats according to formula (1), called after rYCrCb, and the character of this color space is the same with YcrCb, and the RGB colouring information is divided into a luminance component Y rWith two chromatic component Cr r, Cb r, can be used for compression; Follow-up compression process comprises sampling, dct transform, quantification, Run-Length Coding, variable-length encoding, can be on the gained transformation results, according to existing image or video compression standard, comprise JPEG series, MPEG series, H.26X serial, adopt its encryption algorithm step, get final product;
Y r=R+G+B
Cb r=4B-Y r=-R-G+3B (1)
Cr r=4R-Y r=3R-G-B
Wherein: R, G, B represent the R of picture element in 16 RGB images respectively, G, the numerical value of three components of B, Y rRepresent luminance component in the rYCrCb space, Cb r, Cr rRepresent two chromatic components in the rYCrCb space respectively; Following formula (2) is that the matrix form of formula (1) is expressed;
Y r Cb r Cr r = 1 1 1 - 1 - 1 3 3 - 1 - 1 · R G B - - - ( 2 )
Wherein: symbol is identical with formula (1);
When 2) decoding, according to existing image or video compression standard, comprise JPEG series, MPEG series, H.26X serial, adopt its encryption algorithm step to obtain data on the rYCrCb space, obtain the data of 16 rgb formats according to the inverse transform method of formula (3), directly output to portable equipment and show;
G=(2Y r-Cb r-Cr r)//4
R=(Y r+Cr r)//4 (3)
B=(Y r+Cb r)//4
Wherein: letter character is identical with formula (1), and " // " expression rounds up.
CNB2004100843507A 2004-11-16 2004-11-16 Method for compressing colour space conversion of 16 bit colour image Expired - Fee Related CN1301003C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100843507A CN1301003C (en) 2004-11-16 2004-11-16 Method for compressing colour space conversion of 16 bit colour image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100843507A CN1301003C (en) 2004-11-16 2004-11-16 Method for compressing colour space conversion of 16 bit colour image

Publications (2)

Publication Number Publication Date
CN1610377A true CN1610377A (en) 2005-04-27
CN1301003C CN1301003C (en) 2007-02-14

Family

ID=34765872

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100843507A Expired - Fee Related CN1301003C (en) 2004-11-16 2004-11-16 Method for compressing colour space conversion of 16 bit colour image

Country Status (1)

Country Link
CN (1) CN1301003C (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101859511A (en) * 2010-04-01 2010-10-13 浙江大学 Ambient atmosphere light system and control method for the environment atmosphere light system
CN102547058A (en) * 2011-12-31 2012-07-04 福建星网视易信息系统有限公司 JPEG (Joint Photographic Experts Group) image processing method and system
CN101790023B (en) * 2009-01-22 2012-08-08 夏普株式会社 Image compressing method, image compressing apparatus and image forming apparatus
US9083954B2 (en) 2011-11-02 2015-07-14 Huawei Technologies Co., Ltd. Video processing method and system and related device
CN106105205A (en) * 2014-03-14 2016-11-09 高通股份有限公司 Quantization parameter for color space conversion decoding
CN108111858A (en) * 2016-11-24 2018-06-01 腾讯科技(深圳)有限公司 A kind of picture compression method and device
CN113038269A (en) * 2021-03-11 2021-06-25 昆山龙腾光电股份有限公司 Image data processing system and method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1066898C (en) * 1997-03-04 2001-06-06 华邦电子股份有限公司 Method and device for realizing color space conversion by matrix operation
JP2002300593A (en) * 2001-04-03 2002-10-11 Kansai Tlo Kk Digital signal converting method and device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101790023B (en) * 2009-01-22 2012-08-08 夏普株式会社 Image compressing method, image compressing apparatus and image forming apparatus
CN101859511A (en) * 2010-04-01 2010-10-13 浙江大学 Ambient atmosphere light system and control method for the environment atmosphere light system
US9083954B2 (en) 2011-11-02 2015-07-14 Huawei Technologies Co., Ltd. Video processing method and system and related device
CN102547058A (en) * 2011-12-31 2012-07-04 福建星网视易信息系统有限公司 JPEG (Joint Photographic Experts Group) image processing method and system
CN102547058B (en) * 2011-12-31 2014-11-26 福建星网视易信息系统有限公司 JPEG (Joint Photographic Experts Group) image processing method and system
CN106105205A (en) * 2014-03-14 2016-11-09 高通股份有限公司 Quantization parameter for color space conversion decoding
CN106105205B (en) * 2014-03-14 2019-05-31 高通股份有限公司 Quantization parameter for color space conversion decoding
CN108111858A (en) * 2016-11-24 2018-06-01 腾讯科技(深圳)有限公司 A kind of picture compression method and device
CN108111858B (en) * 2016-11-24 2020-06-05 腾讯科技(深圳)有限公司 Picture compression method and device
CN113038269A (en) * 2021-03-11 2021-06-25 昆山龙腾光电股份有限公司 Image data processing system and method

Also Published As

Publication number Publication date
CN1301003C (en) 2007-02-14

Similar Documents

Publication Publication Date Title
US8285037B2 (en) Compression format and apparatus using the new compression format for temporarily storing image data in a frame memory
EP3369242B1 (en) Compressing and uncompressing method for high bit-depth medical gray scale images
CN103155535B (en) Use image processing method and the equipment of local colour gamut definition
CN110706662B (en) Apparatus and method for color transformation of RGBG sub-pixel format and storage medium
CN1301003C (en) Method for compressing colour space conversion of 16 bit colour image
US20210056729A1 (en) Two-pass decoding of images
CN101378506A (en) image compression method
US20160316217A1 (en) Image Compression Device, Image Compression Method, Image Extension Device, and Image Extension Method
CN102934156B (en) Response time compensates
CN107845358A (en) Display driving apparatus and display driving method
US20080001939A1 (en) Method of generating video driving signal and apparatus thereof
CN116156185A (en) Image compression and restoration method based on incremental optimization
KR100798386B1 (en) Image Compression Method and Extension Method and Apparatus
JP2005522957A (en) Coding / decoding method and coding / decoding apparatus
Wang et al. Properties of all phase biorthogonal transform matrix and its application in color image compression
JP2021111975A (en) Video content coding method, video content decoding method and video content transfer system
CN113301344A (en) Image compression and decompression method based on FPGA
KR100656637B1 (en) Still Image Compression Method for Mobile Phone Using Integer ­ Integer Color Conversion Method
CN101452679A (en) Method and device for generating image driving signal
CN117041587A (en) Low-complexity JPEG encoding method and decoding method
US20250071289A1 (en) Encoder and decoder for improving the quality of monochrome enhancement layer codecs
Liu et al. Hash-based block matching for nonsquare blocks in screen content coding
WO2004109595A3 (en) Method for doubling resolution lcd display using line doubling and non-linear interpolation curve
Chouakrı et al. Three States QRLE (Quantized Run Length Encoding) Based JPEG Image Compression Method
Bouza Analysis and Modification of Graphic data Compression Algorithms

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

Termination date: 20161116

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