CN1610377A - Method for compressing colour space conversion of 16 bit colour image - Google Patents
Method for compressing colour space conversion of 16 bit colour image Download PDFInfo
- 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
- space
- formula
- rycrcb
- rgb
- image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 15
- 238000000034 method Methods 0.000 title claims description 19
- 238000007906 compression Methods 0.000 claims abstract description 29
- 230000006835 compression Effects 0.000 claims abstract description 26
- 238000005070 sampling Methods 0.000 claims description 5
- 238000004040 coloring Methods 0.000 claims description 4
- 238000011002 quantification Methods 0.000 claims description 4
- 230000009466 transformation Effects 0.000 claims description 4
- 239000012467 final product Substances 0.000 claims description 3
- 239000011159 matrix material Substances 0.000 claims description 2
- 238000011426 transformation method Methods 0.000 abstract 2
- 235000013350 formula milk Nutrition 0.000 description 10
- 230000006837 decompression Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000011017 operating method Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Color Television Systems (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Abstract
The present invention discloses one kind of color space transformation method for compressing 16-bit color image. On the basis of traditional image or video compression technology, such as JPEG sequence, MPEG sequence and H.26X sequence, one conversion from 24-bit RGB format to 16-bit RGB format is increased to the encoding end, and the color space transformation method is used to eliminate the redundant information in the input end and simplify the operation steps in the decoding end, so as to reduce the decoding complexity and raise the video compression quality.
Description
Technical field
The present invention relates to the relevant multimedia technology field of portable mobile equipment, particularly relate to a kind of method that is used to compress the color notation conversion space of 16 coloured images.
Background technology
Along with popularizing of portable mobile equipment, personal digital assistant (PDA) for example, mobile phones etc. are based on the multimedia application emerge in multitude of portable mobile equipment.Portable mobile equipment exists that computing capability is weak, battery life short, LCD panel is 16 problems such as colour; And in the multimedia, the computation complexity of video decode is higher relatively, and therefore traditional video coding mode is used for portable mobile equipment, can't satisfy the user to the multimedia especially demand of video technique related application.At the portable equipment inherent characteristics, the generic video encoding and decoding technique is transformed, can improve the processing speed of video decode and the performance of video compression algorithm.
What is called is used for the color notation conversion space of compressed image, is meant the digital picture of input is carried out linear transformation, is mapped to the defined color space of corresponding compression algorithm.This color space is applicable to the compression of digital picture and video.The digital picture here comprises common digital picture and the frame in the digital video sequences.
Digital picture and video coding technique generally adopt YCrCb as the color space that is used to compress.When being input as the RGB image, this color space is divided into a luminance component Y and two chromatic component CrCb with the RGB colouring information.Because human eye much larger than colourity, therefore carries out sampling in 1: 1 in compression process to brightness to the sensitivity of brightness, and colourity is carried out sampling smaller or equal to 1: 1, thereby realize compression to a certain degree.At present, conventional compression techniques is the YCrCb form with 24 RGB image transforms.
As previously mentioned, the LCD panel of portable mobile equipment is not supported the image of 24 rgb formats, but supports 16 rgb format images, comprises two kinds of concrete forms of RGB565 and RGB555.Adopt traditional compress technique, display end must be transformed into 24 rgb formats earlier by YCrCb with decoded image, and then becomes 16 rgb formats that can show.Such method will inevitably increase operand, and the RGB24 form has comprised more colouring information than RGB16 form simultaneously, and these information are unnecessary on the display device of only supporting the RGB16 form.
If can define a color space mapping from RGB16 to YCrCb at the characteristics of RGB16 color space, then can improve compression efficiency, and reduce decoding complex degree.
Summary of the invention
The object of the present invention is to provide a kind of method that is used to compress the color notation conversion space of 16 coloured images.
The technical scheme that the present invention solves its technical problem employing is as follows:
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;
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.
The present invention compares with background technology, and the useful effect that has is:
The present invention is a kind of method of brand-new color notation conversion space.It is applicable to the compression of 16 RGB coloured images or video.On traditional image or video compression technology basis, for example JPEG series, MPEG series, series H.26X, coding side increases the conversion of 24 rgb format to 16 rgb formats, and adopt this color notation conversion space method, can remove the unnecessary information of input and simplify the operating procedure of decoding end, thereby can reduce decoding complex degree, improve the video compression quality.
Embodiment
When implementing digital picture or video compression, all algorithms must carry out on a certain specific color space.For example, compression standard in current extensive employing, JPEG series, MPEG series, H.26X serial, when the form of digital picture of importing or video is RGB24, then use the transformation for mula of recommending, transform to the YCrCb space, sample then, compression steps such as dct transform, quantification, Run-Length Coding and variable-length encoding; When if form is RGB16, then the RGB24 form is arrived in the RGB16 format conversion by cover, carry out the aforesaid operations step then.Otherwise decode procedure then, finally can obtain the image or the video of RGB24 form; Show the RGB16 form if desired, then the RGB16 form is arrived in the RGB24 format conversion by cut position.In this process, compression stroke is the YCrCb space.
On portable mobile equipment, if at the image or the video compression of RGB16 form, adopt the compression stroke rYCrCb space of the present invention's design, only need color notation conversion space module in the said process replaced and get final product.Concrete steps are as follows:
During coding, when the form of digital picture of importing or video is RGB16, use formula (1), the rYCrCb space is arrived in data conversion; If form is RGB24, then the RGB16 form is arrived in the RGB24 format conversion by cut position, re-use formula (1).On compression stroke rYCrCb, can adopt compression steps such as traditional sampling, dct transform, quantification, Run-Length Coding and variable-length encoding to compress.This step can be eliminated unnecessary information, can improve compression efficiency.
During decoding, at first carry out traditional decompression step, obtain the data in rYCrCb space.At this moment, use formula (3), can obtain the image or the video of RGB16 form, directly output to the display device of supporting the RGB16 form.Therefore, the decoding complex degree of this method is low, and efficient is then 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;
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.
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)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101859511A (en) * | 2010-04-01 | 2010-10-13 | 浙江大学 | Environmental atmosphere lamp system and control method thereof |
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)
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 calculation |
JP2002300593A (en) * | 2001-04-03 | 2002-10-11 | Kansai Tlo Kk | Digital signal converting method and device |
-
2004
- 2004-11-16 CN CNB2004100843507A patent/CN1301003C/en not_active Expired - Fee Related
Cited By (10)
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 | 浙江大学 | Environmental atmosphere lamp system and control method thereof |
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 |
---|---|---|
TWI471013B (en) | Computational complexity and precision control in transform-based digital media codec | |
EP3369242B1 (en) | Compressing and uncompressing method for high bit-depth medical gray scale images | |
EP3697073B1 (en) | Image processing methods and apparatus using localized gamut definitions | |
US8902992B2 (en) | Decoder for selectively decoding predetermined data units from a coded bit stream | |
CN101076125B (en) | Algorithm for optimizing RGB and YCbCr conversion computing in image compression | |
CN100580766C (en) | Systems and methods for decoding large images | |
CN104322063B (en) | Method, system and the computer readable storage medium of video stream compression | |
CN1301003C (en) | Method for compressing colour space conversion of 16 bit colour image | |
CA3109671A1 (en) | Image compression | |
US8270734B2 (en) | Method and apparatus for image processing of data including transparency information | |
WO2008045705A1 (en) | Color image coding using inter-color correlation | |
JP2011015347A (en) | Apparatus and method for processing image, program and recording medium | |
US20060188149A1 (en) | Image data sampling method | |
CN101378506A (en) | Method for compressing image | |
CN102934156B (en) | Response time compensates | |
CN116156185A (en) | Image compression and restoration method based on incremental optimization | |
JPH1075448A (en) | Image compressor and image expander | |
CN114693818A (en) | Compression method suitable for digital ortho image data | |
US20050129110A1 (en) | Coding and decoding method and device | |
JP2004135254A (en) | Image processing unit | |
CN108989820B (en) | Data compression method and device adopting respective corresponding chroma sampling formats at all stages | |
CN106296754B (en) | Show data compression method and display data processing system | |
US20060126951A1 (en) | Method of coding and decoding still picture | |
CN1640144A (en) | Method and device for coding and decoding a digital color video sequence | |
CN117041587A (en) | Low-complexity JPEG encoding method and decoding method |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20070214 Termination date: 20161116 |