WO2022205652A1 - Color adjustment method and apparatus, medium, and electronic device - Google Patents

Color adjustment method and apparatus, medium, and electronic device Download PDF

Info

Publication number
WO2022205652A1
WO2022205652A1 PCT/CN2021/103837 CN2021103837W WO2022205652A1 WO 2022205652 A1 WO2022205652 A1 WO 2022205652A1 CN 2021103837 W CN2021103837 W CN 2021103837W WO 2022205652 A1 WO2022205652 A1 WO 2022205652A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
color
colors
chromaticity coordinates
reference color
Prior art date
Application number
PCT/CN2021/103837
Other languages
French (fr)
Chinese (zh)
Inventor
吕思成
张聪
胡震宇
Original Assignee
深圳市火乐科技发展有限公司
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 深圳市火乐科技发展有限公司 filed Critical 深圳市火乐科技发展有限公司
Publication of WO2022205652A1 publication Critical patent/WO2022205652A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics

Definitions

  • the present disclosure relates to the field of optical technology, and in particular, to a color adjustment method, device, medium and electronic device.
  • the default light source of the target device (eg, projection device, TV, display device, ambient light, lighting, etc.) does not always meet the requirements, and the target device needs to be color adjusted in various application scenarios.
  • Application scenarios such as: automatic white balance of projection equipment and display equipment, color change of ambient light, ambient light needs to be linked with display equipment or projection equipment to make color changes in real time, display equipment, projection equipment and other detection environments adjust colors in real time, etc. How to realize the rapid real-time adjustment of the color of the target device is of great significance for improving the user experience.
  • the present disclosure provides a color adjustment method, device, medium and electronic device.
  • the present disclosure provides a color adjustment method, including:
  • the target chromaticity coordinates corresponding to the color to be adjusted of the target device wherein the display color of the target device is formed by mixing a plurality of reference colors;
  • Color adjustment is performed on the target device according to the target color adjustment parameter value corresponding to each of the reference colors, so as to adjust the display color of the target device to the color to be adjusted.
  • the present disclosure provides a color adjustment device, comprising:
  • a first determination module configured to determine the target chromaticity coordinates corresponding to the color to be adjusted of the target device, wherein the display color of the target device is formed by mixing a plurality of reference colors;
  • the second determination module is configured to, according to the number of the reference colors, the target chromaticity coordinates determined by the first determination module, the reference color value of each of the reference colors, and the corresponding value of each of the reference colors a response relationship, determining the target color adjustment parameter value corresponding to each of the reference colors, wherein the response relationship is used to represent the corresponding relationship between the color adjustment parameter corresponding to the reference color and the response parameter of the reference color;
  • An adjustment module configured to perform color adjustment on the target device according to the target color adjustment parameter value corresponding to each of the reference colors determined by the second determination module, so as to adjust the display color of the target device to the desired color Describe the color to be adjusted.
  • the present disclosure provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the steps of the method provided in the first aspect of the present disclosure.
  • the present disclosure provides an electronic device, comprising:
  • a processor configured to execute the computer program in the memory, to implement the steps of the method provided by the first aspect of the present disclosure.
  • the target chromaticity coordinates corresponding to the color to be adjusted of the target device wherein the display color of the target device is formed by mixing a plurality of reference colors; then, according to the number of reference colors, target chromaticity coordinates, The reference color value of each reference color and the response relationship corresponding to each reference color determine the target color adjustment parameter value corresponding to each reference color; finally, according to the target color adjustment parameter value corresponding to each color, the target device is color-coded. Adjust to adjust the display color of the target device to the color to be adjusted. In this way, the target color adjustment parameter value corresponding to each reference color can be quickly determined through a simple calculation, thereby realizing rapid real-time adjustment of the color of the target device, ensuring the accuracy of color adjustment, and improving user experience.
  • FIG. 1 is a flow chart of a color adjustment method according to an exemplary embodiment.
  • FIG. 2 is a schematic diagram illustrating a process of determining three first target reference colors from a plurality of reference colors according to an exemplary embodiment.
  • FIG. 3 is a schematic diagram illustrating a method for determining a proportional relationship between target response parameter values of each first target reference color according to an exemplary embodiment.
  • Fig. 4 is a schematic diagram of determining a first mixed chromaticity coordinate and a second mixed chromaticity coordinate according to an exemplary embodiment.
  • Fig. 5 is a schematic diagram illustrating a method for determining target response parameter values of other reference colors according to an exemplary embodiment.
  • Fig. 6 is a block diagram of a color adjustment apparatus according to an exemplary embodiment.
  • Fig. 7 is a block diagram of an electronic device according to an exemplary embodiment.
  • FIG. 1 is a flow chart of a color adjustment method according to an exemplary embodiment. As shown in FIG. 1 , the method includes S101 to S103.
  • the target chromaticity coordinates corresponding to the color to be adjusted of the target device are determined, wherein the display color of the target device is formed by mixing a plurality of reference colors.
  • the target device may be, for example, a projection device, a television, a display device, an ambient light, a lighting lamp, and the like.
  • the display color of the target device may be formed by mixing multiple reference colors, wherein the number of reference colors may be two, three, four, or even more, which is not specifically limited in the present disclosure.
  • the plurality of reference colors may be various colors, which are not specifically limited in the present disclosure.
  • the multiple reference colors include red, green, and blue, that is, the display color of the target device (ie, the color presented by the target device) can be formed by mixing red, green, and blue.
  • the multiple reference colors include yellow and cyan, that is, the display color of the target device can be formed by mixing yellow and cyan.
  • a target color adjustment parameter value corresponding to each reference color is determined according to the number of reference colors, the target chromaticity coordinates, the reference color value of each reference color, and the response relationship corresponding to each reference color.
  • the reference color value may be XYZ data in the XYZ color space.
  • the XYZ color space is the XYZ color space defined by the International Commission on Illumination (CIE) in 1931, also known as CIE1931.
  • the response relationship is used to represent the corresponding relationship between the color adjustment parameter corresponding to the reference color and the response parameter of the reference color, wherein the response relationship is established in advance.
  • the target device can adjust the display color of the target device by adjusting the value of the color adjustment parameter corresponding to different reference colors, so that the target device presents the desired color.
  • Analog signals such as empty ratio.
  • color adjustment is performed on the target device according to the target color adjustment parameter value corresponding to each reference color, so as to adjust the display color of the target device to the color to be adjusted.
  • the above-mentioned target device is a projection device, which adjusts the color to achieve white balance, and the multiple reference colors include red, green, and blue, wherein, in S102, the target color adjustment parameter value corresponding to red and the target corresponding to green are obtained in S102.
  • the gain coefficient of the red channel in the projection device can be adjusted to the target color adjustment parameter value corresponding to red/the upper limit value of the color adjustment parameter (for example, 1024), At the same time, adjust the gain coefficient of the green channel to the target color adjustment parameter value corresponding to green/the above upper limit value, and adjust the gain coefficient of the blue channel to the target color adjustment parameter value corresponding to blue/the above upper limit value, so as to realize the projection The white balance of the device.
  • the lighting lamp it includes one red lamp bead and one yellow lamp bead, that is, the multiple reference colors include red and yellow, wherein, the color adjustment parameter corresponding to each reference color is current, then the red corresponding color is obtained through S102.
  • the red lamp beads can be controlled to output the target current value corresponding to red, and the yellow lamp beads can output the target current value corresponding to yellow, so that the lighting lamp can display the color to be displayed.
  • the target chromaticity coordinates corresponding to the color to be adjusted of the target device wherein the display color of the target device is formed by mixing a plurality of reference colors; then, according to the number of reference colors, target chromaticity coordinates, The reference color value of each reference color and the response relationship corresponding to each reference color determine the target color adjustment parameter value corresponding to each reference color; finally, according to the target color adjustment parameter value corresponding to each color, the target device is color-coded. Adjust to adjust the display color of the target device to the color to be adjusted. In this way, the target color adjustment parameter value corresponding to each reference color can be quickly determined through a simple calculation, thereby realizing rapid real-time adjustment of the color of the target device, ensuring the accuracy of color adjustment, and improving user experience.
  • the target chromaticity coordinates can be determined according to the user's adjustment operation (for example, the user can adjust the color presented by the target device through a color adjustment button on the target device).
  • the corresponding target chromaticity coordinates may be determined according to information such as target brightness and contrast input by the user.
  • the target chromaticity coordinates may be determined adaptively according to changes in ambient light.
  • the target chromaticity coordinates may be determined according to the main color of the reference device corresponding to the target device, wherein the display color of the target device changes with the change of the main color of the reference device, wherein the main color is The color with the highest proportion among the multiple colors that make up the reference device.
  • the target device is an ambient light
  • the reference device is a projection device, that is, the color of the ambient light changes with the main color of the projection device.
  • each reference color first, set the color adjustment parameter value corresponding to the reference color as the upper limit value of the color adjustment parameter, at the same time, set the color adjustment parameter value corresponding to other reference colors in the multiple reference colors to zero, then , obtain the first color value of the light projected by the target device; next, set the color adjustment parameter value corresponding to the reference color to several other values (for example, the upper limit of 1/2, the upper limit of 1/3) value, the upper limit value of 2/3, etc.), at the same time, the color adjustment parameter values corresponding to other reference colors in the multiple reference colors are still zero. Two-color value; finally, according to the first color value and each second color value, determine the response relationship corresponding to the reference color, that is, the corresponding relationship between the color adjustment parameter corresponding to the reference color and the response parameter of the reference color
  • the value ranges of the color adjustment parameters corresponding to each reference color may be the same.
  • the light projected by the target device can be received through the sensing module, so as to obtain the color value (including the first color value and the second color value) of the light projected each time.
  • the target device communicates with the sensing module by The color value of each projected light can be obtained.
  • the sensing module may be a color temperature sensor, a camera, an illuminance meter, an integrating sphere, etc., and the sensing module may be connected to the target device through a wireless network or a wired network.
  • the above-mentioned response relationship may be a response function.
  • the second color value of the light projected by the target device the first color value of the light projected by the target device*response function (referred to as Equation 1), wherein the independent variable of the response function is the reference
  • the color adjustment parameter corresponding to the color, and the dependent variable of the response function is the response parameter of the parameter color; in this way, for each reference color, the first color value and each second color value of the light projected by the target device can be obtained according to the above steps.
  • the color value is determined, and the response function is determined, that is, the corresponding relationship between the color adjustment parameter corresponding to the reference color and the response parameter of the parameter color is obtained.
  • the first color value and the second color value can be substituted into the above equation 1, so as to obtain a set of equations, and then the response function can be calculated according to the set of equations.
  • the reference color is red
  • Gamma is the gamma value of the target device, that is, the color adjustment parameter corresponding to red and the response parameter corresponding to red conform to the Gamma characteristic.
  • the reference color values (X, Y, Z) can be converted to reference chromaticity coordinates (x, y) by the following equation (1):
  • the first target reference color is used to form the color to be adjusted, that is, when the target device is working, part of the reference colors in the multiple reference colors can be mixed to form the color to be displayed, and the other part of the reference color does not play any role in the color to be displayed , that is, the target color adjustment parameter values corresponding to another part of the reference color are all zero.
  • the first target reference color is used to form the color to be adjusted, and the target color adjustment parameter of the first target reference color is not zero.
  • the to-be-adjusted colors may all be composed of the first target reference color, or may be composed of the first target reference color and other reference colors.
  • the multiple reference colors also include other reference colors other than the first target reference color, at least according to the number of reference colors, determine the target color adjustment parameter values corresponding to the other reference colors.
  • the multiple reference colors also include other reference colors except the first target reference color.
  • Determine the target color adjustment parameter values corresponding to other reference colors if the number of multiple reference colors is equal to the number of the first target reference color, the multiple reference colors do not include other reference colors except the first target reference color, that is, The number of other reference colors is zero, and in this case, the step of determining the target color adjustment parameter values corresponding to the other reference colors at least according to the number of reference colors is no longer performed.
  • each reference color is determined as the first target reference color. Specifically, if the number of reference colors is 2, the 2 reference colors are determined as the first target reference colors respectively, that is, the number of the first target reference colors is 2; if the number of reference colors is 3, then The three reference colors are respectively determined as the first target reference colors, that is, the number of the first target reference colors is three.
  • three first target reference colors are determined from the plurality of reference colors, so that the point corresponding to the target chromaticity coordinates falls on the three first targets Inside the triangle formed by the points corresponding to the reference chromaticity coordinates of the reference color.
  • the color to be adjusted can be determined only by the three first target reference colors.
  • the reference colors are mixed.
  • other reference colors except the three first target reference colors may not participate in the color mixing, that is, the target color adjustment parameter values corresponding to these other reference colors are all zero.
  • the color to be adjusted may also be formed by mixing the three first target reference colors and other reference colors among the multiple reference colors.
  • the number of triangles formed by the points corresponding to the reference chromaticity coordinates of the multiple reference colors is multiple, and the points corresponding to the target chromaticity coordinates may fall within two or even more triangles among the above-mentioned multiple triangles. , it is only necessary to determine the reference colors corresponding to the coordinates of the three vertices of any one of the above two or even more triangles as the three first target reference colors.
  • the display color of the target device is formed by mixing five reference colors (ie, G, B, R, A, K). It can be seen from FIG. 2 that the target chromaticity coordinates corresponding to the color M to be adjusted are mixed.
  • the point M1 corresponding to (x m , y m ) falls into the triangle G1B1R1, the triangle B1R1A1, and the triangle B1R1K1, wherein the triangle G1B1R1 is defined by the reference color G of the reference chromaticity coordinates (x g , y g ) corresponding to the point G1, the reference color
  • the point B1 corresponding to the reference chromaticity coordinates (x b , y b ) of B and the point R1 corresponding to the reference chromaticity coordinates (x r , y r ) of the reference color R are formed.
  • the triangle B1R1A1 is composed of the reference chromaticity coordinates of the reference color B.
  • the point B1 corresponding to (x b , y b ), the point R1 corresponding to the reference chromaticity coordinates (x r , y r ) of the reference color R, and the point corresponding to the reference chromaticity coordinates (x a , y a ) of the reference color A A1 is formed, the triangle B1R1K1 is composed of the point B1 corresponding to the reference chromaticity coordinates (x b , y b ) of the reference color B, the point R1 corresponding to the reference chromaticity coordinates (x r , y r ) of the reference color R, and the reference color K
  • the reference chromaticity coordinates (x k , y k ) are formed by the point K1 corresponding to the point K1, therefore, the reference color G1, the reference color B1, and the reference color R1 can be determined as the above-mentioned three first target reference colors, or the reference color B1,
  • the target response parameter value of each first target reference color can be determined according to the reference color value, reference chromaticity coordinates and target chromaticity coordinates of each first target reference color; then, for each first target reference color, the target response parameter value can be determined.
  • a target color adjustment parameter value corresponding to the target response parameter value of the first target reference color is determined according to the response relationship corresponding to the first target reference color.
  • the target response parameter value of each first target reference color can be determined through the following steps 1 and 2 according to the reference color value, reference chromaticity coordinates, and target chromaticity coordinates of each first target reference color :
  • each first target reference color the reference chromaticity coordinates, and the target chromaticity coordinates, determine the proportional relationship between the target response parameter values of each first target reference color.
  • the target response parameter value of each first target reference color can be determined by the following equation (2) according to the upper limit value and proportional relationship of the color adjustment parameter:
  • R(IRE R ) is the response parameter of the first target reference color R
  • G(IRE G ) is the response parameter of the first target reference color G
  • B(IRE G ) is the response parameter of the first target reference color B
  • R1(IRE R ) is the proportional value corresponding to the first target reference color R in the proportional relationship
  • G1(IRE G ) is the proportional value corresponding to the first target reference color G in the proportional relationship
  • B1(IRE B ) is the first target reference color G in the proportional relationship A proportional value corresponding to the target reference color B
  • Max is the maximum value among R1 (IRE R ), B1 (IRE B ), and G1 (IRE G );
  • N is the upper limit of the color adjustment parameter.
  • the display color of the target device is mixed by 2 reference colors, that is, the number of the first target reference color is 2.
  • the point corresponding to the chromaticity coordinates of the mixed color is located on the connecting line of the points corresponding to the chromaticity coordinates of the two colors, so that the point corresponding to the target chromaticity coordinates corresponding to the color to be adjusted is located on the two On the connecting line of the points corresponding to the reference chromaticity coordinates of the first target reference color (as shown in FIG.
  • the point M1 corresponding to the target chromaticity coordinates (x m , y m ) corresponding to the color M to be adjusted is located on the first target reference
  • the point M1 corresponding to the reference chromaticity coordinates (x g , y g ) of the color G and the point B1 corresponding to the reference chromaticity coordinates (x g , y g ) of the first target reference color B that is, the point M1 is located at on line segment G1B1), and satisfy the following equation (3):
  • (x g , y g ) are the reference chromaticity coordinates of the first target reference color G;
  • (x b , y b ) are the reference chromaticity coordinates of the first target reference color B;
  • (x m , y m ) are Target chromaticity coordinates;
  • (X B , Y B, , Z B ) are the reference color values of the first target reference color B;
  • (X G , Y G, , Z G ) are the reference color values of the first target reference color G .
  • the above equation (3) can be used to determine the target response parameter value of each first target reference color. proportional relationship.
  • the display color of the target device is formed by mixing three or more reference colors, that is, the number of the first target reference color is three.
  • the proportional relationship between the target response parameter values of each first target reference color can be determined in the following manner:
  • one of the three first target reference colors is determined as the second target reference color, and the other two are respectively used as the third target reference color and the fourth target reference color; then, the second target reference color and the third target reference color are determined.
  • the reference color value of the third target reference color and With reference to the chromaticity coordinates, the reference color value and reference chromaticity coordinates of the second target reference color, and the first mixed chromaticity coordinates determine the difference between the target response parameter value of the second target reference color and the target response parameter value of the third target reference color.
  • the first ratio at the same time, according to the reference color value and reference chromaticity coordinates of the fourth target reference color, the reference color value and reference chromaticity coordinates of the second target reference color, and the second mixed chromaticity coordinates, determine the second target reference color
  • the reference color value and reference chromaticity coordinates of the third target reference color by the following equation (4) Determine the first ratio G(IRE G )/B(IRE G ) of the target response parameter value of the second target reference color and the target response parameter value of the third target reference color:
  • the three first target reference colors are respectively color G, color B, and color R, wherein the second target reference color is the first target reference color G, the third target reference color is the first target color B, and the fourth target reference color is the first target color B.
  • the reference color is the first target reference color R; (x c , y c ) is the first mixed chromaticity coordinate.
  • the reference color value and reference chromaticity coordinates of the fourth target reference color by the following equation (5) Determine the second ratio G(IRE G )/R(IRE R ) of the target response parameter value of the second target reference color to the target response parameter value of the fourth target reference color:
  • (x r , y r ) is the reference chromaticity coordinate of the fourth target reference color R;
  • (x y , y y ) is the second mixed chromaticity coordinate;
  • (X R , Y R , , Z R ) is the first The reference color value of the four target reference color R.
  • the specific implementation manner of determining the first mixed chromaticity coordinates of the mixed color of the second target reference color and the third target reference color will be described in detail below.
  • the first straight line where the point corresponding to the reference chromaticity coordinate of the third target reference color and the point corresponding to the reference chromaticity coordinate of the second target reference color and the reference color of the fourth target reference color may be determined.
  • the second straight line where the point corresponding to the degree coordinates and the point corresponding to the target chromaticity coordinate are located; then, the coordinates of the intersection of the first straight line and the second straight line are determined as the mixed color of the second target reference color and the third target reference color The first mixed chromaticity coordinates of .
  • the second target reference color and the third target reference color are first mixed, and it can be known that the point corresponding to the mixed chromaticity coordinates of the mixed color of the two is located at the point corresponding to the second target reference color and the third target reference color.
  • the colors are mixed to obtain the color to be adjusted. Therefore, the point corresponding to the target chromaticity coordinate of the color to be adjusted is located on the connecting line between the point corresponding to the reference chromaticity coordinate of the fourth target reference color and the above-mentioned first straight line.
  • the point corresponding to the mixed chromaticity coordinates of the mixed color of the second target reference color and the third target reference color is the intersection of the first straight line and the second straight line, wherein the second straight line is the reference chromaticity of the fourth target reference color
  • the equation of the first straight line can be determined according to the reference chromaticity coordinates of the third target reference color and the reference chromaticity coordinates of the second target reference color, and at the same time, according to the reference chromaticity coordinates of the fourth target reference color and The reference chromaticity coordinates of the second target reference color are used to determine the equation of the second straight line.
  • the second target reference color is the first target reference color G
  • the third target reference color is the first target color B
  • the fourth target reference color is the first target reference color R
  • the third target reference color is the first target reference color R.
  • the reference chromaticity coordinates of a target reference color G are (x g , y g );
  • the reference chromaticity coordinates of the first target reference color B are (x b , y b );
  • the reference chromaticity coordinates of the first target reference color R is (x r , y r );
  • the first mixed chromaticity coordinates (x c , y c ) of the mixed color C of the second target reference color G and the third target reference color B can be determined by the following steps: First, determine where the point B1 corresponding to the reference chromaticity coordinates (x b , y b ) of the third target reference color B and the point G1 corresponding to the reference chromaticity coordinates (x
  • the first straight line (ie straight line B1G1), and the point R1 corresponding to the reference chromaticity coordinates (x r , y r ) of the fourth target reference color R and the point M1 corresponding to the target chromaticity coordinates (x m , y m ) are located. Then, the coordinates of the intersection C1 of the first straight line B1G1 and the second straight line R1M1 are determined as the first and second target reference color G and the third target reference color B mixed color C Mixed chromaticity coordinates (x c , y c ).
  • the second mixed chromaticity coordinates of the mixed color of the second target reference color and the fourth target reference color can be determined in the following manner: First, determine the point corresponding to the reference chromaticity coordinates of the fourth target reference color and the second The third straight line where the point corresponding to the reference chromaticity coordinate of the target reference color is located, and the fourth straight line where the point corresponding to the reference chromaticity coordinate of the third target reference color and the point corresponding to the target chromaticity coordinate are located; The coordinates of the intersection of the straight line and the fourth straight line are determined as the second mixed chromaticity coordinates of the mixed color of the second target reference color and the fourth target reference color.
  • the second target reference color is the first target reference color G
  • the third target reference color is the first target color B
  • the fourth target reference color is the first target reference color R
  • the third target reference color is the first target reference color R.
  • the reference chromaticity coordinates of a target reference color G are (x g , y g );
  • the reference chromaticity coordinates of the first target reference color B are (x b , y b );
  • the reference chromaticity coordinates of the first target reference color R is (x r , y r );
  • the second mixed chromaticity coordinates (x y , y y ) of the mixed color Y of the second target reference color G and the fourth target reference color R can be determined by the following steps: First, determine where the point R1 corresponding to the reference chromaticity coordinates (x r , y r ) of the fourth target reference color R and the point G1 corresponding to the reference chromaticity coordinates (
  • the third straight line (ie straight line R1G1), and the point B1 corresponding to the reference chromaticity coordinates (x b , y b ) of the third target reference color B and the point M1 corresponding to the target chromaticity coordinates (x m , y m ) are located the fourth straight line (ie straight line B1M1); then, the coordinates of the intersection Y1 of the third straight line R1G1 and the fourth straight line B1M1 are determined as the second mixed color of the mixed color Y of the second target reference color G and the fourth target reference color R Degree coordinates (x y , y y ).
  • the display color of the target device is formed by mixing three or more reference colors, that is, the number of the first target reference color is three.
  • the proportional relationship between the target response parameter values of each first target reference color can also be determined in the following manner according to the reference color value, reference chromaticity coordinates, and target chromaticity coordinates of each first target reference color :
  • one of the three first target reference colors is determined as the second target reference color, and the other two are respectively used as the third target reference color and the fourth target reference color; then, the second target reference color and the third target reference color are determined.
  • the reference color value and reference chromaticity coordinates of the third target reference color the reference color value and reference chromaticity coordinates of the second target reference color, the first mixed color Chromaticity coordinates, determine the first ratio of the target response parameter value of the second target reference color and the target response parameter value of the third target reference color; at the same time, according to the reference color value of each first target reference color, the target chromaticity coordinates , the first mixed chromaticity coordinates and the reference chromaticity coordinates of the fourth target reference color, determine the target response parameter value of the second target reference color, the target response parameter value of the third target reference color, and the target response of the fourth target reference color The relationship between the parameter values; finally, according to the
  • the first target reference color can be determined by the following equation (6).
  • the target color adjustment parameter values corresponding to other reference colors may be determined in various ways. In one embodiment, zero may be determined as the target color adjustment parameter value corresponding to other reference colors.
  • the reference color value of each first target reference color, the target color adjustment parameter value corresponding to each first target reference color, the target chromaticity coordinates, the extended chromaticity coordinates, and other references can be adjusted first.
  • the reference color value and reference chromaticity coordinates of the colors determine the target response parameter values of other reference colors, wherein the extension of the chromaticity coordinates is the line connecting the point corresponding to the reference chromaticity coordinates of other reference colors to the point corresponding to the target chromaticity coordinates
  • the chromaticity coordinates of any point on the extension line of and then, according to the response relationship corresponding to the other reference colors, determine the target color adjustment parameter value corresponding to the target response parameter value of the other reference color.
  • the extended chromaticity coordinates can be considered as the chromaticity coordinates of the mixed colors of the three first target reference colors, so that the mixed colors of the three first target reference colors and other reference colors are the colors to be adjusted.
  • the display color of the target device is formed by mixing four reference colors (ie, G, B, R, and A), wherein the reference color G, reference color B, and reference color R are three thirds.
  • a target reference color, the reference color A is the other reference color, and the extension line coordinates are the point A1 corresponding to the reference chromaticity coordinates (x a , y a ) of the other reference color A to the target chromaticity coordinates (x m , y m ) corresponding to The chromaticity coordinates of any point N on the extension line of the connecting line of the point M1 (ie the line segment A1M1).
  • the reference color value of each first target reference color, the target color adjustment parameter value corresponding to each first target reference color, the target chromaticity coordinates, the extended chromaticity coordinates, and the reference color values of other reference colors are determined by the following equation (7):
  • A(IRE A ) is the target response parameter value of other reference color A
  • (x n , y n ) is the extended chromaticity coordinate
  • (x a , y a ) is the reference chromaticity coordinate of other reference color A
  • ( X A , Y A , , Z A ) are the reference color values of other reference colors A.
  • the present disclosure also provides a color adjustment device.
  • the apparatus 600 includes: a first determination module 601, configured to determine the target chromaticity coordinates corresponding to the color to be adjusted of the target device, wherein the display color of the target device is formed by mixing a plurality of reference colors ; a second determination module 602, configured to determine the target chromaticity coordinates according to the number of the reference colors, the target chromaticity coordinates determined by the first determination module 601, the reference color value of each of the reference colors and each of the reference colors The response relationship corresponding to the color is determined, and the target color adjustment parameter value corresponding to each of the reference colors is determined, wherein the response relationship is used to represent the color adjustment parameter corresponding to the reference color and the response parameter of the reference color.
  • the adjustment module 603 is configured to perform color adjustment on the target device according to the target color adjustment parameter value corresponding to each of the reference colors determined by the second determination module 602, so as to adjust the color of the target device.
  • the display color is adjusted to the color to be adjusted.
  • the target chromaticity coordinates corresponding to the color to be adjusted of the target device wherein the display color of the target device is formed by mixing a plurality of reference colors; then, according to the number of reference colors, target chromaticity coordinates, The reference color value of each reference color and the response relationship corresponding to each reference color determine the target color adjustment parameter value corresponding to each reference color; finally, according to the target color adjustment parameter value corresponding to each color, the target device is color-coded. Adjust to adjust the display color of the target device to the color to be adjusted. In this way, the target color adjustment parameter value corresponding to each reference color can be quickly determined through a simple calculation, thereby realizing rapid real-time adjustment of the color of the target device, ensuring the accuracy of color adjustment, and improving user experience.
  • the second determination module 602 includes: a first determination sub-module, configured to, for each of the reference colors, determine the reference chromaticity coordinates of the reference color according to the reference color value of the reference color;
  • the second determination submodule is used to determine a first target reference color from the plurality of reference colors, and the first target reference color is used to form the to-be-adjusted color;
  • the third determination submodule is used to determine the color according to the The target chromaticity coordinates, the response relationship corresponding to each of the first target reference colors, and the reference color value and reference chromaticity coordinates of each of the first target reference colors, determine the corresponding value of each of the first target reference colors.
  • a target color adjustment parameter value configured to determine at least according to the number of the reference colors if the multiple reference colors also include other reference colors other than the first target reference color The target color adjustment parameter values corresponding to the other reference colors.
  • the second determination sub-module is configured to: if the number of the reference colors is greater than 3, determine three of the first target reference colors from the plurality of reference colors, so that the target The point corresponding to the chromaticity coordinates falls within the triangle formed by the three points corresponding to the reference chromaticity coordinates of the first target reference color; if the number of the reference colors is less than or equal to 3, each of the reference All colors are determined as the first target reference color.
  • the third determination submodule includes: a fifth determination submodule, configured to determine each reference color value and reference chromaticity coordinates of the first target reference color and the target chromaticity coordinates a target response parameter value of the first target reference color; the sixth determination sub-module is used for each first target reference color, according to the response relationship corresponding to the first target reference color, to determine the The target color adjustment parameter value corresponding to the target response parameter value of the first target reference color.
  • the fifth determination sub-module includes: a proportional relationship determination sub-module, configured to determine each reference color value and reference chromaticity coordinates of each of the first target reference colors, and the target chromaticity coordinates. a proportional relationship between the target response parameter values of the first target reference color; the response parameter value determination sub-module is configured to determine each of the first color adjustment parameters according to the upper limit value of the color adjustment parameter and the proportional relationship A target response parameter value for a target reference color.
  • the proportional relationship determination sub-module includes: a seventh determination sub-module, configured to determine one of the three first target reference colors as The second target reference color, the other two are respectively used as the third target reference color and the fourth target reference color; the eighth determination sub-module is used to determine the mixed color of the second target reference color and the third target reference color The first mixed chromaticity coordinates of , and the second mixed chromaticity coordinates of the mixed color of the second target reference color and the fourth target reference color; the ninth determination sub-module is used for: according to the third target The reference color value and reference chromaticity coordinates of the reference color, the reference color value and reference chromaticity coordinates of the second target reference color, and the first mixed chromaticity coordinates, determine the target response parameter of the second target reference color value and the first ratio of the target response parameter value of the third target reference color; according to the reference color value and reference chromaticity coordinates of the fourth target reference color, the reference color value
  • the ninth determination sub-module includes: a straight line determination sub-module for determining that the point corresponding to the reference chromaticity coordinate of the third target reference color corresponds to the reference chromaticity coordinate of the second target reference color.
  • the first straight line where the point is located, and the second straight line where the point corresponding to the reference chromaticity coordinate of the fourth target reference color and the point corresponding to the target chromaticity coordinate are located;
  • the coordinates of the intersection of the first straight line and the second straight line are determined as the first mixed chromaticity coordinates of the mixed color of the second target reference color and the third target reference color;
  • the straight line determination submodule further A third straight line for determining the point corresponding to the reference chromaticity coordinate of the fourth target reference color and the point corresponding to the reference chromaticity coordinate of the second target reference color, and the reference of the third target reference color
  • the fourth straight line where the point corresponding to the chromaticity coordinates and the point corresponding to the target chromaticity coordinates are
  • the proportional relationship determination sub-module includes: a seventh determination sub-module, which determines one of the three first target reference colors as the first target reference color. Two target reference colors, the other two are respectively used as the third target reference color and the fourth target reference color; the eighth determination sub-module is used to determine the mixed color of the second target reference color and the third target reference color.
  • the first mixed chromaticity coordinates; the ninth determination submodule is used for the reference color value and reference chromaticity coordinates of the third target reference color, the reference color value and reference chromaticity coordinates of the second target reference color, The first mixed chromaticity coordinates determine the first ratio between the target response parameter value of the second target reference color and the target response parameter value of the third target reference color; the tenth determination sub-module is used for determining according to each a reference color value of the first target reference color, the target chromaticity coordinates, the first mixed chromaticity coordinates, and the reference chromaticity coordinates of the fourth target reference color, to determine the second target reference color The relationship between the target response parameter value of the third target reference color, the target response parameter value of the third target reference color, and the target response parameter value of the fourth target reference color; the eleventh determination sub-module is used for The relationship between the target response parameter value of the target reference color, the target response parameter value of the third target reference color, the target response parameter value of the fourth target reference color
  • the fourth determination sub-module is configured to: if the number of the reference colors is greater than 4, then determine zero as the target color adjustment parameter value corresponding to the other reference colors; if the number of the reference colors is equal to 4.
  • Determine the target color adjustment parameter value corresponding to the other reference colors by one of the following methods: determine zero as the target color adjustment parameter value corresponding to the other reference colors; The reference color value of the color, the target color adjustment parameter value corresponding to each of the first target reference colors, the target chromaticity coordinates, the extended chromaticity coordinates, and the reference color values and reference chromaticity coordinates of the other reference colors, Determine the target response parameter value of the other reference color, and then determine the target color adjustment parameter value corresponding to the target response parameter value of the other reference color according to the response relationship corresponding to the other reference color.
  • the coordinates are the chromaticity coordinates of any point on the extension line of the line connecting the point corresponding to the reference chromaticity coordinates of the other reference colors to the point corresponding to the target chromat
  • the present disclosure provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the steps of the above-mentioned color adjustment method provided by the present disclosure.
  • FIG. 7 is a block diagram of an electronic device 700 according to an exemplary embodiment.
  • the electronic device 700 may include: a processor 701 and a memory 702 .
  • the electronic device 700 may also include one or more of a multimedia component 703 , an input/output (I/O) interface 704 , and a communication component 705 .
  • I/O input/output
  • the processor 701 is used to control the overall operation of the electronic device 700 to complete all or part of the steps in the above-mentioned color adjustment method.
  • the memory 702 is used to store various types of data to support operations on the electronic device 700, such data may include, for example, instructions for any application or method operating on the electronic device 700, and application-related data, Such as contact data, messages sent and received, pictures, audio, video, and so on.
  • the memory 702 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (Static Random Access Memory, SRAM for short), electrically erasable programmable read-only memory ( Electrically Erasable Programmable Read-Only Memory (EEPROM for short), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (Read-Only Memory, ROM for short), magnetic memory, flash memory, magnetic disk or optical disk.
  • Multimedia components 703 may include screen and audio components. Wherein the screen can be, for example, a touch screen, and the audio component is used for outputting and/or inputting audio signals.
  • the audio component may include a microphone for receiving external audio signals.
  • the received audio signal may be further stored in memory 702 or transmitted through communication component 705 .
  • the audio assembly also includes at least one speaker for outputting audio signals.
  • the I/O interface 704 provides an interface between the processor 701 and other interface modules, and the above-mentioned other interface modules may be a keyboard, a mouse, a button, and the like. These buttons can be virtual buttons or physical buttons.
  • the communication component 705 is used for wired or wireless communication between the electronic device 700 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or one or more of them The combination is not limited here. Therefore, the corresponding communication component 705 may include: Wi-Fi module, Bluetooth module, NFC module and so on.
  • the electronic device 700 may be implemented by one or more application-specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), digital signal processors (Digital Signal Processor, DSP for short), digital signal processing devices (Digital Signal Processing Device, referred to as DSPD), Programmable Logic Device (Programmable Logic Device, referred to as PLD), Field Programmable Gate Array (Field Programmable Gate Array, referred to as FPGA), controller, microcontroller, microprocessor or other electronic components Implementation is used to perform the above-mentioned color adjustment method.
  • ASIC Application Specific Integrated Circuit
  • DSP Digital Signal Processor
  • DSPD Digital Signal Processing Device
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • controller microcontroller, microprocessor or other electronic components Implementation is used to perform the above-mentioned color adjustment method.
  • a computer-readable storage medium comprising program instructions, the program instructions implementing the steps of the above-mentioned color adjustment method when executed by a processor.
  • the computer-readable storage medium can be the above-mentioned memory 702 including program instructions, and the above-mentioned program instructions can be executed by the processor 701 of the electronic device 700 to complete the above-mentioned color adjustment method.

Abstract

A color adjustment method and apparatus, a medium, and an electronic device. The method comprises: determining target chromaticity coordinates corresponding to a color to be adjusted to of a target device, the display color of the target device being formed by mixing a plurality of reference colors (S101); determining, according to the number of the reference colors, the target chromaticity coordinates, the reference color value of each reference color and the response relationship corresponding to each reference color, a target color adjustment parameter value corresponding to each reference color (S102), the response relationship representing the correspondence between a color adjustment parameter corresponding to the reference color and a response parameter of the reference color; and performing color adjustment on the target device according to the target color adjustment parameter value corresponding to each reference color so as to adjust the display color of the target device to the color to be adjusted to (S103). In this way, the target color adjustment parameter value corresponding to each reference color can be quickly determined by means of simple calculation, so that quick real-time adjustment of the color of the target device can be achieved, and the color adjustment precision can be ensured, thereby improving the user experience.

Description

颜色调节方法、装置、介质及电子设备Color adjustment method, device, medium and electronic equipment
本公开要求于2021年04月02日提交中国专利局、申请号为202110363192.2、发明名称为“颜色调节方法、装置、介质及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。This disclosure claims the priority of the Chinese patent application with the application number 202110363192.2 and the invention titled "Color Adjustment Method, Apparatus, Medium and Electronic Device" filed with the China Patent Office on April 2, 2021, the entire contents of which are incorporated by reference in in this disclosure.
技术领域technical field
本公开涉及光学技术领域,具体地,涉及一种颜色调节方法、装置、介质及电子设备。The present disclosure relates to the field of optical technology, and in particular, to a color adjustment method, device, medium and electronic device.
背景技术Background technique
目标设备(例如,投影设备、电视、显示设备、氛围灯、照明灯等)的默认光源并不总是符合要求,在多种应用场景下都需要对目标设备进行颜色调整。应用场景比如:投影设备、显示设备的自动白平衡,氛围灯的颜色变化,氛围灯需要跟显示设备或投影设备实时联动做颜色变化,显示设备、投影设备等侦测环境实时调整颜色等。如何实现目标设备颜色的快速实时调节,对于提升用户体验具有重要的意义。The default light source of the target device (eg, projection device, TV, display device, ambient light, lighting, etc.) does not always meet the requirements, and the target device needs to be color adjusted in various application scenarios. Application scenarios such as: automatic white balance of projection equipment and display equipment, color change of ambient light, ambient light needs to be linked with display equipment or projection equipment to make color changes in real time, display equipment, projection equipment and other detection environments adjust colors in real time, etc. How to realize the rapid real-time adjustment of the color of the target device is of great significance for improving the user experience.
发明内容SUMMARY OF THE INVENTION
为了克服相关技术存在的问题,本公开提供一种颜色调节方法、装置、介质及电子设备。In order to overcome the problems existing in the related art, the present disclosure provides a color adjustment method, device, medium and electronic device.
为了实现上述目的,第一方面,本公开提供一种颜色调节方法,包括:In order to achieve the above object, in a first aspect, the present disclosure provides a color adjustment method, including:
确定目标设备的待调节颜色对应的目标色度坐标,其中,所述目标设备的显示颜色由多个参考颜色混合而成;determining the target chromaticity coordinates corresponding to the color to be adjusted of the target device, wherein the display color of the target device is formed by mixing a plurality of reference colors;
根据所述参考颜色的数量、所述目标色度坐标、每一所述参考颜色的参考色值以及每一所述参考颜色对应的响应关系,确定每一所述参考颜色对应的目标颜色调整参数值,其中,所述响应关系用于表征所述参考颜色对应的颜色调整参数与所述参考颜色的响应参数之间的对应关系;Determine the target color adjustment parameter corresponding to each reference color according to the number of the reference colors, the target chromaticity coordinates, the reference color value of each of the reference colors, and the response relationship corresponding to each of the reference colors value, wherein the response relationship is used to represent the corresponding relationship between the color adjustment parameter corresponding to the reference color and the response parameter of the reference color;
根据每一所述参考颜色对应的目标颜色调整参数值,对所述目标设备进行颜色调节, 以将所述目标设备的显示颜色调节为所述待调节颜色。Color adjustment is performed on the target device according to the target color adjustment parameter value corresponding to each of the reference colors, so as to adjust the display color of the target device to the color to be adjusted.
第二方面,本公开提供一种颜色调节装置,包括:In a second aspect, the present disclosure provides a color adjustment device, comprising:
第一确定模块,用于确定目标设备的待调节颜色对应的目标色度坐标,其中,所述目标设备的显示颜色由多个参考颜色混合而成;a first determination module, configured to determine the target chromaticity coordinates corresponding to the color to be adjusted of the target device, wherein the display color of the target device is formed by mixing a plurality of reference colors;
第二确定模块,用于根据所述参考颜色的数量、所述第一确定模块确定出的所述目标色度坐标、每一所述参考颜色的参考色值以及每一所述参考颜色对应的响应关系,确定每一所述参考颜色对应的目标颜色调整参数值,其中,所述响应关系用于表征所述参考颜色对应的颜色调整参数与所述参考颜色的响应参数之间的对应关系;The second determination module is configured to, according to the number of the reference colors, the target chromaticity coordinates determined by the first determination module, the reference color value of each of the reference colors, and the corresponding value of each of the reference colors a response relationship, determining the target color adjustment parameter value corresponding to each of the reference colors, wherein the response relationship is used to represent the corresponding relationship between the color adjustment parameter corresponding to the reference color and the response parameter of the reference color;
调节模块,用于根据所述第二确定模块确定出的每一所述参考颜色对应的目标颜色调整参数值,对所述目标设备进行颜色调节,以将所述目标设备的显示颜色调节为所述待调节颜色。An adjustment module, configured to perform color adjustment on the target device according to the target color adjustment parameter value corresponding to each of the reference colors determined by the second determination module, so as to adjust the display color of the target device to the desired color Describe the color to be adjusted.
第三方面,本公开提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现本公开第一方面提供的所述方法的步骤。In a third aspect, the present disclosure provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the steps of the method provided in the first aspect of the present disclosure.
第四方面,本公开提供一种电子设备,包括:In a fourth aspect, the present disclosure provides an electronic device, comprising:
存储器,其上存储有计算机程序;a memory on which a computer program is stored;
处理器,用于执行所述存储器中的所述计算机程序,以实现本公开第一方面提供的所述方法的步骤。A processor, configured to execute the computer program in the memory, to implement the steps of the method provided by the first aspect of the present disclosure.
在上述技术方案中,首先确定目标设备的待调节颜色对应的目标色度坐标,其中,目标设备的显示颜色由多个参考颜色混合而成;然后,根据参考颜色的数量、目标色度坐标、每一参考颜色的参考色值以及每一参考颜色对应的响应关系,确定每一参考颜色对应的目标颜色调整参数值;最后,根据每一颜色对应的目标颜色调整参数值,对目标设备进行颜色调节,以将目标设备的显示颜色调节为待调节颜色。这样,通过简单的计算即可快速确定出各参考颜色对应的目标颜色调整参数值,从而实现目标设备颜色的快速实时调节,并且,能够保证颜色调节的精度,提升用户体验。In the above technical solution, first determine the target chromaticity coordinates corresponding to the color to be adjusted of the target device, wherein the display color of the target device is formed by mixing a plurality of reference colors; then, according to the number of reference colors, target chromaticity coordinates, The reference color value of each reference color and the response relationship corresponding to each reference color determine the target color adjustment parameter value corresponding to each reference color; finally, according to the target color adjustment parameter value corresponding to each color, the target device is color-coded. Adjust to adjust the display color of the target device to the color to be adjusted. In this way, the target color adjustment parameter value corresponding to each reference color can be quickly determined through a simple calculation, thereby realizing rapid real-time adjustment of the color of the target device, ensuring the accuracy of color adjustment, and improving user experience.
本公开的其他特征和优点将在随后的具体实施方式部分予以详细说明。Other features and advantages of the present disclosure will be described in detail in the detailed description that follows.
附图说明Description of drawings
附图是用来提供对本公开的进一步理解,并且构成说明书的一部分,与下面的具体实施方式一起用于解释本公开,但并不构成对本公开的限制。在附图中:The accompanying drawings are used to provide a further understanding of the present disclosure, and constitute a part of the specification, and together with the following detailed description, are used to explain the present disclosure, but not to limit the present disclosure. In the attached image:
图1是根据一示例性实施例示出的一种颜色调节方法的流程图。FIG. 1 is a flow chart of a color adjustment method according to an exemplary embodiment.
图2是根据一示例性实施例示出的一种从多个参考颜色中确定出三个第一目标参考颜色的过程的示意图。FIG. 2 is a schematic diagram illustrating a process of determining three first target reference colors from a plurality of reference colors according to an exemplary embodiment.
图3是根据一示例性实施例示出的一种确定每一第一目标参考颜色的目标响应参数值之间的比例关系的的示意图。FIG. 3 is a schematic diagram illustrating a method for determining a proportional relationship between target response parameter values of each first target reference color according to an exemplary embodiment.
图4是根据一示例性实施例示出的一种确定第一混合色度坐标和第二混合色度坐标的示意图。Fig. 4 is a schematic diagram of determining a first mixed chromaticity coordinate and a second mixed chromaticity coordinate according to an exemplary embodiment.
图5是根据一示例性实施例示出的一种确定其他参考颜色的目标响应参数值的示意图。Fig. 5 is a schematic diagram illustrating a method for determining target response parameter values of other reference colors according to an exemplary embodiment.
图6是根据一示例性实施例示出的一种颜色调节装置的框图。Fig. 6 is a block diagram of a color adjustment apparatus according to an exemplary embodiment.
图7是根据一示例性实施例示出的一种电子设备的框图。Fig. 7 is a block diagram of an electronic device according to an exemplary embodiment.
具体实施方式Detailed ways
以下结合附图对本公开的具体实施方式进行详细说明。应当理解的是,此处所描述的具体实施方式仅用于说明和解释本公开,并不用于限制本公开。The specific embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only used to illustrate and explain the present disclosure, but not to limit the present disclosure.
图1是根据一示例性实施例示出的一种颜色调节方法的流程图。如图1所示,该方法包括S101~S103。FIG. 1 is a flow chart of a color adjustment method according to an exemplary embodiment. As shown in FIG. 1 , the method includes S101 to S103.
在S101中,确定目标设备的待调节颜色对应的目标色度坐标,其中,目标设备的显示颜色由多个参考颜色混合而成。In S101, the target chromaticity coordinates corresponding to the color to be adjusted of the target device are determined, wherein the display color of the target device is formed by mixing a plurality of reference colors.
在本公开中,目标设备可以例如是投影设备、电视、显示设备、氛围灯、照明灯等。并且,目标设备的显示颜色可以由多个参考颜色混合而成,其中,参考颜色的数量可以为两个、三个、四个、甚至更多个,对此,本公开不作具体限定。In the present disclosure, the target device may be, for example, a projection device, a television, a display device, an ambient light, a lighting lamp, and the like. In addition, the display color of the target device may be formed by mixing multiple reference colors, wherein the number of reference colors may be two, three, four, or even more, which is not specifically limited in the present disclosure.
另外,多个参考颜色可以为各种不同的颜色,在本公开中不作具体限定。示例地,多个参考颜色包括红色、绿色以及蓝色,即目标设备的显示颜色(即目标设备呈现的颜色)可由红色、绿色、蓝色混合而成。又示例地,多个参考颜色包括黄色和青色,即目标设备的显示颜色可由黄色、青色混合而成。In addition, the plurality of reference colors may be various colors, which are not specifically limited in the present disclosure. For example, the multiple reference colors include red, green, and blue, that is, the display color of the target device (ie, the color presented by the target device) can be formed by mixing red, green, and blue. For another example, the multiple reference colors include yellow and cyan, that is, the display color of the target device can be formed by mixing yellow and cyan.
在S102中,根据参考颜色的数量、目标色度坐标、每一参考颜色的参考色值以及每一参考颜色对应的响应关系,确定每一参考颜色对应的目标颜色调整参数值。In S102, a target color adjustment parameter value corresponding to each reference color is determined according to the number of reference colors, the target chromaticity coordinates, the reference color value of each reference color, and the response relationship corresponding to each reference color.
在本公开中,参考色值可以为XYZ色彩空间中的XYZ数据。其中,XYZ色彩空间为国际照明协会(International Commission on illumination,简称CIE)在1931年定义的XYZ色彩空间,又称CIE1931。In the present disclosure, the reference color value may be XYZ data in the XYZ color space. Among them, the XYZ color space is the XYZ color space defined by the International Commission on Illumination (CIE) in 1931, also known as CIE1931.
响应关系用于表征参考颜色对应的颜色调整参数与参考颜色的响应参数之间的对应关系,其中,该响应关系是预先建立好的。目标设备可以通过调节不同参考颜色对应的颜色调整参数的值,来调节目标设备的显示颜色,以使得目标设备呈现期望颜色,其中,颜色调整参数可以为数字信号,也可以为电压、电流、占空比等模拟信号。The response relationship is used to represent the corresponding relationship between the color adjustment parameter corresponding to the reference color and the response parameter of the reference color, wherein the response relationship is established in advance. The target device can adjust the display color of the target device by adjusting the value of the color adjustment parameter corresponding to different reference colors, so that the target device presents the desired color. Analog signals such as empty ratio.
在S103中,根据每一参考颜色对应的目标颜色调整参数值,对目标设备进行颜色调节,以将目标设备的显示颜色调节为待调节颜色。In S103, color adjustment is performed on the target device according to the target color adjustment parameter value corresponding to each reference color, so as to adjust the display color of the target device to the color to be adjusted.
示例地,上述目标设备为投影设备,其对颜色调节以实现白平衡,多个参考颜色包括红色、绿色以及蓝色,其中,在通过S102得到红色对应的目标颜色调整参数值、绿色对应的目标颜色调整参数值以及蓝色对应的目标颜色调整参数值后,可以将投影设备中红色通道的增益系数调整为红色对应的目标颜色调整参数值/颜色调整参数的上限值(例如,1024),同时将绿色通道的增益系数调整为绿色对应的目标颜色调整参数值/上述上限值,将蓝色通道的增益系数调整为蓝色对应的目标颜色调整参数值/上述上限值,从而实现投影设备的白平衡。Illustratively, the above-mentioned target device is a projection device, which adjusts the color to achieve white balance, and the multiple reference colors include red, green, and blue, wherein, in S102, the target color adjustment parameter value corresponding to red and the target corresponding to green are obtained in S102. After the color adjustment parameter value and the target color adjustment parameter value corresponding to blue, the gain coefficient of the red channel in the projection device can be adjusted to the target color adjustment parameter value corresponding to red/the upper limit value of the color adjustment parameter (for example, 1024), At the same time, adjust the gain coefficient of the green channel to the target color adjustment parameter value corresponding to green/the above upper limit value, and adjust the gain coefficient of the blue channel to the target color adjustment parameter value corresponding to blue/the above upper limit value, so as to realize the projection The white balance of the device.
又示例地,针对照明灯,其包括一个红灯珠和一个黄灯珠,即多个参考颜色包括红色、黄色,其中,各参考颜色对应的颜色调整参数为电流,则在通过S102得到红色对应的目标电流值、黄色对应的目标电流值后,可控制红灯珠输出红色对应的目标电流值,黄灯珠输出黄色对应的目标电流值,从而可以使得照明灯呈现待显示颜色。For another example, for the lighting lamp, it includes one red lamp bead and one yellow lamp bead, that is, the multiple reference colors include red and yellow, wherein, the color adjustment parameter corresponding to each reference color is current, then the red corresponding color is obtained through S102. After the target current value and the target current value corresponding to yellow, the red lamp beads can be controlled to output the target current value corresponding to red, and the yellow lamp beads can output the target current value corresponding to yellow, so that the lighting lamp can display the color to be displayed.
在上述技术方案中,首先确定目标设备的待调节颜色对应的目标色度坐标,其中,目标设备的显示颜色由多个参考颜色混合而成;然后,根据参考颜色的数量、目标色度坐标、每一参考颜色的参考色值以及每一参考颜色对应的响应关系,确定每一参考颜色对应的目标颜色调整参数值;最后,根据每一颜色对应的目标颜色调整参数值,对目标设备进行颜色调节,以将目标设备的显示颜色调节为待调节颜色。这样,通过简单的计算即可快速确定出各参考颜色对应的目标颜色调整参数值,从而实现目标设备颜色的快速实时调节,并且,能够保证颜色调节的精度,提升用户体验。In the above technical solution, first determine the target chromaticity coordinates corresponding to the color to be adjusted of the target device, wherein the display color of the target device is formed by mixing a plurality of reference colors; then, according to the number of reference colors, target chromaticity coordinates, The reference color value of each reference color and the response relationship corresponding to each reference color determine the target color adjustment parameter value corresponding to each reference color; finally, according to the target color adjustment parameter value corresponding to each color, the target device is color-coded. Adjust to adjust the display color of the target device to the color to be adjusted. In this way, the target color adjustment parameter value corresponding to each reference color can be quickly determined through a simple calculation, thereby realizing rapid real-time adjustment of the color of the target device, ensuring the accuracy of color adjustment, and improving user experience.
下面针对上述S101中的确定目标设备的待调节颜色对应的目标色度坐标的具体实施方式进行详细说明。The specific implementation of determining the target chromaticity coordinates corresponding to the to-be-adjusted color of the target device in the above S101 will be described in detail below.
在一种实施方式中,可以根据用户的调节操作(例如,用户可以通过目标设备上的颜色调节按钮来调节目标设备所呈现的颜色),确定目标色度坐标。例如,可以根据用户输入的目标亮度、对比度等信息,确定对应的目标色度坐标。In one embodiment, the target chromaticity coordinates can be determined according to the user's adjustment operation (for example, the user can adjust the color presented by the target device through a color adjustment button on the target device). For example, the corresponding target chromaticity coordinates may be determined according to information such as target brightness and contrast input by the user.
在另一种实施方式中,可以根据环境光的变化,自适应确定目标色度坐标。In another implementation manner, the target chromaticity coordinates may be determined adaptively according to changes in ambient light.
在又一种实施方式中,可以根据与目标设备对应的参考设备的主颜色,确定目标色度坐标,其中,目标设备的显示颜色随参考设备的主颜色的变化而变化,其中,主颜色为构成参考设备的多个颜色中、占比最高的颜色。示例地,目标设备为氛围灯,参考设备为投影设备,即氛围灯的颜色随投影设备的主颜色变化而变化。In yet another embodiment, the target chromaticity coordinates may be determined according to the main color of the reference device corresponding to the target device, wherein the display color of the target device changes with the change of the main color of the reference device, wherein the main color is The color with the highest proportion among the multiple colors that make up the reference device. For example, the target device is an ambient light, and the reference device is a projection device, that is, the color of the ambient light changes with the main color of the projection device.
另外,上述响应关系可以通过以下步骤来构建:In addition, the above response relationship can be constructed by the following steps:
针对每一参考颜色:首先,将该参考颜色对应的颜色调整参数值设置为颜色调整参数的上限值,同时,将多个参考颜色中其他参考颜色对应的颜色调整参数值设为零,之后,获取目标设备所投射的光的第一色值;接下来,将该参考颜色对应的颜色调整参数值设置为其他几个数值(例如,1/2的上限值、1/3的上限值、2/3的上限值等),同时,多个参考颜色中其他参考颜色对应的颜色调整参数值仍为零,之后,获取在每一上述数值下、目标设备所投射的光的第二色值;最后,根据第一色值和每一第二色值,确定该参考颜色对应的响应关系,即参考颜色对应的颜色调整参数与参考颜色的响应参数之间的对应关系For each reference color: first, set the color adjustment parameter value corresponding to the reference color as the upper limit value of the color adjustment parameter, at the same time, set the color adjustment parameter value corresponding to other reference colors in the multiple reference colors to zero, then , obtain the first color value of the light projected by the target device; next, set the color adjustment parameter value corresponding to the reference color to several other values (for example, the upper limit of 1/2, the upper limit of 1/3) value, the upper limit value of 2/3, etc.), at the same time, the color adjustment parameter values corresponding to other reference colors in the multiple reference colors are still zero. Two-color value; finally, according to the first color value and each second color value, determine the response relationship corresponding to the reference color, that is, the corresponding relationship between the color adjustment parameter corresponding to the reference color and the response parameter of the reference color
在本公开中,各参考颜色对应的颜色调整参数的取值范围可以均相同。另外,可以通过传感模块来接收目标设备所投射的光,从而得到每次投射的光的色值(包括第一色值、第二色值),之后,目标设备通过与该传感模块通信即可获取到每次投射的光的色值。其中,传感模块可以为色温传感器、摄像机、照度计、积分球等,并且,该传感模块可以与该目标设备通过无线网络或有线网络连接。In the present disclosure, the value ranges of the color adjustment parameters corresponding to each reference color may be the same. In addition, the light projected by the target device can be received through the sensing module, so as to obtain the color value (including the first color value and the second color value) of the light projected each time. After that, the target device communicates with the sensing module by The color value of each projected light can be obtained. The sensing module may be a color temperature sensor, a camera, an illuminance meter, an integrating sphere, etc., and the sensing module may be connected to the target device through a wireless network or a wired network.
上述响应关系可以为响应函数。在每一上述数值下、目标设备所投射的光的第二色值=目标设备所投射的光的第一色值*响应函数(简称为方程1),其中,响应函数的自变量为该参考颜色对应的颜色调整参数,响应函数的因变量为该参数颜色的响应参数;这样,针对每一参考颜色,可以根据上述步骤获取到目标设备所投射的光的第一色值和每一第二色值,确定响应函数,即得到该参考颜色对应的颜色调整参数与该参数颜色的响应参数之间的对应关系。具体来说,可以针对每一第二色值,将该第一色值和第二色值代入上述方程1,从而得到方程组,进而可以根据该方程组,计算响应函数。The above-mentioned response relationship may be a response function. Under each of the above numerical values, the second color value of the light projected by the target device=the first color value of the light projected by the target device*response function (referred to as Equation 1), wherein the independent variable of the response function is the reference The color adjustment parameter corresponding to the color, and the dependent variable of the response function is the response parameter of the parameter color; in this way, for each reference color, the first color value and each second color value of the light projected by the target device can be obtained according to the above steps. The color value is determined, and the response function is determined, that is, the corresponding relationship between the color adjustment parameter corresponding to the reference color and the response parameter of the parameter color is obtained. Specifically, for each second color value, the first color value and the second color value can be substituted into the above equation 1, so as to obtain a set of equations, and then the response function can be calculated according to the set of equations.
示例地,参考颜色为红色,红色对应的响应参数
Figure PCTCN2021103837-appb-000001
其中,IRE R为红色对应的颜色调整参数,Gamma为目标设备的伽马值,即红色对应的颜色调整参数跟红色对应的响应参数符合Gamma特性。
For example, the reference color is red, and the response parameter corresponding to red
Figure PCTCN2021103837-appb-000001
Among them, IRE R is the color adjustment parameter corresponding to red, and Gamma is the gamma value of the target device, that is, the color adjustment parameter corresponding to red and the response parameter corresponding to red conform to the Gamma characteristic.
下面针对上述S102中的根据参考颜色的数量、目标色度坐标、每一参考颜色的参考色值以及每一参考颜色对应的响应关系,确定每一参考颜色对应的目标颜色调整参数值的具体实施方式进行详细说明。具体来说,可以通过以下步骤1)~步骤4)来实现。The following is a specific implementation of determining the target color adjustment parameter value corresponding to each reference color according to the number of reference colors, target chromaticity coordinates, the reference color value of each reference color, and the response relationship corresponding to each reference color in the above S102 method is explained in detail. Specifically, it can be implemented through the following steps 1) to 4).
1)针对每一参考颜色,根据参考颜色的参考色值,确定参考颜色的参考色度坐标。1) For each reference color, determine the reference chromaticity coordinates of the reference color according to the reference color value of the reference color.
示例地,可以通过以下等式(1)来将参考色值(X,Y,Z)转换为参考色度坐标(x,y):Illustratively, the reference color values (X, Y, Z) can be converted to reference chromaticity coordinates (x, y) by the following equation (1):
Figure PCTCN2021103837-appb-000002
Figure PCTCN2021103837-appb-000002
2)从多个参考颜色中确定第一目标参考颜色。2) Determine the first target reference color from the plurality of reference colors.
在本公开中,第一目标参考颜色用于构成待调节颜色,即目标设备工作时,可以将多个参考颜色中的部分参考颜色混合构成待显示颜色,另一部分参考颜色对待显示颜色不起作用,即另一部分参考颜色对应的目标颜色调整参数值均为零。其中,第一目标参考颜色用于构成待调节颜色,则第一目标参考颜色的目标颜色调整参数并非为零。另外,待调节颜色可以全部由第一目标参考颜色构成,也可以由第一目标参考颜色和其他参考颜色构成。In the present disclosure, the first target reference color is used to form the color to be adjusted, that is, when the target device is working, part of the reference colors in the multiple reference colors can be mixed to form the color to be displayed, and the other part of the reference color does not play any role in the color to be displayed , that is, the target color adjustment parameter values corresponding to another part of the reference color are all zero. Wherein, the first target reference color is used to form the color to be adjusted, and the target color adjustment parameter of the first target reference color is not zero. In addition, the to-be-adjusted colors may all be composed of the first target reference color, or may be composed of the first target reference color and other reference colors.
3)根据目标色度坐标、每一第一目标参考颜色对应的响应关系以及每一第一目标参考颜色的参考色值和参考色度坐标,确定每一第一目标参考颜色对应的目标颜色调整参数值。3) Determine the target color adjustment corresponding to each first target reference color according to the target chromaticity coordinates, the corresponding response relationship of each first target reference color, and the reference color value and reference chromaticity coordinates of each first target reference color parameter value.
4)若多个参考颜色中还包括除第一目标参考颜色之外的其他参考颜色,则至少根据参考颜色的数量,确定其他参考颜色对应的目标颜色调整参数值。4) If the multiple reference colors also include other reference colors other than the first target reference color, at least according to the number of reference colors, determine the target color adjustment parameter values corresponding to the other reference colors.
示例地,若多个参考颜色的数量大于第一目标参考颜色的数量,则多个参考颜色中还包括除第一目标参考颜色之外的其他参考颜色,此时,需要根据参考颜色的数量,确定其他参考颜色对应的目标颜色调整参数值;若多个参考颜色的数量等于第一目标参考颜色的数量,则多个参考颜色中不包括除第一目标参考颜色之外的其他参考颜色,即其他参考颜色的数量为零,此时,不再执行至少根据参考颜色的数量,确定其他参考颜色 对应的目标颜色调整参数值的步骤。For example, if the number of the multiple reference colors is greater than the number of the first target reference color, the multiple reference colors also include other reference colors except the first target reference color. In this case, according to the number of reference colors, Determine the target color adjustment parameter values corresponding to other reference colors; if the number of multiple reference colors is equal to the number of the first target reference color, the multiple reference colors do not include other reference colors except the first target reference color, that is, The number of other reference colors is zero, and in this case, the step of determining the target color adjustment parameter values corresponding to the other reference colors at least according to the number of reference colors is no longer performed.
下面针对上述步骤2)中的从多个参考颜色中确定第一目标参考颜色的具体实施方式进行详细描述。The specific implementation of determining the first target reference color from a plurality of reference colors in the above step 2) will be described in detail below.
在一种实施方式中,当参考颜色的数量小于或等于3时,将每一参考颜色均确定为第一目标参考颜色。具体来说,若参考颜色的数量为2,则将该2个参考颜色分别确定为第一目标参考颜色,即第一目标参考颜色的数量为2个;若参考颜色的数量为3个,则将该3个参考颜色分别确定为第一目标参考颜色,即第一目标参考颜色的数量为3个。In one embodiment, when the number of reference colors is less than or equal to 3, each reference color is determined as the first target reference color. Specifically, if the number of reference colors is 2, the 2 reference colors are determined as the first target reference colors respectively, that is, the number of the first target reference colors is 2; if the number of reference colors is 3, then The three reference colors are respectively determined as the first target reference colors, that is, the number of the first target reference colors is three.
在另一种实施方式中,当参考颜色的数量大于3时,从多个参考颜色中确定出三个第一目标参考颜色,以使得目标色度坐标对应的点落在由三个第一目标参考颜色的参考色度坐标对应的点构成的三角形内。In another embodiment, when the number of reference colors is greater than 3, three first target reference colors are determined from the plurality of reference colors, so that the point corresponding to the target chromaticity coordinates falls on the three first targets Inside the triangle formed by the points corresponding to the reference chromaticity coordinates of the reference color.
在本公开中,若目标色度坐标对应的点落在由三个第一目标参考颜色的参考色度坐标对应的点构成的三角形内,则表明待调整颜色可仅由该三个第一目标参考颜色混合而成,此时,多个参考颜色中、除该三个第一目标参考颜色外的其他参考颜色可以不用参与混色,即这些其他参考颜色对应的目标颜色调整参数值均为零。当然,待调整颜色也可以由该三个第一目标参考颜色以及多个参考颜色中的其他参考颜色混合而成。另外,多个参考颜色的参考色度坐标对应的点构成的三角形的数量为多个,目标色度坐标对应的点可能落在上述多个三角形中的2个、甚至更多个三角形内,此时,只需要将上述2个、甚至更多个三角形中任一三角形的三个顶点坐标对应的参考颜色确定为三个第一目标参考颜色。In the present disclosure, if the point corresponding to the target chromaticity coordinates falls within the triangle formed by the points corresponding to the reference chromaticity coordinates of the three first target reference colors, it indicates that the color to be adjusted can be determined only by the three first target reference colors. The reference colors are mixed. At this time, among the multiple reference colors, other reference colors except the three first target reference colors may not participate in the color mixing, that is, the target color adjustment parameter values corresponding to these other reference colors are all zero. Of course, the color to be adjusted may also be formed by mixing the three first target reference colors and other reference colors among the multiple reference colors. In addition, the number of triangles formed by the points corresponding to the reference chromaticity coordinates of the multiple reference colors is multiple, and the points corresponding to the target chromaticity coordinates may fall within two or even more triangles among the above-mentioned multiple triangles. , it is only necessary to determine the reference colors corresponding to the coordinates of the three vertices of any one of the above two or even more triangles as the three first target reference colors.
示例地,如图2所示,目标设备的显示颜色由五个参考颜色(即G、B、R、A、K)混合而成,由图2可知,待调节颜色M对应的目标色度坐标(x m,y m)对应的点M1落入三角形G1B1R1、三角形B1R1A1、三角形B1R1K1中,其中,三角形G1B1R1由参考颜色G的参考色度坐标(x g,y g)对应的点G1、参考颜色B的参考色度坐标(x b,y b)对应的点B1、参考颜色R的参考色度坐标(x r,y r)对应的点R1构成,三角形B1R1A1由参考颜色B的参考色度坐标(x b,y b)对应的点B1、参考颜色R的参考色度坐标(x r,y r)对应的点R1、参考颜色A的参考色度坐标(x a,y a)对应的点A1构成,三角形B1R1K1由参考颜色B的参考色度坐标(x b,y b)对应的点B1、参考颜色R的参考色度坐标(x r,y r)对应的点R1、参考颜色K的参考色度坐标(x k,y k)对应的点K1构成,因此,可以将参考颜色G1、参考颜色B1、参考颜色R1确定为上述三个第一目标参考颜色,也可以将参考 颜色B1、参考颜色R1、参考颜色A1确定为上述三个第一目标参考颜色,还可以将参考颜色B1、参考颜色R1、参考颜色K1确定为上述三个第一目标参考颜色。 For example, as shown in FIG. 2 , the display color of the target device is formed by mixing five reference colors (ie, G, B, R, A, K). It can be seen from FIG. 2 that the target chromaticity coordinates corresponding to the color M to be adjusted are mixed. The point M1 corresponding to (x m , y m ) falls into the triangle G1B1R1, the triangle B1R1A1, and the triangle B1R1K1, wherein the triangle G1B1R1 is defined by the reference color G of the reference chromaticity coordinates (x g , y g ) corresponding to the point G1, the reference color The point B1 corresponding to the reference chromaticity coordinates (x b , y b ) of B and the point R1 corresponding to the reference chromaticity coordinates (x r , y r ) of the reference color R are formed. The triangle B1R1A1 is composed of the reference chromaticity coordinates of the reference color B. The point B1 corresponding to (x b , y b ), the point R1 corresponding to the reference chromaticity coordinates (x r , y r ) of the reference color R, and the point corresponding to the reference chromaticity coordinates (x a , y a ) of the reference color A A1 is formed, the triangle B1R1K1 is composed of the point B1 corresponding to the reference chromaticity coordinates (x b , y b ) of the reference color B, the point R1 corresponding to the reference chromaticity coordinates (x r , y r ) of the reference color R, and the reference color K The reference chromaticity coordinates (x k , y k ) are formed by the point K1 corresponding to the point K1, therefore, the reference color G1, the reference color B1, and the reference color R1 can be determined as the above-mentioned three first target reference colors, or the reference color B1, The reference color R1 and the reference color A1 are determined as the above three first target reference colors, and the reference color B1, the reference color R1, and the reference color K1 can also be determined as the above three first target reference colors.
下面针对上述步骤3)中的根据目标色度坐标、每一第一目标参考颜色对应的响应关系以及每一第一目标参考颜色的参考色值和参考色度坐标,确定每一第一目标参考颜色对应的目标颜色调整参数值的具体实施方式进行详细说明。具体来说,可以先根据每一第一目标参考颜色的参考色值和参考色度坐标、目标色度坐标,确定每一第一目标参考颜色的目标响应参数值;然后,针对每一第一目标参考颜色,根据第一目标参考颜色对应的响应关系,确定与第一目标参考颜色的目标响应参数值对应的目标颜色调整参数值。In the following step 3), according to the target chromaticity coordinates, the corresponding response relationship of each first target reference color, and the reference color value and reference chromaticity coordinates of each first target reference color, determine each first target reference The specific implementation of the target color adjustment parameter value corresponding to the color will be described in detail. Specifically, the target response parameter value of each first target reference color can be determined according to the reference color value, reference chromaticity coordinates and target chromaticity coordinates of each first target reference color; then, for each first target reference color, the target response parameter value can be determined. For the target reference color, a target color adjustment parameter value corresponding to the target response parameter value of the first target reference color is determined according to the response relationship corresponding to the first target reference color.
在本公开中,可以根据每一第一目标参考颜色的参考色值和参考色度坐标、目标色度坐标,通过以下步骤①和步骤②来确定每一第一目标参考颜色的目标响应参数值:In the present disclosure, the target response parameter value of each first target reference color can be determined through the following steps ① and ② according to the reference color value, reference chromaticity coordinates, and target chromaticity coordinates of each first target reference color :
①根据每一第一目标参考颜色的参考色值和参考色度坐标、目标色度坐标,确定每一第一目标参考颜色的目标响应参数值之间的比例关系。① According to the reference color value of each first target reference color, the reference chromaticity coordinates, and the target chromaticity coordinates, determine the proportional relationship between the target response parameter values of each first target reference color.
②根据颜色调整参数的上限值和比例关系,确定每一第一目标参考颜色的目标响应参数值。② Determine the target response parameter value of each first target reference color according to the upper limit value and proportional relationship of the color adjustment parameter.
示例地,可以根据颜色调整参数的上限值和比例关系,通过以下等式(2)来确定每一第一目标参考颜色的目标响应参数值:For example, the target response parameter value of each first target reference color can be determined by the following equation (2) according to the upper limit value and proportional relationship of the color adjustment parameter:
Figure PCTCN2021103837-appb-000003
Figure PCTCN2021103837-appb-000003
其中,R(IRE R)为第一目标参考颜色R的响应参数;G(IRE G)为第一目标参考颜色G的响应参数;B(IRE G)为第一目标参考颜色B的响应参数;R1(IRE R)为比例关系中第一目标参考颜色R对应的比例值;G1(IRE G)为比例关系中第一目标参考颜色G对应的比例值;B1(IRE B)为比例关系中第一目标参考颜色B对应的比例值;Max为R1(IRE R)、B1(IRE B)、G1(IRE G)中的最大值;N为颜色调整参数的上限值。 Wherein, R(IRE R ) is the response parameter of the first target reference color R; G(IRE G ) is the response parameter of the first target reference color G; B(IRE G ) is the response parameter of the first target reference color B; R1(IRE R ) is the proportional value corresponding to the first target reference color R in the proportional relationship; G1(IRE G ) is the proportional value corresponding to the first target reference color G in the proportional relationship; B1(IRE B ) is the first target reference color G in the proportional relationship A proportional value corresponding to the target reference color B; Max is the maximum value among R1 (IRE R ), B1 (IRE B ), and G1 (IRE G ); N is the upper limit of the color adjustment parameter.
示例地,上述比例关系为R1(IRE R):B1(IRE B):G1(IRE G)=1:3:4,则R1(IRE R)=1,B1(IRE B)=3,G(IRE G)=4,Max=4,N=1024,则R(IRE R)=256,G(IRE G) =768,B(IRE G)=1024。 For example, the above proportional relationship is R1(IRE R ): B1(IRE B ): G1(IRE G )=1:3:4, then R1(IRE R )=1, B1(IRE B )=3, G( IRE G )=4, Max=4, N=1024, then R(IRE R )=256, G(IRE G )=768, and B(IRE G )=1024.
下面针对上述步骤①中的根据每一第一目标参考颜色的参考色值和参考色度坐标、目标色度坐标,确定每一第一目标参考颜色的目标响应参数值之间的比例关系的具体实施方式进行详细说明。Below for the above-mentioned step ①, according to the reference color value of each first target reference color, the reference chromaticity coordinate, the target chromaticity coordinate, determine the specific ratio relationship between the target response parameter value of each first target reference color Embodiments are described in detail.
在一种实施方式中,目标设备的显示颜色由2个参考颜色混合,即第一目标参考颜色的数量为2。其中,当颜色混合时,混合颜色的色度坐标对应的点位于该两个颜色的色度坐标对应的点的连线上,这样,待调节颜色对应的目标色度坐标对应的点位于两个第一目标参考颜色的参考色度坐标对应的点的连线上(如图3所示,待调节颜色M对应的目标色度坐标(x m,y m)对应的点M1位于第一目标参考颜色G的参考色度坐标(x g,y g)对应的点G1和第一目标参考颜色B的参考色度坐标(x g,y g)对应的点B1的连线上,即点M1位于线段G1B1上),并且满足以下等式(3): In one embodiment, the display color of the target device is mixed by 2 reference colors, that is, the number of the first target reference color is 2. Wherein, when the colors are mixed, the point corresponding to the chromaticity coordinates of the mixed color is located on the connecting line of the points corresponding to the chromaticity coordinates of the two colors, so that the point corresponding to the target chromaticity coordinates corresponding to the color to be adjusted is located on the two On the connecting line of the points corresponding to the reference chromaticity coordinates of the first target reference color (as shown in FIG. 3 , the point M1 corresponding to the target chromaticity coordinates (x m , y m ) corresponding to the color M to be adjusted is located on the first target reference On the connecting line between the point G1 corresponding to the reference chromaticity coordinates (x g , y g ) of the color G and the point B1 corresponding to the reference chromaticity coordinates (x g , y g ) of the first target reference color B, that is, the point M1 is located at on line segment G1B1), and satisfy the following equation (3):
Figure PCTCN2021103837-appb-000004
Figure PCTCN2021103837-appb-000004
其中,(x g,y g)为第一目标参考颜色G的参考色度坐标;(x b,y b)为第一目标参考颜色B的参考色度坐标;(x m,y m)为目标色度坐标;(X B,Y B,,Z B)为第一目标参考颜色B的参考色值;(X G,Y G,,Z G)为第一目标参考颜色G的参考色值。 Wherein, (x g , y g ) are the reference chromaticity coordinates of the first target reference color G; (x b , y b ) are the reference chromaticity coordinates of the first target reference color B; (x m , y m ) are Target chromaticity coordinates; (X B , Y B, , Z B ) are the reference color values of the first target reference color B; (X G , Y G, , Z G ) are the reference color values of the first target reference color G .
由此,可以根据每一第一目标参考颜色的参考色值和参考色度坐标、目标色度坐标,通过以上等式(3)来确定每一第一目标参考颜色的目标响应参数值之间的比例关系。Therefore, according to the reference color value of each first target reference color, the reference chromaticity coordinates, and the target chromaticity coordinates, the above equation (3) can be used to determine the target response parameter value of each first target reference color. proportional relationship.
在另一种实施方式中,目标设备的显示颜色由3个或3个以上参考颜色混合而成,即第一目标参考颜色的数量为3。此时,可以根据每一第一目标参考颜色的参考色值和参考色度坐标、目标色度坐标,通过以下方式来确定每一第一目标参考颜色的目标响应参数值之间的比例关系:In another implementation manner, the display color of the target device is formed by mixing three or more reference colors, that is, the number of the first target reference color is three. At this time, according to the reference color value of each first target reference color, the reference chromaticity coordinates, and the target chromaticity coordinates, the proportional relationship between the target response parameter values of each first target reference color can be determined in the following manner:
首先,将三个第一目标参考颜色中的一个确定为第二目标参考颜色,另外两个分别作为第三目标参考颜色和第四目标参考颜色;然后,确定第二目标参考颜色与第三目标参考颜色的混合颜色的第一混合色度坐标,以及第二目标参考颜色与第四目标参考颜色的混合颜色的第二混合色度坐标;接下来,根据第三目标参考颜色的参考色值和参考色度坐标、第二目标参考颜色的参考色值和参考色度坐标以及第一混合色度坐标,确定第二目标参考颜色的目标响应参数值与第三目标参考颜色的目标响应参数值的第一比值, 同时,根据第四目标参考颜色的参考色值和参考色度坐标、第二目标参考颜色的参考色值和参考色度坐标以及第二混合色度坐标,确定第二目标参考颜色的目标响应参数值与第四目标参考颜色的目标响应参数值的第二比值;最后,根据第一比值和第二比值,确定每一第一目标参考颜色的目标响应参数值之间的比例关系。First, one of the three first target reference colors is determined as the second target reference color, and the other two are respectively used as the third target reference color and the fourth target reference color; then, the second target reference color and the third target reference color are determined. The first mixed chromaticity coordinates of the mixed color of the reference color, and the second mixed chromaticity coordinates of the mixed color of the second target reference color and the fourth target reference color; Next, according to the reference color value of the third target reference color and With reference to the chromaticity coordinates, the reference color value and reference chromaticity coordinates of the second target reference color, and the first mixed chromaticity coordinates, determine the difference between the target response parameter value of the second target reference color and the target response parameter value of the third target reference color. The first ratio, at the same time, according to the reference color value and reference chromaticity coordinates of the fourth target reference color, the reference color value and reference chromaticity coordinates of the second target reference color, and the second mixed chromaticity coordinates, determine the second target reference color The second ratio of the target response parameter value of the fourth target reference color to the target response parameter value of the fourth target reference color; finally, according to the first ratio and the second ratio, determine the proportional relationship between the target response parameter values of each first target reference color .
示例地,可以根据第三目标参考颜色的参考色值和参考色度坐标、第二目标参考颜色的参考色值和参考色度坐标以及第一混合色度坐标,通过以下等式(4)来确定第二目标参考颜色的目标响应参数值与第三目标参考颜色的目标响应参数值的第一比值G(IRE G)/B(IRE G): Illustratively, according to the reference color value and reference chromaticity coordinates of the third target reference color, the reference color value and reference chromaticity coordinates of the second target reference color, and the first mixed chromaticity coordinates, by the following equation (4) Determine the first ratio G(IRE G )/B(IRE G ) of the target response parameter value of the second target reference color and the target response parameter value of the third target reference color:
Figure PCTCN2021103837-appb-000005
Figure PCTCN2021103837-appb-000005
其中,三个第一目标参考颜色分别为颜色G、颜色B、颜色R,其中,第二目标参考颜色为第一目标参考颜色G,第三目标参考颜色为第一目标颜色B,第四目标参考颜色为第一目标参考颜色R;(x c,y c)为第一混合色度坐标。 The three first target reference colors are respectively color G, color B, and color R, wherein the second target reference color is the first target reference color G, the third target reference color is the first target color B, and the fourth target reference color is the first target color B. The reference color is the first target reference color R; (x c , y c ) is the first mixed chromaticity coordinate.
示例地,可以根据第四目标参考颜色的参考色值和参考色度坐标、第二目标参考颜色的参考色值和参考色度坐标以及第二混合色度坐标,通过以下等式(5)来确定第二目标参考颜色的目标响应参数值与第四目标参考颜色的目标响应参数值的第二比值G(IRE G)/R(IRE R): Illustratively, according to the reference color value and reference chromaticity coordinates of the fourth target reference color, the reference color value and reference chromaticity coordinates of the second target reference color, and the second mixed chromaticity coordinates, by the following equation (5) Determine the second ratio G(IRE G )/R(IRE R ) of the target response parameter value of the second target reference color to the target response parameter value of the fourth target reference color:
Figure PCTCN2021103837-appb-000006
Figure PCTCN2021103837-appb-000006
其中,(x r,y r)为第四目标参考颜色R的参考色度坐标;(x y,y y)为第二混合色度坐标;(X R,Y R,,Z R)为第四目标参考颜色R的参考色值。 Among them, (x r , y r ) is the reference chromaticity coordinate of the fourth target reference color R; (x y , y y ) is the second mixed chromaticity coordinate; (X R , Y R , , Z R ) is the first The reference color value of the four target reference color R.
下面针对上述确定第二目标参考颜色与第三目标参考颜色的混合颜色的第一混合色度坐标的具体实施方式进行详细说明。具体来说,可以先确定第三目标参考颜色的参考色度坐标对应的点和第二目标参考颜色的参考色度坐标对应的点所在的第一直线,以及第四目标参考颜色的参考色度坐标对应的点和目标色度坐标对应的点所在的第二直线;然后,将第一直线和第二直线的交点的坐标确定为第二目标参考颜色与第三目标参考颜色的混合颜色的第一混合色度坐标。The specific implementation manner of determining the first mixed chromaticity coordinates of the mixed color of the second target reference color and the third target reference color will be described in detail below. Specifically, the first straight line where the point corresponding to the reference chromaticity coordinate of the third target reference color and the point corresponding to the reference chromaticity coordinate of the second target reference color and the reference color of the fourth target reference color may be determined. The second straight line where the point corresponding to the degree coordinates and the point corresponding to the target chromaticity coordinate are located; then, the coordinates of the intersection of the first straight line and the second straight line are determined as the mixed color of the second target reference color and the third target reference color The first mixed chromaticity coordinates of .
在本公开中,先将第二目标参考颜色和第三目标参考颜色混合,可以知道二者的混 合颜色的混合色度坐标对应的点位于第二目标参考颜色对应的点和第三目标参考颜色对应的点所在的第一直线上;由于待调节颜色可以通过以下方式混合得到:先将第二目标参考颜色和第三目标参考颜色混合,之后,将二者的混合颜色与第四目标参考颜色混合,以得到待调节颜色,因此,待调节颜色的目标色度坐标对应的点位于第四目标参考颜色的参考色度坐标对应的点与上述第一直线的连线上,这样,第二目标参考颜色和第三目标参考颜色的混合颜色的混合色度坐标对应的点即为上述第一直线与第二直线的交点,其中,第二直线为第四目标参考颜色的参考色度坐标对应的点和目标色度坐标对应的点所在的直线。因此,可以将第一直线和第二直线的交点的坐标作为第一混合色度坐标。具体来说,可以根据第三目标参考颜色的参考色度坐标和第二目标参考颜色的参考色度坐标,确定第一直线的方程,同时,根据第四目标参考颜色的参考色度坐标和第二目标参考颜色的参考色度坐标,确定第二直线的方程,然后,根据第一直线的方程和第二直线的方程,计算第一直线和第二直线的交点坐标,即得到第一混合色度坐标。In the present disclosure, the second target reference color and the third target reference color are first mixed, and it can be known that the point corresponding to the mixed chromaticity coordinates of the mixed color of the two is located at the point corresponding to the second target reference color and the third target reference color. On the first straight line where the corresponding point is located; since the color to be adjusted can be obtained by mixing the second target reference color and the third target reference color first, then the mixed color of the two is mixed with the fourth target reference color. The colors are mixed to obtain the color to be adjusted. Therefore, the point corresponding to the target chromaticity coordinate of the color to be adjusted is located on the connecting line between the point corresponding to the reference chromaticity coordinate of the fourth target reference color and the above-mentioned first straight line. The point corresponding to the mixed chromaticity coordinates of the mixed color of the second target reference color and the third target reference color is the intersection of the first straight line and the second straight line, wherein the second straight line is the reference chromaticity of the fourth target reference color The line between the point corresponding to the coordinates and the point corresponding to the target chromaticity coordinates. Therefore, the coordinates of the intersection of the first straight line and the second straight line can be used as the first mixed chromaticity coordinates. Specifically, the equation of the first straight line can be determined according to the reference chromaticity coordinates of the third target reference color and the reference chromaticity coordinates of the second target reference color, and at the same time, according to the reference chromaticity coordinates of the fourth target reference color and The reference chromaticity coordinates of the second target reference color are used to determine the equation of the second straight line. A mixed chromaticity coordinate.
示例地,如图4所示,第二目标参考颜色为第一目标参考颜色G,第三目标参考颜色为第一目标颜色B,第四目标参考颜色为第一目标参考颜色R,并且,第一目标参考颜色G的参考色度坐标为(x g,y g);第一目标参考颜色B的参考色度坐标为(x b,y b);第一目标参考颜色R的参考色度坐标为(x r,y r);此时,可以通过以下步骤来确定第二目标参考颜色G与第三目标参考颜色B的混合颜色C的第一混合色度坐标(x c,y c):首先,确定第三目标参考颜色B的参考色度坐标(x b,y b)对应的点B1和第二目标参考颜色G的参考色度坐标(x g,y g)对应的点G1所在的第一直线(即直线B1G1),以及第四目标参考颜色R的参考色度坐标(x r,y r)对应的点R1和目标色度坐标(x m,y m)对应的点M1所在的第二直线(即直线R1M1);然后,将第一直线B1G1和第二直线R1M1的交点C1的坐标确定为第二目标参考颜色G与第三目标参考颜色B的混合颜色C的第一混合色度坐标(x c,y c)。 For example, as shown in FIG. 4 , the second target reference color is the first target reference color G, the third target reference color is the first target color B, the fourth target reference color is the first target reference color R, and the third target reference color is the first target reference color R. The reference chromaticity coordinates of a target reference color G are (x g , y g ); the reference chromaticity coordinates of the first target reference color B are (x b , y b ); the reference chromaticity coordinates of the first target reference color R is (x r , y r ); at this time, the first mixed chromaticity coordinates (x c , y c ) of the mixed color C of the second target reference color G and the third target reference color B can be determined by the following steps: First, determine where the point B1 corresponding to the reference chromaticity coordinates (x b , y b ) of the third target reference color B and the point G1 corresponding to the reference chromaticity coordinates (x g , y g ) of the second target reference color G are located. The first straight line (ie straight line B1G1), and the point R1 corresponding to the reference chromaticity coordinates (x r , y r ) of the fourth target reference color R and the point M1 corresponding to the target chromaticity coordinates (x m , y m ) are located. Then, the coordinates of the intersection C1 of the first straight line B1G1 and the second straight line R1M1 are determined as the first and second target reference color G and the third target reference color B mixed color C Mixed chromaticity coordinates (x c , y c ).
同理,可以通过以下方式来确定第二目标参考颜色与第四目标参考颜色的混合颜色的第二混合色度坐标:首先,确定第四目标参考颜色的参考色度坐标对应的点和第二目标参考颜色的参考色度坐标对应的点所在的第三直线,以及第三目标参考颜色的参考色度坐标对应的点和目标色度坐标对应的点所在的第四直线;然后,将第三直线和第四直线的交点的坐标确定为第二目标参考颜色与第四目标参考颜色的混合颜色的第二混合色度坐标。Similarly, the second mixed chromaticity coordinates of the mixed color of the second target reference color and the fourth target reference color can be determined in the following manner: First, determine the point corresponding to the reference chromaticity coordinates of the fourth target reference color and the second The third straight line where the point corresponding to the reference chromaticity coordinate of the target reference color is located, and the fourth straight line where the point corresponding to the reference chromaticity coordinate of the third target reference color and the point corresponding to the target chromaticity coordinate are located; The coordinates of the intersection of the straight line and the fourth straight line are determined as the second mixed chromaticity coordinates of the mixed color of the second target reference color and the fourth target reference color.
示例地,如图4所示,第二目标参考颜色为第一目标参考颜色G,第三目标参考颜色为第一目标颜色B,第四目标参考颜色为第一目标参考颜色R,并且,第一目标参考颜色G的参考色度坐标为(x g,y g);第一目标参考颜色B的参考色度坐标为(x b,y b);第一目标参考颜色R的参考色度坐标为(x r,y r);此时,可以通过以下步骤来确定第二目标参考颜色G与第四目标参考颜色R的混合颜色Y的第二混合色度坐标(x y,y y):首先,确定第四目标参考颜色R的参考色度坐标(x r,y r)对应的点R1和第二目标参考颜色G的参考色度坐标(x g,y g)对应的点G1所在的第三直线(即直线R1G1),以及第三目标参考颜色B的参考色度坐标(x b,y b)对应的点B1和目标色度坐标(x m,y m)对应的点M1所在的第四直线(即直线B1M1);然后,将第三直线R1G1和第四直线B1M1的交点Y1的坐标确定为第二目标参考颜色G与第四目标参考颜色R的混合颜色Y的第二混合色度坐标(x y,y y)。 For example, as shown in FIG. 4 , the second target reference color is the first target reference color G, the third target reference color is the first target color B, the fourth target reference color is the first target reference color R, and the third target reference color is the first target reference color R. The reference chromaticity coordinates of a target reference color G are (x g , y g ); the reference chromaticity coordinates of the first target reference color B are (x b , y b ); the reference chromaticity coordinates of the first target reference color R is (x r , y r ); at this time, the second mixed chromaticity coordinates (x y , y y ) of the mixed color Y of the second target reference color G and the fourth target reference color R can be determined by the following steps: First, determine where the point R1 corresponding to the reference chromaticity coordinates (x r , y r ) of the fourth target reference color R and the point G1 corresponding to the reference chromaticity coordinates (x g , y g ) of the second target reference color G are located. The third straight line (ie straight line R1G1), and the point B1 corresponding to the reference chromaticity coordinates (x b , y b ) of the third target reference color B and the point M1 corresponding to the target chromaticity coordinates (x m , y m ) are located the fourth straight line (ie straight line B1M1); then, the coordinates of the intersection Y1 of the third straight line R1G1 and the fourth straight line B1M1 are determined as the second mixed color of the mixed color Y of the second target reference color G and the fourth target reference color R Degree coordinates (x y , y y ).
在又一种实施方式中,目标设备的显示颜色由3个或3个以上参考颜色混合而成,即第一目标参考颜色的数量为3。此时,还可以根据每一第一目标参考颜色的参考色值和参考色度坐标、目标色度坐标,通过以下方式来确定每一第一目标参考颜色的目标响应参数值之间的比例关系:In yet another embodiment, the display color of the target device is formed by mixing three or more reference colors, that is, the number of the first target reference color is three. At this time, the proportional relationship between the target response parameter values of each first target reference color can also be determined in the following manner according to the reference color value, reference chromaticity coordinates, and target chromaticity coordinates of each first target reference color :
首先,将三个第一目标参考颜色中的一个确定为第二目标参考颜色,另外两个分别作为第三目标参考颜色和第四目标参考颜色;然后,确定第二目标参考颜色与第三目标参考颜色的混合颜色的第一混合色度坐标;接下来,根据第三目标参考颜色的参考色值和参考色度坐标、第二目标参考颜色的参考色值和参考色度坐标、第一混合色度坐标,确定第二目标参考颜色的目标响应参数值与第三目标参考颜色的目标响应参数值的第一比值;同时,根据每一第一目标参考颜色的参考色值、目标色度坐标、第一混合色度坐标以及第四目标参考颜色的参考色度坐标,确定第二目标参考颜色的目标响应参数值、第三目标参考颜色的目标响应参数值、第四目标参考颜色的目标响应参数值之间的关系;最后,根据第二目标参考颜色的目标响应参数值、第三目标参考颜色的目标响应参数值、第四目标参考颜色的目标响应参数值之间的关系和第一比值,确定每一第一目标参考颜色的目标响应参数值之间的比例关系。First, one of the three first target reference colors is determined as the second target reference color, and the other two are respectively used as the third target reference color and the fourth target reference color; then, the second target reference color and the third target reference color are determined. The first mixed chromaticity coordinates of the mixed color of the reference color; Next, according to the reference color value and reference chromaticity coordinates of the third target reference color, the reference color value and reference chromaticity coordinates of the second target reference color, the first mixed color Chromaticity coordinates, determine the first ratio of the target response parameter value of the second target reference color and the target response parameter value of the third target reference color; at the same time, according to the reference color value of each first target reference color, the target chromaticity coordinates , the first mixed chromaticity coordinates and the reference chromaticity coordinates of the fourth target reference color, determine the target response parameter value of the second target reference color, the target response parameter value of the third target reference color, and the target response of the fourth target reference color The relationship between the parameter values; finally, according to the relationship between the target response parameter value of the second target reference color, the target response parameter value of the third target reference color, the target response parameter value of the fourth target reference color and the first ratio , and determine the proportional relationship between the target response parameter values of each first target reference color.
示例地,可以根据每一第一目标参考颜色的参考色值、目标色度坐标、第一混合色度坐标以及第四目标参考颜色的参考色度坐标,通过以下等式(6)来确定第二目标参考颜色的目标响应参数值、第三目标参考颜色的目标响应参数值、第四目标参考颜色的目 标响应参数值之间的关系:Illustratively, according to the reference color value of each first target reference color, the target chromaticity coordinates, the first mixed chromaticity coordinates, and the reference chromaticity coordinates of the fourth target reference color, the first target reference color can be determined by the following equation (6). The relationship between the target response parameter value of the second target reference color, the target response parameter value of the third target reference color, and the target response parameter value of the fourth target reference color:
Figure PCTCN2021103837-appb-000007
Figure PCTCN2021103837-appb-000007
下面针对上述步骤4)中至少根据参考颜色的数量,确定其他参考颜色对应的目标颜色调整参数值的具体实施方式进行详细说明。The specific implementation of determining target color adjustment parameter values corresponding to other reference colors according to at least the number of reference colors in the above step 4) will be described in detail below.
具体来说,若参考颜色的数量大于4,则将零确定为其他参考颜色对应的目标颜色调整参数值。Specifically, if the number of reference colors is greater than 4, zero is determined as the target color adjustment parameter value corresponding to other reference colors.
若参考颜色的数量等于4,则可以通过多种方式确定其他参考颜色对应的目标颜色调整参数值。在一种实施方式中,可以将零确定为其他参考颜色对应的目标颜色调整参数值。If the number of reference colors is equal to 4, the target color adjustment parameter values corresponding to other reference colors may be determined in various ways. In one embodiment, zero may be determined as the target color adjustment parameter value corresponding to other reference colors.
在另一种实施方式中,可以先根据每一第一目标参考颜色的参考色值、每一第一目标参考颜色对应的目标颜色调整参数值、目标色度坐标、延长色度坐标以及其他参考颜色的参考色值和参考色度坐标,确定其他参考颜色的目标响应参数值,其中,延长色度坐标为其他参考颜色的参考色度坐标对应的点到目标色度坐标对应的点的连线的延长线上的任一点的色度坐标;之后,根据其他参考颜色对应的响应关系,确定与其他参考颜色的目标响应参数值对应的目标颜色调整参数值。其中,延长色度坐标可以认为是三个第一目标参考颜色的混合颜色的色度坐标,这样,三个第一目标参考颜色的混合颜色与其他参考颜色的混合颜色即为待调节颜色。In another embodiment, the reference color value of each first target reference color, the target color adjustment parameter value corresponding to each first target reference color, the target chromaticity coordinates, the extended chromaticity coordinates, and other references can be adjusted first. The reference color value and reference chromaticity coordinates of the colors determine the target response parameter values of other reference colors, wherein the extension of the chromaticity coordinates is the line connecting the point corresponding to the reference chromaticity coordinates of other reference colors to the point corresponding to the target chromaticity coordinates The chromaticity coordinates of any point on the extension line of , and then, according to the response relationship corresponding to the other reference colors, determine the target color adjustment parameter value corresponding to the target response parameter value of the other reference color. The extended chromaticity coordinates can be considered as the chromaticity coordinates of the mixed colors of the three first target reference colors, so that the mixed colors of the three first target reference colors and other reference colors are the colors to be adjusted.
示例地,如图5所示,目标设备的显示颜色由四个参考颜色(即G、B、R、A)混合而成,其中,参考颜色G、参考颜色B、参考颜色R为三个第一目标参考颜色,参考颜色A为其他参考颜色,延长线坐标为其他参考颜色A的参考色度坐标(x a,y a)对应的点A1到目标色度坐标(x m,y m)对应的点M1的连线(即线段A1M1)的延长线上的任一点N的色度坐标。 For example, as shown in FIG. 5 , the display color of the target device is formed by mixing four reference colors (ie, G, B, R, and A), wherein the reference color G, reference color B, and reference color R are three thirds. A target reference color, the reference color A is the other reference color, and the extension line coordinates are the point A1 corresponding to the reference chromaticity coordinates (x a , y a ) of the other reference color A to the target chromaticity coordinates (x m , y m ) corresponding to The chromaticity coordinates of any point N on the extension line of the connecting line of the point M1 (ie the line segment A1M1).
示例地,可以根据每一第一目标参考颜色的参考色值、每一第一目标参考颜色对应的目标颜色调整参数值、目标色度坐标、延长色度坐标以及其他参考颜色的参考色值和参考色度坐标,通过以下等式(7)来确定其他参考颜色的目标响应参数值:For example, the reference color value of each first target reference color, the target color adjustment parameter value corresponding to each first target reference color, the target chromaticity coordinates, the extended chromaticity coordinates, and the reference color values of other reference colors and With reference to the chromaticity coordinates, the target response parameter values for other reference colors are determined by the following equation (7):
Figure PCTCN2021103837-appb-000008
Figure PCTCN2021103837-appb-000008
其中,A(IRE A)为其他参考颜色A的目标响应参数值;(x n,y n)为延长色度坐标; (x a,y a)为其他参考颜色A的参考色度坐标;(X A,Y A,,Z A)为其他参考颜色A的参考色值。 Among them, A(IRE A ) is the target response parameter value of other reference color A; (x n , y n ) is the extended chromaticity coordinate; (x a , y a ) is the reference chromaticity coordinate of other reference color A; ( X A , Y A , , Z A ) are the reference color values of other reference colors A.
基于同样的构思,本公开还提供一种颜色调节装置。如图6所示,该装置600包括:第一确定模块601,用于确定目标设备的待调节颜色对应的目标色度坐标,其中,所述目标设备的显示颜色由多个参考颜色混合而成;第二确定模块602,用于根据所述参考颜色的数量、所述第一确定模块601确定出的所述目标色度坐标、每一所述参考颜色的参考色值以及每一所述参考颜色对应的响应关系,确定每一所述参考颜色对应的目标颜色调整参数值,其中,所述响应关系用于表征所述参考颜色对应的颜色调整参数与所述参考颜色的响应参数之间的对应关系;调节模块603,用于根据所述第二确定模块602确定出的每一所述参考颜色对应的目标颜色调整参数值,对所述目标设备进行颜色调节,以将所述目标设备的显示颜色调节为所述待调节颜色。Based on the same concept, the present disclosure also provides a color adjustment device. As shown in FIG. 6 , the apparatus 600 includes: a first determination module 601, configured to determine the target chromaticity coordinates corresponding to the color to be adjusted of the target device, wherein the display color of the target device is formed by mixing a plurality of reference colors ; a second determination module 602, configured to determine the target chromaticity coordinates according to the number of the reference colors, the target chromaticity coordinates determined by the first determination module 601, the reference color value of each of the reference colors and each of the reference colors The response relationship corresponding to the color is determined, and the target color adjustment parameter value corresponding to each of the reference colors is determined, wherein the response relationship is used to represent the color adjustment parameter corresponding to the reference color and the response parameter of the reference color. Corresponding relationship; the adjustment module 603 is configured to perform color adjustment on the target device according to the target color adjustment parameter value corresponding to each of the reference colors determined by the second determination module 602, so as to adjust the color of the target device. The display color is adjusted to the color to be adjusted.
在上述技术方案中,首先确定目标设备的待调节颜色对应的目标色度坐标,其中,目标设备的显示颜色由多个参考颜色混合而成;然后,根据参考颜色的数量、目标色度坐标、每一参考颜色的参考色值以及每一参考颜色对应的响应关系,确定每一参考颜色对应的目标颜色调整参数值;最后,根据每一颜色对应的目标颜色调整参数值,对目标设备进行颜色调节,以将目标设备的显示颜色调节为待调节颜色。这样,通过简单的计算即可快速确定出各参考颜色对应的目标颜色调整参数值,从而实现目标设备颜色的快速实时调节,并且,能够保证颜色调节的精度,提升用户体验。In the above technical solution, first determine the target chromaticity coordinates corresponding to the color to be adjusted of the target device, wherein the display color of the target device is formed by mixing a plurality of reference colors; then, according to the number of reference colors, target chromaticity coordinates, The reference color value of each reference color and the response relationship corresponding to each reference color determine the target color adjustment parameter value corresponding to each reference color; finally, according to the target color adjustment parameter value corresponding to each color, the target device is color-coded. Adjust to adjust the display color of the target device to the color to be adjusted. In this way, the target color adjustment parameter value corresponding to each reference color can be quickly determined through a simple calculation, thereby realizing rapid real-time adjustment of the color of the target device, ensuring the accuracy of color adjustment, and improving user experience.
可选地,所述第二确定模块602包括:第一确定子模块,用于针对每一所述参考颜色,根据所述参考颜色的参考色值,确定所述参考颜色的参考色度坐标;第二确定子模块,用于从所述多个参考颜色中确定第一目标参考颜色,所述第一目标参考颜色用于构成所述待调节颜色;第三确定子模块,用于根据所述目标色度坐标、每一所述第一目标参考颜色对应的响应关系以及每一所述第一目标参考颜色的参考色值和参考色度坐标,确定每一所述第一目标参考颜色对应的目标颜色调整参数值;第四确定子模块,用于若所述多个参考颜色中还包括除所述第一目标参考颜色之外的其他参考颜色,则至少根据所述参考颜色的数量,确定所述其他参考颜色对应的目标颜色调整参数值。Optionally, the second determination module 602 includes: a first determination sub-module, configured to, for each of the reference colors, determine the reference chromaticity coordinates of the reference color according to the reference color value of the reference color; The second determination submodule is used to determine a first target reference color from the plurality of reference colors, and the first target reference color is used to form the to-be-adjusted color; the third determination submodule is used to determine the color according to the The target chromaticity coordinates, the response relationship corresponding to each of the first target reference colors, and the reference color value and reference chromaticity coordinates of each of the first target reference colors, determine the corresponding value of each of the first target reference colors. a target color adjustment parameter value; a fourth determination submodule, configured to determine at least according to the number of the reference colors if the multiple reference colors also include other reference colors other than the first target reference color The target color adjustment parameter values corresponding to the other reference colors.
可选地,所述第二确定子模块用于:若所述参考颜色的数量大于3,则从所述多个参考颜色中确定出三个所述第一目标参考颜色,以使得所述目标色度坐标对应的点落在由三个所述第一目标参考颜色的参考色度坐标对应的点构成的三角形内;若所述参考颜色的数量小于或等于3,则将每一所述参考颜色均确定为所述第一目标参考颜色。Optionally, the second determination sub-module is configured to: if the number of the reference colors is greater than 3, determine three of the first target reference colors from the plurality of reference colors, so that the target The point corresponding to the chromaticity coordinates falls within the triangle formed by the three points corresponding to the reference chromaticity coordinates of the first target reference color; if the number of the reference colors is less than or equal to 3, each of the reference All colors are determined as the first target reference color.
可选地,所述第三确定子模块包括:第五确定子模块,用于根据每一所述第一目标参考颜色的参考色值和参考色度坐标、所述目标色度坐标,确定每一所述第一目标参考颜色的目标响应参数值;第六确定子模块,用于针对每一所述第一目标参考颜色,根据所述第一目标参考颜色对应的响应关系,确定与所述第一目标参考颜色的目标响应参数值对应的目标颜色调整参数值。Optionally, the third determination submodule includes: a fifth determination submodule, configured to determine each reference color value and reference chromaticity coordinates of the first target reference color and the target chromaticity coordinates a target response parameter value of the first target reference color; the sixth determination sub-module is used for each first target reference color, according to the response relationship corresponding to the first target reference color, to determine the The target color adjustment parameter value corresponding to the target response parameter value of the first target reference color.
可选地,所述第五确定子模块包括:比例关系确定子模块,用于根据每一所述第一目标参考颜色的参考色值和参考色度坐标、所述目标色度坐标,确定每一所述第一目标参考颜色的目标响应参数值之间的比例关系;响应参数值确定子模块,用于根据所述颜色调整参数的上限值和所述比例关系,确定每一所述第一目标参考颜色的目标响应参数值。Optionally, the fifth determination sub-module includes: a proportional relationship determination sub-module, configured to determine each reference color value and reference chromaticity coordinates of each of the first target reference colors, and the target chromaticity coordinates. a proportional relationship between the target response parameter values of the first target reference color; the response parameter value determination sub-module is configured to determine each of the first color adjustment parameters according to the upper limit value of the color adjustment parameter and the proportional relationship A target response parameter value for a target reference color.
可选地,当所述第一目标参考颜色的数量等于3时,所述比例关系确定子模块包括:第七确定子模块,用于将三个所述第一目标参考颜色中的一个确定为第二目标参考颜色,另外两个分别作为第三目标参考颜色和第四目标参考颜色;第八确定子模块,用于确定所述第二目标参考颜色与所述第三目标参考颜色的混合颜色的第一混合色度坐标,以及所述第二目标参考颜色与所述第四目标参考颜色的混合颜色的第二混合色度坐标;第九确定子模块,用于:根据所述第三目标参考颜色的参考色值和参考色度坐标、所述第二目标参考颜色的参考色值和参考色度坐标以及所述第一混合色度坐标,确定所述第二目标参考颜色的目标响应参数值与所述第三目标参考颜色的目标响应参数值的第一比值;根据所述第四目标参考颜色的参考色值和参考色度坐标、所述第二目标参考颜色的参考色值和参考色度坐标以及所述第二混合色度坐标,确定所述第二目标参考颜色的目标响应参数值与所述第四目标参考颜色的目标响应参数值的第二比值;第十确定子模块,用于根据所述第一比值和所述第二比值,确定每一所述第一目标参考颜色的目标响应参数值之间的比例关系。Optionally, when the number of the first target reference colors is equal to 3, the proportional relationship determination sub-module includes: a seventh determination sub-module, configured to determine one of the three first target reference colors as The second target reference color, the other two are respectively used as the third target reference color and the fourth target reference color; the eighth determination sub-module is used to determine the mixed color of the second target reference color and the third target reference color The first mixed chromaticity coordinates of , and the second mixed chromaticity coordinates of the mixed color of the second target reference color and the fourth target reference color; the ninth determination sub-module is used for: according to the third target The reference color value and reference chromaticity coordinates of the reference color, the reference color value and reference chromaticity coordinates of the second target reference color, and the first mixed chromaticity coordinates, determine the target response parameter of the second target reference color value and the first ratio of the target response parameter value of the third target reference color; according to the reference color value and reference chromaticity coordinates of the fourth target reference color, the reference color value and reference color of the second target reference color The chromaticity coordinates and the second mixed chromaticity coordinates determine the second ratio between the target response parameter value of the second target reference color and the target response parameter value of the fourth target reference color; the tenth determination submodule, for determining a proportional relationship between target response parameter values of each of the first target reference colors according to the first ratio and the second ratio.
可选地,所述第九确定子模块包括:直线确定子模块,用于确定所述第三目标参考颜色的参考色度坐标对应的点和所述第二目标参考颜色的参考色度坐标对应的点所在的第一直线,以及所述第四目标参考颜色的参考色度坐标对应的点和所述目标色度坐标对应的点所在的第二直线;交点确定子模块,用于将所述第一直线和所述第二直线的交点的坐标确定为所述第二目标参考颜色与所述第三目标参考颜色的混合颜色的第一混合色度坐标;所述直线确定子模块还用于确定所述第四目标参考颜色的参考色度坐标对应的 点和所述第二目标参考颜色的参考色度坐标对应的点所在的第三直线,以及所述第三目标参考颜色的参考色度坐标对应的点和所述目标色度坐标对应的点所在的第四直线;所述交点确定子模块,还用于将所述第三直线和所述第四直线的交点的坐标确定为所述第二目标参考颜色与所述第四目标参考颜色的混合颜色的第二混合色度坐标。Optionally, the ninth determination sub-module includes: a straight line determination sub-module for determining that the point corresponding to the reference chromaticity coordinate of the third target reference color corresponds to the reference chromaticity coordinate of the second target reference color. The first straight line where the point is located, and the second straight line where the point corresponding to the reference chromaticity coordinate of the fourth target reference color and the point corresponding to the target chromaticity coordinate are located; The coordinates of the intersection of the first straight line and the second straight line are determined as the first mixed chromaticity coordinates of the mixed color of the second target reference color and the third target reference color; the straight line determination submodule further A third straight line for determining the point corresponding to the reference chromaticity coordinate of the fourth target reference color and the point corresponding to the reference chromaticity coordinate of the second target reference color, and the reference of the third target reference color The fourth straight line where the point corresponding to the chromaticity coordinates and the point corresponding to the target chromaticity coordinates are located; the intersection determination submodule is also used to determine the coordinates of the intersection of the third straight line and the fourth straight line as The second mixed chromaticity coordinates of the mixed color of the second target reference color and the fourth target reference color.
可选地,当所述第一目标参考颜色的数量等于3时,所述比例关系确定子模块,包括:第七确定子模块,将三个所述第一目标参考颜色中的一个确定为第二目标参考颜色,另外两个分别作为第三目标参考颜色和第四目标参考颜色;第八确定子模块,用于确定所述第二目标参考颜色与所述第三目标参考颜色的混合颜色的第一混合色度坐标;第九确定子模块,用于根据所述第三目标参考颜色的参考色值和参考色度坐标、所述第二目标参考颜色的参考色值和参考色度坐标、所述第一混合色度坐标,确定所述第二目标参考颜色的目标响应参数值与所述第三目标参考颜色的目标响应参数值的第一比值;第十确定子模块,用于根据每一所述第一目标参考颜色的参考色值、所述目标色度坐标、所述第一混合色度坐标以及所述第四目标参考颜色的参考色度坐标,确定所述第二目标参考颜色的目标响应参数值、所述第三目标参考颜色的目标响应参数值、所述第四目标参考颜色的目标响应参数值之间的关系;第十一确定子模块,用于根据所述第二目标参考颜色的目标响应参数值、所述第三目标参考颜色的目标响应参数值、所述第四目标参考颜色的目标响应参数值之间的关系和所述第一比值,确定每一所述第一目标参考颜色的目标响应参数值之间的比例关系。Optionally, when the number of the first target reference colors is equal to 3, the proportional relationship determination sub-module includes: a seventh determination sub-module, which determines one of the three first target reference colors as the first target reference color. Two target reference colors, the other two are respectively used as the third target reference color and the fourth target reference color; the eighth determination sub-module is used to determine the mixed color of the second target reference color and the third target reference color. The first mixed chromaticity coordinates; the ninth determination submodule is used for the reference color value and reference chromaticity coordinates of the third target reference color, the reference color value and reference chromaticity coordinates of the second target reference color, The first mixed chromaticity coordinates determine the first ratio between the target response parameter value of the second target reference color and the target response parameter value of the third target reference color; the tenth determination sub-module is used for determining according to each a reference color value of the first target reference color, the target chromaticity coordinates, the first mixed chromaticity coordinates, and the reference chromaticity coordinates of the fourth target reference color, to determine the second target reference color The relationship between the target response parameter value of the third target reference color, the target response parameter value of the third target reference color, and the target response parameter value of the fourth target reference color; the eleventh determination sub-module is used for The relationship between the target response parameter value of the target reference color, the target response parameter value of the third target reference color, the target response parameter value of the fourth target reference color, and the first ratio, to determine each of the The proportional relationship between the target response parameter values of the first target reference color.
可选地,所述第四确定子模块用于:若所述参考颜色的数量大于4,则将零确定为所述其他参考颜色对应的目标颜色调整参数值;若所述参考颜色的数量等于4,则通过以下方式中的一者确定所述其他参考颜色对应的目标颜色调整参数值:将零确定为所述其他参考颜色对应的目标颜色调整参数值;根据每一所述第一目标参考颜色的参考色值、每一所述第一目标参考颜色对应的目标颜色调整参数值、所述目标色度坐标、延长色度坐标以及所述其他参考颜色的参考色值和参考色度坐标,确定所述其他参考颜色的目标响应参数值,之后,根据所述其他参考颜色对应的响应关系,确定与所述其他参考颜色的目标响应参数值对应的目标颜色调整参数值,所述延长色度坐标为所述其他参考颜色的参考色度坐标对应的点到所述目标色度坐标对应的点的连线的延长线上的任一点的色度坐标。Optionally, the fourth determination sub-module is configured to: if the number of the reference colors is greater than 4, then determine zero as the target color adjustment parameter value corresponding to the other reference colors; if the number of the reference colors is equal to 4. Determine the target color adjustment parameter value corresponding to the other reference colors by one of the following methods: determine zero as the target color adjustment parameter value corresponding to the other reference colors; The reference color value of the color, the target color adjustment parameter value corresponding to each of the first target reference colors, the target chromaticity coordinates, the extended chromaticity coordinates, and the reference color values and reference chromaticity coordinates of the other reference colors, Determine the target response parameter value of the other reference color, and then determine the target color adjustment parameter value corresponding to the target response parameter value of the other reference color according to the response relationship corresponding to the other reference color. The coordinates are the chromaticity coordinates of any point on the extension line of the line connecting the point corresponding to the reference chromaticity coordinates of the other reference colors to the point corresponding to the target chromaticity coordinates.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的 实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the method, and will not be described in detail here.
本公开提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现本公开提供的上述颜色调节方法的步骤。The present disclosure provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the steps of the above-mentioned color adjustment method provided by the present disclosure.
图7是根据一示例性实施例示出的一种电子设备700的框图。如图7所示,该电子设备700可以包括:处理器701,存储器702。该电子设备700还可以包括多媒体组件703,输入/输出(I/O)接口704,以及通信组件705中的一者或多者。FIG. 7 is a block diagram of an electronic device 700 according to an exemplary embodiment. As shown in FIG. 7 , the electronic device 700 may include: a processor 701 and a memory 702 . The electronic device 700 may also include one or more of a multimedia component 703 , an input/output (I/O) interface 704 , and a communication component 705 .
其中,处理器701用于控制该电子设备700的整体操作,以完成上述的颜色调节方法中的全部或部分步骤。存储器702用于存储各种类型的数据以支持在该电子设备700的操作,这些数据例如可以包括用于在该电子设备700上操作的任何应用程序或方法的指令,以及应用程序相关的数据,例如联系人数据、收发的消息、图片、音频、视频等等。该存储器702可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,例如静态随机存取存储器(Static Random Access Memory,简称SRAM),电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,简称EEPROM),可擦除可编程只读存储器(Erasable Programmable Read-Only Memory,简称EPROM),可编程只读存储器(Programmable Read-Only Memory,简称PROM),只读存储器(Read-Only Memory,简称ROM),磁存储器,快闪存储器,磁盘或光盘。多媒体组件703可以包括屏幕和音频组件。其中屏幕例如可以是触摸屏,音频组件用于输出和/或输入音频信号。例如,音频组件可以包括一个麦克风,麦克风用于接收外部音频信号。所接收的音频信号可以被进一步存储在存储器702或通过通信组件705发送。音频组件还包括至少一个扬声器,用于输出音频信号。I/O接口704为处理器701和其他接口模块之间提供接口,上述其他接口模块可以是键盘,鼠标,按钮等。这些按钮可以是虚拟按钮或者实体按钮。通信组件705用于该电子设备700与其他设备之间进行有线或无线通信。无线通信,例如Wi-Fi,蓝牙,近场通信(Near Field Communication,简称NFC),2G、3G、4G、NB-IOT、eMTC、或其他5G等等,或它们中的一种或几种的组合,在此不做限定。因此相应的该通信组件705可以包括:Wi-Fi模块,蓝牙模块,NFC模块等等。Wherein, the processor 701 is used to control the overall operation of the electronic device 700 to complete all or part of the steps in the above-mentioned color adjustment method. The memory 702 is used to store various types of data to support operations on the electronic device 700, such data may include, for example, instructions for any application or method operating on the electronic device 700, and application-related data, Such as contact data, messages sent and received, pictures, audio, video, and so on. The memory 702 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (Static Random Access Memory, SRAM for short), electrically erasable programmable read-only memory ( Electrically Erasable Programmable Read-Only Memory (EEPROM for short), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (Read-Only Memory, ROM for short), magnetic memory, flash memory, magnetic disk or optical disk. Multimedia components 703 may include screen and audio components. Wherein the screen can be, for example, a touch screen, and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may be further stored in memory 702 or transmitted through communication component 705 . The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 704 provides an interface between the processor 701 and other interface modules, and the above-mentioned other interface modules may be a keyboard, a mouse, a button, and the like. These buttons can be virtual buttons or physical buttons. The communication component 705 is used for wired or wireless communication between the electronic device 700 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or one or more of them The combination is not limited here. Therefore, the corresponding communication component 705 may include: Wi-Fi module, Bluetooth module, NFC module and so on.
在一示例性实施例中,电子设备700可以被一个或多个应用专用集成电路(Application Specific Integrated Circuit,简称ASIC)、数字信号处理器(Digital Signal Processor,简称DSP)、数字信号处理设备(Digital Signal Processing Device,简称DSPD)、可编程逻辑器件(Programmable Logic Device,简称PLD)、现场可编程门阵列(Field  Programmable Gate Array,简称FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述的颜色调节方法。In an exemplary embodiment, the electronic device 700 may be implemented by one or more application-specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), digital signal processors (Digital Signal Processor, DSP for short), digital signal processing devices (Digital Signal Processing Device, referred to as DSPD), Programmable Logic Device (Programmable Logic Device, referred to as PLD), Field Programmable Gate Array (Field Programmable Gate Array, referred to as FPGA), controller, microcontroller, microprocessor or other electronic components Implementation is used to perform the above-mentioned color adjustment method.
在另一示例性实施例中,还提供了一种包括程序指令的计算机可读存储介质,该程序指令被处理器执行时实现上述的颜色调节方法的步骤。例如,该计算机可读存储介质可以为上述包括程序指令的存储器702,上述程序指令可由电子设备700的处理器701执行以完成上述的颜色调节方法。In another exemplary embodiment, there is also provided a computer-readable storage medium comprising program instructions, the program instructions implementing the steps of the above-mentioned color adjustment method when executed by a processor. For example, the computer-readable storage medium can be the above-mentioned memory 702 including program instructions, and the above-mentioned program instructions can be executed by the processor 701 of the electronic device 700 to complete the above-mentioned color adjustment method.
以上结合附图详细描述了本公开的优选实施方式,但是,本公开并不限于上述实施方式中的具体细节,在本公开的技术构思范围内,可以对本公开的技术方案进行多种简单变型,这些简单变型均属于本公开的保护范围。The preferred embodiments of the present disclosure have been described above in detail with reference to the accompanying drawings. However, the present disclosure is not limited to the specific details of the above-mentioned embodiments. Various simple modifications can be made to the technical solutions of the present disclosure within the scope of the technical concept of the present disclosure. These simple modifications all fall within the protection scope of the present disclosure.
另外需要说明的是,在上述具体实施方式中所描述的各个具体技术特征,在不矛盾的情况下,可以通过任何合适的方式进行组合。为了避免不必要的重复,本公开对各种可能的组合方式不再另行说明。In addition, it should be noted that each specific technical feature described in the above-mentioned specific implementation manner may be combined in any suitable manner under the circumstance that there is no contradiction. In order to avoid unnecessary repetition, various possible combinations are not described in the present disclosure.
此外,本公开的各种不同的实施方式之间也可以进行任意组合,只要其不违背本公开的思想,其同样应当视为本公开所公开的内容。In addition, the various embodiments of the present disclosure can also be arbitrarily combined, as long as they do not violate the spirit of the present disclosure, they should also be regarded as the contents disclosed in the present disclosure.

Claims (20)

  1. 一种颜色调节方法,包括:A color adjustment method comprising:
    确定目标设备的待调节颜色对应的目标色度坐标,其中,所述目标设备的显示颜色由多个参考颜色混合而成;determining the target chromaticity coordinates corresponding to the color to be adjusted of the target device, wherein the display color of the target device is formed by mixing a plurality of reference colors;
    根据所述参考颜色的数量、所述目标色度坐标、每一所述参考颜色的参考色值以及每一所述参考颜色对应的响应关系,确定每一所述参考颜色对应的目标颜色调整参数值,其中,所述响应关系用于表征所述参考颜色对应的颜色调整参数与所述参考颜色的响应参数之间的对应关系;Determine the target color adjustment parameter corresponding to each reference color according to the number of the reference colors, the target chromaticity coordinates, the reference color value of each of the reference colors, and the response relationship corresponding to each of the reference colors value, wherein the response relationship is used to represent the corresponding relationship between the color adjustment parameter corresponding to the reference color and the response parameter of the reference color;
    根据每一所述参考颜色对应的目标颜色调整参数值,对所述目标设备进行颜色调节,以将所述目标设备的显示颜色调节为所述待调节颜色。Color adjustment is performed on the target device according to the target color adjustment parameter value corresponding to each of the reference colors, so as to adjust the display color of the target device to the color to be adjusted.
  2. 根据权利要求1所述的方法,其中,所述根据所述参考颜色的数量、所述目标色度坐标、每一所述参考颜色的参考色值以及每一所述参考颜色对应的响应关系,确定每一所述参考颜色对应的目标颜色调整参数值,包括:The method according to claim 1, wherein, according to the number of the reference colors, the target chromaticity coordinates, the reference color value of each of the reference colors, and the response relationship corresponding to each of the reference colors, Determining the target color adjustment parameter value corresponding to each of the reference colors includes:
    针对每一所述参考颜色,根据所述参考颜色的参考色值,确定所述参考颜色的参考色度坐标;For each of the reference colors, determining the reference chromaticity coordinates of the reference color according to the reference color value of the reference color;
    从所述多个参考颜色中确定第一目标参考颜色,所述第一目标参考颜色用于构成所述待调节颜色;determining a first target reference color from the plurality of reference colors, where the first target reference color is used to form the color to be adjusted;
    根据所述目标色度坐标、每一所述第一目标参考颜色对应的响应关系以及每一所述第一目标参考颜色的参考色值和参考色度坐标,确定每一所述第一目标参考颜色对应的目标颜色调整参数值;Each of the first target reference colors is determined according to the target chromaticity coordinates, the response relationship corresponding to each of the first target reference colors, and the reference color value and reference chromaticity coordinates of each of the first target reference colors. The target color adjustment parameter value corresponding to the color;
    若所述多个参考颜色中还包括除所述第一目标参考颜色之外的其他参考颜色,则至少根据所述参考颜色的数量,确定所述其他参考颜色对应的目标颜色调整参数值。If the plurality of reference colors also include other reference colors other than the first target reference color, at least according to the number of the reference colors, determine the target color adjustment parameter value corresponding to the other reference colors.
  3. 根据权利要求2所述的方法,其中,所述从所述多个参考颜色中确定第一目标参考颜色,包括:The method of claim 2, wherein the determining the first target reference color from the plurality of reference colors comprises:
    若所述参考颜色的数量大于3,则从所述多个参考颜色中确定出三个所述第一目标参考颜色,以使得所述目标色度坐标对应的点落在由三个所述第一目标参考颜色的参考 色度坐标对应的点构成的三角形内;If the number of the reference colors is greater than 3, three of the first target reference colors are determined from the plurality of reference colors, so that the point corresponding to the target chromaticity coordinates falls on the three first target reference colors. In a triangle formed by points corresponding to the reference chromaticity coordinates of a target reference color;
    若所述参考颜色的数量小于或等于3,则将每一所述参考颜色均确定为所述第一目标参考颜色。If the number of the reference colors is less than or equal to 3, each of the reference colors is determined as the first target reference color.
  4. 根据权利要求2或3任一项所述的方法,其中,所述根据所述目标色度坐标、每一所述第一目标参考颜色对应的响应关系以及每一所述第一目标参考颜色的参考色值和参考色度坐标,确定每一所述第一目标参考颜色对应的目标颜色调整参数值,包括:The method according to any one of claims 2 or 3, wherein the chromaticity coordinates of the target, the response relationship corresponding to each of the first target reference colors, and the response relationship of each of the first target reference colors With reference to the color value and the reference chromaticity coordinates, determine the target color adjustment parameter value corresponding to each of the first target reference colors, including:
    根据每一所述第一目标参考颜色的参考色值和参考色度坐标、所述目标色度坐标,确定每一所述第一目标参考颜色的目标响应参数值;Determine the target response parameter value of each of the first target reference colors according to the reference color value and reference chromaticity coordinates of each of the first target reference colors, and the target chromaticity coordinates;
    针对每一所述第一目标参考颜色,根据所述第一目标参考颜色对应的响应关系,确定与所述第一目标参考颜色的目标响应参数值对应的目标颜色调整参数值。For each first target reference color, a target color adjustment parameter value corresponding to the target response parameter value of the first target reference color is determined according to the response relationship corresponding to the first target reference color.
  5. 根据权利要求4所述的方法,其中,所述根据每一所述第一目标参考颜色的参考色值和参考色度坐标、所述目标色度坐标,确定每一所述第一目标参考颜色的目标响应参数值,包括:The method according to claim 4, wherein each of the first target reference colors is determined according to the reference color value and reference chromaticity coordinates of each of the first target reference colors, and the target chromaticity coordinates target response parameter values, including:
    根据每一所述第一目标参考颜色的参考色值和参考色度坐标、所述目标色度坐标,确定每一所述第一目标参考颜色的目标响应参数值之间的比例关系;According to the reference color value and reference chromaticity coordinates of each of the first target reference colors, and the target chromaticity coordinates, determine the proportional relationship between the target response parameter values of each of the first target reference colors;
    根据所述颜色调整参数的上限值和所述比例关系,确定每一所述第一目标参考颜色的目标响应参数值。According to the upper limit value of the color adjustment parameter and the proportional relationship, a target response parameter value of each of the first target reference colors is determined.
  6. 根据权利要求5所述的方法,其中,当所述第一目标参考颜色的数量等于3时,所述根据每一所述第一目标参考颜色的参考色值和参考色度坐标、所述目标色度坐标,确定每一所述第一目标参考颜色的目标响应参数值之间的比例关系,包括:The method according to claim 5, wherein, when the number of the first target reference colors is equal to 3, the target reference color value and reference chromaticity coordinates of each of the first target reference colors, the target The chromaticity coordinates determine the proportional relationship between the target response parameter values of each of the first target reference colors, including:
    将三个所述第一目标参考颜色中的一个确定为第二目标参考颜色,另外两个分别作为第三目标参考颜色和第四目标参考颜色;One of the three first target reference colors is determined as the second target reference color, and the other two are respectively used as the third target reference color and the fourth target reference color;
    确定所述第二目标参考颜色与所述第三目标参考颜色的混合颜色的第一混合色度坐标,以及所述第二目标参考颜色与所述第四目标参考颜色的混合颜色的第二混合色度坐标;determining the first mixed chromaticity coordinates of the mixed color of the second target reference color and the third target reference color, and the second mixture of the mixed color of the second target reference color and the fourth target reference color chromaticity coordinates;
    根据所述第三目标参考颜色的参考色值和参考色度坐标、所述第二目标参考颜色的 参考色值和参考色度坐标以及所述第一混合色度坐标,确定所述第二目标参考颜色的目标响应参数值与所述第三目标参考颜色的目标响应参数值的第一比值;根据所述第四目标参考颜色的参考色值和参考色度坐标、所述第二目标参考颜色的参考色值和参考色度坐标以及所述第二混合色度坐标,确定所述第二目标参考颜色的目标响应参数值与所述第四目标参考颜色的目标响应参数值的第二比值;The second target is determined according to the reference color value and reference chromaticity coordinates of the third target reference color, the reference color value and reference chromaticity coordinates of the second target reference color, and the first mixed chromaticity coordinates The first ratio of the target response parameter value of the reference color to the target response parameter value of the third target reference color; according to the reference color value and reference chromaticity coordinates of the fourth target reference color, the second target reference color The reference color value and the reference chromaticity coordinates and the second mixed chromaticity coordinates, determine the second ratio of the target response parameter value of the second target reference color and the target response parameter value of the fourth target reference color;
    根据所述第一比值和所述第二比值,确定每一所述第一目标参考颜色的目标响应参数值之间的比例关系。A proportional relationship between target response parameter values of each of the first target reference colors is determined according to the first ratio and the second ratio.
  7. 根据权利要求6所述的方法,其中,所述确定所述第二目标参考颜色与所述第三目标参考颜色的混合颜色的第一混合色度坐标,包括:The method according to claim 6, wherein the determining the first mixed chromaticity coordinates of the mixed color of the second target reference color and the third target reference color comprises:
    确定所述第三目标参考颜色的参考色度坐标对应的点和所述第二目标参考颜色的参考色度坐标对应的点所在的第一直线,以及所述第四目标参考颜色的参考色度坐标对应的点和所述目标色度坐标对应的点所在的第二直线;Determine the first straight line where the point corresponding to the reference chromaticity coordinate of the third target reference color and the point corresponding to the reference chromaticity coordinate of the second target reference color are located, and the reference color of the fourth target reference color the second straight line where the point corresponding to the chromaticity coordinate and the point corresponding to the target chromaticity coordinate are located;
    将所述第一直线和所述第二直线的交点的坐标确定为所述第二目标参考颜色与所述第三目标参考颜色的混合颜色的第一混合色度坐标;determining the coordinates of the intersection of the first straight line and the second straight line as the first mixed chromaticity coordinates of the mixed color of the second target reference color and the third target reference color;
    所述确定所述第二目标参考颜色与所述第四目标参考颜色的混合颜色的第二混合色度坐标,包括:The determining of the second mixed chromaticity coordinates of the mixed color of the second target reference color and the fourth target reference color includes:
    确定所述第四目标参考颜色的参考色度坐标对应的点和所述第二目标参考颜色的参考色度坐标对应的点所在的第三直线,以及所述第三目标参考颜色的参考色度坐标对应的点和所述目标色度坐标对应的点所在的第四直线;Determine the third straight line where the point corresponding to the reference chromaticity coordinate of the fourth target reference color and the point corresponding to the reference chromaticity coordinate of the second target reference color are located, and the reference chromaticity of the third target reference color the fourth straight line where the point corresponding to the coordinates and the point corresponding to the target chromaticity coordinates are located;
    将所述第三直线和所述第四直线的交点的坐标确定为所述第二目标参考颜色与所述第四目标参考颜色的混合颜色的第二混合色度坐标。The coordinates of the intersection of the third straight line and the fourth straight line are determined as the second mixed chromaticity coordinates of the mixed color of the second target reference color and the fourth target reference color.
  8. 根据权利要求5-7中任一项所述的方法,其中,当所述第一目标参考颜色的数量等于3时,所述根据每一所述第一目标参考颜色的参考色值和参考色度坐标、所述目标色度坐标,确定每一所述第一目标参考颜色的目标响应参数值之间的比例关系,包括:The method according to any one of claims 5-7, wherein when the number of the first target reference colors is equal to 3, the reference color value and reference color according to each of the first target reference colors Degree coordinates, the target chromaticity coordinates, determine the proportional relationship between the target response parameter values of each of the first target reference colors, including:
    将三个所述第一目标参考颜色中的一个确定为第二目标参考颜色,另外两个分别作为第三目标参考颜色和第四目标参考颜色;One of the three first target reference colors is determined as the second target reference color, and the other two are respectively used as the third target reference color and the fourth target reference color;
    确定所述第二目标参考颜色与所述第三目标参考颜色的混合颜色的第一混合色度 坐标;determining the first mixed chromaticity coordinates of the mixed color of the second target reference color and the third target reference color;
    根据所述第三目标参考颜色的参考色值和参考色度坐标、所述第二目标参考颜色的参考色值和参考色度坐标、所述第一混合色度坐标,确定所述第二目标参考颜色的目标响应参数值与所述第三目标参考颜色的目标响应参数值的第一比值;The second target is determined according to the reference color value and reference chromaticity coordinates of the third target reference color, the reference color value and reference chromaticity coordinates of the second target reference color, and the first mixed chromaticity coordinates a first ratio of the target response parameter value of the reference color to the target response parameter value of the third target reference color;
    根据每一所述第一目标参考颜色的参考色值、所述目标色度坐标、所述第一混合色度坐标以及所述第四目标参考颜色的参考色度坐标,确定所述第二目标参考颜色的目标响应参数值、所述第三目标参考颜色的目标响应参数值、所述第四目标参考颜色的目标响应参数值之间的关系;The second target is determined according to the reference color value of each of the first target reference colors, the target chromaticity coordinates, the first mixed chromaticity coordinates, and the reference chromaticity coordinates of the fourth target reference color the relationship between the target response parameter value of the reference color, the target response parameter value of the third target reference color, and the target response parameter value of the fourth target reference color;
    根据所述第二目标参考颜色的目标响应参数值、所述第三目标参考颜色的目标响应参数值、所述第四目标参考颜色的目标响应参数值之间的关系和所述第一比值,确定每一所述第一目标参考颜色的目标响应参数值之间的比例关系。According to the relationship between the target response parameter value of the second target reference color, the target response parameter value of the third target reference color, the target response parameter value of the fourth target reference color, and the first ratio, A proportional relationship between target response parameter values for each of the first target reference colors is determined.
  9. 根据权利要求2-8中任一项所述的方法,其中,所述至少根据所述参考颜色的数量,确定所述其他参考颜色对应的目标颜色调整参数值,包括:The method according to any one of claims 2-8, wherein the determining the target color adjustment parameter values corresponding to the other reference colors at least according to the number of the reference colors, comprises:
    若所述参考颜色的数量大于4,则将零确定为所述其他参考颜色对应的目标颜色调整参数值;If the number of the reference colors is greater than 4, zero is determined as the target color adjustment parameter value corresponding to the other reference colors;
    若所述参考颜色的数量等于4,则通过以下方式中的一者确定所述其他参考颜色对应的目标颜色调整参数值:If the number of the reference colors is equal to 4, the target color adjustment parameter values corresponding to the other reference colors are determined by one of the following methods:
    将零确定为所述其他参考颜色对应的目标颜色调整参数值;Determining zero as the target color adjustment parameter value corresponding to the other reference colors;
    根据每一所述第一目标参考颜色的参考色值、每一所述第一目标参考颜色对应的目标颜色调整参数值、所述目标色度坐标、延长色度坐标以及所述其他参考颜色的参考色值和参考色度坐标,确定所述其他参考颜色的目标响应参数值,之后,根据所述其他参考颜色对应的响应关系,确定与所述其他参考颜色的目标响应参数值对应的目标颜色调整参数值,所述延长色度坐标为所述其他参考颜色的参考色度坐标对应的点到所述目标色度坐标对应的点的连线的延长线上的任一点的色度坐标。According to the reference color value of each first target reference color, the target color adjustment parameter value corresponding to each first target reference color, the target chromaticity coordinates, the extended chromaticity coordinates, and the other reference colors With reference to the color value and the reference chromaticity coordinates, the target response parameter values of the other reference colors are determined, and then, according to the response relationship corresponding to the other reference colors, the target color corresponding to the target response parameter values of the other reference colors is determined The parameter value is adjusted, and the extended chromaticity coordinate is the chromaticity coordinate of any point on the extension line of the line connecting the point corresponding to the reference chromaticity coordinate of the other reference color to the point corresponding to the target chromaticity coordinate.
  10. 一种颜色调节装置,包括:A color adjustment device, comprising:
    第一确定模块,用于确定目标设备的待调节颜色对应的目标色度坐标,其中,所述目标设备的显示颜色由多个参考颜色混合而成;a first determination module, configured to determine the target chromaticity coordinates corresponding to the color to be adjusted of the target device, wherein the display color of the target device is formed by mixing a plurality of reference colors;
    第二确定模块,用于根据所述参考颜色的数量、所述第一确定模块确定出的所述目标色度坐标、每一所述参考颜色的参考色值以及每一所述参考颜色对应的响应关系,确定每一所述参考颜色对应的目标颜色调整参数值,其中,所述响应关系用于表征所述参考颜色对应的颜色调整参数与所述参考颜色的响应参数之间的对应关系;The second determination module is configured to, according to the number of the reference colors, the target chromaticity coordinates determined by the first determination module, the reference color value of each of the reference colors, and the corresponding value of each of the reference colors a response relationship, determining the target color adjustment parameter value corresponding to each of the reference colors, wherein the response relationship is used to represent the corresponding relationship between the color adjustment parameter corresponding to the reference color and the response parameter of the reference color;
    调节模块,用于根据所述第二确定模块确定出的每一所述参考颜色对应的目标颜色调整参数值,对所述目标设备进行颜色调节,以将所述目标设备的显示颜色调节为所述待调节颜色。An adjustment module, configured to perform color adjustment on the target device according to the target color adjustment parameter value corresponding to each of the reference colors determined by the second determination module, so as to adjust the display color of the target device to the desired color Describe the color to be adjusted.
  11. 一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现权利要求1-9中任一项所述方法的步骤。A computer-readable storage medium having a computer program stored thereon, the program implementing the steps of the method of any one of claims 1-9 when the program is executed by a processor.
  12. 一种电子设备,包括:An electronic device comprising:
    存储器,其上存储有计算机程序;a memory on which a computer program is stored;
    处理器,用于执行所述存储器中的所述计算机程序,其中,所述处理器执行所述程序时实现以下步骤:A processor for executing the computer program in the memory, wherein the processor implements the following steps when executing the program:
    确定目标设备的待调节颜色对应的目标色度坐标,其中,所述目标设备的显示颜色由多个参考颜色混合而成;determining the target chromaticity coordinates corresponding to the color to be adjusted of the target device, wherein the display color of the target device is formed by mixing a plurality of reference colors;
    根据所述参考颜色的数量、所述目标色度坐标、每一所述参考颜色的参考色值以及每一所述参考颜色对应的响应关系,确定每一所述参考颜色对应的目标颜色调整参数值,其中,所述响应关系用于表征所述参考颜色对应的颜色调整参数与所述参考颜色的响应参数之间的对应关系;Determine the target color adjustment parameter corresponding to each reference color according to the number of the reference colors, the target chromaticity coordinates, the reference color value of each of the reference colors, and the response relationship corresponding to each of the reference colors value, wherein the response relationship is used to represent the corresponding relationship between the color adjustment parameter corresponding to the reference color and the response parameter of the reference color;
    根据每一所述参考颜色对应的目标颜色调整参数值,对所述目标设备进行颜色调节,以将所述目标设备的显示颜色调节为所述待调节颜色。Color adjustment is performed on the target device according to the target color adjustment parameter value corresponding to each of the reference colors, so as to adjust the display color of the target device to the color to be adjusted.
  13. 根据权利要求12所述的电子设备,其中,所述处理器执行所述程序以实现所述根据所述参考颜色的数量、所述目标色度坐标、每一所述参考颜色的参考色值以及每一所述参考颜色对应的响应关系,确定每一所述参考颜色对应的目标颜色调整参数值的步骤时,具体包括:13. The electronic device of claim 12, wherein the processor executes the program to implement the reference color value according to the number of the reference colors, the target chromaticity coordinates, the reference color value of each of the reference colors, and The response relationship corresponding to each of the reference colors, and the step of determining the target color adjustment parameter value corresponding to each of the reference colors, specifically includes:
    针对每一所述参考颜色,根据所述参考颜色的参考色值,确定所述参考颜色的参考 色度坐标;For each of the reference colors, according to the reference color value of the reference color, determine the reference chromaticity coordinates of the reference color;
    从所述多个参考颜色中确定第一目标参考颜色,所述第一目标参考颜色用于构成所述待调节颜色;determining a first target reference color from the plurality of reference colors, where the first target reference color is used to form the color to be adjusted;
    根据所述目标色度坐标、每一所述第一目标参考颜色对应的响应关系以及每一所述第一目标参考颜色的参考色值和参考色度坐标,确定每一所述第一目标参考颜色对应的目标颜色调整参数值;Each of the first target reference colors is determined according to the target chromaticity coordinates, the response relationship corresponding to each of the first target reference colors, and the reference color value and reference chromaticity coordinates of each of the first target reference colors. The target color adjustment parameter value corresponding to the color;
    若所述多个参考颜色中还包括除所述第一目标参考颜色之外的其他参考颜色,则至少根据所述参考颜色的数量,确定所述其他参考颜色对应的目标颜色调整参数值。If the plurality of reference colors also include other reference colors other than the first target reference color, at least according to the number of the reference colors, determine the target color adjustment parameter value corresponding to the other reference colors.
  14. 根据权利要求13所述的电子设备,其中,所述处理器执行所述程序以实现所述从所述多个参考颜色中确定第一目标参考颜色的步骤时,具体包括:The electronic device according to claim 13, wherein, when the processor executes the program to realize the step of determining the first target reference color from the plurality of reference colors, it specifically includes:
    若所述参考颜色的数量大于3,则从所述多个参考颜色中确定出三个所述第一目标参考颜色,以使得所述目标色度坐标对应的点落在由三个所述第一目标参考颜色的参考色度坐标对应的点构成的三角形内;If the number of the reference colors is greater than 3, three of the first target reference colors are determined from the plurality of reference colors, so that the point corresponding to the target chromaticity coordinates falls on the three first target reference colors. In a triangle formed by points corresponding to the reference chromaticity coordinates of a target reference color;
    若所述参考颜色的数量小于或等于3,则将每一所述参考颜色均确定为所述第一目标参考颜色。If the number of the reference colors is less than or equal to 3, each of the reference colors is determined as the first target reference color.
  15. 根据权利要求13或14任一项所述的电子设备,其中,所述处理器执行所述程序以实现所述根据所述目标色度坐标、每一所述第一目标参考颜色对应的响应关系以及每一所述第一目标参考颜色的参考色值和参考色度坐标,确定每一所述第一目标参考颜色对应的目标颜色调整参数值的步骤时,具体包括:The electronic device according to any one of claims 13 or 14, wherein the processor executes the program to realize the response relationship corresponding to each of the first target reference colors according to the target chromaticity coordinates and the reference color value and reference chromaticity coordinates of each of the first target reference colors, when determining the target color adjustment parameter value corresponding to each of the first target reference colors, specifically includes:
    根据每一所述第一目标参考颜色的参考色值和参考色度坐标、所述目标色度坐标,确定每一所述第一目标参考颜色的目标响应参数值;Determine the target response parameter value of each of the first target reference colors according to the reference color value and reference chromaticity coordinates of each of the first target reference colors, and the target chromaticity coordinates;
    针对每一所述第一目标参考颜色,根据所述第一目标参考颜色对应的响应关系,确定与所述第一目标参考颜色的目标响应参数值对应的目标颜色调整参数值。For each first target reference color, a target color adjustment parameter value corresponding to the target response parameter value of the first target reference color is determined according to the response relationship corresponding to the first target reference color.
  16. 根据权利要求15所述的电子设备,其中,所述处理器执行所述程序以实现所述根据每一所述第一目标参考颜色的参考色值和参考色度坐标、所述目标色度坐标,确定每一所述第一目标参考颜色的目标响应参数值的步骤时,具体包括:The electronic device according to claim 15, wherein the processor executes the program to realize the reference color value and reference chromaticity coordinates according to each of the first target reference colors, the target chromaticity coordinates , when the step of determining the target response parameter value of each first target reference color specifically includes:
    根据每一所述第一目标参考颜色的参考色值和参考色度坐标、所述目标色度坐标,确定每一所述第一目标参考颜色的目标响应参数值之间的比例关系;According to the reference color value and reference chromaticity coordinates of each of the first target reference colors, and the target chromaticity coordinates, determine the proportional relationship between the target response parameter values of each of the first target reference colors;
    根据所述颜色调整参数的上限值和所述比例关系,确定每一所述第一目标参考颜色的目标响应参数值。According to the upper limit value of the color adjustment parameter and the proportional relationship, a target response parameter value of each of the first target reference colors is determined.
  17. 根据权利要求16所述的电子设备,其中,当所述第一目标参考颜色的数量等于3时,所述处理器执行所述程序以实现所述根据每一所述第一目标参考颜色的参考色值和参考色度坐标、所述目标色度坐标,确定每一所述第一目标参考颜色的目标响应参数值之间的比例关系的步骤时,具体包括:17. The electronic device of claim 16, wherein when the number of the first target reference colors is equal to three, the processor executes the program to implement the reference according to each of the first target reference colors The step of determining the proportional relationship between the chromaticity value, the reference chromaticity coordinate, the target chromaticity coordinate, and the target response parameter value of each of the first target reference colors specifically includes:
    将三个所述第一目标参考颜色中的一个确定为第二目标参考颜色,另外两个分别作为第三目标参考颜色和第四目标参考颜色;One of the three first target reference colors is determined as the second target reference color, and the other two are respectively used as the third target reference color and the fourth target reference color;
    确定所述第二目标参考颜色与所述第三目标参考颜色的混合颜色的第一混合色度坐标,以及所述第二目标参考颜色与所述第四目标参考颜色的混合颜色的第二混合色度坐标;determining the first mixed chromaticity coordinates of the mixed color of the second target reference color and the third target reference color, and the second mixture of the mixed color of the second target reference color and the fourth target reference color chromaticity coordinates;
    根据所述第三目标参考颜色的参考色值和参考色度坐标、所述第二目标参考颜色的参考色值和参考色度坐标以及所述第一混合色度坐标,确定所述第二目标参考颜色的目标响应参数值与所述第三目标参考颜色的目标响应参数值的第一比值;根据所述第四目标参考颜色的参考色值和参考色度坐标、所述第二目标参考颜色的参考色值和参考色度坐标以及所述第二混合色度坐标,确定所述第二目标参考颜色的目标响应参数值与所述第四目标参考颜色的目标响应参数值的第二比值;The second target is determined according to the reference color value and reference chromaticity coordinates of the third target reference color, the reference color value and reference chromaticity coordinates of the second target reference color, and the first mixed chromaticity coordinates The first ratio of the target response parameter value of the reference color to the target response parameter value of the third target reference color; according to the reference color value and reference chromaticity coordinates of the fourth target reference color, the second target reference color The reference color value and the reference chromaticity coordinates and the second mixed chromaticity coordinates, determine the second ratio of the target response parameter value of the second target reference color and the target response parameter value of the fourth target reference color;
    根据所述第一比值和所述第二比值,确定每一所述第一目标参考颜色的目标响应参数值之间的比例关系。A proportional relationship between target response parameter values of each of the first target reference colors is determined according to the first ratio and the second ratio.
  18. 根据权利要求17所述的电子设备,其中,所述处理器执行所述程序以实现所述确定所述第二目标参考颜色与所述第三目标参考颜色的混合颜色的第一混合色度坐标的步骤时,具体包括:18. The electronic device of claim 17, wherein the processor executes the program to implement the determining of the first mixed chromaticity coordinates of the mixed color of the second target reference color and the third target reference color , specifically include:
    确定所述第三目标参考颜色的参考色度坐标对应的点和所述第二目标参考颜色的参考色度坐标对应的点所在的第一直线,以及所述第四目标参考颜色的参考色度坐标对应的点和所述目标色度坐标对应的点所在的第二直线;Determine the first straight line where the point corresponding to the reference chromaticity coordinate of the third target reference color and the point corresponding to the reference chromaticity coordinate of the second target reference color are located, and the reference color of the fourth target reference color the second straight line where the point corresponding to the chromaticity coordinate and the point corresponding to the target chromaticity coordinate are located;
    将所述第一直线和所述第二直线的交点的坐标确定为所述第二目标参考颜色与所述第三目标参考颜色的混合颜色的第一混合色度坐标;determining the coordinates of the intersection of the first straight line and the second straight line as the first mixed chromaticity coordinates of the mixed color of the second target reference color and the third target reference color;
    所述确定所述第二目标参考颜色与所述第四目标参考颜色的混合颜色的第二混合色度坐标,包括:The determining of the second mixed chromaticity coordinates of the mixed color of the second target reference color and the fourth target reference color includes:
    确定所述第四目标参考颜色的参考色度坐标对应的点和所述第二目标参考颜色的参考色度坐标对应的点所在的第三直线,以及所述第三目标参考颜色的参考色度坐标对应的点和所述目标色度坐标对应的点所在的第四直线;Determine the third straight line where the point corresponding to the reference chromaticity coordinate of the fourth target reference color and the point corresponding to the reference chromaticity coordinate of the second target reference color are located, and the reference chromaticity of the third target reference color the fourth straight line where the point corresponding to the coordinates and the point corresponding to the target chromaticity coordinates are located;
    将所述第三直线和所述第四直线的交点的坐标确定为所述第二目标参考颜色与所述第四目标参考颜色的混合颜色的第二混合色度坐标。The coordinates of the intersection of the third straight line and the fourth straight line are determined as the second mixed chromaticity coordinates of the mixed color of the second target reference color and the fourth target reference color.
  19. 根据权利要求16-18中任一项所述的电子设备,其中,当所述第一目标参考颜色的数量等于3时,所述处理器执行所述程序以实现所述根据每一所述第一目标参考颜色的参考色值和参考色度坐标、所述目标色度坐标,确定每一所述第一目标参考颜色的目标响应参数值之间的比例关系的步骤时,具体包括:The electronic device according to any one of claims 16-18, wherein, when the number of the first target reference colors is equal to 3, the processor executes the program to implement the according to each of the first A reference color value of a target reference color, reference chromaticity coordinates, and the target chromaticity coordinates, when determining the proportional relationship between the target response parameter values of each of the first target reference colors, specifically including:
    将三个所述第一目标参考颜色中的一个确定为第二目标参考颜色,另外两个分别作为第三目标参考颜色和第四目标参考颜色;One of the three first target reference colors is determined as the second target reference color, and the other two are respectively used as the third target reference color and the fourth target reference color;
    确定所述第二目标参考颜色与所述第三目标参考颜色的混合颜色的第一混合色度坐标;determining the first mixed chromaticity coordinates of the mixed color of the second target reference color and the third target reference color;
    根据所述第三目标参考颜色的参考色值和参考色度坐标、所述第二目标参考颜色的参考色值和参考色度坐标、所述第一混合色度坐标,确定所述第二目标参考颜色的目标响应参数值与所述第三目标参考颜色的目标响应参数值的第一比值;The second target is determined according to the reference color value and reference chromaticity coordinates of the third target reference color, the reference color value and reference chromaticity coordinates of the second target reference color, and the first mixed chromaticity coordinates a first ratio of the target response parameter value of the reference color to the target response parameter value of the third target reference color;
    根据每一所述第一目标参考颜色的参考色值、所述目标色度坐标、所述第一混合色度坐标以及所述第四目标参考颜色的参考色度坐标,确定所述第二目标参考颜色的目标响应参数值、所述第三目标参考颜色的目标响应参数值、所述第四目标参考颜色的目标响应参数值之间的关系;The second target is determined according to the reference color value of each of the first target reference colors, the target chromaticity coordinates, the first mixed chromaticity coordinates, and the reference chromaticity coordinates of the fourth target reference color the relationship between the target response parameter value of the reference color, the target response parameter value of the third target reference color, and the target response parameter value of the fourth target reference color;
    根据所述第二目标参考颜色的目标响应参数值、所述第三目标参考颜色的目标响应参数值、所述第四目标参考颜色的目标响应参数值之间的关系和所述第一比值,确定每一所述第一目标参考颜色的目标响应参数值之间的比例关系。According to the relationship between the target response parameter value of the second target reference color, the target response parameter value of the third target reference color, the target response parameter value of the fourth target reference color, and the first ratio, A proportional relationship between target response parameter values for each of the first target reference colors is determined.
  20. 根据权利要求13-19中任一项所述的电子设备,其中,所述处理器执行所述程序以实现所述至少根据所述参考颜色的数量,确定所述其他参考颜色对应的目标颜色调整参数值的步骤时,具体包括:The electronic device according to any one of claims 13-19, wherein the processor executes the program to achieve the target color adjustment corresponding to the other reference colors determined at least according to the number of the reference colors The steps of parameter value include:
    若所述参考颜色的数量大于4,则将零确定为所述其他参考颜色对应的目标颜色调整参数值;If the number of the reference colors is greater than 4, zero is determined as the target color adjustment parameter value corresponding to the other reference colors;
    若所述参考颜色的数量等于4,则通过以下方式中的一者确定所述其他参考颜色对应的目标颜色调整参数值:If the number of the reference colors is equal to 4, the target color adjustment parameter values corresponding to the other reference colors are determined by one of the following methods:
    将零确定为所述其他参考颜色对应的目标颜色调整参数值;Determining zero as the target color adjustment parameter value corresponding to the other reference colors;
    根据每一所述第一目标参考颜色的参考色值、每一所述第一目标参考颜色对应的目标颜色调整参数值、所述目标色度坐标、延长色度坐标以及所述其他参考颜色的参考色值和参考色度坐标,确定所述其他参考颜色的目标响应参数值,之后,根据所述其他参考颜色对应的响应关系,确定与所述其他参考颜色的目标响应参数值对应的目标颜色调整参数值,所述延长色度坐标为所述其他参考颜色的参考色度坐标对应的点到所述目标色度坐标对应的点的连线的延长线上的任一点的色度坐标。According to the reference color value of each first target reference color, the target color adjustment parameter value corresponding to each first target reference color, the target chromaticity coordinates, the extended chromaticity coordinates, and the other reference colors With reference to the color value and the reference chromaticity coordinates, the target response parameter values of the other reference colors are determined, and then, according to the response relationship corresponding to the other reference colors, the target color corresponding to the target response parameter values of the other reference colors is determined The parameter value is adjusted, and the extended chromaticity coordinate is the chromaticity coordinate of any point on the extension line of the line connecting the point corresponding to the reference chromaticity coordinate of the other reference color to the point corresponding to the target chromaticity coordinate.
PCT/CN2021/103837 2021-04-02 2021-06-30 Color adjustment method and apparatus, medium, and electronic device WO2022205652A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110363192.2A CN112750171B (en) 2021-04-02 2021-04-02 Color adjustment method, device, medium and electronic equipment
CN202110363192.2 2021-04-02

Publications (1)

Publication Number Publication Date
WO2022205652A1 true WO2022205652A1 (en) 2022-10-06

Family

ID=75651706

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/103837 WO2022205652A1 (en) 2021-04-02 2021-06-30 Color adjustment method and apparatus, medium, and electronic device

Country Status (2)

Country Link
CN (1) CN112750171B (en)
WO (1) WO2022205652A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112750171B (en) * 2021-04-02 2021-08-31 深圳市火乐科技发展有限公司 Color adjustment method, device, medium and electronic equipment
CN115424577B (en) * 2022-11-03 2023-01-13 永林电子股份有限公司 LED uniform light emitting control method and system based on full-color intelligent controller

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107101172A (en) * 2017-03-24 2017-08-29 广州市雅江光电设备有限公司 One kind quickly realizes random color color mixing method
US20180308452A1 (en) * 2017-04-24 2018-10-25 Beijing Xiaomi Mobile Software Co., Ltd. Method, apparatus and device for adjusting screen color and storage medium
CN112565727A (en) * 2021-02-19 2021-03-26 深圳市火乐科技发展有限公司 Projection equipment control method, device, medium and electronic equipment
CN112750171A (en) * 2021-04-02 2021-05-04 深圳市火乐科技发展有限公司 Color adjustment method, device, medium and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050120958A (en) * 2004-06-21 2005-12-26 삼성전자주식회사 Color signal processing method for wide color gamut reproducing device and apparatus of using the same
CN107085858B (en) * 2017-03-24 2019-04-05 广州市雅江光电设备有限公司 A kind of bearing calibration of blend color
CN108200420B (en) * 2018-01-16 2020-05-19 奇酷互联网络科技(深圳)有限公司 Image adjusting method and device, readable storage medium and terminal
CN110211191B (en) * 2019-05-31 2021-02-05 广州市雅江光电设备有限公司 Mixed color correction method and device, terminal equipment and readable storage medium
CN112601062B (en) * 2021-02-22 2021-07-02 深圳市火乐科技发展有限公司 Projection equipment control method, device, medium and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107101172A (en) * 2017-03-24 2017-08-29 广州市雅江光电设备有限公司 One kind quickly realizes random color color mixing method
US20180308452A1 (en) * 2017-04-24 2018-10-25 Beijing Xiaomi Mobile Software Co., Ltd. Method, apparatus and device for adjusting screen color and storage medium
CN112565727A (en) * 2021-02-19 2021-03-26 深圳市火乐科技发展有限公司 Projection equipment control method, device, medium and electronic equipment
CN112750171A (en) * 2021-04-02 2021-05-04 深圳市火乐科技发展有限公司 Color adjustment method, device, medium and electronic equipment

Also Published As

Publication number Publication date
CN112750171A (en) 2021-05-04
CN112750171B (en) 2021-08-31

Similar Documents

Publication Publication Date Title
WO2022205652A1 (en) Color adjustment method and apparatus, medium, and electronic device
US9886881B2 (en) Method and device for image conversion from RGB signals into RGBW signals
WO2022174651A1 (en) Projection device control method and apparatus, medium, and electronic device
WO2022134549A1 (en) Projection device control method and apparatus, and medium and electronic device
EP1178672A2 (en) Environment-compliant image display and information storage medium
US10679543B2 (en) Image processing method, image processing device and display panel
JP4651647B2 (en) Method and apparatus for finding a new color temperature point
US20030011563A1 (en) Image displaying system of environment-adaptive type, presentation system, and image processing method and program
CN112565727B (en) Projection equipment control method, device, medium and electronic equipment
JP2015049463A (en) Information processor, information processing method, program and image display device
CN104076928A (en) Method for adjusting color tone of text display area
CN112738489B (en) Projection equipment control method, device, medium and electronic equipment
US8373718B2 (en) Method and system for color enhancement with color volume adjustment and variable shift along luminance axis
JP6617432B2 (en) Image processing apparatus and program
TWI602419B (en) Adjusting method and display apparatus using same
KR20150051474A (en) Device for controlling color gamut and display device
CN114500965B (en) Projection device control method and device, readable storage medium and projection device
CN112738486B (en) Projection control method, device, system, medium and electronic equipment
JP2012151598A (en) Image processing device and image processing program
US11314080B2 (en) Display device and computer-implemented method of adjusting chromatic aberration of display device
CN111653232A (en) LED screen color gamut calibration method and device
CN113259645B (en) Color temperature adjusting method and device, computer readable storage medium and projection equipment
TWI771131B (en) Parameter adjusting method and projector
WO2024051110A1 (en) Color data processing method and apparatus, light source system, device, and storage medium
WO2024000473A1 (en) Color correction model generation method, correction method and apparatus, and medium and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21934301

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE