CN109635231B - Xy color coordinate adjusting method and device, electronic equipment and storage medium - Google Patents
Xy color coordinate adjusting method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN109635231B CN109635231B CN201811512261.6A CN201811512261A CN109635231B CN 109635231 B CN109635231 B CN 109635231B CN 201811512261 A CN201811512261 A CN 201811512261A CN 109635231 B CN109635231 B CN 109635231B
- Authority
- CN
- China
- Prior art keywords
- coordinate
- relation
- light
- brightness value
- blue light
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/10—Complex mathematical operations
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- General Physics & Mathematics (AREA)
- Pure & Applied Mathematics (AREA)
- Mathematical Optimization (AREA)
- Algebra (AREA)
- Computational Mathematics (AREA)
- Databases & Information Systems (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mathematical Analysis (AREA)
- Spectrometry And Color Measurement (AREA)
- Processing Of Color Television Signals (AREA)
Abstract
The invention provides an xy color coordinate adjusting method, an xy color coordinate adjusting device, electronic equipment and a storage medium, wherein the method comprises the following steps: determining a first change proportion of the x coordinate and the y coordinate when the red light weight is reduced; determining a second change ratio of the x coordinate to the y coordinate when the green light quantity is reduced; determining a third change proportion of the x coordinate and the y coordinate when the blue light quantity is reduced; and determining the adjustment conditions of the brightness values of the three primary colors of red light, green light and blue light according to the preset xy color coordinate adjustment requirement, the first change proportion, the second change proportion and the third change proportion. The xy color coordinate adjusting method quantifies the influence of the RGB components of the three primary colors on the xy color coordinate adjustment, realizes the adjustment of the xy color coordinate by adjusting the RGB components of the three primary colors, and provides guidance for the actual xy color coordinate calibration.
Description
Technical Field
The invention relates to the technical field of computers, in particular to an xy color coordinate adjusting method and device, electronic equipment and a storage medium.
Background
The xy chromaticity coordinate is a color coordinate system artificially defined, as shown in fig. 2, it can be described by quantizing any color into x and y two-dimensional coordinates, i.e. any color corresponds to a unique xy chromaticity coordinate.
It can be seen that the xy chromaticity coordinate is an artificial coordinate system for measuring color, and in practical application, it is the component of RGB that cannot be directly adjusted.
At present, when xy chromaticity coordinates need to be adjusted, it is not clear how to achieve the purpose of adjusting the corresponding xy chromaticity coordinates by adjusting the parts of RGB.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides an xy color coordinate adjusting method, an xy color coordinate adjusting device, electronic equipment and a storage medium.
In order to achieve the purpose, the invention provides the following technical scheme:
in a first aspect, the present invention provides an xy color coordinate adjustment method, including:
according to the relation between the x coordinate and the brightness values of the three primary colors of red light, green light and blue light, the relation between the x coordinate and the brightness value of the red light is obtained when the red light weight is reduced by one and the green light and blue light weight is unchanged; and acquiring the relation between the y coordinate and the brightness value of red light when the red light weight is reduced by one and the green light and blue light weight is unchanged according to the relation between the y coordinate and the brightness values of the three primary colors of red light, green light and blue light;
according to the relation between the x coordinate and the three primary color brightness values of red light, green light and blue light, obtaining the relation between the x coordinate and the brightness value of the green light when the green light weight is reduced by one weight and the red light and blue light weight is unchanged; and acquiring the relation between the y coordinate and the brightness value of the green light when the green light quantity is reduced by one and the red light and blue light quantity is unchanged according to the relation between the y coordinate and the brightness values of the three primary colors of the red light, the green light and the blue light;
according to the relation between the x coordinate and the brightness values of the three primary colors of red light, green light and blue light, the relation between the x coordinate and the brightness value of the blue light is obtained when the blue light quantity is reduced by one and the red light quantity and the green light quantity are unchanged; and acquiring the relation between the y coordinate and the brightness value of the blue light when the blue light weight is reduced by one and the red light weight and the green light weight are unchanged according to the relation between the y coordinate and the brightness values of the three primary colors of the red light, the green light and the blue light;
determining a first change proportion of the x coordinate and the y coordinate when the red light quantity is reduced according to the relation between the x coordinate and the red light brightness value and the relation between the y coordinate and the red light brightness value;
determining a second change proportion of the x coordinate and the y coordinate when the green light quantity is reduced according to the relation between the x coordinate and the green light brightness value and the relation between the y coordinate and the green light brightness value;
determining a third change proportion of the x coordinate and the y coordinate when the blue light quantity is reduced according to the relation between the x coordinate and the blue light brightness value and the relation between the y coordinate and the blue light brightness value;
and determining the adjustment conditions of the brightness values of the three primary colors of red light, green light and blue light according to the preset xy color coordinate adjustment requirement, the first change proportion, the second change proportion and the third change proportion.
Further, the relationship between the x coordinate and the red brightness value is: x =0.12R +0.22; the relationship between the y coordinate and the red luminance value is: y = -0.02R +0.35;
correspondingly, the determining the first change ratio of the x coordinate and the y coordinate when the red light portion is reduced according to the relationship between the x coordinate and the red light brightness value and the relationship between the y coordinate and the red light brightness value includes:
according to the relation x =0.12R +0.22 between the x coordinate and the red light brightness value and the relation y = -0.02R +0.35 between the y coordinate and the red light brightness value, determining that when the red light component is reduced, the first change ratio of the x coordinate to the y coordinate is-12;
the relationship between the x coordinate and the green brightness value is: x = -0.03G +0.37; the relationship between the y coordinate and the green brightness value is: y =0.24G +0.1;
accordingly, the determining a second variation ratio of the x coordinate and the y coordinate when the green light quantity is decreased according to the relationship between the x coordinate and the green light brightness value and the relationship between the y coordinate and the green light brightness value includes:
according to the relation x = -0.03G +0.37 between the x coordinate and the green light brightness value and the relation y =0.24G +0.1 between the y coordinate and the green light brightness value, determining that when the green light quantity is reduced, the second change ratio of the x coordinate to the y coordinate is +3: -24;
the relationship between the x coordinate and the blue light brightness value is: x = -0.12B +0.45; the relationship between the y coordinate and the blue light brightness value is: y = -0.22B +0.55;
correspondingly, the determining a third variation ratio of the x coordinate and the y coordinate when the blue light portion is reduced according to the relationship between the x coordinate and the blue light brightness value and the relationship between the y coordinate and the blue light brightness value includes:
according to the relation x = -0.12B +0.45 between the x coordinate and the blue light brightness value and the relation y = -0.22B +0.55 between the y coordinate and the blue light brightness value, the third change ratio of the x coordinate and the y coordinate is determined to be +12: +22 when the blue light quantity is reduced.
Further, the determining the adjustment condition of the three primary color brightness values of red light, green light and blue light according to the preset xy color coordinate adjustment requirement and the first change proportion, the second change proportion and the third change proportion includes:
if the preset xy color coordinate adjustment requirement is that the x coordinate needs to be increased, determining the weight of green light and blue light to be reduced according to the first change proportion, the second change proportion and the third change proportion, wherein the corresponding relation between the weight change of the green light and the blue light and the change of the x coordinate and the y coordinate is as follows: g (1-f), B (1-f), corresponding x and y coordinate variations to +15 × k, -2 × k; k is a normalization constant, f is the reduction amplitude of the RGB components;
if the preset xy color coordinate adjustment requirement is that the y coordinate needs to be increased, determining the parts of the red light and the blue light which need to be reduced according to the first change proportion, the second change proportion and the third change proportion, wherein the corresponding relation between the part change of the red light and the blue light and the change of the x coordinate and the y coordinate is as follows: r (1-f), B (1-f), corresponding x and y coordinate variations of 0 × k, +24 × k;
if the preset xy color coordinate adjustment requirement is that the x coordinate needs to be reduced, determining the weight of red light to be reduced according to the first change proportion, the second change proportion and the third change proportion, wherein the corresponding relation between the weight change of the red light and the changes of the x coordinate and the y coordinate is as follows: r (1-2 f), corresponding to x and y coordinate variations of-24 x k, +4 x k;
if the preset xy color coordinate adjustment requirement is that the y coordinate needs to be reduced, determining the green light quantity needing to be reduced according to the first change proportion, the second change proportion and the third change proportion, wherein the corresponding relation between the green light quantity change and the change of the x coordinate and the y coordinate is as follows: g (1-f), corresponding to x and y coordinate changes of +3 × k, -24 × k.
Further, when f is between 0.004 and 0.006, the independent adjustment amplitude 24 xk of the x coordinate and the y coordinate can be accurate to 0.001.
In a second aspect, the present invention further provides an xy color coordinate adjusting apparatus, including:
the first acquisition module is used for acquiring the relation between the x coordinate and the red light brightness value when the red light weight is reduced by one and the green light and blue light weight is unchanged according to the relation between the x coordinate and the red light, green light and blue light three-primary color brightness values; and obtaining the relation between the y coordinate and the brightness value of the red light when the red light weight is reduced by one part and the green light and blue light weight is unchanged according to the relation between the y coordinate and the brightness values of the three primary colors of the red light, the green light and the blue light;
the second acquisition module is used for acquiring the relation between the x coordinate and the brightness value of the green light when the green light weight is reduced by one part and the red light weight and the blue light weight are unchanged according to the relation between the x coordinate and the brightness values of the three primary colors of the red light, the green light and the blue light; and acquiring the relation between the y coordinate and the brightness value of the green light when the green light weight is reduced by one and the red light weight and the blue light weight are unchanged according to the relation between the y coordinate and the brightness values of the three primary colors of the red light, the green light and the blue light;
the third acquisition module is used for acquiring the relation between the x coordinate and the brightness value of the blue light when the blue light weight is reduced by one part and the red light weight and the green light weight are unchanged according to the relation between the x coordinate and the brightness values of the three primary colors of the red light, the green light and the blue light; and acquiring the relation between the y coordinate and the brightness value of the blue light when the blue light weight is reduced by one and the red light weight and the green light weight are unchanged according to the relation between the y coordinate and the brightness values of the three primary colors of the red light, the green light and the blue light;
the first determining module is used for determining a first change proportion of the x coordinate and the y coordinate when the red light quantity is reduced according to the relation between the x coordinate and the red light brightness value and the relation between the y coordinate and the red light brightness value;
the second determining module is used for determining a second change proportion of the x coordinate and the y coordinate when the green light weight is reduced according to the relation between the x coordinate and the green light brightness value and the relation between the y coordinate and the green light brightness value;
the third determining module is used for determining a third change proportion of the x coordinate and the y coordinate when the blue light quantity is reduced according to the relation between the x coordinate and the blue light brightness value and the relation between the y coordinate and the blue light brightness value;
and the adjusting module is used for determining the adjusting conditions of the brightness values of the three primary colors of red light, green light and blue light according to the preset xy color coordinate adjusting requirement and the first change proportion, the second change proportion and the third change proportion.
Further, the relationship between the x coordinate and the red luminance value is: x =0.12R +0.22; the relationship between the y coordinate and the red luminance value is: y = -0.02R +0.35;
correspondingly, the first determining module is specifically configured to:
according to the relation x =0.12R +0.22 between the x coordinate and the red light brightness value and the relation y = -0.02R +0.35 between the y coordinate and the red light brightness value, determining that when the red light content is reduced, the first change ratio of the x coordinate to the y coordinate is-12;
the relationship between the x coordinate and the green brightness value is: x = -0.03G +0.37; the relationship between the y coordinate and the green brightness value is: y =0.24G +0.1;
correspondingly, the second determining module is specifically configured to:
according to the relation x = -0.03G +0.37 between the x coordinate and the brightness value of the green light and the relation y =0.24G +0.1 between the y coordinate and the brightness value of the green light, a second change ratio of the x coordinate to the y coordinate is determined to be +3: 24 when the green light weight is reduced;
the relationship between the x coordinate and the blue luminance value is: x = -0.12B +0.45; the relationship between the y coordinate and the blue light brightness value is: y = -0.22B +0.55;
correspondingly, the third determining module is specifically configured to:
according to the relation x = -0.12B +0.45 between the x coordinate and the blue light brightness value and the relation y = -0.22B +0.55 between the y coordinate and the blue light brightness value, the third change ratio of the x coordinate and the y coordinate is determined to be +12: +22 when the blue light quantity is reduced.
Further, the adjusting module is specifically configured to:
if the preset xy color coordinate adjustment requirement is that the x coordinate needs to be increased, determining the weight of green light and blue light to be reduced according to the first change proportion, the second change proportion and the third change proportion, wherein the corresponding relation between the weight change of the green light and the blue light and the change of the x coordinate and the y coordinate is as follows: g (1-f), B (1-f), corresponding x and y coordinate variations of +15 × k, -2 × k; k is a normalization constant, f is the reduction amplitude of the RGB components;
if the preset xy color coordinate adjustment requirement is that the y coordinate needs to be increased, determining the weight of red light and blue light to be reduced according to the first change proportion, the second change proportion and the third change proportion, wherein the corresponding relation between the weight change of red light and blue light and the change of the x coordinate and the y coordinate is as follows: r (1-f), B (1-f), corresponding to x and y coordinate changes of 0 × k, +24 × k;
if the preset xy color coordinate adjustment requirement is that the x coordinate needs to be reduced, determining the part quantity of red light needs to be reduced according to the first change proportion, the second change proportion and the third change proportion, wherein the corresponding relation between the part quantity change of the red light and the change of the x coordinate and the y coordinate is as follows: r (1-2 f), corresponding to x and y coordinate changes of-24 × k, +4 × k;
if the preset xy color coordinate adjustment requirement is that the y coordinate needs to be reduced, determining the green light quantity needing to be reduced according to the first change proportion, the second change proportion and the third change proportion, wherein the corresponding relation between the green light quantity change and the change of the x coordinate and the y coordinate is as follows: g (1-f), corresponding to x and y coordinate changes of +3 × k, -24 × k.
Further, when the value of f is between 0.004 and 0.006, the amplitude 24 × k of the independent adjustment of the x coordinate and the y coordinate can be accurate to 0.001.
In a third aspect, the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the xy color coordinate adjustment method according to the first aspect when executing the program.
In a fourth aspect, the present invention also provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the xy-color coordinate adjustment method according to the first aspect.
According to the technical scheme, the xy color coordinate adjusting method provided by the invention firstly obtains the relation between the x coordinate and the red light brightness value and the relation between the y coordinate and the red light brightness value when the red light weight is reduced by one weight and the green light and blue light weight are unchanged, and obtains the relation between the x coordinate and the green light brightness value and the relation between the y coordinate and the green light brightness value when the green light weight is reduced by one weight and the red light and blue light weight are unchanged; obtaining the relation between an x coordinate and a blue light brightness value and the relation between a y coordinate and a blue light brightness value when the blue light quantity is reduced by one and the red light and green light quantity is unchanged, then determining a first change proportion of the x coordinate and the y coordinate when the red light quantity is reduced according to the relation between the x coordinate and the red light brightness value and the relation between the y coordinate and the red light brightness value, determining a second change proportion of the x coordinate and the y coordinate when the green light quantity is reduced according to the relation between the x coordinate and the green light brightness value and the relation between the y coordinate and the green light brightness value, determining a third change proportion of the x coordinate and the y coordinate when the blue light quantity is reduced according to the relation between the x coordinate and the blue light brightness value and the relation between the y coordinate and the blue light brightness value, and finally determining the adjustment condition of the red light brightness value, the green light brightness value and the blue light brightness value according to the preset xy color coordinate adjustment requirement, the first change proportion, the second change proportion and the third change proportion. Therefore, the xy color coordinate adjusting method provided by the invention quantifies the influence of the three primary colors RGB components on the xy color coordinate adjustment, realizes the adjustment of the xy color coordinate by adjusting the three primary colors RGB components, and provides guidance for the actual xy color coordinate calibration.
Drawings
In order to more clearly illustrate the embodiments or technical solutions of the present invention, the drawings used in the embodiments or technical solutions in the prior art are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of an xy color coordinate adjustment method according to an embodiment of the present invention;
FIG. 2 is a schematic representation of xy chromaticity coordinates;
FIG. 3 is a schematic diagram of a hyperbolic function of x with respect to R parts according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a linear function of x with respect to R parts according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of the relationship between the x coordinate and the y coordinate when the R, G, and B components are respectively decreased according to an embodiment of the present invention;
fig. 6 is a schematic structural view of an xy coordinate adjustment apparatus according to another embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to yet another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
An embodiment of the present invention provides an xy color coordinate adjustment method, which includes the following steps, with reference to fig. 1:
step 101: according to the relation between the x coordinate and the brightness values of the three primary colors of red light, green light and blue light, the relation between the x coordinate and the brightness value of the red light is obtained when the red light weight is reduced by one and the green light and blue light weight is unchanged; and acquiring the relation between the y coordinate and the brightness value of the red light when the red light weight is reduced by one part and the green light and blue light weight is unchanged according to the relation between the y coordinate and the brightness values of the three primary colors of the red light, the green light and the blue light.
In this step, it should be noted that when the luminance ratio of the RGB three-color light is 1.5907: 1:1, the brightness values of the same red light, green light and blue light are different. The transformation formula according to the CIE1931 coordinate system is as follows:
x=0.49R+0.31G+0.2B/(0.667R+1.132G+1.2B);
y=0.177R+0.812G+0.01B/(0.667R+1.132G+1.2B)
assuming that the red light dose is adjusted to be reduced by one dose, and the green light and blue light dose is not changed, it can be obtained that:
x=(0.49R+0.51)/(0.667R+2.332)
this function is a hyperbolic function of x with respect to the amount of R (as shown in fig. 3), but the adjustment ratio of R can only be from 0 to 1.
The curve of the truncated R from 0 to 1 can be approximated as a straight line as shown in fig. 4, and it can be simplified to a linear function:
x =0.12R +0.22 (R value 0-1)
The relationship between y and R is derived similarly as follows:
y=(0.177R+0.822)/(0.667R+2.332)
simplified to a linear function:
y = -0.02R +0.35 (R takes 0-1).
Step 102: according to the relation between the x coordinate and the brightness values of the three primary colors of red light, green light and blue light, the relation between the x coordinate and the brightness value of the green light is obtained when the green light quantity is reduced by one and the red light and blue light quantity is unchanged; and acquiring the relation between the y coordinate and the brightness value of the green light when the green light quantity is reduced by one and the red light and blue light quantity is unchanged according to the relation between the y coordinate and the brightness values of the three primary colors of the red light, the green light and the blue light.
In this step, referring to the processing procedure of step 101, the relationship between the x coordinate and the brightness value of green light can be obtained as follows:
x = -0.03G +0.37 (G takes the value of 0-1);
relationship between y-coordinate and green luminance value:
y =0.24G +0.1 (G takes a value of 0-1).
Step 103: obtaining the relation between the x coordinate and the brightness value of blue light when the blue light weight is reduced by one and the red light weight and the green light weight are unchanged according to the relation between the x coordinate and the brightness values of the three primary colors of red light, green light and blue light; and acquiring the relation between the y coordinate and the brightness value of the blue light when the blue light quantity is reduced by one and the red light quantity and the green light quantity are unchanged according to the relation between the y coordinate and the brightness values of the three primary colors of the red light, the green light and the blue light.
In this step, referring to the processing procedure of step 101, the relationship between the x coordinate and the blue light brightness value can be obtained as follows:
x = -0.12B +0.45 (B takes a value of 0-1);
relationship between y-coordinate and blue luminance value:
y = -0.22B +0.55 (B value is 0-1).
Step 104: and determining a first change proportion of the x coordinate and the y coordinate when the red light quantity is reduced according to the relation between the x coordinate and the red light brightness value and the relation between the y coordinate and the red light brightness value.
In this step, according to the relationship x =0.12r +0.22 between the x coordinate and the red brightness value and the relationship y = -0.02r +0.35 between the y coordinate and the red brightness value, it can be known that when the red light dose is reduced, the relationship between the x coordinate and the y coordinate is: 12y = -2 (x-0.22) +0.35 x 12, and it is further determined that when the red light portion is reduced, the change of the x coordinate and the y coordinate satisfies-12.
Step 105: and determining a second change proportion of the x coordinate and the y coordinate when the green light quantity is reduced according to the relation between the x coordinate and the green light brightness value and the relation between the y coordinate and the green light brightness value.
In this step, according to the relationship x = -0.03g +0.37 between the x coordinate and the green light brightness value and the relationship y =0.24g +0.1 between the y coordinate and the green light brightness value, it can be known that when the green light quantity is reduced, the relationship between the x coordinate and the y coordinate is: 3y = -24 (x-0.37) +0.3, and it is determined that when the green light portion is decreased, the change of the x-coordinate and the y-coordinate satisfies +3: -24, that is, the second change ratio of the x-coordinate to the y-coordinate is +3: -24.
Step 106: and determining a third change proportion of the x coordinate and the y coordinate when the blue light quantity is reduced according to the relation between the x coordinate and the blue light brightness value and the relation between the y coordinate and the blue light brightness value.
In this step, according to the relationship x = -0.12b +0.45 between the x coordinate and the blue light brightness value and the relationship y = -0.22b +0.55 between the y coordinate and the blue light brightness value, it can be known that when the blue light component is reduced, the relationship between the x coordinate and the y coordinate is: 12y = (x-0.45) +22 +0.55 +12, and thus it is determined that when the blue light amount is decreased, the change of the x coordinate and the y coordinate satisfies +12: +22, that is, the third change ratio of the x coordinate to the y coordinate is +12: +22.
Step 107: and determining the adjustment conditions of the brightness values of the three primary colors of red light, green light and blue light according to the preset xy color coordinate adjustment requirement, the first change proportion, the second change proportion and the third change proportion.
In this step, according to a preset xy color coordinate adjustment requirement, the first change proportion, the second change proportion, and the third change proportion, the adjustment condition of the three primary color brightness values of red light, green light, and blue light can be determined, and then the preset xy color coordinate adjustment requirement is realized by adjusting the three primary color brightness values of red light, green light, and blue light. For example:
if the preset xy color coordinate adjustment requirement is that the x coordinate needs to be increased, determining the weight of green light and blue light to be reduced according to the first change proportion, the second change proportion and the third change proportion, wherein the corresponding relation between the weight change of the green light and the blue light and the change of the x coordinate and the y coordinate is as follows: g (1-f), B (1-f), corresponding x and y coordinate variations to +15 × k, -2 × k; k is a normalization constant, f is the reduction amplitude of the RGB components;
if the preset xy color coordinate adjustment requirement is that the y coordinate needs to be increased, determining the weight of red light and blue light to be reduced according to the first change proportion, the second change proportion and the third change proportion, wherein the corresponding relation between the weight change of red light and blue light and the change of the x coordinate and the y coordinate is as follows: r (1-f), B (1-f), corresponding to x and y coordinate changes of 0 × k, +24 × k;
if the preset xy color coordinate adjustment requirement is that the x coordinate needs to be reduced, determining the part quantity of red light needs to be reduced according to the first change proportion, the second change proportion and the third change proportion, wherein the corresponding relation between the part quantity change of the red light and the change of the x coordinate and the y coordinate is as follows: r (1-2 f), corresponding to x and y coordinate changes of-24 × k, +4 × k;
if the preset xy color coordinate adjustment requirement is that the y coordinate needs to be reduced, determining the green light quantity to be reduced according to the first change proportion, the second change proportion and the third change proportion, wherein the corresponding relation between the green light quantity change and the change of the x coordinate and the y coordinate is as follows: g (1-f), corresponding to x and y coordinate changes of +3 × k, -24 × k.
The process described in this step is explained in detail below with reference to fig. 5. In this step, the following three functions are unified into the xy chromaticity coordinate system for display, as shown in fig. 5:
12y=-2(x-0.22)+0.35*12
3y=-24(x-0.37)+0.3
12y=(x-0.45)*22+0.55*12
as can be seen from the vector overlay of fig. 5:
when x is desired to be increased, G should be decreased by one while B is decreased by one. The increase in x is then approximately considered to be 15 x k, where k is a constant to facilitate normalization and y decreases by 2 x k. x varies much faster than y, and when the magnitude of the decrease in G and B is controlled well, x can be considered approximately to increase alone. The following results can be obtained with the same vector superposition (k is the normalization constant and f is the decreasing magnitude of the RGB components):
x needs to be increased, G x (1-f), B x (1-f), when x and y change to: +15 × k, -2 × k.
y is increased, R (1-f), B (1-f), where x and y are changed as: 0 × k, +24 × k.
x needs to be decreased, R (1-2 f), where x and y change to: -24 × k, +4 × k.
y needs to be decreased, G x (1-f), where x and y change to: 3 × k, -24 × k.
In addition, it should be noted that due to the range limitation of the color analyzer CA310, it is desirable that the adjustment range of x and y is accurate to the last bit of 0.001. Empirical analysis of experimental data shows that when f =0.004 to 0.006, the amplitude of x, y adjustment alone (i.e. 24 × k) can be accurate to the last 0.001 (note that the amplitude of f should be multiplied by 24/15 when x increases), and when one grid is adjusted, the xy color coordinates of the CA310 instrument will not change at this time because the amplitude of change of 2 × k,3 × k,4 × k is small. So far, the quantitative adjustment of xy chromaticity coordinates is realized by reducing the weight ratio of three primary colors of RGB.
It should be noted that there is a linear correlation between the values of f and k. In fact, the core of this embodiment is to provide a relative change ratio of the coordinates x and y when R, G, and B are reduced according to the amplitude f, so that according to this relationship, when the x coordinate or the y coordinate needs to be adjusted, several amplitude values of the corresponding color component can be reduced, thereby realizing the adjustment of the size of the corresponding x coordinate or the y coordinate.
The xy color coordinate adjustment method provided in this embodiment is described below by way of example. For example, it is currently desired to increase the y-axis by 0.01, measuring that the color coordinates of a certain display screen are 0.2920.296. When f =0.0045 is calculated according to the above analysis, x =0.293, y =0.306 is tested when the R, B amount is decreased by 10 × f grid, and it is noted that x is slightly changed by 0.001 at this time because of a small error due to the linear approximation, and then xy is tested again to reach the target value when x is decreased by one grid, that is, the R amount is decreased by 2f × 24/15.
Furthermore, when the amplitude span of the adjustment xy is large, xy may generate an undesirable small drift due to the continuous accumulation of 2 × k,3 × k,4 × k, but finally the drift value may be corrected again in a targeted manner to adjust to the target coordinate value.
It can be known from the foregoing technical solution that, in the xy color coordinate adjustment method provided in this embodiment, first, a relationship between an x coordinate and a red light brightness value and a relationship between a y coordinate and a red light brightness value when the red light component is reduced by one component and the green light and blue light components are unchanged are obtained, and a relationship between an x coordinate and a green light brightness value and a relationship between a y coordinate and a green light brightness value when the green light component is reduced by one component and the red light and blue light components are unchanged are obtained; obtaining the relation between an x coordinate and a blue light brightness value and the relation between a y coordinate and a blue light brightness value when the blue light weight is reduced by one part and the red light green light weight is unchanged, then determining a first change proportion of the x coordinate and the y coordinate when the red light weight is reduced according to the relation between the x coordinate and the red light brightness value and the relation between the y coordinate and the red light brightness value, determining a second change proportion of the x coordinate and the y coordinate when the green light weight is reduced according to the relation between the x coordinate and the green light brightness value and the relation between the y coordinate and the green light brightness value, determining a third change proportion of the x coordinate and the y coordinate when the blue light weight is reduced according to the relation between the x coordinate and the blue light brightness value and the relation between the y coordinate and the blue light brightness value, and finally determining the adjustment conditions of the red light brightness value, the green light brightness value and the blue light brightness value according to the preset three primary color coordinates adjustment requirements, the first change proportion, the second change proportion and the third change proportion. Therefore, the xy color coordinate adjustment method provided by the embodiment quantifies the influence of the three primary colors RGB components on the xy color coordinate adjustment, and the xy color coordinate adjustment is realized by adjusting the three primary colors RGB components, thereby providing theoretical guidance for the actual xy color coordinate calibration.
Another embodiment of the present invention provides an xy color coordinate adjusting apparatus, which includes, referring to fig. 6: a first obtaining module 21, a second obtaining module 22, a third obtaining module 23, a first determining module 24, a second determining module 25, a third determining module 26, and an adjusting module 27, wherein:
the first obtaining module 21 is configured to obtain, according to a relationship between the x coordinate and the three primary color luminance values of red light, green light, and blue light, a relationship between the x coordinate and the red light luminance value when the red light amount is reduced by one, and the green light amount and the blue light amount are unchanged; and acquiring the relation between the y coordinate and the brightness value of red light when the red light weight is reduced by one and the green light and blue light weight is unchanged according to the relation between the y coordinate and the brightness values of the three primary colors of red light, green light and blue light;
a second obtaining module 22, configured to obtain, according to a relationship between the x coordinate and luminance values of three primary colors of red light, green light, and blue light, a relationship between the x coordinate and the luminance values of the green light when the green light amount is reduced by one and the red light and blue light amounts are unchanged; and acquiring the relation between the y coordinate and the brightness value of the green light when the green light quantity is reduced by one and the red light and blue light quantity is unchanged according to the relation between the y coordinate and the brightness values of the three primary colors of the red light, the green light and the blue light;
a third obtaining module 23, configured to obtain, according to a relationship between the x coordinate and the three primary color luminance values of red light, green light, and blue light, a relationship between the x coordinate and the blue light luminance value when the blue light amount is reduced by one, and the red light amount and the green light amount are not changed; and obtaining the relation between the y coordinate and the brightness value of the blue light when the blue light weight is reduced by one and the red light weight and the green light weight are unchanged according to the relation between the y coordinate and the brightness values of the three primary colors of the red light, the green light and the blue light;
the first determining module 24 is configured to determine, according to a relationship between the x coordinate and the red light brightness value and a relationship between the y coordinate and the red light brightness value, a first change ratio of the x coordinate to the y coordinate when the red light component is reduced;
a second determining module 25, configured to determine, according to the relationship between the x coordinate and the green light brightness value and the relationship between the y coordinate and the green light brightness value, a second change ratio of the x coordinate and the y coordinate when the green light quantity decreases;
a third determining module 26, configured to determine, according to a relationship between the x coordinate and the luminance value of the blue light and a relationship between the y coordinate and the luminance value of the blue light, a third variation ratio of the x coordinate and the y coordinate when the blue light portion is decreased;
and the adjusting module 27 determines the adjusting conditions of the three primary color brightness values of red light, green light and blue light according to the preset xy color coordinate adjusting requirement, the first change proportion, the second change proportion and the third change proportion.
Based on the above example content, in an alternative implementation, the relationship between the x coordinate and the red brightness value is: x =0.12R +0.22; the relationship between the y coordinate and the red luminance value is: y = -0.02R +0.35;
accordingly, the first determining module is specifically configured to:
according to the relation x =0.12R +0.22 between the x coordinate and the red light brightness value and the relation y = -0.02R +0.35 between the y coordinate and the red light brightness value, determining that when the red light content is reduced, the first change ratio of the x coordinate to the y coordinate is-12;
the relationship between the x coordinate and the green brightness value is: x = -0.03G +0.37; the relationship between the y coordinate and the green brightness value is: y =0.24G +0.1;
correspondingly, the second determining module is specifically configured to:
according to the relation x = -0.03G +0.37 between the x coordinate and the green light brightness value and the relation y =0.24G +0.1 between the y coordinate and the green light brightness value, determining that when the green light quantity is reduced, the second change ratio of the x coordinate to the y coordinate is +3: -24;
the relationship between the x coordinate and the blue light brightness value is: x = -0.12B +0.45; the relationship between the y coordinate and the blue light brightness value is: y = -0.22B +0.55;
correspondingly, the third determining module is specifically configured to:
according to the relation x = -0.12B +0.45 between the x coordinate and the blue light brightness value and the relation y = -0.22B +0.55 between the y coordinate and the blue light brightness value, the third change ratio of the x coordinate and the y coordinate is determined to be +12: +22 when the blue light quantity is reduced.
Based on the foregoing embodiment, in an optional implementation manner, the adjusting module is specifically configured to:
if the preset xy color coordinate adjustment requirement is that the x coordinate needs to be increased, determining the weight of green light and blue light to be reduced according to the first change proportion, the second change proportion and the third change proportion, wherein the corresponding relation between the weight change of the green light and the blue light and the change of the x coordinate and the y coordinate is as follows: g (1-f), B (1-f), corresponding x and y coordinate variations of +15 × k, -2 × k; k is a normalization constant, f is the reduction amplitude of the RGB components;
if the preset xy color coordinate adjustment requirement is that the y coordinate needs to be increased, determining the weight of red light and blue light to be reduced according to the first change proportion, the second change proportion and the third change proportion, wherein the corresponding relation between the weight change of red light and blue light and the change of the x coordinate and the y coordinate is as follows: r (1-f), B (1-f), corresponding to x and y coordinate changes of 0 × k, +24 × k;
if the preset xy color coordinate adjustment requirement is that the x coordinate needs to be reduced, determining the part quantity of red light needs to be reduced according to the first change proportion, the second change proportion and the third change proportion, wherein the corresponding relation between the part quantity change of the red light and the change of the x coordinate and the y coordinate is as follows: r (1-2 f), corresponding to x and y coordinate changes of-24 × k, +4 × k;
if the preset xy color coordinate adjustment requirement is that the y coordinate needs to be reduced, determining the green light quantity needing to be reduced according to the first change proportion, the second change proportion and the third change proportion, wherein the corresponding relation between the green light quantity change and the change of the x coordinate and the y coordinate is as follows: g (1-f), corresponding to x and y coordinate changes of +3 × k, -24 × k.
Based on the above example, in an alternative embodiment, when f is between 0.004 and 0.006, the individual adjustment amplitudes 24 × k of the x and y coordinates can be accurate to 0.001.
The xy color coordinate adjusting device provided by the embodiment of the invention can be used for executing the xy color coordinate adjusting method described in the embodiment, the working principle and the beneficial effect are similar, and the details are not described here.
Based on the same inventive concept, another embodiment of the present invention provides an electronic device, which specifically includes the following components, with reference to fig. 7: a processor 501, memory 502, communication interface 503, and bus 504;
the processor 501, the memory 502 and the communication interface 503 complete mutual communication through the bus 504; the communication interface 503 is used for realizing information transmission between related devices such as modeling software, an intelligent manufacturing equipment module library and the like;
the processor 501 is configured to call a computer program in the memory 502, and when the processor executes the computer program, the processor implements all the steps of the xy color coordinate adjustment method, for example, when the processor executes the computer program, the processor implements the following steps:
step 101: according to the relation between the x coordinate and the three primary color brightness values of the red light, the green light and the blue light, the relation between the x coordinate and the red light brightness value is obtained when the red light weight is reduced by one part and the green light and blue light weight is unchanged; and acquiring the relation between the y coordinate and the brightness value of the red light when the red light weight is reduced by one and the green light and blue light weight is unchanged according to the relation between the y coordinate and the brightness values of the three primary colors of the red light, the green light and the blue light.
Step 102: according to the relation between the x coordinate and the brightness values of the three primary colors of red light, green light and blue light, the relation between the x coordinate and the brightness value of the green light is obtained when the green light quantity is reduced by one and the red light and blue light quantity is unchanged; and acquiring the relation between the y coordinate and the brightness value of the green light when the green light weight is reduced by one part and the red light weight and the blue light weight are unchanged according to the relation between the y coordinate and the brightness values of the three primary colors of the red light, the green light and the blue light.
Step 103: obtaining the relation between the x coordinate and the brightness value of blue light when the blue light weight is reduced by one and the red light weight and the green light weight are unchanged according to the relation between the x coordinate and the brightness values of the three primary colors of red light, green light and blue light; and acquiring the relation between the y coordinate and the brightness value of the blue light when the blue light weight is reduced by one and the red light weight and the green light weight are unchanged according to the relation between the y coordinate and the brightness values of the three primary colors of the red light, the green light and the blue light.
Step 104: and determining a first change proportion of the x coordinate and the y coordinate when the red light quantity is reduced according to the relation between the x coordinate and the red light brightness value and the relation between the y coordinate and the red light brightness value.
Step 105: and determining a second change proportion of the x coordinate and the y coordinate when the green light quantity is reduced according to the relation between the x coordinate and the green light brightness value and the relation between the y coordinate and the green light brightness value.
Step 106: and determining a third change proportion of the x coordinate and the y coordinate when the blue light quantity is reduced according to the relation between the x coordinate and the blue light brightness value and the relation between the y coordinate and the blue light brightness value.
Step 107: and determining the adjustment conditions of the brightness values of the three primary colors of red light, green light and blue light according to the preset xy color coordinate adjustment requirement and the first change proportion, the second change proportion and the third change proportion.
Based on the same inventive concept, another embodiment of the present invention provides a computer-readable storage medium, having a computer program stored thereon, where the computer program is executed by a processor to implement all the steps of the xy color coordinate adjustment method, for example, when the processor executes the computer program, the processor implements the following steps:
step 101: according to the relation between the x coordinate and the brightness values of the three primary colors of red light, green light and blue light, the relation between the x coordinate and the brightness value of the red light is obtained when the red light weight is reduced by one and the green light and blue light weight is unchanged; and acquiring the relation between the y coordinate and the brightness value of the red light when the red light weight is reduced by one and the green light and blue light weight is unchanged according to the relation between the y coordinate and the brightness values of the three primary colors of the red light, the green light and the blue light.
Step 102: according to the relation between the x coordinate and the three primary color brightness values of red light, green light and blue light, obtaining the relation between the x coordinate and the brightness value of the green light when the green light weight is reduced by one weight and the red light and blue light weight is unchanged; and acquiring the relation between the y coordinate and the brightness value of the green light when the green light quantity is reduced by one and the red light and blue light quantity is unchanged according to the relation between the y coordinate and the brightness values of the three primary colors of the red light, the green light and the blue light.
Step 103: according to the relation between the x coordinate and the brightness values of the three primary colors of red light, green light and blue light, the relation between the x coordinate and the brightness value of the blue light is obtained when the blue light quantity is reduced by one and the red light quantity and the green light quantity are unchanged; and acquiring the relation between the y coordinate and the brightness value of the blue light when the blue light weight is reduced by one and the red light weight and the green light weight are unchanged according to the relation between the y coordinate and the brightness values of the three primary colors of the red light, the green light and the blue light.
Step 104: and determining a first change proportion of the x coordinate and the y coordinate when the red light quantity is reduced according to the relation between the x coordinate and the red light brightness value and the relation between the y coordinate and the red light brightness value.
Step 105: and determining a second change proportion of the x coordinate and the y coordinate when the green light quantity is reduced according to the relation between the x coordinate and the green light brightness value and the relation between the y coordinate and the green light brightness value.
Step 106: and determining a third change proportion of the x coordinate and the y coordinate when the blue light quantity is reduced according to the relation between the x coordinate and the blue light brightness value and the relation between the y coordinate and the blue light brightness value.
Step 107: and determining the adjustment conditions of the brightness values of the three primary colors of red light, green light and blue light according to the preset xy color coordinate adjustment requirement and the first change proportion, the second change proportion and the third change proportion.
In the description of the present invention, it should be noted that the terms "upper", "lower", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, which are merely for convenience in describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed in a specific orientation, and operate, and thus, should not be construed as limiting the present invention. Unless expressly stated or limited otherwise, the terms "mounted," "connected," and "connected" are intended to be inclusive and mean, for example, that they may be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The above examples are only for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. An xy color coordinate adjustment method is characterized by comprising the following steps:
according to the relation between the x coordinate and the brightness values of the three primary colors of red light, green light and blue light, the relation between the x coordinate and the brightness value of the red light is obtained when the red light weight is reduced by one and the green light and blue light weight is unchanged; and acquiring the relation between the y coordinate and the brightness value of red light when the red light weight is reduced by one and the green light and blue light weight is unchanged according to the relation between the y coordinate and the brightness values of the three primary colors of red light, green light and blue light;
according to the relation between the x coordinate and the brightness values of the three primary colors of red light, green light and blue light, the relation between the x coordinate and the brightness value of the green light is obtained when the green light quantity is reduced by one and the red light and blue light quantity is unchanged; and acquiring the relation between the y coordinate and the brightness value of the green light when the green light quantity is reduced by one and the red light and blue light quantity is unchanged according to the relation between the y coordinate and the brightness values of the three primary colors of the red light, the green light and the blue light;
according to the relation between the x coordinate and the brightness values of the three primary colors of red light, green light and blue light, the relation between the x coordinate and the brightness value of the blue light is obtained when the blue light quantity is reduced by one and the red light quantity and the green light quantity are unchanged; and acquiring the relation between the y coordinate and the brightness value of the blue light when the blue light weight is reduced by one and the red light weight and the green light weight are unchanged according to the relation between the y coordinate and the brightness values of the three primary colors of the red light, the green light and the blue light;
determining a first change proportion of the x coordinate and the y coordinate when the red light quantity is reduced according to the relation between the x coordinate and the red light brightness value and the relation between the y coordinate and the red light brightness value;
determining a second change proportion of the x coordinate and the y coordinate when the green light quantity is reduced according to the relation between the x coordinate and the green light brightness value and the relation between the y coordinate and the green light brightness value;
determining a third change proportion of the x coordinate and the y coordinate when the blue light quantity is reduced according to the relation between the x coordinate and the blue light brightness value and the relation between the y coordinate and the blue light brightness value;
and determining the adjustment conditions of the brightness values of the three primary colors of red light, green light and blue light according to the preset xy color coordinate adjustment requirement and the first change proportion, the second change proportion and the third change proportion.
2. The method of claim 1, wherein the relationship between the x-coordinate and red luminance value is: x =0.12R +0.22; the relationship between the y coordinate and the red luminance value is: y = -0.02R +0.35;
correspondingly, the determining the first change ratio of the x coordinate to the y coordinate when the red light component is reduced according to the relationship between the x coordinate and the red light brightness value and the relationship between the y coordinate and the red light brightness value includes:
according to the relation x =0.12R +0.22 between the x coordinate and the red light brightness value and the relation y = -0.02R +0.35 between the y coordinate and the red light brightness value, determining that when the red light component is reduced, the first change ratio of the x coordinate to the y coordinate is-12;
the relationship between the x coordinate and the green brightness value is: x = -0.03G +0.37; the relationship between the y coordinate and the green brightness value is: y =0.24G +0.1;
accordingly, the determining a second variation ratio of the x coordinate and the y coordinate when the green light quantity is decreased according to the relationship between the x coordinate and the green light brightness value and the relationship between the y coordinate and the green light brightness value includes:
according to the relation x = -0.03G +0.37 between the x coordinate and the green light brightness value and the relation y =0.24G +0.1 between the y coordinate and the green light brightness value, determining that when the green light quantity is reduced, the second change ratio of the x coordinate to the y coordinate is +3: -24;
the relationship between the x coordinate and the blue light brightness value is: x = -0.12B +0.45; the relationship between the y coordinate and the blue light brightness value is: y = -0.22B +0.55;
correspondingly, the determining a third variation ratio of the x coordinate and the y coordinate when the blue light portion is reduced according to the relationship between the x coordinate and the blue light brightness value and the relationship between the y coordinate and the blue light brightness value includes:
according to the relation x = -0.12B +0.45 between the x coordinate and the blue light brightness value and the relation y = -0.22B +0.55 between the y coordinate and the blue light brightness value, a third change ratio of the x coordinate to the y coordinate is determined to be +12: +22 when the blue light quantity is reduced.
3. The method according to claim 2, wherein the determining the adjustment conditions of the brightness values of the three primary colors of red, green and blue according to the preset xy color coordinate adjustment requirement and the first change proportion, the second change proportion and the third change proportion comprises:
if the preset xy color coordinate adjustment requirement is that the x coordinate needs to be increased, determining the quantity of the green light and the blue light which needs to be reduced according to the first change proportion, the second change proportion and the third change proportion, wherein the corresponding relation between the quantity change of the green light and the blue light and the change of the x coordinate and the y coordinate is as follows: g (1-f), B (1-f), corresponding x and y coordinate variations of +15 × k, -2 × k; k is a normalization constant, f is the reduction amplitude of the RGB components;
if the preset xy color coordinate adjustment requirement is that the y coordinate needs to be increased, determining the parts of the red light and the blue light which need to be reduced according to the first change proportion, the second change proportion and the third change proportion, wherein the corresponding relation between the part change of the red light and the blue light and the change of the x coordinate and the y coordinate is as follows: r (1-f), B (1-f), corresponding x and y coordinate variations of 0 × k, +24 × k;
if the preset xy color coordinate adjustment requirement is that the x coordinate needs to be reduced, determining the weight of red light to be reduced according to the first change proportion, the second change proportion and the third change proportion, wherein the corresponding relation between the weight change of the red light and the changes of the x coordinate and the y coordinate is as follows: r (1-2 f), corresponding to x and y coordinate changes of-24 × k, +4 × k;
if the preset xy color coordinate adjustment requirement is that the y coordinate needs to be reduced, determining the green light quantity to be reduced according to the first change proportion, the second change proportion and the third change proportion, wherein the corresponding relation between the green light quantity change and the change of the x coordinate and the y coordinate is as follows: g (1-f), corresponding x and y coordinate variations of +3 x k, -24 x k.
4. A method according to claim 3, wherein the individual adjustment amplitudes 24 x k of the x and y coordinates can be accurate to 0.001 when f is between 0.004 and 0.006.
5. An xy color coordinate adjusting apparatus, comprising:
the first acquisition module is used for acquiring the relation between the x coordinate and the brightness value of red light when the red light weight is reduced by one part and the green light weight and the blue light weight are unchanged according to the relation between the x coordinate and the brightness values of the three primary colors of red light, green light and blue light; and obtaining the relation between the y coordinate and the brightness value of the red light when the red light weight is reduced by one part and the green light and blue light weight is unchanged according to the relation between the y coordinate and the brightness values of the three primary colors of the red light, the green light and the blue light;
the second acquisition module is used for acquiring the relation between the x coordinate and the brightness value of the green light when the green light weight is reduced by one part and the red light weight and the blue light weight are unchanged according to the relation between the x coordinate and the brightness values of the three primary colors of the red light, the green light and the blue light; and acquiring the relation between the y coordinate and the brightness value of the green light when the green light quantity is reduced by one and the red light and blue light quantity is unchanged according to the relation between the y coordinate and the brightness values of the three primary colors of the red light, the green light and the blue light;
the third acquisition module is used for acquiring the relation between the x coordinate and the brightness value of the blue light when the blue light weight is reduced by one part and the red light weight and the green light weight are unchanged according to the relation between the x coordinate and the brightness values of the three primary colors of the red light, the green light and the blue light; and obtaining the relation between the y coordinate and the brightness value of the blue light when the blue light weight is reduced by one and the red light weight and the green light weight are unchanged according to the relation between the y coordinate and the brightness values of the three primary colors of the red light, the green light and the blue light;
the first determining module is used for determining a first change proportion of the x coordinate and the y coordinate when the red light weight is reduced according to the relation between the x coordinate and the red light brightness value and the relation between the y coordinate and the red light brightness value;
the second determining module is used for determining a second change proportion of the x coordinate and the y coordinate when the green light quantity is reduced according to the relation between the x coordinate and the green light brightness value and the relation between the y coordinate and the green light brightness value;
the third determining module is used for determining a third change proportion of the x coordinate and the y coordinate when the blue light quantity is reduced according to the relation between the x coordinate and the blue light brightness value and the relation between the y coordinate and the blue light brightness value;
and the adjusting module determines the adjusting conditions of the brightness values of the three primary colors of red light, green light and blue light according to the preset xy color coordinate adjusting requirement and the first change proportion, the second change proportion and the third change proportion.
6. The apparatus of claim 5, wherein the relationship between the x-coordinate and red luminance value is: x =0.12R +0.22; the relationship between the y coordinate and the red luminance value is: y = -0.02R +0.35;
correspondingly, the first determining module is specifically configured to:
according to the relation x =0.12R +0.22 between the x coordinate and the red light brightness value and the relation y = -0.02R +0.35 between the y coordinate and the red light brightness value, determining that when the red light component is reduced, the first change ratio of the x coordinate to the y coordinate is-12;
the relationship between the x coordinate and the green brightness value is: x = -0.03G +0.37; the relationship between the y coordinate and the green brightness value is: y =0.24G +0.1;
correspondingly, the second determining module is specifically configured to:
according to the relation x = -0.03G +0.37 between the x coordinate and the green light brightness value and the relation y =0.24G +0.1 between the y coordinate and the green light brightness value, determining that when the green light quantity is reduced, the second change ratio of the x coordinate to the y coordinate is +3: -24;
the relationship between the x coordinate and the blue light brightness value is: x = -0.12B +0.45; the relationship between the y coordinate and the blue light brightness value is: y = -0.22B +0.55;
correspondingly, the third determining module is specifically configured to:
according to the relation x = -0.12B +0.45 between the x coordinate and the blue light brightness value and the relation y = -0.22B +0.55 between the y coordinate and the blue light brightness value, the third change ratio of the x coordinate and the y coordinate is determined to be +12: +22 when the blue light quantity is reduced.
7. The apparatus of claim 6, wherein the adjustment module is specifically configured to:
if the preset xy color coordinate adjustment requirement is that the x coordinate needs to be increased, determining the quantity of the green light and the blue light which needs to be reduced according to the first change proportion, the second change proportion and the third change proportion, wherein the corresponding relation between the quantity change of the green light and the blue light and the change of the x coordinate and the y coordinate is as follows: g (1-f), B (1-f), corresponding x and y coordinate variations of +15 × k, -2 × k; k is a normalization constant, f is the reduction amplitude of the RGB components;
if the preset xy color coordinate adjustment requirement is that the y coordinate needs to be increased, determining the parts of the red light and the blue light which need to be reduced according to the first change proportion, the second change proportion and the third change proportion, wherein the corresponding relation between the part change of the red light and the blue light and the change of the x coordinate and the y coordinate is as follows: r (1-f), B (1-f), corresponding x and y coordinate variations of 0 × k, +24 × k;
if the preset xy color coordinate adjustment requirement is that the x coordinate needs to be reduced, determining the weight of red light to be reduced according to the first change proportion, the second change proportion and the third change proportion, wherein the corresponding relation between the weight change of the red light and the changes of the x coordinate and the y coordinate is as follows: r (1-2 f), corresponding to x and y coordinate changes of-24 × k, +4 × k;
if the preset xy color coordinate adjustment requirement is that the y coordinate needs to be reduced, determining the green light quantity needing to be reduced according to the first change proportion, the second change proportion and the third change proportion, wherein the corresponding relation between the green light quantity change and the change of the x coordinate and the y coordinate is as follows: g (1-f), corresponding x and y coordinate variations of +3 x k, -24 x k.
8. The device of claim 7, wherein when f is between 0.004 and 0.006, the individual adjustment amplitudes 24 x k of the x and y coordinates can be accurate to 0.001.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the xy-color coordinate adjustment method according to any one of claims 1 to 4 are implemented when the processor executes the program.
10. A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the xy-color coordinate adjusting method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811512261.6A CN109635231B (en) | 2018-12-11 | 2018-12-11 | Xy color coordinate adjusting method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811512261.6A CN109635231B (en) | 2018-12-11 | 2018-12-11 | Xy color coordinate adjusting method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109635231A CN109635231A (en) | 2019-04-16 |
CN109635231B true CN109635231B (en) | 2022-11-22 |
Family
ID=66072973
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811512261.6A Active CN109635231B (en) | 2018-12-11 | 2018-12-11 | Xy color coordinate adjusting method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109635231B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102820018A (en) * | 2012-05-24 | 2012-12-12 | 广东威创视讯科技股份有限公司 | Color coordinate regulating method and device thereof |
CN104269138A (en) * | 2014-10-24 | 2015-01-07 | 京东方科技集团股份有限公司 | WOLED (white organic light emitting diode) display device, as well as display control method and display control device for same |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100594421C (en) * | 2007-12-03 | 2010-03-17 | 佛山普立华科技有限公司 | Color optimization system and method of digital light processing projecting machine |
-
2018
- 2018-12-11 CN CN201811512261.6A patent/CN109635231B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102820018A (en) * | 2012-05-24 | 2012-12-12 | 广东威创视讯科技股份有限公司 | Color coordinate regulating method and device thereof |
CN104269138A (en) * | 2014-10-24 | 2015-01-07 | 京东方科技集团股份有限公司 | WOLED (white organic light emitting diode) display device, as well as display control method and display control device for same |
Also Published As
Publication number | Publication date |
---|---|
CN109635231A (en) | 2019-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107068055B (en) | A kind of the gamma electric voltage method of adjustment and device of curved face display panel | |
US11081081B2 (en) | Color gamut conversion method, color gamut converter, display device, image signal conversion method, computer device and non-transitory storage medium | |
US11330685B2 (en) | Method, device, terminal setting and readable storage medium for correcting mixed color | |
US20190385343A1 (en) | Image processing method, electronic device and apparatus having storage function | |
US20190162377A1 (en) | Method for realizing fast color mixing of any colors | |
US10755448B2 (en) | Method for mixed color correction | |
US10331393B2 (en) | Vehicle-mounted terminal and method for obtaining resolution of a screen of a handheld terminal | |
CN110675797B (en) | Color gamut mapping method, component, display device and storage medium | |
CN108615496B (en) | Image data processing method and device | |
CN105336286A (en) | Spliced screen color adjusting method and device | |
KR20220047663A (en) | Page display method and device, electronic device and storage medium | |
CN107463349B (en) | Color disc establishing method and color positioning method | |
CN110223650A (en) | White balance parameter generation method for four-color pixel and display device | |
US11900846B2 (en) | Chrominance visual angle correction method for display, and intelligent terminal and storage medium | |
WO2023202173A1 (en) | Brightness adjustment method and apparatus, and computer device and computer-readable storage medium | |
WO2024037506A1 (en) | Screen color adjusting and uniformizing method and device, and storage medium | |
CN109635231B (en) | Xy color coordinate adjusting method and device, electronic equipment and storage medium | |
WO2005114552A1 (en) | Characterization of display devices by averaging chromaticity values | |
JP7303912B2 (en) | Signal control method, electronic device and system | |
CN111948850A (en) | Display module, display and determination method of primary colors | |
US8194103B2 (en) | Method and module for regulating luminance | |
US9959819B2 (en) | RGB to RGBW brightness compensation method and device | |
CN114615482B (en) | White balance debugging method, storage medium and intelligent television | |
CN116092434B (en) | Dimming method, dimming device, electronic equipment and computer readable storage medium | |
CN111626310B (en) | Image comparison method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 646000 13th floor, block a, phase I, standardized workshop, section 5, jiugu Avenue, Jiangyang District, Luzhou City, Sichuan Province Applicant after: Luzhou hemiao Communication Technology Co.,Ltd. Address before: 646000, No. five, section 19, wine Valley Road, hi tech Zone, Sichuan, Luzhou Applicant before: LUZHOU SIPUKANG TECHNOLOGY Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |