Method for adjusting color temperature of display and related device
By receiving the display frame image data from the monitor, setting the target chromaticity coordinates and adjustment coefficients, obtaining the target color temperature table data, and adjusting the initial color temperature data, the problem of inaccurate color temperature of the monitor is solved, and precise color temperature adjustment for each gray level is achieved, thus improving the accuracy of the screen color temperature.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN KANGGUAN INTELLIGENT TECH CO LTD
- Filing Date
- 2023-07-21
- Publication Date
- 2026-06-09
AI Technical Summary
Current monitors cannot adjust individual gray levels when adjusting color temperature, resulting in inconsistent gain responses of the red, green, and blue channels for LCD screens from different manufacturers. This leads to issues such as color temperature coordinate shifts and colors that do not meet color temperature requirements.
By receiving the display frame image data from the monitor, setting the target chromaticity coordinate data and adjustment coefficients, obtaining the target color temperature table data, and adjusting the initial color temperature data according to the target color temperature table data, the color temperature data of the monitor meets the target color temperature requirements.
It achieves color temperature correction for each grayscale level, ensuring that all grayscale images conform to the target color temperature, solving the problem of inaccurate color temperature, and improving the color temperature accuracy of the monitor.
Smart Images

Figure CN116863853B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of displays, and more particularly to a method and related equipment for adjusting the color temperature of a display. Background Technology
[0002] During color temperature adjustment, monitors change the color temperature by altering the gain of the red, green, and blue channels. However, current monitor chips adjust the gain of the red, green, and blue channels holistically; adjusting the gain of a single channel affects all grayscale levels from 0 to 255, making individual grayscale adjustment impossible. Furthermore, because LCD screens from different manufacturers exhibit inconsistent response to red, green, and blue channel gain, sometimes the x and y values of certain color temperature levels within the 0-255 grayscale range shift significantly. This results in the image deviating from its intended color temperature, causing the displayed colors to mismatch the required color temperature and resulting in a multicolored, disorganized image.
[0003] Therefore, there is an urgent need for a color temperature adjustment method that can make the 0-255 grayscale image match the target color temperature. Summary of the Invention
[0004] This application provides a method and related equipment for adjusting the color temperature of a display, which is used to adjust the channel gain of different gray levels and correct the color temperature.
[0005] The first aspect of this application provides a method for adjusting the color temperature of a display, comprising:
[0006] Receive display frame image data when the display is displaying an image; wherein, the display frame image data includes the initial color temperature table data of the display, and the initial color temperature table data includes the initial color temperature data of any gray level;
[0007] Set the target chromaticity coordinate data and target adjustment coefficient for all gray levels, and obtain the target color temperature table data for all gray levels based on the target chromaticity coordinate data and the target adjustment coefficient, wherein the target color temperature table data includes the target color temperature data for any gray level;
[0008] The initial color temperature data in the initial color temperature table data is adjusted according to the target color temperature table data so that the target color temperature data of the display meets the target color temperature table data.
[0009] Optionally, the display frame image data further includes initial chromaticity coordinate data and initial luminance data corresponding to all gray levels, and the method further includes:
[0010] The initial color temperature function is determined by fitting the initial chromaticity coordinate data, the initial luminance data, and the initial color temperature table data; wherein, the initial color temperature function is used to indicate that there is a functional relationship between the initial color temperature data and the initial chromaticity coordinate data and the initial luminance data, respectively.
[0011] Optionally, after performing fitting calculations on the initial chromaticity coordinate data, the initial luminance data, and the initial color temperature table data to determine the initial color temperature function, the method further includes:
[0012] When the initial color temperature data of the current gray level meets the preset gray level conditions, the initial chromaticity coordinate data and the initial brightness data corresponding to the color temperature data of the current gray level are determined according to the initial color temperature function.
[0013] Based on the initial chromaticity coordinate data and the initial luminance data, obtain the initial color temperature value of the current grayscale.
[0014] Optionally, the method further includes:
[0015] When the initial color temperature data of the current grayscale does not meet the preset grayscale condition, the color temperature data of the grayscale of the display that does not meet the preset grayscale condition is set as the target color temperature data.
[0016] Optionally, before adjusting the initial color temperature data in the initial color temperature table data according to the target color temperature table data, the method further includes:
[0017] A target color temperature function is determined based on the target chromaticity coordinate data and the target color temperature data corresponding to all gray levels; wherein, the target color temperature function is used to indicate that there is a functional relationship between the target color temperature data and the target chromaticity coordinate data;
[0018] The target chromaticity coordinates of the current grayscale are obtained according to the target color temperature function, and the target color temperature value of the current grayscale is determined according to the target chromaticity coordinates.
[0019] Optionally, adjusting the initial color temperature data in the initial color temperature table data according to the target color temperature table data includes:
[0020] Determine whether the initial color temperature value meets the target color temperature value of the current grayscale;
[0021] If the initial color temperature value does not meet the target color temperature value of the current grayscale, adjust the initial color temperature value until the adjusted initial color temperature value meets the target color temperature value of the current grayscale.
[0022] Optionally, the initial color temperature data of any grayscale includes color temperature data corresponding to red sub-pixels, green sub-pixels, and blue sub-pixels, and the initial color temperature value includes a first color temperature value and a second color temperature value. Adjusting the initial color temperature data in the initial color temperature table data according to the target color temperature table data includes:
[0023] If both the first and second color temperature values of the initial color temperature value are less than the first and second color temperature values of the target color temperature value of the current grayscale, the color temperature data corresponding to the blue sub-pixel is reduced to increase the first and second color temperature values of the initial color temperature value.
[0024] Alternatively, if the first color temperature value of the initial color temperature value is less than the first color temperature value in the target color temperature value of the current grayscale, the color temperature data corresponding to the red sub-pixel is increased to increase the first color temperature value of the initial color temperature value;
[0025] Alternatively, if the second color temperature value of the initial color temperature value is less than the second color temperature value in the target color temperature value of the current grayscale, the color temperature data corresponding to the green sub-pixel is increased to increase the second color temperature value of the initial color temperature value.
[0026] A second aspect of this application provides a method system for adjusting the color temperature of a display, comprising:
[0027] A receiving unit is used to receive display frame image data when the display is displaying an image; wherein, the display frame image data includes the initial color temperature table data of the display, and the initial color temperature table data includes the initial color temperature data of any gray level;
[0028] The setting unit is used to set the target chromaticity coordinate data and target adjustment coefficients for all gray levels, and to obtain the target color temperature table data for all gray levels based on the target chromaticity coordinate data and the target adjustment coefficients, wherein the target color temperature table data includes the target color temperature data for any gray level.
[0029] An adjustment unit is used to adjust the initial color temperature data in the initial color temperature table data according to the target color temperature table data, so that the target color temperature data of the display meets the target color temperature table data.
[0030] The second aspect of this application provides a method for performing the color temperature adjustment method described in the first aspect.
[0031] A third aspect of this application provides a method apparatus for adjusting the color temperature of a display, comprising:
[0032] Central processing unit, memory, input / output interfaces, wired or wireless network interfaces, and power supply;
[0033] The memory is either a short-term storage memory or a persistent storage memory;
[0034] The central processing unit is configured to communicate with the memory and execute instructions in the memory to perform the color temperature adjustment method described in the first aspect.
[0035] A fourth aspect of this application provides a computer-readable storage medium, characterized in that the computer-readable storage medium includes instructions that, when executed on a computer, cause the computer to perform the color temperature adjustment method described in the first aspect.
[0036] As can be seen from the above technical solutions, the embodiments of this application have the following advantages: The color temperature adjustment method disclosed in this application first receives display frame image data when the display shows an image; wherein, the display frame image data includes the initial color temperature table data of the display, and the initial color temperature table data includes the initial color temperature data of any gray level; then, target chromaticity coordinate data and target adjustment coefficients for all gray levels are set, and target color temperature table data corresponding to all gray levels is obtained according to the target chromaticity coordinate data and target adjustment coefficients; wherein, the target color temperature table data includes the target color temperature data of any gray level; finally, the initial color temperature data in the initial color temperature table data is adjusted according to the target color temperature table data so that the display meets the target color temperature table data. Therefore, when the color temperature data of a certain gray level does not meet the requirements, that gray level can be adjusted individually to correct the color temperature of that gray level image, thereby making all gray level images conform to the target color temperature and have a natural transition. Attached Figure Description
[0037] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings.
[0038] Figure 1 This is a schematic flowchart of a color temperature adjustment method for a display disclosed in an embodiment of this application;
[0039] Figure 2 This is a schematic flowchart of another color temperature adjustment method for a display disclosed in an embodiment of this application;
[0040] Figure 3 This is a schematic diagram of an initial gamma code table disclosed in an embodiment of this application;
[0041] Figure 4 This is a graph showing the coordinate relationship between the initial chromaticity coordinate x and the initial color temperature input data, as disclosed in an embodiment of this application.
[0042] Figure 5 This is another coordinate relationship diagram between the initial chromaticity coordinate y and the initial color temperature input data disclosed in the embodiments of this application;
[0043] Figure 6 This is a coordinate relationship diagram of initial brightness and initial color temperature input data disclosed in an embodiment of this application;
[0044] Figure 7 A comparison diagram of a gamma code table disclosed in an embodiment of this application;
[0045] Figure 8 A comparison diagram of another gamma code table disclosed in the embodiments of this application;
[0046] Figure 9 This is a diagram showing the relationship between target chromaticity coordinates x and y and grayscale values from 0 to 255, as disclosed in an embodiment of this application.
[0047] Figure 10 This is a schematic diagram of the structure of a color temperature adjustment system for a display disclosed in an embodiment of this application;
[0048] Figure 11 This is a schematic diagram of the structure of a color temperature adjustment device for a display disclosed in an embodiment of this application. Detailed Implementation
[0049] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0050] It should be noted that the use of terms such as "first" and "second" in this application is for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of those features. Furthermore, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. If the combination of technical solutions is contradictory or impossible to implement, such a combination of technical solutions should be considered non-existent and not within the scope of protection claimed in this application.
[0051] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0052] It should be noted in advance that the display described in the embodiments of this application is a display panel with display function, such as a liquid crystal panel, an LED display screen, or an LCD display screen. The working principle of this display is to adjust the gain of the red, green, and blue channels in a 0-255 grayscale image, thereby enabling the display to show different colors. For ease of understanding and description, this will not be elaborated further below.
[0053] Please see Figure 1 , Figure 1 This is a schematic flowchart of a color temperature adjustment method for a display disclosed in an embodiment of this application. It includes steps 101-103.
[0054] 101. Receive display frame image data when the display shows an image.
[0055] When a monitor displays an image, the current display frame image data can be read through an external device or the monitor's built-in testing equipment. It's easy to understand that this display frame image includes at least the monitor's initial color temperature data. This initial color temperature data refers to the initial color temperature data for any grayscale level.
[0056] In one specific embodiment, each display needs to have its input values for different grayscale levels set at the factory. This allows the current red, green, and blue gamma code table of the display to be obtained. Based on this embodiment, the red, green, and blue input values for each grayscale level (0-255) can be obtained from the display code or by reading the display's gamma register.
[0057] It's easy to understand that grayscale levels are currently divided into 0-255 levels, and each grayscale level corresponds to input values for red, green, and blue. For easier understanding and description, please refer to [link to relevant documentation]. Figure 3 , Figure 3 This is a schematic diagram of an initial gamma code table disclosed in an embodiment of this application. Figure 3 In other words, Figure 3The gamma table in this embodiment refers to the initial color temperature table data, and the data for any grayscale level is the initial color temperature data. It should also be noted that in this embodiment, the gamma table is only the gamma table set at the factory for one type of display. Different displays may have different gamma tables set at the factory; for ease of description, this will not be elaborated further.
[0058] Furthermore, regarding Figure 3 In this case, 16383 is divided into 1024 equal parts. The first part is 0, the second part is 16, the third part is 32, and so on, increasing by 16 each time. The red, green, and blue input values for each order are... Figure 3 In this context, it can be understood that the input value (gamma code) refers to the value in the gamma table. There are a total of 1024 input values, and the display scale has 256 levels from 0 to 255. Therefore,
[0059] Where i is an integer between 0 and 255. The input value for order 0 is 0, for order 1 it is 64, for order 2 it is 128, for order 3 it is 192, and for order 255 it is 16320. It should be noted that the input values will differ depending on the initial gamma table. Furthermore, it should be stated beforehand that the above are the input values used in this embodiment.
[0060] 102. Set the target chromaticity coordinate data and target adjustment coefficients for all gray levels, and obtain the target color temperature table data for all corresponding gray levels based on the target chromaticity coordinate data and target adjustment coefficients.
[0061] To adjust the grayscale display to match the target color temperature and ensure a natural transition, it is necessary to set the target chromaticity coordinates and related target adjustment coefficients for all grayscale levels. Therefore, target color temperature table data for all grayscale levels is obtained based on the target chromaticity coordinates and target adjustment coefficients. It is easy to understand that this target color temperature table data includes the target color temperature data for any given grayscale level.
[0062] In one specific embodiment, the desired display effect of the display can be predetermined, thereby determining the target color temperature coordinates and target adjustment coefficients for the display. Specifically, the target color temperature x, y values and the target gamma value are input.
[0063] Based on the above embodiments, in another specific embodiment, the target color temperature chromaticity coordinates x and y for each level are input, as well as the gamma value that the display needs to satisfy. It is easy to understand that the target color temperature x and y values are the target chromaticity coordinate data described above, and the gamma value is the target adjustment coefficient described above.
[0064] Based on the target chromaticity coordinate data and target adjustment coefficients with the aforementioned preset constraints, the target color temperature table data for all gray levels can be obtained. It's easy to understand that a gamma code table satisfying the target gamma and target color temperature x, y values can be calculated using the target color temperature gamma algorithm. Specifically, this target color temperature gamma algorithm calculates the gamma code for the current gray level using the x, y values of each red, green, and blue hue, as well as other values. This gamma code for each gray level is then summarized to form a target color temperature table data for 0-255 levels. For ease of understanding and description, the target color temperature gamma algorithm will be described in detail later; details will not be repeated here.
[0065] 103. Adjust the initial color temperature data in the initial color temperature table data according to the target color temperature table data so that the target color temperature data of the display meets the target color temperature table data.
[0066] Once the target color temperature data is obtained, the initial color temperature data in the initial color temperature data can be adjusted so that the display meets the target color temperature data in different gray levels.
[0067] In one specific embodiment, initial color temperature data and target color temperature data can correspond to the same grayscale level. If the initial color temperature data and the target color temperature data do not correspond, the initial color temperature data can be adjusted to make it match the target color temperature data. Specifically, the color temperature of the current grayscale level can be adjusted by comparing the magnitudes of the initial color temperature and the target color temperature and adjusting the gains of red, green, and blue.
[0068] The color temperature adjustment method disclosed in this embodiment first receives display frame image data when the display is displaying an image. The display frame image data includes the display's initial color temperature table data, which includes initial color temperature data for any grayscale level. Next, target chromaticity coordinate data and target adjustment coefficients for all grayscale levels are set. Based on the target chromaticity coordinate data and target adjustment coefficients, target color temperature table data corresponding to all grayscale levels is obtained. The target color temperature table data includes target color temperature data for any grayscale level. Finally, the initial color temperature data in the initial color temperature table data is adjusted according to the target color temperature table data so that the display meets the target color temperature table data. Therefore, when the color temperature data of a certain grayscale level does not meet the requirements, that grayscale level can be adjusted individually to correct the color temperature of that grayscale image, thereby ensuring that all grayscale images conform to the target color temperature and have a natural transition.
[0069] For the convenience of understanding the above Figure 1 For a detailed description of the color temperature adjustment methods, please refer to [link / reference]. Figure 2 , Figure 2This is a schematic flowchart of another color temperature adjustment method for a display disclosed in an embodiment of this application. It includes steps 201-208.
[0070] 201. Receive display frame image data when the display shows an image.
[0071] In this embodiment, step 201 is the same as the aforementioned Figure 1 Step 101 is similar and will not be elaborated here. However, it should be noted that the display frame image data may also include initial chromaticity coordinate data and initial luminance data corresponding to all gray levels. In one specific embodiment, the x, y, and lv data of the display's red, green, blue, and white levels 0-255 can be tested using an external testing device. Here, the lv data is the initial luminance data, and the x and y data are the initial chromaticity coordinate data.
[0072] Based on the above embodiments, in another specific embodiment, a color analyzer can be used to test the chromaticity coordinates (x, y) and luminance (lv) data of the four colors (red, green, blue, and white) in the display from levels 0 to 255. It is easy to understand that by testing levels 0-255 with a color analyzer, all chromaticity coordinates and luminance values at different levels can be obtained. For example, at level 16, x = 0.313, y = 0.329, lv = 10; at level 240, x = 0.310, y = 0.331, lv = 250. It is also easy to understand that the above are only one type of initial chromaticity coordinate data and initial luminance data for the display in this embodiment. This embodiment does not limit the specific content of the initial chromaticity coordinate data and initial luminance data, and for ease of description, these will not be elaborated further.
[0073] 202. Fit the initial chromaticity coordinate data, initial luminance data, and initial color temperature table data to determine the initial color temperature function.
[0074] Once the initial chromaticity coordinate data, initial luminance data, and initial color temperature data are obtained, fitting calculations can be performed to determine the initial color temperature function. It's easy to understand that the initial color temperature function represents the functional relationship between the initial color temperature data and the initial chromaticity coordinate data and the initial luminance data, respectively.
[0075] In one specific embodiment, the relationship function between the current red, green, and blue gamma codes and the test x, y, and lv data can be obtained through data fitting. It should be noted that data fitting methods include, but are not limited to, linear interpolation and polynomial interpolation. Plotting points on the coordinate axis with the red, green, and blue gamma codes as the x-axis and x, y, and lv as the y-axis yields the color temperature function relationship between these points. For easier understanding and description, please refer to [reference needed]. Figure 4 , Figure 5 and Figure 6 .in, Figure 4 This is a graph showing the coordinate relationship between the initial chromaticity coordinate x and the initial color temperature input data, as disclosed in an embodiment of this application. Figure 5 This is another diagram showing the coordinate relationship between the initial chromaticity coordinate y and the initial color temperature input data disclosed in an embodiment of this application. Figure 6 This is a coordinate relationship diagram of initial brightness and initial color temperature input data disclosed in an embodiment of this application. It is not difficult to understand that... Figure 4 , Figure 5 and Figure 6 This is only a function relationship graph for one type of display; the images differ between different displays. For Figure 4 For example, the horizontal axis represents the input values (gamma code) for each order of red, blue, and green. (See also...) Figure 3 The initial color temperature data corresponding to any gray level is given, with the ordinate being the measured chromaticity x. Figure 5 The horizontal axis represents the input values (gamma code) for each order of red, blue, and green, while the vertical axis represents the measured chromaticity y. Figure 6 The horizontal axis represents the input values (gamma code) for each level of red, blue, and green, while the vertical axis represents the measured brightness (lv). It's not difficult to understand that... Figure 6 This represents the functional relationship between brightness (lv) and initial color temperature input value (gamma code). In the figure, function y represents brightness (lv), and x represents the initial color temperature input value (gamma code). In this embodiment, the functional relationship of the display with respect to brightness is as follows: Where y represents brightness (lv), and x represents the initial color temperature input value (gamma code), i.e., the initial color temperature data. It should be noted that... Figure 6 x and y in the above need to be related to the above Figure 4 , Figure 5 The x and y values are distinguished, but the details will not be elaborated here. It should also be noted that the initial color temperature input data is the initial color temperature data of any grayscale level described above.
[0076] 203. When the initial color temperature data of the current gray level meets the preset gray level conditions, determine the initial chromaticity coordinate data and initial brightness data corresponding to the color temperature data of the current gray level according to the initial color temperature function, and obtain the initial color temperature value of the current gray level according to the initial chromaticity coordinate data and initial brightness data.
[0077] After determining the initial color temperature function, check whether the current grayscale level meets the preset grayscale conditions. If the preset grayscale conditions are met, proceed to step 203; otherwise, proceed to step 208.
[0078] Then, based on the initial color temperature function determined in the above steps, the initial chromaticity coordinate data and initial brightness data corresponding to the color temperature data of the current grayscale are determined, and the initial color temperature value of the current grayscale is obtained based on the initial chromaticity coordinate data and initial brightness data.
[0079] In one specific embodiment, it is necessary to determine the initial color temperature data for each grayscale level. First, it is determined whether the current grayscale level is greater than 255. If the current grayscale level is less than 255, then the initial color temperature data for the current grayscale level is determined to meet the preset grayscale condition. Therefore, the x, y, and lv values of the red, green, and blue hues for the current grayscale level are calculated using the initial color temperature function. Based on the aforementioned x, y, and lv values, the current color temperature x and y values are calculated using a color mixing formula. It is easy to understand that the x, y, and lv values obtained from the current red, green, and blue inputs are calculated using the initial color temperature function obtained in step 202, and then substituted into the color mixing formula to calculate the initial color temperature value. For example, the current red, green, and blue inputs refer to the values in the initial gamma table. For instance, if the current level is level 10, then the red, green, and blue input values are 640, 640, 640 (the 40th data point in the initial gamma table, where the red, green, and blue input values are consistent). Correspondingly, when the current red, green, and blue input values are 640, 640, 640, the tested values are x = 0.3, y = 0.31, and lv = 10.5. It's easy to understand that the preset grayscale condition is whether the grayscale value is greater than 255. Here, 255 is merely one specific embodiment, but not a limitation on the preset grayscale condition.
[0080] Based on the above embodiments, in another specific embodiment, the color mixing formula is:
[0081] ,
[0082] In this context, x and y on the left are the calculated color temperature xy values, which are the initial color temperature values. These are the x and y values for red, green, and blue, respectively, representing the initial color temperature data. These represent the brightness of red, green, and blue, respectively, which are the initial brightness data. These are the tristimulus values for black levels. It's easy to understand that tristimulus values are commonly used data in colorimetry to represent color intensity; the specific data for the tristimulus values for black levels will not be elaborated here.
[0083] Therefore, the initial color temperature value of the current grayscale can be determined based on the initial chromaticity coordinate data and initial luminance data described above. For ease of understanding and description, the color mixing formula will not be elaborated further hereafter.
[0084] 204. Set the target chromaticity coordinate data and target adjustment coefficients for all gray levels, and obtain the target color temperature table data for all corresponding gray levels based on the target chromaticity coordinate data and target adjustment coefficients.
[0085] In this embodiment, step 204 is the same as described above. Figure 1 Step 102 is similar and will not be elaborated here. It should be noted that the original input gamma code table test data can be obtained from step 201. Assume the tested gamma value is 2.4, and the color temperatures x and y are 0.3 and 0.31, respectively. The target gamma is 2.2, and the target color temperatures x and y are 0.283 and 0.297, respectively. Therefore, the original input gamma code table does not meet either the gamma requirement or the color temperature requirement. For easier understanding, please refer to [link to relevant documentation]. Figure 7 and Figure 8 .in, Figure 7 This is a comparison diagram of a gamma code table disclosed in an embodiment of this application. Figure 8 This is a comparison diagram of another gamma code table disclosed in an embodiment of this application. For Figure 7 and Figure 8 In other words, after a monitor has been adjusted, it outputs a target gamma code table with gamma=1.6 (the left side is the initial gamma code table, and the right side is the final determined gamma code table). That is, the left side contains the initial color temperature table data, and the right side contains the target color temperature table data. For example... Figure 8 As shown in the right box, the data in the sixth row of the initial color temperature chart is 64, 64, 64; the calculated target values are 101, 83, 97.
[0086] It should also be noted that step 203 or step 204 can be executed after step 205. The specific execution order will not be elaborated here.
[0087] 205. Determine the target color temperature function based on the target chromaticity coordinate data and the target color temperature data corresponding to all gray levels, and obtain the target chromaticity coordinate data of the current gray level based on the target color temperature function, so as to determine the target color temperature value of the current gray level based on the target chromaticity coordinate data.
[0088] The target color temperature function is determined based on the target color temperature data and target chromaticity coordinate data in the target color temperature table data from step 204. Therefore, the target chromaticity coordinate data of the current grayscale is obtained according to the target color temperature function, thereby determining the target color temperature value of the current grayscale.
[0089] In one specific embodiment, the target color temperature x and y values can be calculated using a target color temperature xy curve prediction algorithm, thus determining the target color temperature function. It's easy to understand that in practical applications, the horizontal axis is 0-255, and the vertical axis represents the x and y values, i.e., the target color temperature value. For easier understanding, please refer to [link to relevant documentation]. Figure 9 and Figure 10 . Figure 9 This is a diagram showing the relationship between target chromaticity coordinates x and y and the coordinates of gray levels 0-255, as disclosed in an embodiment of this application.
[0090] Specifically, based on the target color temperature table data determined in step 204 and its related color mixing formula, the following can be plotted: Figure 9 It should be noted that when applying the color mixing formula, the initial color temperature data needs to be replaced with the target color temperature data. The specific process will not be detailed here.
[0091] 206. Determine whether the initial color temperature value meets the target color temperature value of the current grayscale.
[0092] Once the initial color temperature value and the target color temperature value are obtained, it is necessary to determine whether the initial color temperature value of the current grayscale meets the target color temperature value.
[0093] If the initial color temperature value does not meet the target color temperature requirement, proceed to step 207. If it does meet the target color temperature requirement, no further adjustments are needed.
[0094] 207. If the initial color temperature value does not meet the target color temperature value of the current grayscale, adjust the initial color temperature value until the adjusted initial color temperature value meets the target color temperature value of the current grayscale.
[0095] When the initial color temperature value of the current grayscale does not meet the target color temperature value of the current grayscale, the initial color temperature value needs to be adjusted until the adjusted initial color temperature value meets the target color temperature value of the current grayscale.
[0096] In one specific embodiment, if the initial color temperature value of the current grayscale does not meet the target color temperature value, a new red, green, and blue input is calculated using a color temperature adjustment algorithm. It's easy to understand that the color temperature adjustment algorithm recalculates the color temperature xy value by fine-tuning the red, green, and blue inputs; this color temperature xy value is the target color temperature value. Specifically, reducing the blue input increases the color temperature xy; increasing the red input increases the color temperature x; and increasing the green input increases the color temperature y.
[0097] Based on the above embodiments, in another specific embodiment, since any gray level corresponds to the color temperature data of red sub-pixels, green sub-pixels and blue sub-pixels, the initial color temperature value includes a first color temperature value x and a second color temperature value y.
[0098] Therefore, if the first and second color temperature values of the initial color temperature are both less than the first and second color temperature values of the target color temperature value of the current grayscale, the color temperature data corresponding to the blue sub-pixel is reduced to increase the first and second color temperature values of the initial color temperature.
[0099] If the first color temperature value of the initial color temperature is less than the first color temperature value of the target color temperature value of the current grayscale, increase the color temperature data corresponding to the red sub-pixel to increase the first color temperature value of the initial color temperature.
[0100] If the second color temperature value of the initial color temperature value is less than the second color temperature value of the target color temperature value of the current grayscale, increase the color temperature data corresponding to the green sub-pixel to increase the second color temperature value of the initial color temperature value.
[0101] Based on the above embodiments, in another specific embodiment, after adjusting the x and y values, gamma (i.e., the target control coefficient set in step 205) can be adjusted. Furthermore, since gamma and brightness (lv) have a formulaic relationship, specifically...
[0102] ,
[0103] The relationship of brightness can be found in the brightness formula in step 202, which will not be elaborated here.
[0104] Therefore, once the brightness is obtained, it can be adjusted, thus realizing all the adjustment processes for the display.
[0105] 208. When the initial color temperature data of the current grayscale does not meet the preset grayscale conditions, set the color temperature data of the grayscale that does not meet the preset grayscale conditions on the display as the target color temperature data.
[0106] When the current grayscale level is greater than 255, the color temperature data that does not meet the preset grayscale conditions is set as the target color temperature data, thus outputting a new red-green-blue gamma code table. It is easy to understand that the gamma code table at this time satisfies both the target gamma and the target color temperature xy curve function.
[0107] The color temperature adjustment method disclosed in this embodiment improves the accuracy of display and screen color temperature. Without using the display chip to control the red, green and blue gain, this invention adjusts gamma and adjusts the color temperature at a single level, solving the problem of inaccurate color temperature at a certain level caused by using the display chip to control the red, green and blue gain. It achieves precise adjustment at each level and improves the accuracy of screen color temperature.
[0108] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0109] If the plan involves sensitive information (such as user information or corporate information), it should state that the collection, use and processing of sensitive information must comply with the laws, regulations and standards of the relevant countries and regions, and must be carried out with the permission or consent of the relevant entities (such as users or enterprises).
[0110] Please see Figure 10 , Figure 10 This is a schematic diagram of the structure of a color temperature adjustment system for a display disclosed in an embodiment of this application.
[0111] The receiving unit 1001 is used to receive display frame image data when the display is displaying an image; wherein, the display frame image data includes the initial color temperature table data of the display, and the initial color temperature table data includes the initial color temperature data of any gray level.
[0112] Setting unit 1002 is used to set the target chromaticity coordinate data and target adjustment coefficients for all gray levels, and to obtain the target color temperature table data for all gray levels based on the target chromaticity coordinate data and target adjustment coefficients. The target color temperature table data includes the target color temperature data for any gray level.
[0113] The adjustment unit 1003 is used to adjust the initial color temperature data in the initial color temperature table data according to the target color temperature table data, so that the target color temperature data of the display meets the target color temperature table data.
[0114] For example, the system further includes: a computing unit 1004;
[0115] The calculation unit 1004 is used to perform fitting calculations on the initial chromaticity coordinate data, initial luminance data, and initial color temperature table data to determine the initial color temperature function; wherein, the initial color temperature function is used to indicate that the initial color temperature data has a functional relationship with the initial chromaticity coordinate data and the initial luminance data, respectively.
[0116] For example, the system further includes: a determining unit 1005 and an acquiring unit 1006;
[0117] The determining unit 1005 is used to determine the initial chromaticity coordinate data and initial brightness data corresponding to the color temperature data of the current gray level according to the initial color temperature function when the initial color temperature data of the current gray level meets the preset gray level conditions.
[0118] The acquisition unit 1006 is used to acquire the initial color temperature value of the current grayscale based on the initial chromaticity coordinate data and the initial brightness data.
[0119] For example, the system also includes:
[0120] The setting unit is also used to set the color temperature data of the grayscale that does not meet the preset grayscale conditions of the display as the target color temperature data when the initial color temperature data of the current grayscale does not meet the preset grayscale conditions.
[0121] For example, the system also includes:
[0122] The determining unit 1005 is also used to determine the target color temperature function based on the target chromaticity coordinate data and the target color temperature data corresponding to all gray levels; wherein, the target color temperature function is used to indicate that there is a functional relationship between the target color temperature data and the target chromaticity coordinate data;
[0123] The acquisition unit 1006 is also used to acquire the target chromaticity coordinate data of the current grayscale according to the target color temperature function, and to determine the target color temperature value of the current grayscale according to the target chromaticity coordinate data.
[0124] For example, the system further includes: a judgment unit 1007;
[0125] Judgment unit 1007 is used to determine whether the initial color temperature value meets the target color temperature value of the current grayscale;
[0126] The adjustment unit 1003 is specifically used to adjust the initial color temperature value when the initial color temperature value does not meet the target color temperature value of the current gray level, until the adjusted initial color temperature value meets the target color temperature value of the current gray level.
[0127] For example, the initial color temperature data of any gray level includes the color temperature data corresponding to the red sub-pixel, the green sub-pixel and the blue sub-pixel, and the initial color temperature value includes the first color temperature value and the second color temperature value. The system also includes: an execution unit 1008.
[0128] The execution unit 1008 is used to reduce the color temperature data corresponding to the blue sub-pixel when the first color temperature value and the second color temperature value of the initial color temperature value are both less than the first color temperature value and the second color temperature value in the target color temperature value of the current gray level, so as to increase the first color temperature value and the second color temperature value of the initial color temperature value.
[0129] Alternatively, the execution unit 1008 is further configured to increase the color temperature data corresponding to the red sub-pixel when the first color temperature value of the initial color temperature value is less than the first color temperature value in the target color temperature value of the current grayscale, so as to increase the first color temperature value of the initial color temperature value.
[0130] Alternatively, the execution unit 1008 is further configured to increase the color temperature data corresponding to the green sub-pixel when the second color temperature value of the initial color temperature value is less than the second color temperature value in the target color temperature value of the current grayscale, so as to increase the second color temperature value of the initial color temperature value.
[0131] Please refer to the following: Figure 11 The schematic diagram of a color temperature adjustment device for a display disclosed in this application includes:
[0132] Central processing unit 1101, memory 1105, input / output interface 1104, wired or wireless network interface 1103, and power supply 1102;
[0133] Memory 1105 is either a short-term storage memory or a persistent storage memory;
[0134] The central processing unit 1101 is configured to communicate with the memory 1105 and execute instructions stored in the memory 1105 to perform the aforementioned operations. Figure 1 or Figure 2 The method in the illustrated embodiment.
[0135] This application also provides a chip system, characterized in that the chip system includes at least one processor and a communication interface, the communication interface and the at least one processor are interconnected via a circuit, and the at least one processor is used to run computer programs or instructions to perform the aforementioned... Figure 5 The method in the illustrated embodiment.
[0136] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0137] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between apparatuses or units through some interfaces, and may be electrical, mechanical, or other forms.
[0138] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0139] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0140] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
Claims
1. A method for adjusting the color temperature of a display, characterized in that, The method includes: The display frame image data received by the display during image display includes the initial gamma code table of the display. The initial gamma code table is an initial color temperature table containing the input values of red, green, and blue sub-pixels at all gray levels, used to reflect the original color temperature characteristics of the display at the time of manufacture. Set the target chromaticity coordinate data and target adjustment coefficients for all gray levels. Based on the target chromaticity coordinate data and the target adjustment coefficients, calculate and generate the target gamma code table corresponding to all gray levels using the target color temperature gamma algorithm. The target adjustment coefficient is the target gamma value. The target gamma code table is the target color temperature table data containing the target red, green, and blue sub-pixel input values that meet the target color temperature requirements for all gray levels. For each current gray level, the initial color temperature data in the initial color temperature table data is adjusted according to the target color temperature table data so that the color temperature of the display meets the target color temperature requirement at all gray levels. The display frame image data also includes initial chromaticity coordinate data and initial brightness data corresponding to all gray levels, and the method further includes: The initial color temperature function is determined by fitting the initial chromaticity coordinate data, the initial brightness data, and the initial color temperature table data; wherein, the initial color temperature function is used to indicate that there is a functional relationship between the initial color temperature data and the initial chromaticity coordinate data and the initial brightness data, respectively. After fitting and calculating the initial color temperature function using the initial chromaticity coordinate data, the initial luminance data, and the initial color temperature table data, the method further includes: When the initial color temperature data of the current gray level meets the preset gray level conditions, the initial chromaticity coordinate data and the initial brightness data corresponding to the color temperature data of the current gray level are determined according to the initial color temperature function. Based on the initial chromaticity coordinate data and the initial luminance data, the initial color temperature value of the current grayscale is obtained; wherein, adjusting the initial color temperature data in the initial color temperature table data according to the target color temperature table data refers to adjusting the initial color temperature value.
2. The color temperature adjustment method according to claim 1, characterized in that, The method further includes: When the initial color temperature data of the current grayscale does not meet the preset grayscale condition, the color temperature data of the grayscale that does not meet the preset grayscale condition of the display is set as the target color temperature data.
3. The color temperature adjustment method according to claim 1, characterized in that, Before adjusting the initial color temperature data in the initial color temperature table data according to the target color temperature table data, the method further includes: A target color temperature function is determined based on the target chromaticity coordinate data and the target color temperature data corresponding to all gray levels; wherein, the target color temperature function is used to indicate that there is a functional relationship between the target color temperature data and the target chromaticity coordinate data; The target chromaticity coordinate data of the current grayscale is obtained according to the target color temperature function, and the target color temperature value of the current grayscale is determined according to the target chromaticity coordinate data.
4. The color temperature adjustment method according to claim 3, characterized in that, The step of adjusting the initial color temperature data in the initial color temperature table data according to the target color temperature table data includes: Determine whether the initial color temperature value meets the target color temperature value of the current grayscale; If the initial color temperature value does not meet the target color temperature value of the current grayscale, adjust the initial color temperature value until the adjusted initial color temperature value meets the target color temperature value of the current grayscale.
5. The color temperature adjustment method according to claim 1, characterized in that, The initial color temperature data for any grayscale level includes color temperature data corresponding to red, green, and blue sub-pixels. The initial color temperature value includes a first color temperature value and a second color temperature value. Adjusting the initial color temperature data in the initial color temperature table data according to the target color temperature table data includes: If both the first and second color temperature values of the initial color temperature value are less than the first and second color temperature values of the target color temperature value of the current grayscale, the color temperature data corresponding to the blue sub-pixel is reduced to increase the first and second color temperature values of the initial color temperature value. Alternatively, if the first color temperature value of the initial color temperature value is less than the first color temperature value in the target color temperature value of the current grayscale, the color temperature data corresponding to the red sub-pixel is increased to increase the first color temperature value of the initial color temperature value; Alternatively, if the second color temperature value of the initial color temperature value is less than the second color temperature value in the target color temperature value of the current grayscale, the color temperature data corresponding to the green sub-pixel is increased to increase the second color temperature value of the initial color temperature value.
6. A color temperature adjustment system for a display, characterized in that, The system includes: The receiving unit is used to receive display frame image data when the display is displaying an image; wherein, the display frame image data includes the initial gamma code table of the display; the initial gamma code table is an initial color temperature table data containing the input values of red, green and blue sub-pixels under all gray levels, used to reflect the original color temperature characteristics of the display when it leaves the factory. The setting unit is used to set the target chromaticity coordinate data and target adjustment coefficients for all gray levels, and to calculate and generate a target gamma code table corresponding to all gray levels based on the target chromaticity coordinate data and the target adjustment coefficients using a target color temperature gamma algorithm; wherein, the target adjustment coefficient is the target gamma value; and the target gamma code table is target color temperature table data containing the target red, green, and blue sub-pixel input values that meet the target color temperature requirements for all gray levels. An adjustment unit is used to adjust the initial color temperature data in the initial color temperature table data according to the target color temperature table data for each current gray level, so that the color temperature of the display meets the target color temperature requirement at all gray levels. The system also includes: a computing unit; The calculation unit is used to perform fitting calculations on the initial chromaticity coordinate data, initial luminance data, and initial color temperature table data to determine the initial color temperature function; wherein, the initial color temperature function is used to indicate that there is a functional relationship between the initial color temperature data and the initial chromaticity coordinate data and the initial luminance data, respectively; The system also includes: a determination unit and an acquisition unit; The determining unit is used to determine the initial chromaticity coordinate data and initial brightness data corresponding to the color temperature data of the current gray level according to the initial color temperature function when the initial color temperature data of the current gray level meets the preset gray level conditions. The acquisition unit is used to acquire the initial color temperature value of the current grayscale based on the initial chromaticity coordinate data and the initial brightness data; wherein, adjusting the initial color temperature data in the initial color temperature table data according to the target color temperature table data refers to adjusting the initial color temperature value.
7. A color temperature adjustment device for a display, characterized in that, The device includes: Central processing unit, memory, input / output interfaces, wired or wireless network interfaces, and power supply; The memory is either a short-term storage memory or a persistent storage memory; The central processing unit is configured to communicate with the memory and execute instructions in the memory to perform the color temperature adjustment method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes instructions that, when executed on a computer, cause the computer to perform the color temperature adjustment method as described in any one of claims 1 to 5.