CN103489427A - Method and system for converting YUV into RGB and converting RGB into YUV - Google Patents
Method and system for converting YUV into RGB and converting RGB into YUV Download PDFInfo
- Publication number
- CN103489427A CN103489427A CN201210196607.2A CN201210196607A CN103489427A CN 103489427 A CN103489427 A CN 103489427A CN 201210196607 A CN201210196607 A CN 201210196607A CN 103489427 A CN103489427 A CN 103489427A
- Authority
- CN
- China
- Prior art keywords
- data
- yuv
- rgb
- pixels
- combination
- 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
Images
Landscapes
- Controls And Circuits For Display Device (AREA)
- Image Processing (AREA)
- Color Image Communication Systems (AREA)
Abstract
The invention relates to a method for converting a YUV into an RGB. The method for converting YUV into the RGB includes the following steps that YUV data of image pixels are obtained, numbers of effectively digits of the YUV data of multiple pixels of the image are spliced to different segments of digits of one datum to obtain the combined YUV data of the multiple pixels; the combined YUV data of the multiple pixels are calculated to obtain combined RGB data of the multiple pixels; numbers on digits of corresponding segments of all the pixels in the combined RGB data are RGB data of all the pixels. The YUV data and the RGB data have the range between 0 and 255. Only eight digits are needed to perform presenting, however, multiple processors can process data with more than eight data bits. According to the method for converting the YUV into the RGB, the data of the pixels are combined into one datum to carry out conversion calculation. The feature that many data bits can be processed by the processors is fully utilized, multiple times of conversion calculation can be combined to form a one-time conversion calculation and thus, the conversion efficiency is improved. In addition, the invention further provides a method and system for converting the RGB into the YUV and a system where the RGB and the YUV are mutually converted.
Description
[technical field]
The present invention relates to image processing field, relate to especially the system that method and system that a kind of YUV converts RGB to, method and system that a kind of RGB converts YUV to and a kind of RGB and YUV change mutually.
[background technology]
RGB and YUV are color spaces, and for meaning color, " Y " that both can transform in .YUV mutually means lightness, namely GTG value; What " U " and " V " meaned is colors of image and saturation degree, is used to specify the color of pixel.The rgb color pattern is a kind of color standard of industry member, is to obtain color miscellaneous by variation and their stacks each other to red (R), green (G), blue (B) three Color Channels.
With rgb video signal transmission, compare, the advantage of yuv video signal maximum is only need take few data space and data transfer bandwidth, and yuv video signal compatible black-and-white television very easily! Yet, in the liquid crystal screen display, need rgb video signal.
YUV view data and rgb image data respectively have relative merits, therefore, have and convert the YUV view data to rgb image data under a lot of scenes, or rgb image data is converted to the needs of YUV view data.The formula that YUV and RGB change mutually following (the RGB span is 0-255):
Y=0.299R+0.587G+0.114B;
U=-0.147R-0.289G+0.436B;
V=0.615R-0.515G-0.100B;
R=Y+1.14V;
G=Y-0.39U-0.58V;
B=Y+2.03U。
Nowadays, the video display collection of drama generally is high-definition image, and the resolution of image is high, and data volume is also very large, and the data volume of the video display that a collection length of a film is 1 hour reaches several G easily.In the mutual conversion of YUV and RGB, the data of each pixel of image will be changed according to above-mentioned formula, very large of calculated amount, and efficiency is lower.
[summary of the invention]
Based on this, be necessary to provide a kind of YUV that can improve conversion efficiency to convert the method for RGB to.
A kind of YUV converts the method for RGB to, comprises the following steps:
Obtain the yuv data of image pixel;
By on the different hop counts position of digital jointing to a data on the significant digit of the yuv data of a plurality of pixels in described image pixel, obtain the combination yuv data of described a plurality of pixels;
Calculate the combination yuv data of described a plurality of pixels, obtain the combination RGB data of described a plurality of pixels;
Obtain the RGB data that the numeral on the numerical digit of the corresponding section of each pixel in described combination RGB data is each pixel.
In a kind of embodiment, described by the different hop counts position of digital jointing to a data on the significant digit of the yuv data of a plurality of pixels in described image pixel, the step that obtains the combination yuv data of described a plurality of pixels comprises therein:
By the yuv data of the described a plurality of pixels different corresponding figure place that moves to left respectively, and the yuv data after moving to left is carried out to exclusive disjunction, the figure place that yuv data moves to left will make the numerical digit in the yuv data of numeral after moving to left on the described significant digit of numeral on the described significant digit of each yuv data and other yuv datas not overlapping, and the exclusive disjunction result obtained is the combination yuv data of described a plurality of pixels.
Based on this, also be necessary to provide a kind of YUV that can improve conversion efficiency to convert the system of RGB to.
A kind of YUV converts the system of RGB to, comprising:
Data acquisition module, for obtaining the yuv data of image pixel;
Composite module, for the different hop counts position of digital jointing to a data on the significant digit of the yuv data by a plurality of pixels of described image pixel, obtain the combination yuv data of described a plurality of pixels;
Computing module, for calculating the combination yuv data of described a plurality of pixels, obtain the combination RGB data of described a plurality of pixels;
Decomposing module, the RGB data that are each pixel for the numeral on the numerical digit of obtaining the corresponding section of described combination RGB each pixel of data.
Therein in embodiment, described composite module is for different corresponding figure place that the yuv data of described a plurality of pixels is moved to left respectively, and the yuv data after moving to left is carried out to exclusive disjunction, the figure place that yuv data moves to left will make the numerical digit in the yuv data of numeral after moving to left on the described significant digit of numeral on the described significant digit of each yuv data and other yuv datas not overlapping, and the exclusive disjunction result obtained is the combination yuv data of described a plurality of pixels.
Based on this, also be necessary to provide a kind of RGB that can improve conversion efficiency to convert the method for YUV to.
A kind of RGB converts the method for YUV to, comprises the following steps:
Obtain the RGB data of image pixel;
By on the different hop counts position of digital jointing to a data on the significant digit of the RGB data of a plurality of pixels in described image pixel, obtain the combination RGB data of described a plurality of pixels;
Calculate the combination RGB data of described a plurality of pixels, obtain the combination yuv data of described a plurality of pixels;
Obtain in described combination yuv data the yuv data that the numeral on the numerical digit of the corresponding section of each pixel is each pixel.
In embodiment, described by the different hop counts position of digital jointing to a data on the significant digit of the RGB data of a plurality of pixels in described image pixel, the step that obtains the combination RGB data of described a plurality of pixels comprises therein:
By the RGB data of the described a plurality of pixels different corresponding figure place that moves to left respectively, and the RGB data after moving to left are carried out to exclusive disjunction, the figure place that the RGB data move to left will make the numerical digit in the RGB data of numeral after moving to left on the described significant digit of numeral on the described significant digit of each RGB data and other RGB data not overlapping, and the exclusive disjunction result obtained is the combination RGB data of described a plurality of pixels.
Based on this, also be necessary to provide a kind of RGB that can improve conversion efficiency to convert the system of YUV to.
A kind of RGB converts the system of YUV to, comprising:
Data acquisition module, for obtaining the RGB data of image pixel;
Composite module, for the different hop counts position of digital jointing to a data on the significant digit of the RGB data by a plurality of pixels of described image pixel, obtain the combination RGB data of described a plurality of pixels;
Computing module, for calculating the combination RGB data of described a plurality of pixels, obtain the combination yuv data of described a plurality of pixels;
Decomposing module, the yuv data that is each pixel for the numeral on the numerical digit of obtaining the corresponding section of each pixel of described combination yuv data.
Therein in embodiment, described composite module is for different corresponding figure place that the RGB data of described a plurality of pixels are moved to left respectively, and the RGB data after moving to left are carried out to exclusive disjunction, the figure place that the RGB data move to left will make the numerical digit in the RGB data of numeral after moving to left on the described significant digit of numeral on the described significant digit of each RGB data and other RGB data not overlapping, and the exclusive disjunction result obtained is the combination RGB data of described a plurality of pixels.
Based on this, be necessary to provide a kind of and can improve the RGB of conversion efficiency and the system that YUV changes mutually.
The system that a kind of RGB and YUV change mutually, comprise that the YUV in above-mentioned arbitrary embodiment converts the system of RGB and the system that the RGB in above-mentioned arbitrary embodiment converts YUV to.
Because the scope of YUV and RGB size of data is 0~255, only need 8 and just can mean YUV and RGB data, for 16, 32, 64 or 128 s' YUV or RGB data, except 8 bit digital of end, numeral on all the other numerical digits is all 0, and 16, 32, 64, the processor of 128 once can be processed respectively 16, 32, 64, the data of 128, therefore, above-mentioned YUV converts RGB and RGB to and converts the system that the method and system of YUV and RGB and YUV are changed mutually to, the data of a plurality of pixels in image are combined into to data and change calculating, but the deal with data position that takes full advantage of processor is long, multiple conversions is calculated and is merged into once conversion calculating, thereby improved YUV and converted the efficiency that RGB and RGB convert YUV to.
[accompanying drawing explanation]
Fig. 1 is the schematic flow sheet that a YUV in embodiment converts the method for RGB to;
The schematic flow sheet that Fig. 2 is step S20 in an embodiment;
Fig. 3 is the structural representation that a YUV in embodiment converts the system of RGB to;
Fig. 4 is the schematic flow sheet that a RGB in embodiment converts the method for YUV to;
Fig. 5 is the structural representation that a RGB in embodiment converts the system of YUV to.
[embodiment]
As shown in Figure 1, in one embodiment, a kind of YUV converts the method for RGB to, comprises the following steps:
Step S10, obtain the yuv data of image pixel.
Concrete, yuv data comprises Y data, U data and V data.
Step S20, by the different hop counts position of the data of the digital jointing on the significant digit of the yuv data of a plurality of pixels in image pixel, obtain the combination yuv data of described a plurality of pixels.
Concrete, the numeral on the significant digit of yuv data comprises that the last figure of yuv data is to the most significant digit nonzero digit.The quantity of the numeral on the significant digit of the yuv data of described a plurality of pixels and be less than or equal to the accessible data bits of processor that YUV is converted to RGB.
Take 32 bit processors as example, and the data bit length that processor calculates is 32, and the magnitude range of YUV or RGB data is 0~255, only needs 8 can mean, for the YUV of 32 or RGB data, except 8, end, the numeral on all the other numerical digits is 0.Therefore, for 32 bit processors, can obtain the synthetic data of least-significant byte digit groups of the yuv data of 4 pixels, or obtain the least-significant byte of the yuv data of 3 pixels, low 9 or low 10 bit digital are combined into data.
In one embodiment, the detailed process of step S20 is: by the yuv data of the described a plurality of pixels different corresponding figure place that moves to left respectively, and the yuv data after moving to left is carried out to exclusive disjunction, the figure place that yuv data moves to left will make the numerical digit in the yuv data of numeral after moving to left on the described significant digit of numeral on the described significant digit of each yuv data and other yuv datas not overlapping, and the exclusive disjunction result obtained is the combination yuv data of described a plurality of pixels.
As shown in Figure 2, in one embodiment, step S20 comprises the following steps:
Step S202, by the yuv data of a pixel in a plurality of pixels predetermined number position that moves to left, this predetermined number is more than or equal to the length of the significant digit of each pixel in described a plurality of pixel, the long-pending accessible data bits of processor that YUV is converted to RGB that is less than or equal to of the quantity of described a plurality of pixels and this predetermined number.
Step S203, carry out exclusive disjunction by the yuv data that had neither part nor lot in a pixel of exclusive disjunction in the yuv data after moving to left and described a plurality of pixel.
Step S204, by the exclusive disjunction result described predetermined number position that moves to left, carry out exclusive disjunction by the yuv data that had neither part nor lot in a pixel of exclusive disjunction in the exclusive disjunction result after moving to left and described a plurality of pixel.
Step S206, repeated execution of steps S204, until the yuv data of described a plurality of pixels all participated in exclusive disjunction, the exclusive disjunction result finally obtained is the combination yuv data of described a plurality of pixels.
Take 32 bit processors as example, establish the synthetic data of low 10 hytes of the yuv data that obtains 3 pixels, the Y data of establishing 3 pixels are respectively:
00,0000000000,0000000000,0011000000;
00,0000000000,0000000000,0000011000;
00,0000000000,0000000000,0000000011。
First data can be moved to left after 10 and carry out exclusive disjunction with second data, obtain 00,0000000000,0011000000,0000011000, further the exclusive disjunction result is moved to left after 10 and carry out exclusive disjunction with the 3rd data, can obtain 00,0011000000,0000011000,0000000011, these data are the combination yuv data of described a plurality of pixels.
Step S30, calculate the combination yuv data of described a plurality of pixels, obtains the combination RGB data of described a plurality of pixels.
Concrete, the yuv data that step S10 obtains comprises through the yuv data of multiplication conversion, specifically comprises: Y
0, U
1, U
2, V
1, V
2, U
1=0.39U
0, U
2=2.03U
0, V
1=1.14V
0, V
2=0.58V
0, be wherein Y
0, U
0, V
0original Y data, U data, V data for image.Before step S10, can calculate U
1, U
2, V
1, V
2, or search U in precalculated product table
1, U
2, V
1, V
2value.Further, step S20 is by the Y of described a plurality of pixels
0, U
1, U
2, V
1, V
2data are combined into respectively Y
0', U
1', U
2', V
1', V
2'.
Further, step S30 can calculate according to following formula the combination RGB data of described a plurality of pixels: combination R data=Y
0'+V
1'; Combination G data=Y
0'-U
1'-V
2'; Combination B data=Y
0'+V
2'.
Step S40, obtain the RGB data that the numeral on the numerical digit that combines the corresponding section of each pixel in the RGB data is each pixel.
For example, for 32 bit processors, low 10 bit patterns of the yuv data of 2 pixels are become to the combination yuv data, low 10 positions in the combination yuv data of first pixel yuv data are from the 11st to the 20th of last digit, low 10 positions in the combination yuv data of second pixel yuv data are from the 1st to the 10th of last digit, can obtain in combination RGB data be the RGB data of first pixel from the 11st to the 20th of last digit, obtains the RGB data that to combine in the RGB data be second pixel from the 1st to the 10th of last digit.
As shown in Figure 3, in one embodiment, a kind of YUV converts the system of RGB to, comprises data acquisition module 10, composite module 20, computing module 30, decomposing module 40, wherein:
Concrete, yuv data comprises Y data, U data and V data.
Concrete, the numeral on the significant digit of yuv data comprises that the last figure of yuv data is to the most significant digit nonzero digit.The quantity of the numeral on the significant digit of the yuv data of described a plurality of pixels and be less than or equal to the accessible data bits of processor that YUV is converted to RGB.
Take 32 bit processors as example, and the data bit length that processor calculates is 32, and the magnitude range of YUV or RGB data is 0~255, only needs 8 can mean, for the YUV of 32 or RGB data, except 8, end, the numeral on all the other numerical digits is 0.Therefore, for 32 bit processors, composite module 20 can obtain the synthetic data of least-significant byte digit groups of the yuv data of 4 pixels, or obtain the least-significant byte of the yuv data of 3 pixels, low 9 or low 10 bit digital are combined into data.
In one embodiment, the composite module 20 different corresponding figure place that the yuv data of described a plurality of pixels can be moved to left respectively, and the yuv data after moving to left is carried out to exclusive disjunction, the figure place that yuv data moves to left will make the numerical digit in the yuv data of numeral after moving to left on the described significant digit of numeral on the described significant digit of each yuv data and other yuv datas not overlapping, and the exclusive disjunction result obtained is the combination yuv data of described a plurality of pixels.
Concrete, the composite module 20 predetermined number position that the yuv data of a pixel in a plurality of pixels can be moved to left, this predetermined number is more than or equal to the length of the significant digit of each pixel in described a plurality of pixel, the long-pending accessible data bits of processor that YUV is converted to RGB that is less than or equal to of the quantity of described a plurality of pixels and this predetermined number, further, the yuv data that had neither part nor lot in a pixel of exclusive disjunction in the yuv data after moving to left and described a plurality of pixel can be carried out to exclusive disjunction; Further, the composite module 20 described predetermined number position that the exclusive disjunction result can be moved to left, carry out exclusive disjunction by the yuv data that had neither part nor lot in a pixel of exclusive disjunction in the exclusive disjunction result after moving to left and described a plurality of pixel; Further, composite module 20 can repeat previous step, until the yuv data of described a plurality of pixels all participated in exclusive disjunction, the exclusive disjunction result finally obtained is the combination yuv data of described a plurality of pixels.
Take 32 bit processors as example, establish the synthetic data of low 10 hytes of the yuv data that obtains 3 pixels, the Y data of establishing 3 pixels are respectively:
00,0000000000,0000000000,0011000000;
00,0000000000,0000000000,0000011000;
00,0000000000,0000000000,0000000011。
Concrete, the yuv data that data acquisition module 10 obtains comprises through the yuv data of multiplication conversion, specifically comprises: Y
0, U
1, U
2, V
1, V
2, U
1=0.39U
0, U
2=2.03U
0, V
1=1.14V
0, V
2=0.58V
0, be wherein Y
0, U
0, V
0original Y data, U data, V data for image.Data acquisition module 10 can calculate U in advance
1, U
2, V
1, V
2, or search U in precalculated product table
1, U
2, V
1, V
2value.Further, composite module 20 is for the Y by described a plurality of pixels
0, U
1, U
2, V
1, V
2data are combined into respectively Y
0', U
1', U
2', V
1', V
2'.
Further, computing module 30 can calculate according to following formula the combination RGB data of described a plurality of pixels: combination R data=Y
0'+V
1'; Combination G data=Y
0'-U
1'-V
2'; Combination B data=Y
0'+' V
2'.
Decomposing module 40 is obtained the RGB data that the numeral on the numerical digit that combines the corresponding section of each pixel in the RGB data is each pixel.
For example, for 32 bit processors, composite module 20 becomes the combination yuv data by low 10 bit patterns of the yuv data of 2 pixels, low 10 positions in the combination yuv data of first pixel yuv data are from the 11st to the 20th of last digit, low 10 positions in the combination yuv data of second pixel yuv data are from the 1st to the 10th of last digit, can to obtain in combination RGB data be the RGB data of first pixel from the 11st to the 20th of last digit to decomposing module 40, the RGB data that to obtain in combination RGB data be second pixel from the 1st to the 10th of last digit.
As shown in Figure 4, in one embodiment, a kind of RGB converts the method for YUV to, comprises the following steps:
Step S50, obtain the RGB data of image pixel.
Concrete, the RGB data comprise R data, G data and B data.
Step S60, by the different hop counts position of digital jointing to a data on the significant digit of the RGB data of a plurality of pixels in image pixel, obtain the combination RGB data of described a plurality of pixels.
Concrete, the numeral on the significant digit of RGB data comprises that the last figure of RGB data is to the most significant digit nonzero digit.The quantity of the numeral on the significant digit of the RGB data of described a plurality of pixels and be less than or equal to the accessible data bits of processor that RGB is converted to YUV.
Concrete, different corresponding figure places can move to left the RGB data of described a plurality of pixels respectively, and the RGB data after moving to left are carried out to exclusive disjunction, the figure place that the RGB data move to left will make the numerical digit in the RGB data of numeral after moving to left on the described significant digit of numeral on the described significant digit of each RGB data and other RGB data not overlapping, and the exclusive disjunction result obtained is the combination RGB data of described a plurality of pixels.
Step S70, calculate the combination RGB data of described a plurality of pixels, obtains the combination yuv data of described a plurality of pixels.
Concrete, the RGB data that step S50 obtains comprise through the RGB data of multiplication conversion, specifically comprise: R
1, R
2, R
3, G
1, G
2, G
3, B
1, B
2, B
3, wherein:
R
1=0.299R
0,R
2=0.147R
0,R
3=0.615R
0;
G
1=0.587G
0,G
2=0.289G
0,G
3=0.515G
0;
B
1=0.114B
0,B
2=0.436B
0,B
3=0.100B
0;
R
0, G
0, B
0original R data, G data, B data for image.
Before step S50, can calculate R
1, R
2, R
3, G
1, G
2, G
3, B
1, B
2, B
3, or search R in precalculated product table
1, R
2, R
3, G
1, G
2, G
3, B
1, B
2, B
3value.Further, step S60 is by the R of described a plurality of pixels
1, R
2, R
3, G
1, G
2, G
3, B
1, B
2, B
3data are combined into respectively R
1', R
2', R
3', G
1', G
2', G
3', B
1', B
2', B
3'.
Further, step S70 can calculate according to following formula the combination yuv data of described a plurality of pixels: combination Y data=R
1'+G
1'+B
1'; Combination U data=-R
2'-G
2'+B
2'; Combination V data=R
3'-G
3'-B
3'.
Step S80, obtain in described combination yuv data the yuv data that the numeral on the numerical digit of the corresponding section of each pixel is each pixel.
As shown in Figure 5, in one embodiment, a kind of RGB converts the system of YUV to, comprises data acquisition module 50, composite module 60, computing module 70, decomposing module 80, wherein:
Concrete, the numeral on the significant digit of RGB data comprises that the last figure of RGB data is to the most significant digit nonzero digit.The quantity of the numeral on the significant digit of the RGB data of described a plurality of pixels and be less than or equal to the accessible data bits of processor that RGB is converted to YUV.
The yuv data that decomposing module 80 is each pixel for the numeral on the numerical digit of obtaining the corresponding section of each pixel of described combination yuv data.
The system that a kind of RGB and YUV change mutually, comprise that the YUV in above-mentioned arbitrary embodiment converts the system of RGB and the system that the RGB in above-mentioned arbitrary embodiment converts YUV to.
Because the scope of YUV and RGB size of data is 0~255, only need 8 and just can mean YUV and RGB data, for 16, 32, 64 or 128 s' YUV or RGB data, except 8 bit digital of end, numeral on all the other numerical digits is all 0, and 16, 32, 64, the processor of 128 once can be processed respectively 16, 32, 64, the data of 128, therefore, above-mentioned YUV converts RGB and RGB to and converts the system that the method and system of YUV and RGB and YUV are changed mutually to, the data of a plurality of pixels in image are combined into to data and change calculating, but the deal with data position that takes full advantage of processor is long, multiple conversions is calculated and is merged into once conversion calculating, thereby improved YUV and converted the efficiency that RGB and RGB convert YUV to.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, can control relevant hardware by computer program to complete, described program can be stored in a computer read/write memory medium, this program, when carrying out, can comprise the flow process as the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
The above embodiment has only expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.
Claims (9)
1. a YUV converts the method for RGB to, comprises the following steps:
Obtain the yuv data of image pixel;
By on the different hop counts position of digital jointing to a data on the significant digit of the yuv data of a plurality of pixels in described image pixel, obtain the combination yuv data of described a plurality of pixels;
Calculate the combination yuv data of described a plurality of pixels, obtain the combination RGB data of described a plurality of pixels;
Obtain the RGB data that the numeral on the numerical digit of the corresponding section of each pixel in described combination RGB data is each pixel.
2. YUV according to claim 1 converts the method for RGB to, it is characterized in that, described by the different hop counts position of digital jointing to a data on the significant digit of the yuv data of a plurality of pixels in described image pixel, the step that obtains the combination yuv data of described a plurality of pixels comprises:
By the yuv data of the described a plurality of pixels different corresponding figure place that moves to left respectively, and the yuv data after moving to left is carried out to exclusive disjunction, the figure place that yuv data moves to left will make the numerical digit in the yuv data of numeral after moving to left on the described significant digit of numeral on the described significant digit of each yuv data and other yuv datas not overlapping, and the exclusive disjunction result obtained is the combination yuv data of described a plurality of pixels.
3. a YUV converts the system of RGB to, it is characterized in that, comprising:
Data acquisition module, for obtaining the yuv data of image pixel;
Composite module, for the different hop counts position of digital jointing to a data on the significant digit of the yuv data by a plurality of pixels of described image pixel, obtain the combination yuv data of described a plurality of pixels;
Computing module, for calculating the combination yuv data of described a plurality of pixels, obtain the combination RGB data of described a plurality of pixels;
Decomposing module, the RGB data that are each pixel for the numeral on the numerical digit of obtaining the corresponding section of described combination RGB each pixel of data.
4. YUV according to claim 3 converts the system of RGB to, it is characterized in that, described composite module is for different corresponding figure place that the yuv data of described a plurality of pixels is moved to left respectively, and the yuv data after moving to left is carried out to exclusive disjunction, the figure place that yuv data moves to left will make the numerical digit in the yuv data of numeral after moving to left on the described significant digit of numeral on the described significant digit of each yuv data and other yuv datas not overlapping, and the exclusive disjunction result obtained is the combination yuv data of described a plurality of pixels.
5. a RGB converts the method for YUV to, comprises the following steps:
Obtain the RGB data of image pixel;
By on the different hop counts position of digital jointing to a data on the significant digit of the RGB data of a plurality of pixels in described image pixel, obtain the combination RGB data of described a plurality of pixels;
Calculate the combination RGB data of described a plurality of pixels, obtain the combination yuv data of described a plurality of pixels;
Obtain in described combination yuv data the yuv data that the numeral on the numerical digit of the corresponding section of each pixel is each pixel.
6. RGB according to claim 5 converts the method for YUV to, it is characterized in that, described by the different hop counts position of digital jointing to a data on the significant digit of the RGB data of a plurality of pixels in described image pixel, the step that obtains the combination RGB data of described a plurality of pixels comprises:
By the RGB data of the described a plurality of pixels different corresponding figure place that moves to left respectively, and the RGB data after moving to left are carried out to exclusive disjunction, the figure place that the RGB data move to left will make the numerical digit in the RGB data of numeral after moving to left on the described significant digit of numeral on the described significant digit of each RGB data and other RGB data not overlapping, and the exclusive disjunction result obtained is the combination RGB data of described a plurality of pixels.
7. a RGB converts the system of YUV to, it is characterized in that, comprising:
Data acquisition module, for obtaining the RGB data of image pixel;
Composite module, for the different hop counts position of digital jointing to a data on the significant digit of the RGB data by a plurality of pixels of described image pixel, obtain the combination RGB data of described a plurality of pixels;
Computing module, for calculating the combination RGB data of described a plurality of pixels, obtain the combination yuv data of described a plurality of pixels;
Decomposing module, the yuv data that is each pixel for the numeral on the numerical digit of obtaining the corresponding section of each pixel of described combination yuv data.
8. RGB according to claim 7 converts the system of YUV to, it is characterized in that, described composite module is for different corresponding figure place that the RGB data of described a plurality of pixels are moved to left respectively, and the RGB data after moving to left are carried out to exclusive disjunction, the figure place that the RGB data move to left will make the numerical digit in the RGB data of numeral after moving to left on the described significant digit of numeral on the described significant digit of each RGB data and other RGB data not overlapping, and the exclusive disjunction result obtained is the combination RGB data of described a plurality of pixels.
9. the system that a RGB and YUV change mutually, comprise that the described YUV of claim 3 or 4 converts the system of RGB and the system that the described RGB of claim 7 or 8 converts YUV to.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210196607.2A CN103489427B (en) | 2012-06-14 | 2012-06-14 | YUV converts the method and system that RGB and RGB converts YUV to |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210196607.2A CN103489427B (en) | 2012-06-14 | 2012-06-14 | YUV converts the method and system that RGB and RGB converts YUV to |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103489427A true CN103489427A (en) | 2014-01-01 |
CN103489427B CN103489427B (en) | 2015-12-02 |
Family
ID=49829607
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210196607.2A Expired - Fee Related CN103489427B (en) | 2012-06-14 | 2012-06-14 | YUV converts the method and system that RGB and RGB converts YUV to |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103489427B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105847775A (en) * | 2016-03-31 | 2016-08-10 | 乐视控股(北京)有限公司 | YUV-HSV color space transformation method and system |
TWI629892B (en) * | 2016-05-09 | 2018-07-11 | 國立成功大學 | Rgb to yuv format conversion and inverse conversion method and circuit for depth packing and depacking |
CN108614657A (en) * | 2018-04-20 | 2018-10-02 | 惠州学院 | Image combining method, device, equipment and its image-carrier |
CN109120911A (en) * | 2018-07-09 | 2019-01-01 | 武汉斗鱼网络科技有限公司 | A kind of video method for transformation, device, equipment and medium |
TWI825410B (en) * | 2020-04-28 | 2023-12-11 | 大陸商深圳市思坦科技有限公司 | Image processing methods, devices, photographic equipment and storage media |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6034667A (en) * | 1992-01-21 | 2000-03-07 | Radius Inc. | Method and apparatus for displaying YUV color information on a pseudo-color RGB display |
CN1522401A (en) * | 2001-10-29 | 2004-08-18 | ض� | Method and apparatus for parallel shift right merge of data |
US7002627B1 (en) * | 2002-06-19 | 2006-02-21 | Neomagic Corp. | Single-step conversion from RGB Bayer pattern to YUV 4:2:0 format |
JP2007235240A (en) * | 2006-02-27 | 2007-09-13 | Sharp Corp | Video signal processor |
US20100164981A1 (en) * | 2008-12-30 | 2010-07-01 | Ming-Hsun Lu | Data compression method and apparatus for image display based on overdrive processing |
-
2012
- 2012-06-14 CN CN201210196607.2A patent/CN103489427B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6034667A (en) * | 1992-01-21 | 2000-03-07 | Radius Inc. | Method and apparatus for displaying YUV color information on a pseudo-color RGB display |
CN1522401A (en) * | 2001-10-29 | 2004-08-18 | ض� | Method and apparatus for parallel shift right merge of data |
US7002627B1 (en) * | 2002-06-19 | 2006-02-21 | Neomagic Corp. | Single-step conversion from RGB Bayer pattern to YUV 4:2:0 format |
JP2007235240A (en) * | 2006-02-27 | 2007-09-13 | Sharp Corp | Video signal processor |
US20100164981A1 (en) * | 2008-12-30 | 2010-07-01 | Ming-Hsun Lu | Data compression method and apparatus for image display based on overdrive processing |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105847775A (en) * | 2016-03-31 | 2016-08-10 | 乐视控股(北京)有限公司 | YUV-HSV color space transformation method and system |
TWI629892B (en) * | 2016-05-09 | 2018-07-11 | 國立成功大學 | Rgb to yuv format conversion and inverse conversion method and circuit for depth packing and depacking |
CN108614657A (en) * | 2018-04-20 | 2018-10-02 | 惠州学院 | Image combining method, device, equipment and its image-carrier |
CN108614657B (en) * | 2018-04-20 | 2021-02-19 | 惠州学院 | Image synthesis method, device and equipment and image carrier thereof |
CN109120911A (en) * | 2018-07-09 | 2019-01-01 | 武汉斗鱼网络科技有限公司 | A kind of video method for transformation, device, equipment and medium |
TWI825410B (en) * | 2020-04-28 | 2023-12-11 | 大陸商深圳市思坦科技有限公司 | Image processing methods, devices, photographic equipment and storage media |
Also Published As
Publication number | Publication date |
---|---|
CN103489427B (en) | 2015-12-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101374191B (en) | Method and apparatus for correcting chromatic aberration of image | |
CN102870417B (en) | Color imaging device | |
US9147236B2 (en) | Method and device for generating high dynamic range images | |
CN103489427B (en) | YUV converts the method and system that RGB and RGB converts YUV to | |
CN101820550B (en) | Multi-viewpoint video image correction method, device and system | |
US20150363912A1 (en) | Rgbw demosaic method by combining rgb chrominance with w luminance | |
CN102118624B (en) | Method for converting an image from an RGB color space to a YUV color space | |
CN105005461A (en) | Icon display method and terminal | |
US20140267822A1 (en) | Tone mapping method | |
CN111161188A (en) | Method for reducing image color noise, computer device and computer readable storage medium | |
CN109801279B (en) | Method and device for detecting target in image, electronic equipment and storage medium | |
CN103268596A (en) | Method for reducing image noise and enabling colors to be close to standard | |
CN103650488B (en) | Image processing method, image processing system and display unit | |
CN101501751B (en) | Display device, method for generating four or more primary color signals | |
TW201621812A (en) | A method and device for estimating a color mapping between two different color-graded versions of a sequence of pictures | |
CN102752606A (en) | Method for performing color spatial switching based on SSE2 (Streaming SIMD Extensions 2) | |
CN109285113B (en) | Improved color image interpolation method based on gradient | |
CN103259960B (en) | The interpolation method of data and device, image output method and device | |
CN104853059A (en) | Super-resolution image processing method and device | |
EP3029925A1 (en) | A method and device for estimating a color mapping between two different color-graded versions of a picture | |
CN101815220A (en) | Method for correcting image color distortion | |
CN112581403B (en) | Fisheye image correction method, fisheye image correction system and fisheye image correction medium | |
CN104021579A (en) | Method and device for changing colors of image | |
CN106408647A (en) | Image shading adding method and device | |
CN110910439B (en) | Image resolution estimation method and device and terminal |
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: 20151202 Termination date: 20190614 |