CN105847775A - YUV-HSV color space transformation method and system - Google Patents

YUV-HSV color space transformation method and system Download PDF

Info

Publication number
CN105847775A
CN105847775A CN201610200643.XA CN201610200643A CN105847775A CN 105847775 A CN105847775 A CN 105847775A CN 201610200643 A CN201610200643 A CN 201610200643A CN 105847775 A CN105847775 A CN 105847775A
Authority
CN
China
Prior art keywords
yuv
pixel
numerical value
max
hsv
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.)
Pending
Application number
CN201610200643.XA
Other languages
Chinese (zh)
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.)
LeTV Holding Beijing Co Ltd
LeTV Cloud Computing Co Ltd
Original Assignee
LeTV Holding Beijing Co Ltd
LeTV Cloud Computing Co Ltd
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 LeTV Holding Beijing Co Ltd, LeTV Cloud Computing Co Ltd filed Critical LeTV Holding Beijing Co Ltd
Priority to CN201610200643.XA priority Critical patent/CN105847775A/en
Publication of CN105847775A publication Critical patent/CN105847775A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals

Abstract

The invention discloses a YUV-HSV color space transformation method and system, relating to the image processing field. The method comprises the steps of: through checking a precomputed YUV-RGB corresponding relation table, converting each pixel point of an image in a YUV format into a corresponding value R'G'B' of an RGB format with Y component being removed; and converting the corresponding value R'G'B' of each pixel in an RGB format into a corresponding value in an HSV format. The algorithm increases an algorithmic speed under the condition of guaranteeing precision, allows a computer to rapidly perform positioning in the table, and converts a YUV channel to an HSV channel fast.

Description

A kind of YUV is to the conversion method in hsv color space and system
Technical field
The present invention relates to image processing field, particularly relate to a kind of YUV conversion to hsv color space Method and system.
Background technology
In current video encoding-decoding process, the form of image is often yuv format, if on this basis If carrying out image processing operations, needing converting colors space, it is empty that normal conditions can be transformed into RGB color Between, deeper level a bit, needs to forward hsv color space to.
Prior art is transformed into HSV by YUV needs first to be transformed into RGB, reconvert to HSV.
Traditional YUV turns RGB formula:
R=Y+1.402* (V-128)
G=Y 0.344* (U-128) 0.714* (V-128)
B=Y+1.772* (U-128)
Tradition RGB turns the formula of HSV
Vmax=max (R, G, B)
Vmin=min (R, G, B)
H = G - B V m a x - V m i n : V m a x = R B - R V max - V min + 2 : V m a x = G R - G V max - V min + 4 : V max = B
H=H/6
If (H < 0) H=H+1
S = V m a x - V min V m a x
V = V max 255
Wherein R, G, B, H, S, V represent certain position number at respective passage in image respectively Value, wherein the scope of RGB is the integer of [0,255], and the scope of HSV is the floating number of [0,1], is normalizing Value after change.VmaxAnd VminIt is maximum and the minimum of a value of RGB respectively.
Y represents luminance channel, and U represents carrier chrominance signal passage, and V represents colour difference signal passage, H generation Table tone passage, S represents saturation degree passage, and V represents lightness passage, and R represents red channel, and G represents Green channel, B represents blue channel.
The visible negative occurred in that in the middle of twice transfer process repeatedly, floating-point multiplication, the time-consuming behaviour such as division Making, the two conversion has fixing formula to seek, but is based on formula, and the process that calculates needs substantial amounts of floating-point Computing, division etc. operates, and CPU behaves the most time-consuming, it is impossible to reach the requirement processed in real time, existing Some having fast conversion methods based on CPU can cause too much loss of significance.
During YUV turns RGB, R passage needs the information of Y and V, G passage to need YUV Three-channel information, channel B needs the information of Y and U.Owing to color gamut is [0,255], it is desirable to look into If table, R passage needs the dimension of 256*256, G passage to need the dimension of 256*256*256, and B needs Want the dimension of 256*256, it is desirable to safeguarding that the biggest form is highly difficult, computer is wanted the hugest In big form, quickly location is highly difficult.
Summary of the invention
In view of this, it is an object of the invention to propose a kind of YUV turning to hsv color space Scaling method, it is achieved by the quick and precisely conversion of YUV to HSV.
A kind of YUV provided based on the above-mentioned purpose present invention to the conversion method in hsv color space, Comprise the steps:
By each for the picture of yuv format pixel by looking into precalculated YUV to RGB corresponding relation Table is converted to remove the corresponding numerical value R ' G ' B ' of the rgb format of Y-component;
Corresponding numerical value R ' G ' B ' by each pixel rgb format transfers the corresponding numerical value of HSV form to.
Described YUV to RGB mapping table is:
Pass through formula
R'=1.402* (V-128)
G'=-0.344* (U-128)-0.714* (V-128)
B'=1.772* (U-128)
Wherein, U takes the integer of 0 to 255,
V takes the integer of 0 to 255;
U represents carrier chrominance signal passage, and V represents colour difference signal passage;
All for U and V values above-mentioned formula of substitution is obtained YUV to RGB mapping table.
Corresponding numerical value R ' G ' B ' by each pixel rgb format transfers the corresponding numerical value of HSV form to, Comprise the following specific steps that:
By each pixel of R ' G ' B ' by looking into H mapping table, meet formula condition with this pixel Molecule carry out multiplying after obtain the numerical value of this pixel HSV tone passage H;
The maximum of the R ' G ' B ' of each pixel is added with this pixel brightness signal value Y, will draw Numerical value inverted after, look into S mapping table, obtain the numerical value of this pixel HSV saturation degree passage S;
The maximum of the R ' G ' B ' of each pixel is obtained this pixel plus this brightness signal value Y The numerical value of lightness passage V.
Described H mapping table is: according to formulaWherein V 'maxRepresent R ' G ' B ' Maximum, V 'minRepresent the minimum of a value of R ' G ' B ';
V'max-V′minTake the integer of 0 to 255;
By V 'max-V′minAll values substitute into above-mentioned formula and obtain H mapping table.
Described S mapping table is: according to formulaWherein V 'maxTake 0 to 255 integers, V 'max Represent the maximum of R ' G ' B ', by V 'maxAll values substitute into above-mentioned formula and obtain S mapping table.
Described a kind of YUV to the conversion method in hsv color space, described in obtain YUV to RGB The formula of mapping table is:
Wherein H represents tone passage.
When meeting V ' in described formulamax=G ' or V 'maxDuring the condition of=B', by 2* (V 'max-V′min) or 4*(V′max-V′min) carry out shifting function.
A kind of YUV is to the system in hsv color space, including interim modular converter and computing module; Interim modular converter is used for each pixel of picture of yuv format by looking into precalculated YUV extremely RGB mapping table is converted to remove the corresponding numerical value R ' G ' B ' of the rgb format of Y-component;
Described computing module is for transferring the corresponding numerical value R ' G ' B ' of each pixel rgb format to HSV The corresponding numerical value of form.
Described computing module includes H modular converter, S modular converter and V modular converter;
Described H modular converter, for being converted to this pixel by the corresponding numerical value of the R ' G ' B ' of pixel The numerical value of the tone passage H of HSV;
Described S modular converter, for being converted to this pixel by the corresponding numerical value of the R ' G ' B ' of pixel The numerical value of the saturation degree passage S of HSV.
Described V modular converter, for being converted to this pixel by the corresponding numerical value of the R ' G ' B ' of pixel The numerical value of the saturation degree passage V of HSV.
Described interim modular converter includes temporary storage cell and interim processing unit;Temporary storage cell is used for Storage YUV to RGB mapping table, interim processing unit is for by each picture of picture of yuv format Vegetarian refreshments is converted to remove the RGB lattice of Y-component by looking into precalculated YUV to RGB mapping table The corresponding numerical value R ' G ' B ' of formula.
Described H modular converter includes the first processing module and the first memory module, and the first processing module is used for The corresponding numerical value of the R ' G ' B ' of pixel is converted to the numerical value of the saturation degree passage S of this pixel HSV; First memory module is used for storing H mapping table.
Described S modular converter includes the second processing module and the second memory module, and the second processing module is used for will The corresponding numerical value of the R ' G ' B ' of pixel is converted to the numerical value of the saturation degree passage S of this pixel HSV;The Two memory modules are used for storing S mapping table.
Described YUV to RGB mapping table: pass through formula
R'=1.402* (V-128)
G'=-0.344* (U-128)-0.714* (V-128)
B'=1.772* (U-128)
Wherein, U takes the integer of 0 to 255,
V takes the integer of 0 to 255;
U represents carrier chrominance signal passage, and V represents colour difference signal passage;
All for U and V values above-mentioned formula of substitution is obtained YUV to RGB mapping table.
Described H mapping table: according to formulaWherein V 'maxRepresent R ' G ' B ' Big value, V 'minRepresent the minimum of a value of R ' G ' B ';
V′max-V′minTake the integer of 0 to 255;
By V 'max-V′minAll values substitute into above-mentioned formula and obtain H mapping table.
Described S mapping table: according to formulaWherein V 'maxTake 0 to 255 integers, V 'max Represent the maximum of R ' G ' B ', by V 'maxAll values substitute into above-mentioned formula and obtain S mapping table.
From the above it can be seen that the side changed from YUV to hsv color space that the present invention provides Method and system, have the advantages that compared with art methods
Turned the modes such as RGB correspondence table by the YUV pre-build, simplify color space and turn Amount of calculation during changing;And, make form temporary definition R ' G ' B ' space by reducing Y-component, Thus controlling the dimension of form so that computing is succinct, and computer can position the most rapidly, quickly Forward YUV passage to HSV passage, can be time-consuming than with formula step by step calculation, ensure precision In the case of improve the speed of algorithm.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet that 1 one kinds of YUV of the embodiment of the present invention are converted into the method for RGB;
Fig. 2 is the schematic flow sheet that 2 one kinds of YUV of the embodiment of the present invention are converted into the method for RGB;
Fig. 3 is the system schematic that 3 one kinds of YUV of the embodiment of the present invention are converted into RGB;
Fig. 4 is the system schematic that 4 one kinds of YUV of the embodiment of the present invention are converted into RGB.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with specific embodiment, And referring to the drawings, the present invention is described in more detail.
As it is shown in figure 1, the present invention provides a kind of YUV to of the conversion method in hsv color space Embodiment, including:
Step 101 by each for the picture of yuv format pixel by looking into precalculated YUV to RGB Mapping table is converted to remove the corresponding numerical value R ' G ' B ' of the rgb format of Y-component;
Step 102 transfers the corresponding numerical value R ' G ' B ' of each pixel rgb format to HSV form right Answer numerical value.
As in figure 2 it is shown, the present invention provide a kind of YUV to hsv color space conversion method another Embodiment is, including:
Step 201: by each for the picture of yuv format pixel by looking into precalculated YUV to RGB Mapping table (table 1) is converted to remove the corresponding numerical value R ' G ' B ' of the rgb format of Y-component;
YUV to RGB mapping table (table 1) calculation:
Look-up table turns RGB from YUV
During YUV turns RGB, R passage needs the information of Y and V, G passage to need YUV Three-channel information, channel B needs the information of Y and U.Owing to color gamut is [0,255], it is desirable to look into If table, R passage needs the dimension of 256*256, G passage to need the dimension of 256*256*256, and B needs Want the dimension of 256*256, it is desirable to safeguarding that the biggest form is highly difficult, computer is wanted the hugest In big form, quick location is also relatively difficult.
The formula that YUV turns RGB becomes:
R'=1.402* (V-128)
G'=-0.344* (U-128)-0.714* (V-128)
B'=1.772* (U-128)
U takes 0 to 255 integers
V takes 0 to 255
All for U and V values above-mentioned formula of substitution is obtained table 1.
So tabling look-up if 1, R and B has only to the dimension of 256, and G passage needs the dimension of 256*256. By tabling look-up 1, can quickly be R ' G ' B ' by YUV Channel-shifted.
Step 202: transfer the corresponding numerical value R ' G ' B ' of each pixel rgb format to HSV form Corresponding numerical value.
Step 202a: by each pixel of R ' G ' B ' by looking into H mapping table (table 2), with this Pixel meets after the molecule of formula condition carries out multiplying and obtains this pixel HSV tone passage H's Numerical value;
H mapping table (table 2) calculation:
According to formula
WillOverall as form, V 'maxWith V 'minIt is all the scope of 0-255, V 'max-V′minTake 0 to 255 integers, specifically by V 'max-V′minAll values substitute intoObtain table 2.
Judge that certain point meets certain condition in formula, after calculating the complete molecule of according calculation, table look-up and find Numerical value corresponding in table 2, is multiplied by molecule the numerical value of this correspondence, obtains the tone H of this HSV. This operation time-consumingly can be the time-consuming few of division by ratio.
When meeting V ' in formulamax=G ' or V 'maxUnder conditions of=B ', 2* (V 'max-V′min) and 4*(V′max-V′min) can be replaced by the shifting function of computer, i.e. < < operator is i.e. grasped with displacement Make to replace molecule be multiplied by 2 or be multiplied by 4, thus accelerate the speed of service.
The most above-mentioned formulaDerivation For:
The conversion formula (1) of HSV is first rewritten with R ' G ' B ' space
H = G &prime; - B &prime; V &prime; m a x - V &prime; m i n : V &prime; m a x = R B &prime; - R &prime; V &prime; max - V &prime; min + 2 : V &prime; m a x = G &prime; &prime; R &prime; - G &prime; V &prime; max - V &prime; min + 4 : V &prime; max = B &prime;
H=H/6
If (H < 0) H=H+1
S = V &prime; max - V &prime; min V &prime; max + Y
V = V &prime; max 255 - - - ( 1 )
Wherein V'maxAnd V'minIt is maximum and the minimum of a value of R ' G ' B ' respectively.
Derived by following according to condition if (H < 0) H=H+1, it could be assumed that, only at Vmax=R' and G' < just there will be the condition of above-mentioned H < 0 in the case of B'.
Derive as follows:
Assume that present case is V'max=G', now has two kinds of situations, R'>=B' and R'<B'.Assume it is first Plant R' >=B' situation, nowV'maxFor G ', V'minFor B ', bring formula into, carry out After the reduction of fractions to a common denominatorDenominator is necessarily greater than the number of 0, and therefore the symbol of H is only with molecule Relevant, launch molecule and obtain 2*G'-B'-R', packet becomes (G'-B')+(G'-R') again.Owing to G ' is maximum Value, more than B ' and R ', therefore (G'-B')+(G'-R') is positive number.The situation of proving by the same methods R' < B' and V'maxTwo kinds of situations, the most only V of=B'maxThe when of=R', H can be less than 0, now The symbol of H is solely dependent upon the magnitude relationship of G ' and B '.
The situation of H < 0 is brought in formula, becomes formula (2):
By last H=H/6, this normalization operation is brought in formula, carries out the reduction of fractions to a common denominator simultaneously and obtains formula (3):
Step 202b: by the maximum of the R ' G ' B ' of each pixel and this pixel brightness signal value Y It is added, after inverted for the numerical value that draws, look into S mapping table (table 3), obtain this pixel HSV The numerical value of saturation degree passage S;
Channel S correspondence table (table 3) calculation:
Can be byCalculate as tabling look-up.By V 'maxTake all integers substitution of 0 to 255Obtain table 3.
Step 202c: the maximum of the R ' G ' B ' of each pixel is obtained plus this brightness signal value Y Numerical value to the lightness passage V of this pixel.
Color space conversion is not RGB by this embodiment, but transfers to and do not have Y-component, temporary definition R ' G ' B ' space, simultaneously the form of this embodiment can by input (i.e. UV component), directly change out After result, also control the dimension of form, i.e. 256+256*256+256 dimension simultaneously, make computer Can quickly access, in the case of ensureing precision, improve the speed of algorithm, turn RGB at YUV During, the method makes computer to position the most rapidly, it is also possible to quickly by YUV Passage forwards HSV passage to, than the time that can save 70-75% with formula step by step calculation.
As it is shown on figure 3, the present invention provides a kind of YUV to of the converting system in hsv color space Embodiment, including:
Interim modular converter 301 and computing module 302;
Interim modular converter is for by precalculated by looking into for each pixel of picture of yuv format YUV to RGB mapping table is converted to remove the corresponding numerical value R ' G ' B ' of the rgb format of Y-component;
Described computing module is for transferring the corresponding numerical value R ' G ' B ' of each pixel rgb format to HSV The corresponding numerical value of form.
As shown in Figure 4, the present invention provides a kind of YUV to of the converting system in hsv color space Embodiment, including:
Interim modular converter 401 and computing module 402;Interim modular converter is for by the figure of yuv format The each pixel of sheet is converted to remove Y-component by looking into precalculated YUV to RGB mapping table The corresponding numerical value R ' G ' B ' of rgb format;
Described computing module is for transferring the corresponding numerical value R ' G ' B ' of each pixel rgb format to HSV The corresponding numerical value of form.
Described computing module includes H modular converter 4021, S modular converter 4022 and V modular converter 4023;
Described H modular converter, for being converted to this pixel by the corresponding numerical value of the R ' G ' B ' of pixel The numerical value of the tone passage H of HSV;
Described S modular converter, for being converted to this pixel by the corresponding numerical value of the R ' G ' B ' of pixel The numerical value of the saturation degree passage S of HSV.
Described V modular converter, for being converted to this pixel by the corresponding numerical value of the R ' G ' B ' of pixel The numerical value of the saturation degree passage V of HSV.
Described interim modular converter includes temporary storage cell 4011 and interim processing unit 4012;Deposit temporarily Storage unit is used for storing YUV to RGB mapping table, and interim processing unit is for by yuv format The each pixel of picture is converted to remove Y divides by looking into precalculated YUV to RGB mapping table The corresponding numerical value R ' G ' B ' of the rgb format of amount.
Described H modular converter includes the first processing module 4021a and the first memory module 4021b, at first Reason module for being converted to the saturation degree passage of this pixel HSV by the corresponding numerical value of the R ' G ' B ' of pixel The numerical value of S;First memory module is used for storing H mapping table.
Described S modular converter includes the second processing module 4022a and the second memory module 4022b, at second Reason module for being converted to the saturation degree passage of this pixel HSV by the corresponding numerical value of the R ' G ' B ' of pixel The numerical value of S;Second memory module is used for storing S mapping table.
Described YUV to RGB mapping table: pass through formula
R'=1.402* (V-128)
G'=-0.344* (U-128)-0.714* (V-128)
B'=1.772* (U-128)
Wherein, U takes the integer of 0 to 255,
V takes the integer of 0 to 255;
U represents carrier chrominance signal passage, and V represents colour difference signal passage;
All for U and V values above-mentioned formula of substitution is obtained YUV to RGB mapping table.
Described H mapping table: according to formulaWherein V 'maxRepresent R ' G ' B ' Big value, V 'minRepresent the minimum of a value of R ' G ' B ';
V′max-V′minTake the integer of 0 to 255;
By V 'max-V′minAll values substitute into above-mentioned formula and obtain H mapping table.
Described S mapping table: according to formulaWherein V 'maxTake 0 to 255 integers, V 'max Represent the maximum of R ' G ' B ', by V 'maxAll values substitute into above-mentioned formula and obtain S mapping table.
Those of ordinary skill in the field it is understood that the discussion of any of the above embodiment is exemplary only, It is not intended to imply that the scope of the present disclosure (including claim) is limited to these examples;Think of in the present invention Under road, can also be combined between the technical characteristic in above example or different embodiment, step can With with random order realize, and exist the present invention as above different aspect many other change, for Simple and clear they do not provide in the details.
It addition, for simplifying explanation and discussing, and in order to obscure the invention, provided Accompanying drawing can illustrate or can not illustrate and integrated circuit (IC) chip and the known power supply of other parts / grounding connection.Furthermore, it is possible to illustrate device in block diagram form, in order to avoid obscuring the invention, And this have also contemplated that following facts, i.e. the details about the embodiment of these block diagram arrangements is highly to depend on In will implement the present invention platform (that is, these details should be completely in the reason of those skilled in the art In the range of solution).Elaborating that detail (such as, circuit) is to describe the exemplary embodiment of the present invention In the case of, it will be apparent to those skilled in the art that can there is no these details In the case of or these details change in the case of implement the present invention.Therefore, these descriptions should be recognized For being illustrative and not restrictive.
Although invention has been described to have been incorporated with the specific embodiment of the present invention, but according to above Description, these embodiments a lot of replace, amendment and modification will be for those of ordinary skills Obviously.Such as, other memory architecture (such as, dynamic ram (DRAM)) can use The embodiment discussed.
Embodiments of the invention be intended to fall within the broad range of claims all so Replacement, amendment and modification.Therefore, all within the spirit and principles in the present invention, any omission of being done, Amendment, equivalent, improvement etc., should be included within the scope of the present invention.

Claims (15)

1. a YUV is to the conversion method in hsv color space, it is characterised in that comprise the steps:
By each for the picture of yuv format pixel by looking into precalculated YUV to RGB corresponding relation Table is converted to remove the corresponding numerical value R ' G ' B ' of the rgb format of Y-component;
Corresponding numerical value R ' G ' B ' by each pixel rgb format transfers the corresponding numerical value of HSV form to.
Method the most according to claim 1, it is characterised in that described YUV to RGB correspondence is closed It is that table is:
Pass through formula
R'=1.402* (V-128)
G'=-0.344* (U-128)-0.714* (V-128)
B'=1.772* (U-128)
Wherein, U takes the integer of 0 to 255,
V takes the integer of 0 to 255;
U represents carrier chrominance signal passage, and V represents colour difference signal passage;
All for U and V values above-mentioned formula of substitution is obtained YUV to RGB mapping table.
Method the most according to claim 1, it is characterised in that by each pixel rgb format Corresponding numerical value R ' G ' B ' transfers the corresponding numerical value of HSV form to, comprises the following specific steps that:
By each pixel of R ' G ' B ' by looking into H mapping table, meet formula condition with this pixel Molecule carry out multiplying after obtain the numerical value of this pixel HSV tone passage H;
The maximum of the R ' G ' B ' of each pixel is added with this pixel brightness signal value Y, will draw Numerical value inverted after, look into S mapping table, obtain the numerical value of this pixel HSV saturation degree passage S;
The maximum of the R ' G ' B ' of each pixel is obtained this pixel plus this brightness signal value Y The numerical value of lightness passage V.
Method the most according to claim 3, it is characterised in that described H mapping table is: root According to formulaWherein V 'maxRepresent the maximum of R ' G ' B ', V 'minRepresent R ' G ' B ' Little value;
V′max-V′minTake the integer of 0 to 255;
By V 'max-V′minAll values substitute into above-mentioned formula and obtain H mapping table.
Method the most according to claim 3, it is characterised in that described S mapping table is: root According to formulaWherein V 'max′Take 0 to 255 integers, V 'max′Represent the maximum of R ' G ' B ', By V 'max′All values substitute into above-mentioned formula and obtain S mapping table.
Method the most according to claim 3, it is characterised in that described formula is:
Wherein H represents tone passage.
Method the most according to claim 6, it is characterised in that: when meeting V ' in described formulamax=G ' Or V 'maxDuring the condition of=B ', by 2* (V 'max-V′min) or 4* (V 'max-V′min) carry out shifting function.
8. a YUV is to the system in hsv color space, it is characterised in that including:
Interim modular converter, for by precalculated by looking into for each pixel of picture of yuv format YUV to RGB mapping table is converted to remove the corresponding numerical value R ' G ' B ' of the rgb format of Y-component,;
Computing module, for transferring the corresponding numerical value R ' G ' B ' of each pixel rgb format to HSV lattice The corresponding numerical value of formula.
A kind of YUV the most according to claim 8 exists to the system in hsv color space, its feature In, including: described computing module includes H modular converter, S modular converter and V modular converter;
Described H modular converter, for being converted to this pixel by the corresponding numerical value of the R ' G ' B ' of pixel The numerical value of the tone passage H of HSV;
Described S modular converter is for being converted to this pixel HSV by the corresponding numerical value of the R ' G ' B ' of pixel The numerical value of saturation degree passage S;
Described V modular converter is for being converted to this pixel HSV by the corresponding numerical value of the R ' G ' B ' of pixel The numerical value of saturation degree passage V.
A kind of YUV the most according to claim 8 exists to the system in hsv color space, its feature In, described interim modular converter includes temporary storage cell and interim processing unit;Temporary storage cell is used for Storage YUV to RGB mapping table, interim processing unit is for by each picture of picture of yuv format Vegetarian refreshments is converted to remove the RGB lattice of Y-component by looking into precalculated YUV to RGB mapping table The corresponding numerical value R ' G ' B ' of formula.
11. a kind of YUV according to claim 9 are to the system in hsv color space, and its feature exists In, described H modular converter includes the first processing module and the first memory module, and the first processing module is used for The corresponding numerical value of the R ' G ' B ' of pixel is converted to the numerical value of the saturation degree passage S of this pixel HSV; First memory module is used for storing H mapping table.
12. a kind of YUV according to claim 9 are to the system in hsv color space, and its feature exists In, described S modular converter includes the second processing module and the second memory module, and the second processing module is used for will The corresponding numerical value of the R ' G ' B ' of pixel is converted to the numerical value of the saturation degree passage S of this pixel HSV;The Two memory modules are used for storing S mapping table.
13. a kind of YUV according to claim 10 are to the system in hsv color space, its feature It is, described YUV to RGB mapping table: pass through formula
R'=1.402* (V-128)
G'=-0.344* (U-128)-0.714* (V-128)
B'=1.772* (U-128)
Wherein, U takes the integer of 0 to 255,
V takes the integer of 0 to 255;
U represents carrier chrominance signal passage, and V represents colour difference signal passage;
All for U and V values above-mentioned formula of substitution is obtained YUV to RGB mapping table.
14. a kind of YUV according to claim 11 are to the system in hsv color space, its feature It is, described H mapping table: according to formulaWherein V 'maxRepresent R ' G ' B ' Maximum, V 'minRepresent the minimum of a value of R ' G ' B ';
V′max-V′minTake the integer of 0 to 255;
By V 'max-V′minAll values substitute into above-mentioned formula and obtain H mapping table.
15. a kind of YUV according to claim 12 are to the system in hsv color space, its feature It is, described S mapping table: according to formulaWherein V 'max′Take 0 to 255 integers, V′max′Represent the maximum of R ' G ' B ', by V 'max′All values substitute into above-mentioned formula and obtain S corresponding relation Table.
CN201610200643.XA 2016-03-31 2016-03-31 YUV-HSV color space transformation method and system Pending CN105847775A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610200643.XA CN105847775A (en) 2016-03-31 2016-03-31 YUV-HSV color space transformation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610200643.XA CN105847775A (en) 2016-03-31 2016-03-31 YUV-HSV color space transformation method and system

Publications (1)

Publication Number Publication Date
CN105847775A true CN105847775A (en) 2016-08-10

Family

ID=56597800

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610200643.XA Pending CN105847775A (en) 2016-03-31 2016-03-31 YUV-HSV color space transformation method and system

Country Status (1)

Country Link
CN (1) CN105847775A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114638348A (en) * 2022-05-20 2022-06-17 福思(杭州)智能科技有限公司 Network model adjusting method, device, sensing equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1964502A (en) * 2006-01-12 2007-05-16 安凯(广州)软件技术有限公司 Data driven reconfigurable color image processing system
US20080180456A1 (en) * 2007-01-26 2008-07-31 Microsoft Corporation Fast Filtered YUV to RGB Conversion
CN103489427A (en) * 2012-06-14 2014-01-01 深圳深讯和科技有限公司 Method and system for converting YUV into RGB and converting RGB into YUV

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1964502A (en) * 2006-01-12 2007-05-16 安凯(广州)软件技术有限公司 Data driven reconfigurable color image processing system
US20080180456A1 (en) * 2007-01-26 2008-07-31 Microsoft Corporation Fast Filtered YUV to RGB Conversion
CN103489427A (en) * 2012-06-14 2014-01-01 深圳深讯和科技有限公司 Method and system for converting YUV into RGB and converting RGB into YUV

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘一方等: "基于SSLUT的颜色空间转换的快速算法", 《山东大学学报(工学版)》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114638348A (en) * 2022-05-20 2022-06-17 福思(杭州)智能科技有限公司 Network model adjusting method, device, sensing equipment and storage medium

Similar Documents

Publication Publication Date Title
CN102577397B (en) Image processing device and image processing method
EP2309760B1 (en) Method and apparatus for efficiently calculating multiprimary color conversion matrices
CN102097082B (en) Color regulation method for multi-play unit spliced display system and system thereof
CN107863081A (en) Multiple bases conversion method and its converter, display control method, display device
WO2006108083A3 (en) Systems and methods for implementing low cost gamut mapping algorithms
CN103400566A (en) Method and system for processing RGB (Red, Green, Blue) data
CN101399996B (en) Color filter lens array interpolation method
TW200534229A (en) Systems and methods for improved gamut mapping from one image data set to another
CN108053797A (en) The driving method and driving device of a kind of display device
CN104486608B (en) Image processing method and device
CN107978289A (en) The driving method and driving device of a kind of display device
CN105336288A (en) Method and device for converting RGB signals into RGBW signals and television
CN101729913A (en) Method and system for adjusting image saturation
US20180226031A1 (en) Driving methods and driving devices of display panels
CN103248793A (en) Skin tone optimization method and device for color gamut transformation system
CN104835460A (en) Image processing apparatus, image processing method, display panel driver and display apparatus
CN101212693A (en) White balancing method and image adjusting device
EP3518531B1 (en) Color gamut maintaining system and method
CN102280096A (en) Method for combining image scaling and color space switching
CN110277076B (en) Color mapping method and device, display equipment and medium
CN105847775A (en) YUV-HSV color space transformation method and system
CN102752606B (en) A kind of method carrying out color space conversion based on SSE2
CN101141653B (en) Image regulation device
CN103780887B (en) A kind of video signal processing method and device
CN108717839B (en) Method and device for converting RGB (red, green and blue) to RGBW (red, green and blue) and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned
AD01 Patent right deemed abandoned

Effective date of abandoning: 20180504