CN116033133B - Color correction method, storage medium and related device - Google Patents

Color correction method, storage medium and related device Download PDF

Info

Publication number
CN116033133B
CN116033133B CN202111236333.0A CN202111236333A CN116033133B CN 116033133 B CN116033133 B CN 116033133B CN 202111236333 A CN202111236333 A CN 202111236333A CN 116033133 B CN116033133 B CN 116033133B
Authority
CN
China
Prior art keywords
value
sub
digital driving
color
brightness
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111236333.0A
Other languages
Chinese (zh)
Other versions
CN116033133A (en
Inventor
李永胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN202111236333.0A priority Critical patent/CN116033133B/en
Publication of CN116033133A publication Critical patent/CN116033133A/en
Application granted granted Critical
Publication of CN116033133B publication Critical patent/CN116033133B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The application provides a color correction method, a storage medium and related equipment, and belongs to the technical field of display. The method comprises the following steps: acquiring each first digital driving value in a first table, and determining each first sub-brightness value corresponding to each first digital driving value; determining a digital driving sub-value corresponding to the first sub-luminance value according to the first sub-luminance value and the mapping relation corresponding to the luminance interval in which the first sub-luminance value is located; determining a second digital driving value corresponding to the first digital driving value according to the digital driving sub-value corresponding to each first sub-brightness value of the first digital driving value; constructing a second table according to the second digital driving values corresponding to the first digital driving values; and correcting the color of the display picture when the second table meets the preset condition. In the application, the piecewise function is adopted to replace the fitting of the whole section of polynomial, so that the RGB and the brightness of the display equipment are closer to the original value, thereby reducing larger errors caused by the fitting of the polynomial and improving the color correction effect.

Description

Color correction method, storage medium and related device
Technical Field
The present application relates to the field of display technologies, and in particular, to a color correction method, a storage medium, and related devices.
Background
Before the display device leaves the factory, color correction needs to be performed on the display device.
Currently, a polynomial tone curve model method can be used for color correction. The model method of the tone curve of the polynomial requires color correction by fitting the least squares method to the polynomial.
But in practice this fit introduces a large error, making the correction of the color less effective.
Disclosure of Invention
The application provides a color correction method, a storage medium and related equipment, which are used for solving the problem of poor color correction effect.
In a first aspect, the present application provides a color correction method, including:
Acquiring each first digital driving value in a first table, and determining each first sub-brightness value corresponding to each first digital driving value, wherein the first sub-brightness value corresponding to the first digital driving value comprises a red brightness value, a green brightness value and a blue brightness value;
Determining a digital driving sub-value corresponding to the first sub-luminance value according to the first sub-luminance value and a mapping relation corresponding to a luminance interval in which the first sub-luminance value is located, wherein the mapping relation corresponding to different luminance intervals is different, the mapping relation is a mapping relation between the sub-luminance value included in the luminance interval and the digital driving sub-value, and the digital driving sub-value is a digital driving R value, a digital driving G value or a digital driving B value;
Determining a second digital driving value corresponding to the first digital driving value according to the digital driving sub-value corresponding to each first sub-brightness value of the first digital driving value;
Constructing a second table according to the second digital driving value corresponding to each first digital driving value;
and correcting the color of the display picture when the second table meets the preset condition.
In an embodiment, before the step of determining the first sub-luminance value and the mapping relationship corresponding to the luminance interval in which the first sub-luminance value is located, the method further includes:
Obtaining an upper limit brightness value and a lower limit brightness value of each brightness interval;
determining a mapping relation corresponding to each brightness interval according to a preset relation, an upper limit brightness value and a lower limit brightness value of each brightness interval;
and correlating the mapping relation corresponding to the brightness interval.
In an embodiment, before the step of obtaining the upper limit luminance value and the lower limit luminance value of each luminance section, the method further includes:
Collecting a first sub-stimulus value of each channel under each preset digital driving value corresponding to the channel, wherein the channels comprise a red single channel, a green single channel, a blue single channel and a gray scale channel, and the first sub-stimulus values comprise a red stimulus value, a green stimulus value and a blue stimulus value;
determining a target brightness value corresponding to the color temperature to be corrected;
Determining the ratio of each first sub-stimulus value to the target brightness value as a second sub-brightness value corresponding to each first sub-stimulus value;
compensating the second sub-brightness value of each first sub-stimulus value to obtain a third sub-brightness value corresponding to each color space sub-value;
and constructing a plurality of brightness intervals corresponding to each channel according to the third sub-brightness values, wherein the upper limit brightness value and the lower limit brightness value of the brightness interval corresponding to the channel are two third sub-brightness values adjacent to each other in numerical value corresponding to the channel.
In an embodiment, the step of compensating the second sub-luminance value of each of the first sub-stimulus values comprises:
determining the sum of the second sub-brightness values corresponding to the preset digital driving value to obtain a fourth sub-brightness value, and obtaining gray-scale brightness corresponding to the preset digital driving value;
Determining a difference between the fourth sub-luminance value and the grayscale luminance;
And compensating each second sub-brightness value according to the difference value corresponding to the second sub-brightness value and the compensation relation.
In an embodiment, the step of determining a target luminance value corresponding to the color temperature to be corrected includes:
Obtaining theoretical white point color coordinates corresponding to the color temperature to be corrected;
determining actual white point color coordinates corresponding to two adjacent numerical preset digital driving values according to first sub-stimulus values of the two adjacent numerical preset digital driving values of each channel;
Determining an error between each of the actual white point color coordinates and the theoretical white point color coordinates;
And determining a target brightness value according to the actual white point color coordinates corresponding to the errors in the preset error range.
In an embodiment, the step of correcting the color of the display screen when the second table meets a preset condition includes:
Determining a first chrominance value corresponding to the first digital driving value;
displaying a graphic card corresponding to the second table, collecting a spectrum tristimulus value of a second digital driving value corresponding to the first digital driving value in the graphic card, and obtaining a second chromaticity value corresponding to the second digital driving value according to the spectrum tristimulus value;
Determining a color difference from the first chrominance value and the second chrominance value;
and correcting the color of the display picture when the second table meets the preset condition when the color difference is smaller than the preset color difference.
In an embodiment, after the step of determining the color difference according to the first chrominance value and the second chrominance value, the method further comprises:
when the color difference is larger than or equal to a preset color difference, a first color coordinate of a red channel under a preset digital driving X value, a second color coordinate of a green channel under a preset digital driving Y value and a third color coordinate of a blue channel under a preset digital driving Z value are obtained, wherein the preset digital driving X value, the digital driving Y value and the digital driving Z value are equal in value;
constructing a triangle according to the first color coordinate, the second color coordinate and the third color coordinate;
determining the color gamut coverage rate according to the overlapping area between the constructed triangle and the preset triangle;
And when the determined color gamut coverage does not match the preset color gamut coverage, generating failure information of color correction, wherein the failure information is used for indicating that the failure of the color correction is related to the color gamut coverage.
In one embodiment, the step of determining the first sub-luminance value corresponding to each of the first digital driving values includes:
Acquiring a preset feature matrix, and determining a second sub-stimulus value corresponding to each first digital driving value;
And determining each first sub-brightness value corresponding to each first digital driving value according to the feature matrix and the second sub-stimulus value corresponding to the first spectrum stimulus value.
In a second aspect, the present application also provides a color correction device, including:
The device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring each first digital driving value in a first table and determining each first sub-brightness value corresponding to each first digital driving value, wherein the first sub-brightness value corresponding to the first digital driving value comprises a red brightness value, a green brightness value and a blue brightness value;
The determining module is configured to determine a digital driving sub-value corresponding to the first sub-luminance value according to the first sub-luminance value and a mapping relationship corresponding to a luminance interval in which the first sub-luminance value is located, where the mapping relationship corresponding to different luminance intervals is different, the mapping relationship is a mapping relationship between the sub-luminance value included in the luminance interval and the digital driving sub-value, and the digital driving sub-value is a digital driving R-value, a digital driving G-value or a digital driving B-value;
The determining module is further configured to determine a second digital driving value corresponding to the first digital driving value according to the digital driving sub-value corresponding to each first sub-luminance value of the first digital driving value;
the construction module is used for constructing a second table according to the second digital driving values corresponding to the first digital driving values;
and the correction module is used for correcting the color of the display picture when the second table meets the preset condition.
In a third aspect, the present application also provides a color correction apparatus, comprising: a memory and a processor;
the memory stores computer-executable instructions;
The processor executes the computer-executable instructions stored in the memory to cause the control device of the internet of things device to perform the color correction method as described above.
In a fourth aspect, the present application also provides a computer-readable storage medium having stored therein computer-executable instructions for implementing the color correction method as described above when executed by a processor.
In a fifth aspect, the present application also provides an electronic device having stored therein computer-executable instructions for implementing the color correction method as described above when executed by a processor.
The color correction method, the storage medium and the related equipment provided by the application are characterized in that each first digital driving value of a pixel point is obtained in a first table, each first sub-brightness value corresponding to each first digital driving value is determined, the digital driving sub-value corresponding to the first sub-brightness value is determined according to the first sub-brightness value and the mapping relation corresponding to the brightness interval where the first sub-brightness value is located, the second digital driving value corresponding to the first digital driving value is determined based on the digital driving sub-value corresponding to each first sub-brightness value of the first digital driving value, so that a second table is constructed according to the second digital driving value corresponding to each first digital driving value, the preset condition is met in the second table, and the color correction is carried out on a display picture. In the application, the digital driving value in the second table for color correction is determined based on the mapping relation corresponding to different brightness intervals, namely, the piecewise function is adopted to replace the fitting of the whole section of polynomial, so that the RGB and brightness of the display equipment are closer to the original value, thereby reducing larger error caused by the fitting of the polynomial and improving the color correction effect.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flowchart of a color correction method according to a first embodiment of the present application;
FIG. 2 is a flowchart of a color correction method according to a second embodiment of the present application;
FIG. 3 is a flowchart of a color correction method according to a third embodiment of the present application;
FIG. 4 is a detailed flowchart of step S120 in a fourth embodiment of the color correction method according to the present application;
FIG. 5 is a detailed flowchart of step S110 in a fifth embodiment of the color correction method according to the present application;
FIG. 6 is a detailed flowchart of step S50 in a sixth embodiment of the color correction method according to the present application;
FIG. 7 is a schematic diagram of a functional module of a color correction device according to the present application;
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Specific embodiments of the present disclosure have been shown by way of the above drawings and will be described in more detail below. These drawings and the written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the disclosed concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
It should be noted that the present disclosure is not limited to all the alternative embodiments, and those skilled in the art who review this disclosure will recognize that any combination of the features may be used to construct the alternative embodiments as long as the features are not mutually inconsistent.
For example, in one embodiment of the third example, one technical feature is described: the device may compensate the second sub-luminance value based on the luminance compensation value obtained by the channel corresponding to the second sub-luminance, so as to obtain a third luminance value corresponding to the sub-color coordinate, where in one implementation manner of the fourth embodiment, another technical feature is described: and compensating each second sub-brightness value according to the difference value corresponding to the second sub-brightness and the compensation relation. Since the above two features are not contradictory, a person skilled in the art will recognize after reading the present specification that an embodiment having both features is also an alternative embodiment, i.e. the second sub-luminance value may be compensated by the luminance compensation value or by the difference value and the compensation relation corresponding to the second sub-luminance.
The technical features described in the different embodiments, which are not mutually contradictory, can also be arbitrarily combined to form alternative embodiments.
For example, in the third embodiment, it is described that: brightness compensation value. This feature is not described in the fifth and sixth embodiments for the sake of controlling the spread of the present description. However, it should be appreciated by those skilled in the art after reading the present specification that the color correction method provided by the fifth and sixth embodiments may also include this feature.
The following describes embodiments of the present application in detail.
Referring to fig. 1, fig. 1 is a first embodiment of the color correction method according to the present application, the color correction method includes the following steps:
Step S10, obtaining each first digital driving value in the first table, and determining each first sub-luminance value corresponding to each first digital driving value, wherein the first sub-luminance value corresponding to the first digital driving value comprises a red luminance value, a green luminance value and a blue luminance value.
In the present embodiment, the execution subject is a color correction device, and for convenience of description, the device will be referred to as a color correction device hereinafter.
The device stores a first table, the first table is composed of digital driving values, and the digital driving values are R, G, B values. The digital drive values in the first table are defined as first digital drive values. The first digital drive value is represented by digital drive value D i (r, g, b) where r is the digital drive X value, g is the digital drive Y value, and b is the digital drive Z value in D i (r, g, b).
The device acquires first sub-brightness corresponding to each first digital driving value, wherein the first sub-brightness corresponding to each first digital driving value comprises a red brightness value, a green brightness value and a blue brightness value. The first digital drive value corresponds to a luminance value Y comprising three first sub-luminance values, i.e. Y is denoted (Y r、Yg、Yb).
Specifically, the device acquires a preset feature matrix, wherein the feature matrix is 3*3 matrices. The device acquires the sub-stimulus value corresponding to the first digital drive value, and the device can acquire the sub-stimulus value under the first digital drive value through the color analyzer. The sub-stimulus value corresponding to the first digital driving value is defined as a second sub-stimulus value, and the second sub-stimulus value is a red stimulus value, a green stimulus value and a blue stimulus value, that is, the second sub-stimulus value is X, Y, Z in CIEXYZ. The relationship between the second sub-stimulus value and the luminance value is:
wherein matrix/> Describing a linear transformation relation between brightness values and XYZ chromaticity space, wherein a matrix A is a feature matrix, and the spatial linear transformation relation is specifically referred to in a table-1:
TABLE-1
R G B X Y Z
255 0 0 Xr Yr Zr
0 255 0 Xg Yg Zg
0 0 255 Xb Yb Zb
255 255 255 X Y Z
The device obtains the sub-stimulus values corresponding to the digital drive values and the brightness values corresponding to the sub-stimulus values to obtain the feature matrix A, and then the device stores the feature matrix as a preset feature matrix.
After the device acquires the feature matrix, each first sub-luminance corresponding to each first digital driving value can be determined through the feature matrix and the second sub-stimulus value, namely each first sub-luminance corresponding to the first digital driving value is determined through the relation.
Step S20, determining a digital driving sub-value corresponding to the first sub-luminance value according to the first sub-luminance value and a mapping relation corresponding to a luminance interval in which the first sub-luminance value is located, wherein the mapping relation corresponding to different luminance intervals is different, the mapping relation is a mapping relation between the sub-luminance value included in the luminance interval and the digital driving sub-value, and the digital driving sub-value is a digital driving R value, a digital driving G value or a digital driving B value.
In this embodiment, the device stores a luminance section, where the luminance section includes a green luminance section, a red luminance section, and a blue luminance section, and the green luminance section, the red luminance section, and the blue luminance section are all plural. Each brightness interval is associated with a mapping relation, the mapping relation of the association of different brightness intervals is different, the mapping relation is a mapping relation between a sub-brightness value and a digital driving sub-value of the brightness interval, and the digital driving sub-value is a digital driving R value, a digital driving G value and a digital driving B value. For example, the mapping relationship of the green luminance section association is the mapping relationship between the green luminance value and the digital drive G value. The mapping relationship may be expressed as D i=aYi n, where D i is a driving value of R, G or B, and a and n are constants. And if the brightness intervals are different, a and n in the mapping relation are different.
The device determines a mapping relation corresponding to a brightness interval where each first sub-brightness value is located, so that a digital driving sub-value D i corresponding to the first sub-brightness value is obtained based on the mapping relation corresponding to the first sub-brightness value and the first sub-brightness value.
Step S30, determining a second digital driving value corresponding to the first digital driving value according to the digital driving sub-value corresponding to each first sub-luminance value of the first digital driving value.
The first digital drive value corresponds to three first sub-luminance values, each first sub-luminance value corresponding to one digital drive sub-value, whereby the first digital drive value corresponds to three digital drive sub-values, the three digital drive sub-values constituting a new digital drive value, the new digital drive value being defined as the second digital drive value.
The device may determine the second digital driving value corresponding to the first digital driving value of the part of the first table, and the second digital driving value corresponding to the remaining first digital driving value in the first table may be obtained by performing interpolation calculation on each of the first determined second digital driving values.
Step S40, a second table is constructed according to the second digital driving values corresponding to the first digital driving values.
Each first digital driving value in the first table can be used for constructing a second table corresponding to the first table through a second digital driving value corresponding to each first digital driving value. The first table and the second table may be combined, and the combined table is, for example, table-2:
Table-2:
R G B R’ G’ B’
255 255 255 249 253 255
230 230 230 222 225 226
209 209 209 201 204 205
1 86 186 186 178 180 181
158 158 158 149 152 151
115 82 66 99 80 64
194 150 130 175 147 123
94 122 156 95 113 148
89 107 66 86 102 64
130 128 176 122 119 169
99 189 168 121 182 161
217 120 41 190 122 45
74 92 163 74 81 155
194 84 97 165 85 92
92 61 107 79 57 100
158 186 64 156 184 64
230 161 46 206 162 50
51 61 150 53 49 142
71 148 71 89 143 68
176 48 59 147 57 58
237 199 33 219 200 42
186 84 145 159 81 138
0 133 163 65 123 155
Wherein R, G, B is the first digital drive value in the first table, and R ', G ', B ' are the second digital drive values in the second table. It should be noted that, in the present embodiment, only the portion R, G, B in the first table and the portions R ', G ', B ' in the second table are shown.
Step S50, when the second table meets the preset condition, correcting the color of the display picture.
After the device obtains the second table, it can verify whether R ', G ', B ' in the second table can accurately correct the display screen. Specifically, the device displays the graphics card corresponding to R ', G ', and B ' in the second table, then collects XYZ values of the graphics card, and calculates chromaticity values corresponding to XYZ. The device then directly calculates XYZ values through R, G, B in the first table, and chromaticity values through XYZ values. And determining the color difference through the two chromatic values, and if the color difference is smaller than the preset color difference, correcting the display screen accurately by R ', G ' and B ' in the second table.
It should be noted that the second table may be composed of R ', G ', and B ' corresponding to all RGB, that is, the device may establish a 3D display lookup table based on the second table, so as to correct the color of the display screen based on the 3D display lookup table. Meanwhile, the device adopts R ', G ' and B ' of parts in the two tables to display the graphic card. The second table may be composed of R ', G', and B 'corresponding to part of RGB, and at this time, the device constructs a 3D display lookup table containing R', G ', and B' corresponding to all RGB through all RGB and step S20-step S30, and corrects the color of the display screen based on the 3D display lookup table.
In the technical solution provided in this embodiment, each first digital driving value of a pixel point is obtained in a first table, each first sub-luminance value corresponding to each first digital driving value is determined, the digital driving sub-value corresponding to the first sub-luminance value is determined according to the first sub-luminance value and the mapping relation corresponding to the luminance interval in which the first sub-luminance value is located, and the second digital driving value corresponding to the first digital driving value is determined based on the digital driving sub-value corresponding to each first sub-luminance value of the first digital driving value, so that a second table is constructed according to the second digital driving value corresponding to each first digital driving value, and a preset condition is satisfied in the second table, so as to perform color correction on a display picture. In the application, the digital driving value in the second table for color correction is determined based on the mapping relation corresponding to different brightness intervals, namely, the piecewise function is adopted to replace the fitting of the whole section of polynomial, so that the RGB and brightness of the display equipment are closer to the original value, thereby reducing larger error caused by the fitting of the polynomial and improving the color correction effect.
Referring to fig. 2, fig. 2 is a diagram showing a second embodiment of the color correction method according to the present application, based on the first embodiment, before step S20, further including:
Step S60, obtaining the upper limit brightness value and the lower limit brightness value of each brightness interval.
Step S70, determining the mapping relation corresponding to each brightness interval according to the preset relation, the upper limit brightness value and the lower limit brightness value of each brightness interval.
Step S80, the brightness interval and the mapping relation corresponding to the brightness interval are correlated.
In this embodiment, the mapping relation of the brightness interval association needs to be calculated.
Specifically, a preset relationship is stored in the device, and the preset relationship is a power function D i=aYi n, where (i=r, g, b), D i is a driving value of R, G, B, and a and n are coefficients to be solved. Y i is the luminance value corresponding to the channel of R, G, B. The device obtains an upper limit brightness value and a lower limit brightness value of a brightness interval, the upper limit brightness value and the lower limit brightness value are substituted into a preset relation to obtain two binary n-time equations, and the two equations can be solved to obtain coefficients a and n, so that a mapping relation can be obtained. The device stores the mapping relation and the brightness interval in an associated mode. The upper limit luminance value and the lower limit luminance value of the different luminance sections are different, and therefore, the mapping relationship associated with the different luminance sections is also different.
In this embodiment, the device obtains the upper limit luminance value and the lower limit luminance value of each luminance interval, and determines the mapping relationship corresponding to each luminance interval according to the preset relationship and the upper limit luminance value and the lower limit luminance value of each luminance interval, so as to correlate the luminance intervals and the mapping relationship corresponding to the luminance intervals, so as to facilitate color correction.
Referring to fig. 3, fig. 3 is a third embodiment of the color correction method according to the present application, and before step S60, further includes:
Step S90, collecting first sub-stimulus values of each channel under each preset digital driving value corresponding to the channel, wherein the channel comprises a red single channel, a green single channel, a blue single channel and a gray scale channel, and the first sub-stimulus values comprise a red stimulus value, a green stimulus value and a blue stimulus value.
In this embodiment, the device needs to perform data acquisition when determining the brightness interval. Specifically, the device needs to collect a first sub-stimulus value of the channel at a preset digital drive value. The channels include red, green, blue, and gray scale channels. The first sub-stimulus value includes a red stimulus value, a green stimulus value, and a blue stimulus value. Taking the step setp=32 as an example, the device sets a plurality of preset digital driving values under the channel. For example, the red stimulus value of the red single channel ranges from 0to 255, the digital driver values corresponding to the green single channel and the blue single channel are 0, and the step size is 32, and the digital driver R values of the red single channel are 0, 32, 64, 96, 128, 160, 192, 224 and 255, that is, the respective preset digital driver values corresponding to the red single channel are (0, 0), (32,0,0), (64, 0), (96,0,0), (128,0,0), (160,0,0), (192,0,0), (224,0,0) and (255, 0); similarly, the respective preset digital driving values corresponding to the green single channel are (0, 0), (0, 32, 0), (0, 64, 0), (0, 96, 0), (0, 128, 0), (0, 160,0), (0, 192,0), (0, 224,0) and (0, 255, 0), the respective preset digital driving values corresponding to the blue single channel are (0, 0), (0, 32), (0, 64), (0, 96), (0, 128), (0, 160), (0, 192), (0, 224), and (0, 255); in the gray-scale channel, r=g=b, and thus, each preset digital driving value corresponding to the gray-scale channel is 0, 0), (32, 32, 32), (64, 64, 64), (96, 96, 96), (128, 128, 128), (160, 160, 160), (192, 192, 192), (224, 224, 224), and (255, 255, 255).
The device collects first sub-stimulus values of each channel under each preset digital drive value corresponding to the channel.
Step S100, determining a target brightness value corresponding to the color temperature to be corrected.
The device needs to determine the color temperature to be corrected so that a luminance value at the color temperature, which is defined as a target luminance value, can be determined. The target luminance value serves as a normalization parameter. The first sub-stimulus value is XYZ, that is, the first sub-stimulus value includes a red stimulus value, a green stimulus value, and a blue stimulus value.
Step S110, determining the ratio of each first sub-stimulus value to the target brightness value as a second sub-brightness value corresponding to each first sub-stimulus value.
The device divides each first sub-stimulus value by the target brightness value to obtain a second sub-brightness value corresponding to each first sub-stimulus value, namely, the ratio of each first sub-stimulus value to the target brightness value is determined as the second sub-brightness value corresponding to each first sub-stimulus value.
And step S120, compensating the second sub-brightness value of each first sub-stimulus value to obtain a fourth sub-brightness value corresponding to each first sub-stimulus value.
The data collected above are referred to table-3:
TABLE-3
R G B X Y Z
0 0 0 0.120643 0.113548 0.211699
32 0 0 1.703956 0.931506 0.295193
64 0 0 6.990621 3.65853 0.532554
96 0 0 16.18185 8.409251 0.888491
128 0 0 29.75498 15.41341 1.418689
160 0 0 47.01387 24.32114 2.038183
192 0 0 70.00502 36.18204 2.782332
224 0 0 98.06369 50.65163 3.445916
255 0 0 129.9359 67.01516 3.71942
0 0 0 0.122796 0.115301 0.21297
0 32 0 1.620377 3.11032 0.729854
0 64 0 6.469544 12.77399 2.347658
0 96 0 15.51385 30.67586 5.233122
0 128 0 28.76716 56.78517 9.34097
0 160 0 46.05702 90.72632 14.55389
0 192 0 69.82595 137.0879 21.36078
0 224 0 99.08135 193.3727 28.78509
0 255 0 134.734 259.4793 35.07356
0 0 0 0.120618 0.113068 0.211235
0 0 32 1.200131 0.486792 5.864213
0 0 64 4.622998 1.709836 23.75834
0 0 96 10.71705 3.947745 55.64474
0 0 128 20.53991 7.661882 106.9527
0 0 160 33.00409 12.45844 171.9858
0 0 192 49.0968 18.81148 255.9556
0 0 224 69.12408 27.21044 360.2605
0 0 255 93.03451 39.94629 483.647
0 0 0 0.122456 0.115091 0.213383
32 32 32 5.351944 5.367222 8.288162
64 64 64 20.35736 20.63197 30.47262
96 96 96 47.96851 48.68052 70.86644
128 128 128 87.15278 88.28957 129.5496
160 160 160 140.0672 142.0606 208.2301
192 192 192 202.2921 205.7201 299.541
224 224 224 279.8262 285.801 411.3591
255 255 255 362.2598 371.8349 525.6476
It should be noted that, each group of RGB in the first table may be a preset digital driving value in the present embodiment.
The three RGB channels will affect each other, so that the sub-luminance collected by the single channel needs to be supplemented, that is, the device will compensate the second sub-luminance value of each first sub-stimulus value to obtain the third sub-luminance value corresponding to each first sub-stimulus value. The device can store the brightness compensation value corresponding to each channel, and the brightness compensation value is obtained according to the acquired data. The device can compensate the second sub-brightness value based on the brightness compensation value obtained by the channel corresponding to the second sub-brightness, thereby obtaining a third brightness value corresponding to the sub-color coordinate.
Step S130, constructing a plurality of brightness intervals corresponding to each channel according to each third sub-brightness value, wherein the upper limit brightness value and the lower limit brightness value of the brightness interval corresponding to the channel are two third sub-brightness values adjacent to each other in value corresponding to the channel.
Each channel has a plurality of preset digital driving values, that is, each channel corresponds to a plurality of digital driving value intervals, for example, the digital driving value intervals corresponding to the green single channel are digital driving R value intervals, which are respectively [0,32], [32,64], [64,96], [96,128], [128, 160], [160,192], [192,224], and [224, 255], and the digital driving R value corresponding to the end value of each digital driving R value interval corresponds to a green luminance value, so each digital driving R value interval can correspond to a green luminance value interval. The green luminance value is a third sub-luminance value, so that a plurality of luminance sections corresponding to each channel can be constructed by the third luminance values of the channels, and the end values of the digital driving value sections are adjacent in value, so that the two limit values of the luminance sections corresponding to the digital driving R value sections are also adjacent in value, that is, the upper limit luminance value and the lower limit luminance value of the luminance sections are the two third luminance values adjacent in value corresponding to the channels.
In the technical scheme provided by the embodiment, the device collects the sub-stimulus value of each channel under each preset digital drive value corresponding to the channel, so that the brightness interval corresponding to each channel is constructed based on the sub-brightness value of the sub-stimulus value, and the mapping relation associated with the brightness interval is conveniently determined.
Referring to fig. 4, fig. 4 is a fourth embodiment of the color correction method according to the present application, based on the third embodiment, step S120 includes:
Step S121, determining the sum of the second sub-brightness values corresponding to the preset digital driving value to obtain a fourth sub-brightness value, and obtaining the gray-scale brightness corresponding to the preset digital driving value.
Step S122, determining a difference between the fourth sub-luminance value and the target luminance.
Step S123, according to the difference value corresponding to the second sub-brightness and the compensation relation, each second sub-brightness value is compensated.
In the present embodiment, the principle of superposition of the RGB three channels is Y r+Yg+Yb =y, where Y r is the luminance of the red channel, Y g is the luminance of the green channel, Y b is the luminance of the blue channel, and Y is the gray scale luminance. However, the principle of superposition is not satisfied because of mutual interference of the three channels due to the characteristics of the display screen, so that superposition compensation needs to be performed on the data of Y i (i=r, g, b) to make the data satisfy the principle of superposition.
Specifically, the device determines the sum of the second sub-brightnesses corresponding to the preset digital driving value to obtain fourth sub-brightness, and acquires the gray-scale brightness corresponding to the preset digital driving value. The device then determines a difference between the fourth sub-luminance value and the gray scale luminance. Each second sub-brightness corresponds to a compensation relation, and the device can compensate each second sub-brightness value according to the difference value corresponding to the sub-brightness value and the compensation relation.
The apparatus may supplement each of the second sub-brightnesses according to the following formula:
Yall=Yr+Yg+Yb
deltaY=Y-Yall
/>
wherein Y all is the sum of the sub-luminance values corresponding to the preset digital driving value, that is, Y all is the fourth sub-luminance value; y is the gray scale luminance.
In the technical scheme provided by the embodiment, on the basis of collecting R, G, B single-channel color cards, gray-scale color cards are additionally collected, and the brightness compensation method is adopted, so that the brightness compensation method meets the superposition principle, the channel interference is greatly reduced, and an important effect on reducing chromatic aberration is achieved.
Referring to fig. 5, fig. 5 is a fifth embodiment of the color correction method according to the present application, based on the third embodiment, step S110 includes:
Step S111, obtaining the theoretical white point color coordinates corresponding to the color temperature to be corrected.
In this embodiment, when the target luminance value needs to be determined, the device first obtains the theoretical white point color coordinates corresponding to the color temperature to be corrected. For example, the color temperature to be corrected is 9300K, and the theoretical white point color coordinates x=0.285, y=0.293.
Step S112, determining the actual white point color coordinates corresponding to the two adjacent preset digital driving values according to the first sub-stimulus values of the two adjacent preset digital driving values.
The device also needs to take the actual white point color coordinates. Specifically, the device can determine the actual white point color coordinates corresponding to the two adjacent preset digital driving values based on the first sub-stimulus values of the two adjacent preset digital driving values of each channel. Firstly, the device can obtain color coordinates through interpolation calculation by using spectrum tristimulus values under adjacent preset digital driving values, and the device specifically refers to the following formula:
Wherein D 1 and D 2 are preset R, G or B, X 1、Y1 and Z 1 are first sub-stimulus values corresponding to one preset digital drive value, and X 2、Y2 and Z 2 are first sub-stimulus values corresponding to another preset digital drive value.
For example, by linear interpolation between one preset digital drive value (224,0,0) and another adjacent preset digital drive value (255, 0), XYZ values corresponding to the interval 224 to 255 (240,0,0) can be calculated. The calculation method comprises the following steps:
thus, the device can determine XYZ values between any adjacent preset digital drive values on each channel.
The device obtains the actual white point color coordinates according to the obtained XYZ. The actual white point color coordinates are obtained by referring to the following formula:
X=XR+XG+XB
Y=YR+YG+YB
Z=ZR+ZG+ZB
/>
Step S113, an error between each of the actual white point color coordinates and the theoretical white point color coordinates is determined.
The device may determine a plurality of actual white point color coordinates. The device then determines the error between each actual white point color coordinate and the theoretical white point color coordinate. The device stores a predetermined error range, and the device determines whether each error is within the predetermined error range.
Step S114, determining a target brightness value according to the actual white point color coordinates corresponding to the errors in the preset error range.
The device determines an error in a preset error range, wherein the error is the target error. The device can determine the XYZ corresponding to the actual white point color coordinate, and the Y value is the target brightness.
In the technical scheme provided by the embodiment, the device determines the theoretical white point color coordinates based on the color temperature to be corrected, and then determines the actual white point color coordinates, so that the target brightness corresponding to the color temperature to be corrected is accurately determined based on the error between the actual white point color coordinates and the theoretical white point color coordinates.
Referring to fig. 6, fig. 6 is a sixth embodiment of the color correction method according to the present application, based on any one of the first to fifth embodiments, step S50 includes:
step S51, determining a first chrominance value corresponding to the first digital driving value.
In this embodiment, the mapping relationship corresponding to the brightness interval is obtained through the collected data, that is, the second digital driving value is actually calculated based on the collected data, so the device needs to determine whether the second digital driving value can be used to correct the color of the display screen based on the collected data. Specifically, the device determines a first chrominance value corresponding to the first digital driving value, for example
Step S52, displaying the graphic card corresponding to the second table, collecting the spectrum tristimulus values of the second digital driving values corresponding to the first digital driving values in the graphic card, and obtaining the second chromaticity values corresponding to the second digital driving values according to the spectrum tristimulus values.
In this embodiment, the second table is R ' G ' B ' corresponding to a part of RGB, which may be the preset digital driving value in the above embodiment. The device displays the graphic card corresponding to R ' G ' B ' in the second table, and collects the spectrum tristimulus values XYZ of the second digital driving value corresponding to the first digital driving value in the graphic card, and the second chromaticity value corresponding to the second digital driving value can be calculated through XYZ, wherein the second chromaticity value is, for example
Step S53, determining the color difference according to the first chromaticity value and the second chromaticity value.
The apparatus determines a color difference based on the first chrominance value and the second chrominance value. Specifically, the device may calculate the color difference Δe2000 by using a color difference calculation formula of Δe2000, the first color difference value, and the second color difference value. The Δe2000 color difference calculation formula is:
And S54, correcting the color of the display picture when the color difference is smaller than the preset color difference, wherein the second table meets the preset condition when the color difference meets the preset color difference.
The device stores a preset color difference, and the preset color difference can be any suitable value, for example, the preset color difference can be 1.5. The device judges whether the color difference is smaller than the preset color difference, if the color difference is smaller than the preset color difference, the second table meets the preset condition, the device obtains R ' G ' B ' corresponding to all RGB based on the steps S20-30, so that a 3D display lookup table is constructed, and finally, the color correction is carried out on the display picture through the 3D display lookup table. The device can calculate a plurality of chromatic aberration, the average value of each chromatic aberration is compared with the preset chromatic aberration, and if the average value is smaller than the preset chromatic aberration, the success of correction can be determined. For example, a first chromaticity value corresponding to each group of RGB in the first table is obtained, a second chromaticity value corresponding to each group of R 'G' B 'in the second table is obtained, then a color difference is obtained based on the first chromaticity value and the second chromaticity value corresponding to the same row of RBG (the same row of RGB and R' G 'B' in table-2), each color difference is divided by the number of rows to obtain an average color difference, and if the average color difference is smaller than a preset color difference, the first table is mapped into the second table.
In addition, each digital driving value in the first table is a preset digital driving value for data acquisition, the step length of the preset digital driving value is 32, and when the first table is mapped into the second table, the step length is reduced to 28 or lower, that is, the device performs interpolation calculation based on adjacent second digital driving values to obtain digital driving values between the adjacent second digital driving values, so that the step length is reduced, that is, the digital driving values in the second table are increased.
And when the color difference is greater than or equal to the preset color difference, the device needs to analyze whether the reason of the correction failure is related to the color gamut coverage. Specifically, the device acquires a first color coordinate of a red channel under a preset digital driving X value, a second color coordinate of a green channel under a preset digital driving Y value and a third color coordinate of a blue channel under a preset digital driving Z value, wherein the preset digital driving X value, the digital driving Y value and the digital driving Z value are equal in value. For example, the preset digital driving X value, the green stimulus value and the blue stimulus value are all 255, that is, the digital driving values corresponding to the three preset stimulus values are red (255, 0), green (0, 255, 0) and blue (0, 255). The device collects the XYZ corresponding to the three digital driving values, determines the corresponding color coordinates x and y based on the XYZ, wherein,
For example, consider the commonly used sRGB and display_p3:
the device constructs a triangle through the first color coordinate, the second color coordinate and the third color coordinate, namely, the connecting line of the first color coordinate, the second color coordinate and the third color coordinate forms a triangle. The coordinate system comprises preset triangles, and the device calculates the overlapping area between the triangles constructed in the same coordinate system and the preset triangles, so that the color gamut coverage rate is determined according to the overlapping area. For example, the overlapping area divided by the area of the triangle constructed is the gamut coverage.
The device stores a preset color gamut coverage. The preset color gamut coverage is the color gamut coverage under successful correction. If the currently determined color gamut coverage rate is not matched with the preset color gamut coverage rate, that is, the difference value between the currently determined color gamut coverage rate and the preset color gamut coverage rate is too large, failure information of color correction is generated, and the failure information is used for indicating that the color correction is related to the color gamut coverage rate.
In the technical scheme provided by the embodiment, the first chromaticity value is obtained by using the original RGB value, the second chromaticity value is obtained by using the target RGB value corresponding to the original RGB value, and the color difference is obtained by using the first chromaticity value and the second chromaticity value, so that whether the color correction is successful or not is accurately verified.
The present application also provides a color correction device, referring to fig. 7, a color correction device 700 includes:
An obtaining module 710, configured to obtain each first digital driving value in the first table, and determine each first sub-luminance value corresponding to each first digital driving value, where the first sub-luminance value corresponding to the first digital driving value includes a red luminance value, a green luminance value, and a blue luminance value;
the determining module 720 is configured to determine a digital driving sub-value corresponding to the first sub-luminance value according to the first sub-luminance value and a mapping relationship corresponding to a luminance interval in which the first sub-luminance value is located, where the mapping relationship corresponding to different luminance intervals is different, the mapping relationship is a mapping relationship between the sub-luminance value included in the luminance interval and the digital driving sub-value, and the digital driving sub-value is a digital driving R-value, a digital driving G-value or a digital driving B-value;
A determining module 720, configured to determine a second digital driving value corresponding to the first digital driving value according to the digital driving sub-value corresponding to each first sub-luminance value of the first digital driving value;
A construction module 730, configured to construct a second table according to the second digital driving values corresponding to the first digital driving values;
the correction module 740 is configured to perform color correction on the display screen when the second table meets a preset condition.
In one embodiment, the color correction device 700 includes:
An obtaining module 710, configured to obtain an upper limit luminance value and a lower limit luminance value of each luminance interval;
The determining module 720 is configured to determine a mapping relationship corresponding to each luminance interval according to a preset relationship and an upper limit luminance value and a lower limit luminance value of each luminance interval;
And the association module is used for associating the brightness interval and the mapping relation corresponding to the brightness interval.
In one embodiment, the color correction device 700 includes:
The system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a first sub-stimulus value of each channel under each preset digital driving value corresponding to the channel, wherein the channel comprises a red single channel, a green single channel, a blue single channel and a gray channel, and the first sub-stimulus value comprises a red stimulus value, a green stimulus value and a blue stimulus value;
a determining module 720, configured to determine a target brightness value corresponding to the color temperature to be corrected;
a determining module 720, configured to determine a ratio of each first sub-stimulus value to the target luminance value as a second sub-luminance value corresponding to each first sub-stimulus value;
The compensation module is used for compensating the second sub-brightness value of each first sub-stimulus value to obtain a third sub-brightness value corresponding to each color space sub-value;
The construction module 730 is configured to construct a plurality of luminance intervals corresponding to each channel according to each third sub-luminance value, where an upper limit luminance value and a lower limit luminance value of the luminance interval corresponding to the channel are two third sub-luminance values adjacent to each other in numerical value corresponding to the channel.
In one embodiment, the color correction device 700 includes:
The determining module 720 is configured to determine a sum of the second sub-luminance values corresponding to the preset digital driving value to obtain a fourth sub-luminance value, and obtain gray-scale luminance corresponding to the preset digital driving value;
A determining module 720, configured to determine a difference between the fourth sub-luminance value and the gray scale luminance;
and the compensation module is used for compensating each second sub-brightness value according to the corresponding difference value of the second sub-brightness values and the compensation relation.
In one embodiment, the color correction device 700 includes:
An obtaining module 710, configured to obtain a theoretical white point color coordinate corresponding to a color temperature to be corrected;
A determining module 720, configured to determine actual white point color coordinates corresponding to two preset digital driving values with adjacent values according to the first sub-stimulus values of the two preset digital driving values with adjacent values of each channel;
a determining module 720 for determining an error between each actual white point color coordinate and the theoretical white point color coordinate;
The determining module 720 is configured to determine a target luminance value according to the actual white point color coordinates corresponding to the error within the preset error range.
In one embodiment, the color correction device 700 includes:
a determining module 720, configured to determine a first chroma value corresponding to the first digital driving value;
the display module is used for displaying the graphic card corresponding to the second table, collecting the spectrum tristimulus value of the second digital driving value corresponding to the first digital driving value in the graphic card, and obtaining the second chromaticity value corresponding to the second digital driving value according to the spectrum tristimulus value;
A determining module 720, configured to determine a color difference according to the first chrominance value and the second chrominance value;
The correction module 740 is configured to correct the color of the display screen when the color difference is smaller than a preset color difference, where the second table satisfies a preset condition when the color difference satisfies the preset color difference.
In one embodiment, the color correction device 700 includes:
The obtaining module 710 is configured to obtain, when the color difference is greater than or equal to a preset color difference, a first color coordinate of the red color channel under a preset digital driving X value, a second color coordinate of the green color channel under a preset digital driving Y value, and a third color coordinate of the blue color channel under a preset digital driving Z value, where the preset digital driving X value, the digital driving Y value, and the digital driving Z value are equal in value;
a construction module 730, configured to construct a triangle according to the first color coordinate, the second color coordinate, and the third color coordinate;
determining the color gamut coverage rate according to the overlapping area between the constructed triangle and the preset triangle;
The determining module 720 is configured to generate failure information of the color correction when the determined color gamut coverage does not match the preset color gamut coverage, where the failure information is used to indicate that the failure of the color correction is related to the color gamut coverage.
In one embodiment, the color correction device 700 includes:
the acquiring module 710 is configured to acquire a preset feature matrix, and determine a second sub-stimulus value corresponding to each first digital driving value;
the determining module 720 is configured to determine each first sub-luminance value corresponding to each first digital driving value according to the feature matrix and the second sub-stimulus value corresponding to the first spectral stimulus value.
It should be noted that, in the color correction apparatus provided in the above embodiment, only the division of the above functional modules is used for illustration when executing the color correction method, in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the functions described above. In addition, the color correction device and the color correction method provided in the above embodiments belong to the same concept, which embody the detailed implementation process of the method embodiment, and are not repeated here.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The embodiment of the present application further provides a computer storage medium, where a plurality of instructions may be stored, where the instructions are adapted to be loaded by a processor and execute the steps of the method of the foregoing embodiment, and the specific execution process may refer to the specific description of the embodiment shown in fig. 1 to 6, which is not repeated herein.
The device on which the storage medium resides may be a display device.
Fig. 8 is a schematic diagram of an electronic device according to an exemplary embodiment.
As shown in fig. 8, the electronic device 1000 may include: at least one processor 1001, at least one network interface 1004, a user interface 1003, a memory 1005, at least one communication bus 1002.
Wherein the communication bus 1002 is used to enable connected communication between these components.
The user interface 1003 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 1003 may further include a standard wired interface and a wireless interface.
The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Wherein the processor 1001 may include one or more processing cores. The processor 1001 connects various parts within the overall electronic device 1000 using various interfaces and lines, performs various functions of the electronic device 1000 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1005, and invoking data stored in the memory 1005. Alternatively, the processor 1001 may be implemented in at least one hardware form of digital signal Processing (DIGITAL SIGNAL Processing, DSP), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 1001 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 1001 and may be implemented by a single chip.
The Memory 1005 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). The memory 1005 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 1005 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described respective method embodiments, etc.; the storage data area may store data or the like referred to in the above respective method embodiments. The memory 1005 may also optionally be at least one storage device located remotely from the processor 1001. As shown in fig. 8, an operating system, a network communication module, a user interface module, and an operating application of the electronic device may be included in the memory 1005, which is one type of computer storage medium.
In the electronic device 1000 shown in fig. 8, the user interface 1003 is mainly used for providing an input interface for a user, and acquiring data input by the user; and the processor 1001 may be configured to invoke an operating application of the electronic device stored in the memory 1005, and specifically perform the following operations:
Acquiring each first digital driving value in a first table, and determining each first sub-brightness value corresponding to each first digital driving value, wherein the first sub-brightness value corresponding to the first digital driving value comprises a red brightness value, a green brightness value and a blue brightness value;
Determining a digital driving sub-value corresponding to the first sub-luminance value according to the first sub-luminance value and a mapping relation corresponding to a luminance interval in which the first sub-luminance value is located, wherein the mapping relation corresponding to different luminance intervals is different, the mapping relation is a mapping relation between the sub-luminance value included in the luminance interval and the digital driving sub-value, and the digital driving sub-value is a digital driving R value, a digital driving G value or a digital driving B value;
Determining a second digital driving value corresponding to the first digital driving value according to the digital driving sub-value corresponding to each first sub-brightness value of the first digital driving value;
constructing a second table according to the second digital driving values corresponding to the first digital driving values;
and when the second table meets the preset condition, performing color correction on the display picture.
In one embodiment, the operating system of the intelligent interactive tablet is an android system in which the processor 1001 further performs the following steps:
Acquiring an upper limit brightness value and a lower limit brightness value of each brightness interval;
Determining a mapping relation corresponding to each brightness interval according to a preset relation, an upper limit brightness value and a lower limit brightness value of each brightness interval;
And associating the brightness interval and the mapping relation corresponding to the brightness interval.
In one embodiment, the processor 1001 further performs the steps of:
collecting first sub-stimulus values of each channel under each preset digital driving value corresponding to the channel, wherein the channels comprise a red single channel, a green single channel, a blue single channel and a gray scale channel, and the first sub-stimulus values comprise a red stimulus value, a green stimulus value and a blue stimulus value;
determining a target brightness value corresponding to the color temperature to be corrected;
determining the ratio of each first sub-stimulus value to the target brightness value as a second sub-brightness value corresponding to each first sub-stimulus value;
compensating the second sub-brightness value of each first sub-stimulus value to obtain a third sub-brightness value corresponding to each color space sub-value;
And constructing a plurality of brightness intervals corresponding to each channel according to the third sub-brightness values, wherein the upper limit brightness value and the lower limit brightness value of the brightness interval corresponding to the channel are two third sub-brightness values adjacent to each other in numerical value corresponding to the channel.
In one embodiment, the processor 1001 further performs the steps of:
Determining the sum of the second sub-brightness values corresponding to the preset digital driving values to obtain a fourth sub-brightness value, and obtaining gray-scale brightness corresponding to the preset digital driving values;
determining a difference between the fourth sub-luminance value and the gray scale luminance;
and compensating each second sub-brightness value according to the corresponding difference value of the second sub-brightness values and the compensation relation.
In one embodiment, the processor 1001 further performs the steps of:
Obtaining theoretical white point color coordinates corresponding to the color temperature to be corrected;
determining actual white point color coordinates corresponding to the two adjacent numerical preset digital driving values according to the first sub-stimulus values of the two adjacent numerical preset digital driving values of each channel;
Determining an error between each actual white point color coordinate and a theoretical white point color coordinate;
And determining a target brightness value according to the actual white point color coordinates corresponding to the errors in the preset error range.
In one embodiment, the processor 1001 further performs the steps of:
determining a first chrominance value corresponding to the first digital driving value;
Displaying a graphic card corresponding to the second table, collecting a spectrum tristimulus value of a second digital driving value corresponding to the first digital driving value in the graphic card, and obtaining a second chromaticity value corresponding to the second digital driving value according to the spectrum tristimulus value;
Determining a color difference according to the first chromaticity value and the second chromaticity value;
And correcting the color of the display picture when the color difference is smaller than the preset color difference, wherein the second table meets the preset condition when the color difference meets the preset color difference.
In one embodiment, the processor 1001 further performs the steps of:
When the color difference is larger than or equal to a preset color difference, acquiring a first color coordinate of a red channel under a preset digital driving X value, a second color coordinate of a green channel under a preset digital driving Y value and a third color coordinate of a blue channel under a preset digital driving Z value, wherein the preset digital driving X value, the digital driving Y value and the digital driving Z value are equal in value;
Constructing a triangle according to the first color coordinate, the second color coordinate and the third color coordinate;
determining the color gamut coverage rate according to the overlapping area between the constructed triangle and the preset triangle;
And when the determined color gamut coverage rate is not matched with the preset color gamut coverage rate, generating failure information of color correction, wherein the failure information is used for indicating that the failure of the color correction is related to the color gamut coverage rate.
In one embodiment, the processor 1001 further performs the steps of:
Acquiring a preset feature matrix, and determining a second sub-stimulus value corresponding to each first digital driving value;
And determining each first sub-brightness value corresponding to each first digital driving value according to the feature matrix and the second sub-stimulus value corresponding to the first spectrum stimulus value.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (11)

1. A color correction method, comprising:
Acquiring each first digital driving value in a first table, and determining each first sub-brightness value corresponding to each first digital driving value, wherein the first sub-brightness value corresponding to the first digital driving value comprises a red brightness value, a green brightness value and a blue brightness value;
Determining a digital driving sub-value corresponding to the first sub-luminance value according to the first sub-luminance value and a mapping relation corresponding to a luminance interval in which the first sub-luminance value is located, wherein the mapping relation corresponding to different luminance intervals is different, the mapping relation is a mapping relation between the sub-luminance value included in the luminance interval and the digital driving sub-value, and the digital driving sub-value is a digital driving R value, a digital driving G value or a digital driving B value;
Determining a second digital driving value corresponding to the first digital driving value according to the digital driving sub-value corresponding to each first sub-brightness value of the first digital driving value;
Constructing a second table according to the second digital driving value corresponding to each first digital driving value;
correcting the color of the display picture when the second table meets the preset condition;
the step of correcting the color of the display screen when the second table meets the preset condition comprises the following steps:
Determining a first chrominance value corresponding to the first digital driving value;
displaying a graphic card corresponding to the second table, collecting a spectrum tristimulus value of a second digital driving value corresponding to the first digital driving value in the graphic card, and obtaining a second chromaticity value corresponding to the second digital driving value according to the spectrum tristimulus value;
Determining a color difference from the first chrominance value and the second chrominance value;
And correcting the color of the display picture when the color difference is smaller than the preset color difference, wherein the second table meets the preset condition when the color difference meets the preset color difference.
2. The color correction method according to claim 1, wherein before the step of determining the first sub-luminance value and the mapping relationship corresponding to the luminance interval in which the first sub-luminance value is located, the method further comprises:
Obtaining an upper limit brightness value and a lower limit brightness value of each brightness interval;
determining a mapping relation corresponding to each brightness interval according to a preset relation, an upper limit brightness value and a lower limit brightness value of each brightness interval;
and correlating the mapping relation corresponding to the brightness interval.
3. The color correction method according to claim 2, wherein before the step of obtaining the upper limit luminance value and the lower limit luminance value of each of the luminance sections, further comprising:
Collecting a first sub-stimulus value of each channel under each preset digital driving value corresponding to the channel, wherein the channels comprise a red single channel, a green single channel, a blue single channel and a gray scale channel, and the first sub-stimulus values comprise a red stimulus value, a green stimulus value and a blue stimulus value;
determining a target brightness value corresponding to the color temperature to be corrected;
Determining the ratio of each first sub-stimulus value to the target brightness value as a second sub-brightness value corresponding to each first sub-stimulus value;
compensating the second sub-brightness value of each first sub-stimulus value to obtain a third sub-brightness value corresponding to each first sub-stimulus value;
and constructing a plurality of brightness intervals corresponding to each channel according to the third sub-brightness values, wherein the upper limit brightness value and the lower limit brightness value of the brightness interval corresponding to the channel are two third sub-brightness values adjacent to each other in numerical value corresponding to the channel.
4. A color correction method as defined in claim 3, wherein said step of compensating the second sub-luminance value of each of said first sub-stimulus values comprises:
determining the sum of the second sub-brightness values corresponding to the preset digital driving value to obtain a fourth sub-brightness value, and obtaining gray-scale brightness corresponding to the preset digital driving value;
Determining a difference between the fourth sub-luminance value and the grayscale luminance;
And compensating each second sub-brightness value according to the difference value corresponding to the second sub-brightness value and the compensation relation.
5. The color correction method according to claim 3, wherein the step of determining a target luminance value corresponding to the color temperature to be corrected includes:
Obtaining theoretical white point color coordinates corresponding to the color temperature to be corrected;
determining actual white point color coordinates corresponding to two adjacent numerical preset digital driving values according to first sub-stimulus values of the two adjacent numerical preset digital driving values of each channel;
Determining an error between each of the actual white point color coordinates and the theoretical white point color coordinates;
And determining a target brightness value according to the actual white point color coordinates corresponding to the errors in the preset error range.
6. The color correction method according to claim 1, further comprising, after the step of determining a color difference from the first chromaticity value and the second chromaticity value:
when the color difference is larger than or equal to a preset color difference, a first color coordinate of a red channel under a preset digital driving X value, a second color coordinate of a green channel under a preset digital driving Y value and a third color coordinate of a blue channel under a preset digital driving Z value are obtained, wherein the preset digital driving X value, the digital driving Y value and the digital driving Z value are equal in value;
constructing a triangle according to the first color coordinate, the second color coordinate and the third color coordinate;
determining the color gamut coverage rate according to the overlapping area between the constructed triangle and the preset triangle;
And when the determined color gamut coverage does not match the preset color gamut coverage, generating failure information of color correction, wherein the failure information is used for indicating that the failure of the color correction is related to the color gamut coverage.
7. The method of color correction according to any one of claims 1-6, wherein the step of determining a respective first sub-luminance value for each of the first digital drive values comprises:
Acquiring a preset feature matrix, and determining a second sub-stimulus value corresponding to each first digital driving value;
And determining each first sub-brightness value corresponding to each first digital driving value according to the feature matrix and the second sub-stimulus value corresponding to the first digital driving value.
8. A color correction device, comprising:
The device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring each first digital driving value in a first table and determining each first sub-brightness value corresponding to each first digital driving value, wherein the first sub-brightness value corresponding to the first digital driving value comprises a red brightness value, a green brightness value and a blue brightness value;
The determining module is configured to determine a digital driving sub-value corresponding to the first sub-luminance value according to the first sub-luminance value and a mapping relationship corresponding to a luminance interval in which the first sub-luminance value is located, where the mapping relationship corresponding to different luminance intervals is different, the mapping relationship is a mapping relationship between the sub-luminance value included in the luminance interval and the digital driving sub-value, and the digital driving sub-value is a digital driving R-value, a digital driving G-value or a digital driving B-value;
The determining module is further configured to determine a second digital driving value corresponding to the first digital driving value according to the digital driving sub-value corresponding to each first sub-luminance value of the first digital driving value;
the construction module is used for constructing a second table according to the second digital driving values corresponding to the first digital driving values;
the correction module is used for correcting the color of the display picture when the second table meets the preset condition;
the determining module is further configured to determine a first chroma value corresponding to the first digital driving value;
the display module is used for displaying the graphics card corresponding to the second table, collecting a spectrum tristimulus value of a second digital driving value corresponding to the first digital driving value in the graphics card, and obtaining a second chromaticity value corresponding to the second digital driving value according to the spectrum tristimulus value;
the determining module is further configured to determine a color difference according to the first chrominance value and the second chrominance value;
the correction module is specifically configured to correct a color of a display screen when the color difference is smaller than a preset color difference, where the second table satisfies a preset condition when the color difference satisfies the preset color difference.
9. A color correction apparatus, characterized by comprising: a memory and a processor;
the memory stores computer-executable instructions;
The processor executes computer-executable instructions stored in the memory, causing the color correction device to perform the color correction method of any one of claims 1 to 7.
10. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are for implementing the color correction method according to any of claims 1 to 7.
11. An electronic device having stored therein computer-executable instructions which, when executed by a processor, are adapted to carry out the color correction method of any one of claims 1 to 7.
CN202111236333.0A 2021-10-22 2021-10-22 Color correction method, storage medium and related device Active CN116033133B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111236333.0A CN116033133B (en) 2021-10-22 2021-10-22 Color correction method, storage medium and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111236333.0A CN116033133B (en) 2021-10-22 2021-10-22 Color correction method, storage medium and related device

Publications (2)

Publication Number Publication Date
CN116033133A CN116033133A (en) 2023-04-28
CN116033133B true CN116033133B (en) 2024-05-17

Family

ID=86089861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111236333.0A Active CN116033133B (en) 2021-10-22 2021-10-22 Color correction method, storage medium and related device

Country Status (1)

Country Link
CN (1) CN116033133B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1874524A (en) * 2006-06-19 2006-12-06 海信集团有限公司 Digital video process method and device for improving colour contrast of liquid crystal television set
JP2008271103A (en) * 2007-04-19 2008-11-06 Canon Inc Color conversion apparatus and method
CN107610642A (en) * 2017-09-28 2018-01-19 武汉华星光电半导体显示技术有限公司 A kind of 3Gamma bearing calibrations of OLED display modules and system
CN107863060A (en) * 2017-11-28 2018-03-30 青岛海信电器股份有限公司 A kind of method and device of image color correction
WO2020000477A1 (en) * 2018-06-30 2020-01-02 华为技术有限公司 Color gamut correction method and apparatus
CN110757459A (en) * 2019-11-04 2020-02-07 广州视源电子科技股份有限公司 Joint test method, device, equipment and storage medium
CN112634143A (en) * 2019-09-24 2021-04-09 北京地平线机器人技术研发有限公司 Image color correction model training method and device and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1874524A (en) * 2006-06-19 2006-12-06 海信集团有限公司 Digital video process method and device for improving colour contrast of liquid crystal television set
JP2008271103A (en) * 2007-04-19 2008-11-06 Canon Inc Color conversion apparatus and method
CN107610642A (en) * 2017-09-28 2018-01-19 武汉华星光电半导体显示技术有限公司 A kind of 3Gamma bearing calibrations of OLED display modules and system
CN107863060A (en) * 2017-11-28 2018-03-30 青岛海信电器股份有限公司 A kind of method and device of image color correction
WO2020000477A1 (en) * 2018-06-30 2020-01-02 华为技术有限公司 Color gamut correction method and apparatus
CN112634143A (en) * 2019-09-24 2021-04-09 北京地平线机器人技术研发有限公司 Image color correction model training method and device and electronic equipment
CN110757459A (en) * 2019-11-04 2020-02-07 广州视源电子科技股份有限公司 Joint test method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
视觉自适应多尺度对数色调映射算法;芦碧波 等;小型微型计算机系统;20170315;第38卷(第03期);第625-629页 *

Also Published As

Publication number Publication date
CN116033133A (en) 2023-04-28

Similar Documents

Publication Publication Date Title
CN109863549B (en) Electronic device, display apparatus, and control method thereof
CN111429827B (en) Display screen color calibration method and device, electronic equipment and readable storage medium
US9466260B2 (en) Conversion between color spaces
CN102110429A (en) Techniques for adapting a color gamut
JP6793281B2 (en) Color gamut mapping method and color gamut mapping device
CN113284456A (en) Method and device for determining correction coefficient of display screen lamp point and computer equipment
US20100085480A1 (en) Image processor, and image processing method
CN107784993B (en) Color gamut compression method and device and display equipment
US9076369B2 (en) Image modulation apparatus, method, and program
CN107564493B (en) Color gamut compression method and device and display equipment
CN101501751B (en) Display device, method for generating four or more primary color signals
KR930005812B1 (en) Color information storage and processing system
TWI640976B (en) Technique for color profiling of a display device
CN116033133B (en) Color correction method, storage medium and related device
US8520939B2 (en) Apparatus and method of reproducing preferred color
US20140314317A1 (en) Method and apparatus for converting gray level of color image
CN111435990B (en) Color space encoding method and apparatus
JP2002055668A (en) Method for measuring input/output characteristics of display device, method for correcting image of the display device, method for preparing icc profile of the display device, storage medium with procedure for the methods stored thereon, and the display device
CN113724644B (en) Method for compensating brightness and chroma of display device and related equipment
US20230326175A1 (en) Method for a Luminance and Chrominance Correction
US10354614B2 (en) Technique for color management for a set of display devices
CN116009801A (en) Color correction method, storage medium and related device
JP2005269443A (en) Method and apparatus for image processing, program and recording medium
KR20160059240A (en) A representation method and apparatus for color gamut
CN107492365B (en) Method and device for obtaining color gamut mapping fitting function

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant