CN113129813B - White balance adjusting method and device and computer equipment - Google Patents

White balance adjusting method and device and computer equipment Download PDF

Info

Publication number
CN113129813B
CN113129813B CN202110443195.7A CN202110443195A CN113129813B CN 113129813 B CN113129813 B CN 113129813B CN 202110443195 A CN202110443195 A CN 202110443195A CN 113129813 B CN113129813 B CN 113129813B
Authority
CN
China
Prior art keywords
color
brightness
target
primary colors
white balance
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
Application number
CN202110443195.7A
Other languages
Chinese (zh)
Other versions
CN113129813A (en
Inventor
卢长军
李松霖
马莉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Leyard Optoelectronic Co Ltd
Original Assignee
Leyard Optoelectronic 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 Leyard Optoelectronic Co Ltd filed Critical Leyard Optoelectronic Co Ltd
Priority to CN202110443195.7A priority Critical patent/CN113129813B/en
Publication of CN113129813A publication Critical patent/CN113129813A/en
Application granted granted Critical
Publication of CN113129813B publication Critical patent/CN113129813B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/22Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
    • G09G3/30Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
    • G09G3/32Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0666Adjustment of display parameters for control of colour parameters, e.g. colour temperature

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

The invention discloses a white balance adjusting method and device and computer equipment. Wherein, the method comprises the following steps: determining the relation between the color coordinate and brightness of white balance and the color coordinate and brightness of three primary colors in Yxy color space; determining the color coordinates and initial brightness of the three primary colors and the target color coordinates and target brightness of target white balance; determining the target brightness of the three primary colors according to the relationship, the color coordinates and the initial brightness of the three primary colors, and the target color coordinates and the target brightness of the target white balance; the initial white balance is adjusted to a target white balance according to the initial luminance of the three primary colors and the target luminance of the three primary colors.

Description

White balance adjusting method and device and computer equipment
Technical Field
The invention relates to the field of display, in particular to a white balance adjusting method and device and computer equipment.
Background
The CIE XYZ system is a color system adopted by the International Commission on illumination (CIE for short). In this system, imaginary three primary colors X, Y and Z are used, which do not correspond to visible colors. The X, Y and Z primaries have the following properties: (1) all the X, Y and Z values are positive, and a negative primary color is not needed when the spectrum colors are matched; (2) the response of the human eye to luminance is represented by Y values. The three hypothetical primary colors X, Y, Z are named standard chromaticity observer spectral tristimulus values, which can be calculated additively for a plurality of light sources. The tristimulus values X, Y and Z of CIE XYZ are useful for defining colors, but have the disadvantage of being relatively complex to use and not intuitive. To overcome this drawback, CIE has adopted a new system space, CIE Yxy's color space.
The brightness and the wavelength of the LED chip have discreteness, and even if the LED chips manufactured by the same wafer have different brightness and wavelength, therefore, when the LED is used as a pixel to manufacture an LED display screen, the LED display screen needs to be screened, mixed in bins and corrected to ensure the consistency of color and brightness. In the correction, a small amount of auxiliary color is often added to the primary color, for example, when the color is fully red in the correction state, the real blue or green is slightly bright, and at this time, the red is the primary color, and the green and blue are auxiliary colors. Therefore, in the correction state, each primary color of RGB is a composite of its primary color and the other two secondary colors, and 3 primary colors have 3 primary colors and 6 secondary colors; the brightness of the main color and the brightness of the auxiliary color are expressed by the color gamut coefficients, the color gamut coefficients are determined after the screen is corrected according to certain requirements, the color gamut coefficients can be read by debugging software, and at the moment, the color temperature of the screen is also determined. The color gamut coefficients represent the brightness information of the primary color or the secondary color corresponding to the primary color light, and each color gamut coefficient is in a linear relationship with the corresponding brightness. The determined 9 color gamut coefficients can determine the color coordinates and the brightness values of the corrected three primary colors, thereby determining the color temperature and the brightness values of white balance, and the color temperature and the brightness values of white balance can be adjusted by modifying the color gamut coefficients.
Sometimes, color temperature is used to describe light sources of different colors. Under illumination of different color temperatures, the same white object shows a different color. Therefore, the concept of "white balance" is introduced, i.e. the white color appears consistent under different lighting conditions. In order to make white objects look uniform in color under different lighting conditions, white balance adjustment may be performed. However, in the related art, when white balance adjustment is performed, the adjustment is performed step by step according to experience, which is not only inefficient, but also has low accuracy.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a white balance adjusting method, a white balance adjusting device and computer equipment, and aims to at least solve the technical problems of low efficiency and low accuracy of white balance adjustment according to human experience in the related art.
According to an aspect of an embodiment of the present invention, there is provided a method of adjusting white balance, including: determining the relation between the color coordinate and brightness of white balance and the color coordinate and brightness of three primary colors in Yxy color space; acquiring the color coordinates and initial brightness of the three primary colors and the target color coordinates and target brightness of target white balance; determining the target brightness of the three primary colors according to the relationship, the color coordinates and the initial brightness of the three primary colors and the target color coordinates and the target brightness of the white balance; and adjusting the initial white balance to the target white balance according to the initial brightness of the three primary colors and the target brightness of the three primary colors.
Optionally, adjusting the initial white balance to the target white balance according to the initial luminances of the three primary colors and the target luminances of the three primary colors comprises: adjusting the initial white balance to the target white balance by adjusting the initial luminance of the three primary colors to the target luminance of the three primary colors.
Optionally, before adjusting the initial brightness of the three primary colors to the target brightness of the three primary colors, the method further includes: acquiring color coordinates of the three primary colors and an initial color gamut coefficient corresponding to initial brightness; determining a color gamut coefficient adjusting proportion according to the initial brightness of the three primary colors and the target brightness of the three primary colors; and adjusting the initial color gamut coefficient according to the color gamut coefficient adjusting proportion to obtain a target color gamut coefficient, wherein the target color gamut coefficient corresponds to the color coordinates and the target brightness of the three primary colors.
Optionally, the color gamut coefficient adjusting ratio includes: the color gamut processing method comprises the following steps of R primary color coefficient adjusting proportion, G primary color coefficient adjusting proportion and B primary color coefficient adjusting proportion, wherein the R primary color coefficient adjusting proportion is used for adjusting coefficients of R primary color brightness, G secondary color brightness and B secondary color brightness of R primary colors correspondingly in color gamut coefficients, the G primary color coefficient adjusting proportion is used for adjusting coefficients of G primary color brightness, R secondary color brightness and B secondary color brightness of G primary colors correspondingly in the color gamut coefficients, and the B primary color coefficient adjusting proportion is used for adjusting coefficients of B primary color brightness, R secondary color brightness and G secondary color brightness of B primary colors correspondingly in the color gamut coefficients.
Optionally, adjusting the initial luminance of the three primary colors to the target luminance of the three primary colors comprises: adjusting the initial luminance of the three primary colors to the target luminance of the three primary colors by replacing the initial color gamut coefficients with the target color gamut coefficients.
Optionally, the method is a method of adjusting white balance in an LED display screen.
Optionally, determining the color coordinates and the initial brightness of the three primary colors comprises: after the LED display screen is corrected by a preset method, controlling the LED display screen to respectively display R, G, B three colors; and respectively measuring the color coordinate and the brightness of each of the three colors, and determining the color coordinate and the initial brightness of the three primary colors.
According to another aspect of the embodiments of the present invention, there is also provided an apparatus for adjusting a white balance, including: the first determining module is used for determining the relation between the color coordinate and the brightness of white balance and the color coordinate and the brightness of three primary colors in Yxy color space; the second determining module is used for determining the color coordinates and the initial brightness of the three primary colors and the target color coordinates and the target brightness of the target white balance; a third determining module, configured to determine target luminances of the three primary colors according to the relationship, the color coordinates and the initial luminances of the three primary colors, and the target color coordinates and the target luminances of the target white balance; and the adjusting module is used for adjusting the initial white balance to the target white balance according to the initial brightness of the three primary colors and the target brightness of the three primary colors.
According to still another aspect of the embodiments of the present invention, there is provided a storage medium including a stored program, wherein when the program runs, a device on which the storage medium is located is controlled to execute any one of the above-mentioned white balance adjustment methods.
According to still another aspect of the embodiments of the present invention, there is also provided a computer apparatus including: a memory and a processor, the memory storing a computer program; the processor is configured to execute the computer program stored in the memory, and when the computer program runs, the processor is enabled to execute any one of the white balance adjusting methods described above.
In the embodiment of the present invention, the determined relationship between the color coordinates and luminance of the white balance and the color coordinates and luminance of the three primary colors, the color coordinates and initial luminance of the three primary colors, and the target color coordinates and target luminance of the target white balance, determining target brightness of the three primary colors by the color coordinates and initial brightness of the three primary colors and the target color coordinates and target brightness of the target white balance according to the relationship, and adjusting the initial white balance to the target white balance according to the initial brightness and the target brightness of the three primary colors, so as to achieve the purpose of automatically adjusting the white balance according to the relation between the white balance and the three primary colors, thereby realizing the technical effect of automatically, efficiently and accurately adjusting the white balance, and the technical problems of low efficiency and low accuracy caused by adjusting the white balance according to human experience in the related technology are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a flowchart of an adjustment method of white balance according to an embodiment of the present invention;
fig. 2 is a block diagram of a white balance adjustment apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, 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 only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In accordance with an embodiment of the present invention, there is provided a method embodiment of a method of adjusting white balance, it is noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Fig. 1 is a flowchart of a method of adjusting white balance according to an embodiment of the present invention, as shown in fig. 1, the method including the steps of:
step S102, determining the relation between the color coordinate and brightness of white balance and the color coordinate and brightness of three primary colors in Yxy color space;
step S104, determining the color coordinates and initial brightness of the three primary colors and the target color coordinates and target brightness of target white balance;
step S106, determining the target brightness of the three primary colors according to the relationship, the color coordinates and the initial brightness of the three primary colors, and the target color coordinates and the target brightness of the target white balance;
and step S108, adjusting the initial white balance to the target white balance according to the initial brightness of the three primary colors and the target brightness of the three primary colors.
Through the steps, the relation between the determined color coordinate and brightness of the white balance and the color coordinate and brightness of the three primary colors, the color coordinate and initial brightness of the three primary colors and the target color coordinate and target brightness of the target white balance is adopted, the target brightness of the three primary colors is determined through the relation, the color coordinate and initial brightness of the three primary colors and the target color coordinate and target brightness of the target white balance, the initial white balance is adjusted to the target white balance according to the initial brightness and the target brightness of the three primary colors, the aim of automatically adjusting the white balance according to the relation between the white balance and the three primary colors is fulfilled, the technical effect of automatically, efficiently and accurately adjusting the white balance is achieved, and the technical problems that the white balance is adjusted according to human experience in the related technology, the efficiency is low, and the accuracy is low are solved.
In the CIE Yxy color space (i.e. the Yxy color space referred to above), for a given color, the luminous flux of each primary color is scaled up if its lightness is increased, so that the color can be matched. Thus, the ratio of X: Y: Z remains constant when the color is off the origin (X-0, Y-0, Z-0). When calculating the chromaticity of the color, X, Y and Z values are normalized with respect to the total radiant energy (X + Y + Z) and only their relative proportions need to be considered, so X, Y, Z are called three primary relative coefficients, and the color matching equation can be normalized to X + Y + Z as 1. Since the sum of the three relative coefficients X, Y, Z is constant at 1, this is equivalent to projecting the XYZ color cone onto a plane where X + Y + Z is 1:
Figure BDA0003035772460000051
Figure BDA0003035772460000052
Figure BDA0003035772460000053
x+y+z=1
the derivation can be made according to the above equation:
Figure BDA0003035772460000054
Figure BDA0003035772460000055
therefore, it is necessary to determine the relationship between the color coordinates and luminance of the three primary colors and the color coordinates and luminance of the white balance. The white balance is synthesized from three primary colors, and can be considered as that two primary colors are synthesized with one color and then synthesized with the last primary color, so that stepwise derivation can be performed.
First, let A, B be two primary colors, whose color coordinates and brightness values are (x) respectively1,y1,Y1)、(x2,y2,Y2) The composite color of the two primary colors is D, and the color coordinate and the brightness value are (x)4,y4,Y4)。
Figure BDA0003035772460000056
Y4=Y1+Y2
Figure BDA0003035772460000057
Mixing X4、Y4、Z4The relationship between the color coordinates and the brightness values of the two primary colors and the composite color D can be obtained by substituting A, B:
Figure BDA0003035772460000058
Figure BDA0003035772460000061
let C be the third primary color, whose color coordinates and luminance values are (x)3,y3,Y3) The final composite color of the three primary colors is E, which has color coordinates and luminance values of (x)5,y5,Y5)。
∴Y5=Y1+Y2+Y3
Figure BDA0003035772460000062
Figure BDA0003035772460000063
X is to be4,y4Substituting the formula and simplifying to obtain:
Figure BDA0003035772460000064
Figure BDA0003035772460000065
the above results are the color coordinates and luminance relationships of the three primary colors ABC and the secondary color E. In order to solve the problem of white balance, R, G, B and W are respectively substituted into symbols 1, 2, 3 and 5 to obtain the correlation between the final color gamut three-vertex RGB and the white balance W color coordinate and brightness:
Figure BDA0003035772460000066
Figure BDA0003035772460000067
YW=YR+YG+YB
from the relationship between the color coordinates of the white balance and the color coordinates and luminance of the three primary colors in the above-determined Yxy color space, the color coordinates and luminance values of the white balance can be calculated from the color coordinates and luminance values of the three-vertex RGB of the color gamut. In addition, it can be concluded that: if the color coordinates of 3 primary colors and the composite colors are known, only the brightness of any one of 4 colors needs to be known, and 3-element 1-order equations can be listed to solve a unique solution; if the color coordinates of 3 primary colors and the composite colors are known and the brightness is unknown, one brightness can be assumed, after the brightness of the rest 3 colors is calculated, the 4 brightness values are increased or decreased in equal proportion, and the color coordinates of the 4 colors are kept unchanged.
As an alternative embodiment, the color coordinates and initial brightness of the three primary colors and the target color coordinates and target brightness of the target white balance may be determined; determining the target brightness of the three primary colors according to the relationship, the color coordinates and the initial brightness of the three primary colors, and the target color coordinates and the target brightness of the target white balance; the initial white balance is adjusted to a target white balance according to the initial luminance of the three primary colors and the target luminance of the three primary colors. The color coordinates and the initial brightness of the three primary colors are obtained, and the target color coordinates and the target brightness of the white balance can be used as known parameters and are directly input into a processor for calculating and obtaining the final brightness of the three primary colors by a user, wherein the color coordinates and the initial brightness of the three primary colors can also be obtained through measurement, and the initial color gamut coefficients of the three primary colors are coefficients obtained by correcting the primary colors and the secondary colors in the three primary colors and can be obtained through software reading. When the initial white balance is adjusted to the target white balance according to the relationship, the initial color coordinate and the initial brightness of the three primary colors, and the target color coordinate and the target brightness of the white balance, a corresponding algorithm can be set in the processor, in the algorithm, the color coordinate of the three primary colors, the initial brightness, the target color coordinate of the white balance and the target brightness are used as algorithm input parameters, the relationship is used as an algorithm formula, for example, the algorithm formula can be an equation, and the final brightness of the three primary colors is obtained through calculation of the algorithm, so that the target white balance meeting the requirements is obtained.
Currently, the RGB three colors mainly include: each primary color comprises 1 primary color and 2 secondary colors, and the total number of the primary colors is 9 color gamut coefficients, and table 1 is a color gamut coefficient table of the three primary colors of RGB in the embodiment of the invention.
Figure BDA0003035772460000071
TABLE 1
As shown in table 1, the first column represents R primary, G secondary, and B secondary of the R primary, the second column represents R secondary, G primary, and B secondary of the G primary, and the third column represents R secondary, G secondary, and B primary of the B primary, respectively, the maximum value of the gamut coefficient is 65535, i.e., 16 bits, and the minimum value is 0, and the gamut coefficient and the luminance are approximately linearly related.
Under the condition that the color gamut is not changed, if only the white balance brightness is changed without changing the color temperature, the fact that the brightness of the RGB and the white balance brightness need to be increased and reduced in equal proportion can be obtained through the deduction of the final formula. From the relationship of Y _ white to Y _ R + Y _ G + Y _ B, when the color temperature of white balance is not changed, the luminance of white balance is adjusted to the target luminance only by adjusting the luminances of the three primary colors in equal proportion.
It should be noted that the white balance is adjusted without changing the color gamut, that is, without changing the color coordinates of the three primary colors.
If the color temperature of the white balance is changed under the condition that the color gamut is not changed, the color coordinate of the white balance is changed. I.e. the color coordinates of the white balance are adjusted by adjusting the luminance of the three primary colors without changing the color gamut, i.e. without changing the color coordinates of the three primary colors.
As an alternative embodiment, before adjusting the initial brightness of the three primary colors to the target brightness of the three primary colors, the method further includes: acquiring color coordinates of three primary colors and an initial color gamut coefficient corresponding to initial brightness; determining a color gamut coefficient adjusting proportion according to the initial brightness of the three primary colors and the target brightness of the three primary colors; and adjusting the initial color gamut coefficient according to the color gamut coefficient adjusting proportion to obtain a target color gamut coefficient, wherein the target color gamut coefficient corresponds to the color coordinates and the target brightness of the three primary colors. The following examples are given.
Given that RGB three primary colors and white balance the color coordinates and white balance luminance of 4 colors, the initial and final color coordinates and luminance values of R primary colors are (x) respectivelyr,yr,Yr1)、(xr,yr,Yr2) The initial and final color coordinates and brightness values of the G primary are (x) respectivelyg,yg,Yg1)、(xg,yg,Yg2) The initial and final color coordinates and luminance values of the B primary are (x) respectivelyb,yb,Yb1)、(xb,yb,Yb2) W the final color coordinate and the luminance value are respectively (x)w,yw,Yw) According to the formula, 3-element 1-degree equations can be obtained:
Yr2*yb2*yg2*(xw-xr2)+Yg2*yr2*yb2*(xw-xg2)+Yb2*yr2*yg2*(xw-xb2)=0
Yr2*yb2*yg2*(yw-yr2)+Yg2*yr2*yb2*(yw-yg2)+Yb2*yr2*yg2*(yw-yb2)=0
Yw=Yr2+Yg2+Yb2
simultaneous solution of Yr2 Yg2 Yb2
That is, the luminance values of the three primary colors of RGB are calculated according to the above derivation formula.
Assuming that the initial gamut coefficients set by the software algorithm are as in table 2:
Figure BDA0003035772460000081
table 2 final gamut coefficients after modification are as in table 3:
Figure BDA0003035772460000082
TABLE 3
By calculation, the final 9 gamut coefficients can be derived:
m1=n1*Yr2/Yr1 m2=n2*Yr2/Yr1 m3=n3*Yr2/Yr1
m4=n4*Yg2/Yg1 m5=n5*Yg2/Yg1 m6=n6*Yg2/Yg1
m7=n7*Yb2/Yb1 m8=n8*Yb2/Yb1 m9=n9*Yb2/Yb1
as an alternative embodiment, the color gamut coefficient adjustment ratio includes: the color gamut processing method comprises the following steps of R primary color coefficient adjusting proportion, G primary color coefficient adjusting proportion, B primary color coefficient adjusting proportion and B primary color coefficient adjusting proportion, wherein the R primary color coefficient adjusting proportion is used for adjusting coefficients of R primary color brightness, G secondary color brightness and B secondary color brightness of R primary colors in color gamut coefficients correspondingly, the G primary color coefficient adjusting proportion is used for adjusting coefficients of G primary color brightness, R secondary color brightness and B secondary color brightness of G primary colors in the color gamut coefficients correspondingly, and the B primary color coefficient adjusting proportion is used for adjusting coefficients of B primary color brightness, R secondary color brightness and G secondary color brightness of B primary colors in the color gamut coefficients correspondingly. Obviously, for the R primary color, the G secondary color, and the B secondary color corresponding to the R primary color, when the color gamut coefficients corresponding to the R primary color are adjusted, only the ratio needs to be adjusted according to one R primary color coefficient, and the ratio can be obtained by taking the quotient of the target luminance and the initial luminance of the R primary color. Similarly, the color gamut coefficients of the primary color and the secondary color corresponding to the primary colors G and B can be obtained by the same method.
Therefore, as an alternative embodiment, the initial luminance of the three primary colors can be adjusted to the target luminance of the three primary colors by replacing the initial gamut coefficients with the target gamut coefficients. Furthermore, the color gamut coefficients required to be debugged by software are obtained in advance through calculation, and the brightness values of the three primary colors of RGB can be changed by changing the color gamut coefficients, so that the white balance color temperature and the brightness can be changed.
It can be known from the above embodiments that the color temperature and brightness of the white balance can be automatically adjusted by debugging software. And formula operation is carried out through debugging software, so that the color temperature and the brightness of white balance can be automatically adjusted, and the adjusting capability is relatively efficient and accurate.
In an embodiment of the present invention, there is further provided a white balance adjustment device, and fig. 2 is a block diagram of a structure of the white balance adjustment device according to the embodiment of the present invention, as shown in fig. 2, the white balance adjustment device includes: a first determination module 22, a second determination module 24, a third determination module 26, and an adjustment module 28, which are described below.
A first determining module 22, configured to determine a relationship between color coordinates and luminance of white balance and color coordinates and luminance of three primary colors in a Yxy color space; a second determining module 24, connected to the first determining module 22, for determining the color coordinates and initial brightness of the three primary colors and the target color coordinates and target brightness of the target white balance; a third determining module 26, connected to the second determining module 24, for determining the target luminances of the three primary colors according to the relationship, the color coordinates and the initial luminances of the three primary colors, and the target color coordinates and the target luminances of the target white balance; and an adjusting module 28, connected to the third determining module 26, for adjusting the initial white balance to the target white balance according to the initial brightness of the three primary colors and the target brightness of the three primary colors.
In an embodiment of the present invention, a storage medium is further provided, where the storage medium includes a stored program, and when the program runs, a device in which the storage medium is located is controlled to execute any one of the above-mentioned white balance adjusting methods.
In an embodiment of the present invention, there is also provided a computer device, including: a memory and a processor, the memory storing a computer program; a processor for executing the computer program stored in the memory, the computer program when running causes the processor to perform any one of the above-mentioned white balance adjustment methods.
In an embodiment of the present invention, there is also provided a Light Emitting Diode (LED) display, including an LED screen and a processor, for executing a computer program stored in a memory, where the computer program is executed to make the processor perform any one of the above white balance adjusting methods.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit may be a division of a logic function, and an actual implementation may have another division, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or may not be executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (8)

1. A method for adjusting white balance, comprising:
determining the relation between the color coordinate and brightness of white balance and the color coordinate and brightness of three primary colors in Yxy color space;
determining the color coordinates and initial brightness of the three primary colors and the target color coordinates and target brightness of target white balance;
determining the target brightness of the three primary colors according to the relationship, the color coordinates and the initial brightness of the three primary colors and the target color coordinates and the target brightness of the target white balance;
adjusting the initial white balance to the target white balance according to the initial brightness of the three primary colors and the target brightness of the three primary colors;
wherein adjusting the initial white balance to the target white balance according to the initial luminances of the three primary colors and the target luminances of the three primary colors comprises: adjusting the initial white balance to the target white balance by adjusting the initial luminance of the three primary colors to the target luminance of the three primary colors;
before adjusting the initial brightness of the three primary colors to the target brightness of the three primary colors, the method further comprises: acquiring color coordinates of the three primary colors and an initial color gamut coefficient corresponding to initial brightness; determining a color gamut coefficient adjusting proportion according to the initial brightness of the three primary colors and the target brightness of the three primary colors; and adjusting the initial color gamut coefficient according to the color gamut coefficient adjusting proportion to obtain a target color gamut coefficient, wherein the target color gamut coefficient corresponds to the color coordinates and the target brightness of the three primary colors.
2. The method of claim 1, wherein the gamut coefficient adjusting ratio comprises:
the R primary color coefficient adjusting proportion is used for adjusting coefficients of R primary color brightness, G auxiliary color brightness and B auxiliary color brightness of the R primary color correspondingly in the color gamut coefficients,
a G primary color coefficient adjusting proportion used for adjusting coefficients of the color gamut coefficients for correspondingly adjusting the G primary color brightness, the R secondary color brightness and the B secondary color brightness of the G primary color,
and the B primary color coefficient adjusting proportion is used for adjusting coefficients of B primary color brightness, R secondary color brightness and G secondary color brightness of the B primary color correspondingly in the color gamut coefficients.
3. The method of claim 2, wherein adjusting the initial luminances of the three primary colors to the target luminances of the three primary colors comprises:
adjusting the initial luminance of the three primary colors to the target luminance of the three primary colors by replacing the initial color gamut coefficients with the target color gamut coefficients.
4. The method according to any one of claims 1 to 3, wherein the method is a method for adjusting white balance in an LED display screen.
5. The method of claim 4, wherein determining the color coordinates and initial luminance of the three primary colors comprises:
after the LED display screen is corrected by a preset method, controlling the LED display screen to respectively display R, G, B three colors;
and respectively measuring the color coordinate and the brightness of each of the three colors, and determining the color coordinate and the initial brightness of the three primary colors.
6. An apparatus for adjusting white balance, comprising:
the first determining module is used for determining the relation between the color coordinate and the brightness of white balance and the color coordinate and the brightness of three primary colors in Yxy color space;
the second determining module is used for determining the color coordinates and the initial brightness of the three primary colors and the target color coordinates and the target brightness of the target white balance;
a third determining module, configured to determine target luminances of the three primary colors according to the relationship, the color coordinates and the initial luminances of the three primary colors, and the target color coordinates and the target luminances of the target white balance;
the adjusting module is used for adjusting the initial white balance to the target white balance according to the initial brightness of the three primary colors and the target brightness of the three primary colors;
the adjusting module is further configured to adjust the initial white balance to the target white balance by adjusting the initial luminance of the three primary colors to the target luminance of the three primary colors, wherein before adjusting the initial luminance of the three primary colors to the target luminance of the three primary colors, the adjusting module further includes: acquiring color coordinates of the three primary colors and an initial color gamut coefficient corresponding to initial brightness; determining a color gamut coefficient adjusting proportion according to the initial brightness of the three primary colors and the target brightness of the three primary colors; and adjusting the initial color gamut coefficient according to the color gamut coefficient adjusting proportion to obtain a target color gamut coefficient, wherein the target color gamut coefficient corresponds to the color coordinates and the target brightness of the three primary colors.
7. A non-volatile storage medium, comprising a stored program, wherein a device in which the non-volatile storage medium is located is controlled to execute the white balance adjustment method according to any one of claims 1 to 5 when the program runs.
8. A computer device, comprising: a memory and a processor, wherein the processor is capable of,
the memory stores a computer program;
the processor is configured to execute the computer program stored in the memory, and the computer program is executed to cause the processor to execute the white balance adjustment method according to any one of claims 1 to 5.
CN202110443195.7A 2021-04-23 2021-04-23 White balance adjusting method and device and computer equipment Active CN113129813B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110443195.7A CN113129813B (en) 2021-04-23 2021-04-23 White balance adjusting method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110443195.7A CN113129813B (en) 2021-04-23 2021-04-23 White balance adjusting method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN113129813A CN113129813A (en) 2021-07-16
CN113129813B true CN113129813B (en) 2022-04-22

Family

ID=76779672

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110443195.7A Active CN113129813B (en) 2021-04-23 2021-04-23 White balance adjusting method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN113129813B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109496035B (en) * 2018-11-02 2020-06-23 广州市浩洋电子股份有限公司 Color matching method, color matching method and system for automatically realizing maximum brightness of colored lamp

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100587781C (en) * 2008-08-13 2010-02-03 大连达明科技有限公司 On-line brightness correcting and color gamut optimizing method for full-color LED display screen
CN106507082B (en) * 2016-12-27 2019-10-01 深圳Tcl数字技术有限公司 The adjustment method and device of white balance
CN109147712B (en) * 2018-10-08 2020-06-26 惠州市华星光电技术有限公司 Method and system for improving visual angle color cast of display panel
CN110197642B (en) * 2019-05-30 2020-12-18 京东方科技集团股份有限公司 Method for acquiring tricolor brightness correction relationship, correction method and correction device of display
CN112449168B (en) * 2019-09-03 2021-11-23 深圳Tcl新技术有限公司 Color gamut mapping method and system
CN110910847B (en) * 2019-11-25 2021-09-21 豪威触控与显示科技(深圳)有限公司 Gamma correction method and device for display module
CN110827745B (en) * 2019-12-26 2022-06-14 武汉天马微电子有限公司 Display panel and pixel compensation data generation method and device thereof
CN111710287B (en) * 2020-03-20 2022-09-09 利亚德光电股份有限公司 Image display method, system and storage medium

Also Published As

Publication number Publication date
CN113129813A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
CN103080999B (en) For having the self-adaptation color correction of the indicating meter of backlight modulation
CN102611897B (en) Method and system for carrying out vision perception high-fidelity transformation on color digital image
CN108376539B (en) Image color compensation method and device
US9185268B2 (en) Methods and systems for displays with chromatic correction with differing chromatic ranges
US20090273607A1 (en) Display
CN113453396B (en) WRGB color mixing method and device based on additive color mixing, terminal equipment and storage medium
US20230199331A1 (en) White balance compensation method and apparatus and electronic device
US11457188B2 (en) Method and system for adjusting white balance, and display
JP2000293129A (en) Display characteristic recognizing device, display characteristic recognizing program recording medium, display characteristic adjusting device and display characteristic adjusting program recording medium
CN103369329B (en) Image adjusting apparatus and method and image adjusting system
CN113129813B (en) White balance adjusting method and device and computer equipment
JP2006270336A (en) Display device and display method
TW202139690A (en) Display device and color adjusting method
JP2010217645A (en) Method, device and program of making correction value of image display device
TWI602419B (en) Adjusting method and display apparatus using same
US20240046836A1 (en) Image processing methods and apparatuses, electronic devices and storage media
CN112614455A (en) Display screen color temperature drift compensation method, device and system and display control system
CN113129815B (en) Color gamut coefficient processing method and device, LED display screen and computer equipment
Chen et al. LED illumination and color appearance of white-balanced images
US9626892B2 (en) Optimization method and system of real-time LCD white balance selection
CN114566118B (en) Display color cast correction method, device and system
JP2011188319A (en) Color correction method and color correction device
CN116434694A (en) Display screen correction method and device in color gamut adjustment and nonvolatile storage medium
JP2021087152A (en) Image display device and image display method
Cherdhirunkorn et al. Spectral based color correction technique compatible with standard RGB system

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
GR01 Patent grant
GR01 Patent grant