Method and apparatus for determining correction parameter, and electronic device and storage medium
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2026-01-30
- Publication Date
- 2026-08-13
Smart Images

Figure CN2026076083_13082026_PF_FP_ABST
Abstract
Description
Methods, apparatus, electronic devices and storage media for determining calibration parameters
[0001] This application claims priority to Chinese Patent Application No. 202510143086.1, filed on February 8, 2025, entitled “Method, Apparatus, Electronic Device and Storage Medium for Determining Correction Parameters”, the entire contents of which are incorporated herein by reference. Technical Field
[0002] This disclosure relates to the field of color correction technology, specifically to a method, apparatus, electronic device, and computer-readable storage medium for determining correction parameters. Background Technology
[0003] In modern display technology, color accuracy and consistency are among the key factors affecting user experience. Whether used in consumer electronics, professional image processing equipment, or screens for advertising and public displays, color accuracy directly impacts the final visual effect and user satisfaction.
[0004] In related technologies, strict quality control and screening of various raw materials that make up the display screen (such as liquid crystal materials, backlights, and color filters) are typically implemented to ensure that the performance parameters of these materials are as close as possible to the design values, thereby reducing the deviation range of the colors ultimately displayed on the display screen in terms of color coordinates. However, strict material control requires a significant investment of manpower and resources for the testing, screening, and grading of raw materials, resulting in high costs. Technical solutions
[0005] This disclosure provides a method, apparatus, electronic device, and computer-readable storage medium for determining calibration parameters, aiming to at least partially solve one of the technical problems in the related art.
[0006] In a first aspect, embodiments of this disclosure provide a method for determining correction parameters, the method comprising:
[0007] Obtain the brightness value corresponding to the first gray level in the sample to be tested and the color coordinates corresponding to the reference RGB combination, wherein the reference RGB combination represents the color to be corrected;
[0008] Based on the brightness value corresponding to the first gray level and the color coordinates corresponding to the reference RGB combination, determine the color coordinates corresponding to multiple RGB combinations;
[0009] If the difference between the color coordinates corresponding to any RGB combination and the target color coordinates is less than a preset threshold, the RGB parameters corresponding to any RGB combination are used as the correction parameters for the color to be corrected.
[0010] Secondly, embodiments of this disclosure also provide a device for determining correction parameters, the device comprising:
[0011] The first acquisition module is used to acquire the brightness value corresponding to the first gray level in the sample to be tested and the color coordinates corresponding to the reference RGB combination, wherein the reference RGB combination represents the color to be corrected;
[0012] The first determining module is used to determine the color coordinates corresponding to each RGB combination based on the brightness value corresponding to the first gray level and the color coordinates corresponding to the reference RGB combination.
[0013] The second determining module is used to use the RGB parameters corresponding to any RGB combination as the correction parameters of the color to be corrected when the difference between the color coordinates corresponding to any RGB combination and the target color coordinates is less than a preset threshold.
[0014] Thirdly, embodiments of this disclosure also provide an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps in the above-described method for determining correction parameters.
[0015] Fourthly, embodiments of this disclosure also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in the above-described method for determining correction parameters.
[0016] Fifthly, embodiments of this disclosure also provide a computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in various optional implementations of embodiments of this disclosure.
[0017] In this embodiment, the luminance value corresponding to the first grayscale level of the sample under test and the color coordinates corresponding to the reference RGB combination are first obtained, where the reference RGB combination represents the color to be corrected. Then, based on the luminance value corresponding to the first grayscale level and the color coordinates corresponding to the reference RGB combination, the color coordinates corresponding to multiple RGB combinations are determined. Then, if the difference between the color coordinates corresponding to any RGB combination and the target color coordinates is less than a preset threshold, the RGB parameters corresponding to any RGB combination are used as correction parameters for the color to be corrected. Thus, by obtaining the luminance value of the first grayscale level and the color coordinates of the reference RGB combination, the initial color state of the sample under test can be understood more comprehensively. Based on this information, determining the color coordinates of multiple RGB combinations allows for precise exploration of the performance of different color combinations at specific luminance levels, thereby finding the combination closest to the target color coordinates. When an RGB combination whose color coordinates differ from the target color coordinates by less than a preset threshold is found, it is used as a correction parameter, making the final corrected color closer to the target color in the color space, reducing color deviation, providing users with a more realistic and accurate color experience, and also reducing the cost of color calibration.
[0018] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in this disclosure, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 is a flowchart illustrating the method for determining correction parameters provided in the first embodiment of this disclosure;
[0021] Figure 2 is a schematic diagram of exemplary product test values provided in an embodiment of this disclosure;
[0022] Figure 3 is a flowchart illustrating the method for determining correction parameters provided in the second embodiment of this disclosure;
[0023] Figure 4 is a schematic diagram of the structure of the device for determining correction parameters provided in an embodiment of this disclosure;
[0024] Figure 5 is a schematic diagram of the structure of the electronic device provided in an embodiment of this disclosure.
[0025] Implementation methods of this application
[0026] Some embodiments of this disclosure will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. Various changes, modifications, and equivalents of the methods, apparatus, and / or systems described herein will become apparent upon understanding this disclosure. For example, the order of operations described herein is merely illustrative and is not limited to those orders set forth herein, but can be changed as will become apparent upon understanding this disclosure, except for operations that must be performed in a particular order. Furthermore, for clarity and brevity, descriptions of features known in the art may be omitted.
[0027] The embodiments described in the following examples of this disclosure are not representative of all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0028] It should be noted that the execution subject of the method for determining the correction parameters in this embodiment can be a device for determining the correction parameters. This device can be configured in any type of electronic device, such as a tablet computer, a television, a mobile phone, a computer, etc., and is not limited here.
[0029] In this embodiment of the disclosure, the "method for determining correction parameters" will be described using the "device for determining correction parameters" as the executing entity, and no limitation will be made here.
[0030] It should be noted that the order of description of the following embodiments is not intended to limit the priority of the embodiments.
[0031] Figure 1 is a flowchart illustrating the method for determining correction parameters according to the first embodiment of this disclosure.
[0032] As shown in Figure 1, the method includes:
[0033] Step 101: Obtain the brightness value corresponding to the first gray level in the sample to be tested and the color coordinates corresponding to the reference RGB combination, where the reference RGB combination represents the color to be corrected.
[0034] The three primary colors are usually represented by red (R), green (G), and blue (B).
[0035] The sample to be tested can be any type of electronic device. In this embodiment, the sample to be tested can be a device with a display screen, such as a tablet computer, television, mobile phone, computer, etc., and is not limited thereto.
[0036] The color to be calibrated can be any color that needs to be calibrated, such as white, black, or green; there are no restrictions on this.
[0037] For example, in this embodiment of the disclosure, the color to be corrected can be pure white, and the following will use pure white as the color to be corrected for illustrative purposes.
[0038] The reference RGB combination can be the RGB combination corresponding to the color to be corrected. An RGB combination is a combination of different gray levels of the three colors: red (R), green (G), and blue (B).
[0039] It's understandable that the grayscale range corresponding to R, G, and B can be 0-255. For example, (R255, G255, B20) can be considered as one RGB combination, and (R252, G255, B200) as another. The number of RGB combinations can be 256×256×256. Different RGB combinations can display different colors.
[0040] Optionally, if the color to be corrected is pure white, it means that the gray levels corresponding to the three color channels R, G and B are all 255. The following will refer to the RGB combination as (R255, G255, B255), without limitation.
[0041] The first gray level can be a subset of gray levels selected from 256 gray levels. There can be one or more first gray levels. To improve calculation accuracy, multiple first gray levels can be selected for measurement.
[0042] As an example, in this embodiment of the disclosure, 10 gray levels, namely 26, 51, 77, 102, 128, 153, 179, 204, 230, and 255, can be selected for measurement, and no limitation is made here.
[0043] Brightness value is an indicator that measures the brightness of the light emitted by a display product. Different gray levels will exhibit different brightness performance. Generally speaking, the higher the gray level value, the higher the brightness may be, but the specific situation varies depending on the characteristics of the display product.
[0044] Specifically, the sample to be tested can be measured to obtain different brightness values of the sample at multiple first gray levels.
[0045] Among them, color coordinates can be used to represent the coordinates of color.
[0046] As an example, color coordinates can be coordinates in the CIE 1931 color space. The CIE 1931 color space is a color space developed by the International Commission on Illumination (CIE) in 1931 to describe and quantify colors. In the CIE 1931 color space, the horizontal axis of the color coordinates is x, and the vertical axis is y. x represents the mixing ratio of red and green, and y represents the mixing ratio of green and blue.
[0047] In a chromaticity coordinate system, the horizontal axis is x, and the vertical axis is y, denoted as the x-axis and y-axis coordinates, respectively. Color coordinates can accurately represent the position of a color in a chromaticity diagram.
[0048] As shown in Figure 2, Figure 2 records the brightness values corresponding to multiple different first gray levels and the color coordinates corresponding to the reference RGB combinations. Here, x represents the horizontal axis color coordinate, and y represents the vertical axis color coordinate. W26, W51, W77, W102, W128, W153, W179, W204, W230, and W255 are the 10 first gray levels currently measured. The corresponding brightness values (Lv) are denoted as Lv-w255, Lv-w230, Lv-w204, Lv-w179, Lv-w153, Lv-w128, Lv-w102, Lv-w77, Lv-w51, and Lv-w26, respectively. The actual measured brightness values are 498.58, 398.61, 306.92, 230.66, 163.81, 111.48, 67.665, 36.917, 15.189, and 3.7488, respectively. The x-axis color coordinates for R255 are x-r255, and the y-axis color coordinates are y-r255, with measured values of 0.6891 and 0.308 respectively. The x-axis color coordinates for G255 are x-g255, and the y-axis color coordinates are y-g255, with measured values of 0.2668 and 0.6805 respectively. The x-axis color coordinates for B255 are x-b255, and the y-axis color coordinates are y-b255, with measured values of 0.1269 and 0.0528 respectively.
[0049] It should be noted that Figure 2 is only an illustrative illustration and is not intended to limit this disclosure.
[0050] Step 102: Based on the brightness value corresponding to the first gray level and the color coordinates corresponding to the reference RGB combination, determine the color coordinates corresponding to multiple RGB combinations.
[0051] Optionally, there can be multiple first gray levels, and the first gray level belongs to all gray levels.
[0052] One possible approach is to first determine the stimulus values of each color channel corresponding to each gray level in all gray levels based on the brightness value corresponding to the first gray level and the color coordinates corresponding to the reference RGB combination. Then, based on each color channel corresponding to each gray level, multiple RGB combinations are constructed. After that, the color coordinates corresponding to each RGB combination can be determined according to the stimulus values of each color channel in each RGB combination.
[0053] In this context, the stimulus value corresponding to a grayscale level refers to the quantified value of the degree of stimulation produced by the human visual system at a specific grayscale level. Grayscale is related to brightness; lower grayscale levels correspond to darker brightness, and higher grayscale levels correspond to brighter brightness. The stimulus value corresponding to each grayscale level reflects the intensity of visual stimulation to the human eye by the brightness represented by that grayscale level. For example, in display devices, pixels of different grayscale levels emit light of different intensities, and the degree of visual stimulation produced by this light on the human eye can be represented by the stimulus value.
[0054] In color displays, different gray levels can affect the brightness and saturation of color pixels, thereby stimulating the human eye's color perception. Therefore, the stimulation values of each color channel within each gray level represent the degree of stimulation the gray level provides to color perception. In this embodiment, the stimulation values may include X stimulation values, Y stimulation values, and Z stimulation values.
[0055] Wherein, the X stimulus value represents the stimulus intensity of the red component in the light source, the Y stimulus value represents the stimulus intensity of the green component in the light source, and the Z stimulus value represents the stimulus intensity of the blue component in the light source.
[0056] Optionally, the brightness value of the first grayscale level can be used first to perform polynomial fitting using the least squares method to predict the brightness values corresponding to all grayscale levels. Then, a preset first calculation model can be used to determine the stimulation values of the red, green, and blue color channels corresponding to each grayscale level using the brightness values of all grayscale levels and the color coordinates of a reference RGB combination. The first calculation model can be a mathematical model or a neural network model. Before the first calculation model is used for actual calculations, it needs to be trained or set based on known data. For example, the brightness value and color coordinates of a standard light source, along with the corresponding RGB stimulation values, can be used to calibrate the model.
[0057] Optionally, a preset first calculation model can be used, taking the brightness value of each gray level and the color coordinates of the reference RGB combination as input, and outputting the RGB stimulus value of each color channel corresponding to each gray level.
[0058] Specifically, when constructing each RGB combination, it can be based on all gray levels. Since R, G, and B each correspond to 256 gray levels, there are a total of 256×256×256 RGB combinations.
[0059] Optionally, a pre-defined second calculation model can be used to determine the color coordinates corresponding to each RGB combination by utilizing the stimulus values of each color channel in each RGB combination. This second calculation model can be constructed based on color space conversion formulas and algorithms.
[0060] Step 103: If the difference between the color coordinates corresponding to any RGB combination and the target color coordinates is less than a preset threshold, the RGB parameters corresponding to any RGB combination are used as the correction parameters for the color to be corrected.
[0061] The calibration parameters are a set of values used to adjust the color to achieve a specific standard or desired state. The purpose of calibration parameters is to eliminate color deviations and make the actual displayed color closer to the standard color.
[0062] The RGB parameter refers to the numerical combination of the three color channels: red (R), green (G), and blue (B), used to represent a specific color. Since the value of each color channel is usually between 0 and 255, different combinations of RGB values can produce a wide variety of colors.
[0063] For example, (255, 0, 0) represents pure red, (0, 255, 0) represents pure green, (0, 0, 255) represents pure blue, and (255, 255, 255) represents pure white.
[0064] The target color coordinates represent the standard color coordinates corresponding to the color to be corrected.
[0065] For example, if the color to be corrected is pure white, x = 0.3127, y = 0.329 can be used as the target color coordinates. That is to say, in the CIE 1931 color space, the color represented by the coordinate position (x = 0.3127, y = 0.329) is defined as standard white (under D65 light source).
[0066] It should be noted that in standard color calculation systems, white is typically defined using D65. A standard color calculation system is a system used to accurately describe, quantify, and compare colors. It provides a unified standard and methodology for various industries involving color, ensuring color consistency and accuracy.
[0067] D65 represents a light source that simulates average daylight, with a color temperature of approximately 6500K. This light source has a specific spectral power distribution, which can accurately simulate the color characteristics of natural daylight.
[0068] The difference between the color coordinates corresponding to any RGB combination and the target color coordinates includes the deviation of the horizontal axis color coordinates and the deviation of the vertical axis color coordinates. When both the deviation of the horizontal axis color coordinates and the deviation of the vertical axis color coordinates are less than the preset threshold, it means that the difference between the color coordinates corresponding to any RGB combination and the target color coordinates is less than the preset threshold.
[0069] The preset threshold can be a pre-set coordinate deviation threshold. As an example, in this embodiment of the disclosure, the preset threshold can be set to 0.003, or it can be 0.002, and there is no limitation thereto.
[0070] It should be noted that in some related technologies, the mass production control value for the white dot color coordinates is: x, y ± 0.02, which corresponds to a preset threshold of 0.02. This results in a very large range for the white color coordinates, leading to significant differences in the color perceived subjectively by the human eye. Even for the same product, the accuracy and consistency of its color are difficult to accept.
[0071] For example, suppose any RGB combination is (Rα, Gβ, Bφ), with corresponding x-axis and y-axis color coordinates of 0.3138 and 0.33, respectively. Where 0.3138 – 0.3127 = 0.0011 < 0.003, and 0.33 – 0.329 = 0.001 < 0.003. Therefore, the RGB parameters corresponding to (Rα, Gβ, Bφ) can be used as calibration parameters. Then, the RGB parameters corresponding to (Rα, Gβ, Bφ) can be mapped and replaced with the original pure white RGB values (R255, G255, B255). That is, in the display system or color processing flow, the original RGB values representing pure white are replaced with the calibrated RGB values. After such mapping and replacement, the white color mark calibration is completed. Now, when the display device or system needs to display white, it will use the calibrated RGB values, making the displayed white closer to standard white, improving color accuracy and consistency.
[0072] One possible approach is to iterate through each RGB combination in a preset order to determine the difference between the color coordinates corresponding to each RGB combination and the target color coordinates.
[0073] The preset order refers to the pre-defined order in which the various RGB combinations are traversed, which can be based on the color channel values from largest to smallest. In other words, when searching for RGB combinations that meet specific conditions, the system starts by trying combinations with larger values and gradually moves towards combinations with smaller values.
[0074] For example, the traversal order could be to first fix R at 255 and G at 255, then gradually decrease B from 255 to 0. This is the first stage of the traversal. Next, keeping R at 255, reduce the value of G from 255 to 254, and then again gradually decrease B from 255 to 0. Continue in this manner, traversing all possible RGB combinations.
[0075] Alternatively, the traversal order can be as follows: first, fix G at 255 and R at 255, then gradually decrease B from 255 to 0. This is the first stage of the traversal. Next, keeping G at 255, decrease the value of R from 255 to 254, and then again gradually decrease G from 255 to 0. Continue in this manner, traversing all possible RGB combinations.
[0076] Alternatively, the traversal order can be as follows: first, fix R at 255 and G at 255, then gradually decrease B from 255 to 0. This is the first stage of the traversal. Next, keeping R at 255, decrease the value of G from 255 to 254, and then again gradually decrease R from 255 to 0. Continue this process, traversing all possible RGB combinations.
[0077] It should be noted that there are many other ways to implement the traversal order, which are not limited here.
[0078] For example, if the first RGB combination encountered is (R255, G255, B255), then we can first compare the difference between the color coordinates (x1, y1) corresponding to (R255, G255, B255) and the target color coordinates.
[0079] The second RGB combination encountered is (R255, G255, B254), so we can compare the difference between the color coordinates (x2, y2) corresponding to (R255, G255, B254) and the target color coordinates.
[0080] The third RGB combination encountered is (R255, G255, B253). We can then compare the difference between the color coordinates (x3, y3) corresponding to (R255, G255, B253) and the target color coordinates. No restrictions are imposed here.
[0081] In this embodiment, the luminance value corresponding to the first grayscale level of the sample to be tested and the color coordinates corresponding to the reference RGB combination are first obtained, where the reference RGB combination represents the color to be corrected. Then, based on the luminance value corresponding to the first grayscale level and the color coordinates corresponding to the reference RGB combination, the color coordinates corresponding to multiple RGB combinations are determined. Then, if the difference between the color coordinates corresponding to any RGB combination and the target color coordinates is less than a preset threshold, the RGB parameters corresponding to any RGB combination are used as correction parameters for the color to be corrected. Thus, by obtaining the luminance value of the first grayscale level and the color coordinates of the reference RGB combination, the initial color state of the sample to be tested can be understood more comprehensively. Based on this information, determining the color coordinates of multiple RGB combinations allows for precise exploration of the performance of different color combinations at specific luminance levels, thereby finding the combination closest to the target color coordinates. When an RGB combination whose color coordinates differ from the target color coordinates by less than a preset threshold is found, it is used as a correction parameter, making the final corrected color closer to the target color in the color space, reducing color deviation, and providing users with a more realistic and accurate color experience.
[0082] Figure 3 is a flowchart illustrating the method for determining correction parameters according to the second embodiment of this disclosure.
[0083] As shown in Figure 3, the method includes:
[0084] Step 201: Obtain the brightness value corresponding to the first gray level in the sample to be tested and the color coordinates corresponding to the reference RGB combination, where the reference RGB combination represents the color to be corrected.
[0085] It should be noted that the specific implementation of step 201 can be referred to the above embodiments, and will not be repeated here.
[0086] Step 202: Based on the brightness value corresponding to each first gray level, determine the brightness value corresponding to each second gray level, wherein the first gray level and the second gray level constitute all gray levels.
[0087] The second gray level can be any gray level other than the first gray level.
[0088] For example, if the total grayscale contains 256 grayscale levels, and the first grayscale has 10 levels, then the remaining 246 grayscale levels can be used as the second grayscale level, without any restrictions.
[0089] Optionally, the polynomial parameters can be determined by first performing polynomial fitting on the brightness values corresponding to each first gray level, and then a first polynomial can be constructed based on the polynomial parameters. After that, the brightness value corresponding to each second gray level can be determined based on the gray level value corresponding to each second gray level and the first polynomial.
[0090] For example, we can first construct an initial polynomial: Lv-wn=a3*n 3 +a2*n 2 +a1*n+a0.
[0091] Where Lv-wn represents the brightness value corresponding to grayscale wn, and a3, a2, a1 and a0 are polynomial parameters.
[0092] Based on the example in step 101 above, the 10 selected first gray levels are W26, W51, W77, W102, W128, W153, W179, W204, W230, and W255. The X values corresponding to these 10 first gray levels are then determined as follows:
[0093] Wherein, θ can be represented as follows:
[0094] Furthermore, the polynomial parameters can be calculated using the following formula and the measured values mentioned above: θ=(X T X) - X T Y
[0095] In this embodiment of the disclosure, as an example, the calculated a3, a2, a1, and a0 are 0, 0.0071, -0.1261, and 2.3062, respectively. The calculated polynomial parameters are then substituted into the initial polynomial to obtain the first polynomial: Lv-wn=0.0071*n 2 -0.1261*n+2.3062.
[0096] Specifically, by substituting each of the second gray levels into the above formula, the brightness value corresponding to each second gray level can be predicted.
[0097] It should be noted that the above examples are merely illustrative and are not intended to limit this disclosure.
[0098] Step 203: Determine the stimulus value corresponding to each gray level based on the color coordinates of the reference gray level and the brightness value of each gray level in the entire gray level.
[0099] Optionally, the device can first measure the color coordinates corresponding to the reference grayscale.
[0100] Optionally, the reference grayscale can be the maximum grayscale, i.e., a grayscale value of 255. In this embodiment of the present disclosure, the reference grayscale can be denoted as w255. As shown in Figure 2, the color coordinates corresponding to w255 include the horizontal axis color coordinate x-w255 and the vertical axis color coordinate y-w255, with measured values of 0.3071 and 0.3095, respectively.
[0101] In this context, the stimulus value corresponding to each grayscale level refers to the quantified value of the degree of stimulation to the human visual system under a specific grayscale state. Grayscale is related to brightness; lower grayscale levels correspond to darker brightness, and higher grayscale levels correspond to brighter brightness. The stimulus value corresponding to each grayscale level can reflect the intensity of stimulation to human vision by the brightness represented by that grayscale level. For example, in a display device, pixels of different grayscale levels emit light of different intensities, and the degree of visual stimulation to the human eye by this light can be represented by a stimulus value. In color displays, different grayscale levels may affect the brightness and saturation of color pixels, thereby stimulating the human eye's color perception. Therefore, the stimulus value corresponding to each grayscale level also includes the degree of stimulation to color perception. In this embodiment of the present disclosure, the stimulus value may include X stimulus value, Y stimulus value, and Z stimulus value.
[0102] Optionally, a first ratio between the horizontal and vertical color coordinates corresponding to the reference grayscale can be determined first. Then, the product of the first ratio and the brightness value corresponding to any grayscale can be used as the X stimulus value. Next, the brightness value corresponding to any grayscale can be used as the Y stimulus value. Then, the first preset value can be subtracted from the horizontal and vertical color coordinates corresponding to the reference grayscale to determine the first difference. Finally, the product of the first difference and the brightness value corresponding to any grayscale can be used as the Z stimulus value.
[0103] For example, if the reference grayscale is w255, the corresponding horizontal color coordinate is x-w255, and the vertical color coordinate is y-w255. The first ratio is x-w255 / y-w255. For instance, if the brightness value corresponding to any grayscale wn (n ∈ 0~255) is Lv-wn, then the X stimulus value corresponding to wn is: Xwn = (x-w255 / y-w255)*Lv-wn.
[0104] Wherein, the Y stimulus value corresponding to wn is: Ywn = Lv - wn.
[0105] In this embodiment of the disclosure, the first preset value can be 1, and is not limited here.
[0106] The first difference is the first preset value minus the horizontal and vertical color coordinates of the reference grayscale. For example, the first difference is: 1 - x - w255 - y - w255.
[0107] Wherein, the Z-stimulus value corresponding to wn is: Zwn=(1-x-w255-y-w255)*Lv-wn.
[0108] Specifically, the X stimulus value Xwn, Y stimulus value Ywn, and Z stimulus value Zwn corresponding to each gray level can be determined using the calculation method described above.
[0109] Step 204: Determine the stimulus values corresponding to each color channel and all gray levels based on the color coordinates of each color channel in the reference RGB combination and the stimulus values corresponding to each gray level.
[0110] Optionally, the stimulus value corresponding to each color channel and the full grayscale can be calculated using the following formula.
[0111] The tristimulus values of R full grayscale are: Xrn=(x-r255 / y-r255)*Yrn; Yrn=Yrn; Zrn=(1-x-r255–y-r255)*Yrn / y-r255.
[0112] The tristimulus values of the full grayscale G are: Xgn=(x-g255 / y-g255)*Ygn; Ygn=Ygn; Zgn=(1-x-g255–y-g255)*Ygn / y-g255.
[0113] The tristimulus values for the full grayscale B are: Xbn=(x-b255 / y-b255)*Ybn; Ybn=Ybn; Zbn=(1-x-b255–y-b255)*Ybn / y-b255.
[0114] Where n ranges from 0 to 255, representing 256 gray levels.
[0115] Where y-r255 represents the vertical axis color coordinate corresponding to the red color channel in the reference color channel combination, and x-r255 represents the horizontal axis color coordinate corresponding to the red color channel in the reference color channel combination.
[0116] Where y-g255 represents the vertical axis color coordinate corresponding to the green color channel in the reference color channel combination, and x-g255 represents the horizontal axis color coordinate corresponding to the green color channel in the reference color channel combination.
[0117] Where y-b255 represents the vertical axis color coordinate corresponding to the blue color channel in the reference color channel combination, and x-b255 represents the horizontal axis color coordinate corresponding to the blue color channel in the reference color channel combination.
[0118] Where Xrn represents the X stimulus value corresponding to the red color channel R and any gray level n, Yrn represents the Y stimulus value corresponding to the red color channel R and any gray level n, and Zrn represents the Z stimulus value corresponding to the red color channel R and any gray level n.
[0119] Where Xgn represents the X stimulus value corresponding to the green color channel G and any gray level n, Ygn represents the Y stimulus value corresponding to the green color channel G and any gray level n, and Zgn represents the Z stimulus value corresponding to the green color channel G and any gray level n.
[0120] Where Xbn represents the X stimulus value corresponding to the green color channel B and any gray level n, Ybn represents the Y stimulus value corresponding to the green color channel B and any gray level n, and Zbn represents the Z stimulus value corresponding to the green color channel B and any gray level n.
[0121] Step 205: Construct multiple RGB combinations based on the color channels corresponding to each grayscale level.
[0122] It should be noted that the specific implementation of step 205 can be referred to the above embodiments, and will not be repeated here.
[0123] Step 206: Based on the X stimulus value, Y stimulus value and Z stimulus value corresponding to each color channel in each RGB combination, determine the sum of the X stimulus value, the sum of the Y stimulus value and the sum of the Z stimulus value corresponding to each RGB combination.
[0124] The sum of X stimulus values is the sum of the X stimulus values corresponding to each color channel in any RGB combination; the sum of Y stimulus values is the sum of the Y stimulus values corresponding to each color channel in any RGB combination; and the sum of Z stimulus values is the sum of the Z stimulus values corresponding to each color channel in any RGB combination.
[0125] For example, the RGB combination is (R255, G250, B240). The X, Y, and Z stimulus values corresponding to R255 are Xr255, Yr255, and Zr255, respectively; the X, Y, and Z stimulus values corresponding to G250 are Xg250, Yg250, and Zg250, respectively; and the X, Y, and Z stimulus values corresponding to B240 are Xb240, Yb240, and Zb240, respectively.
[0126] Wherein, the sum of X stimulus values X corresponding to (R255, G250, B240) is Xr255+Xg250+Xb240, the sum of Y stimulus values Y is Yr255+Yg250+Yb240, and the sum of Z stimulus values Z is Zr255+Zg250+Zb240, which are not specified here.
[0127] Step 207: Determine the target stimulus value based on the sum of the X stimulus values, the sum of the Y stimulus values, and the sum of the Z stimulus values.
[0128] The target stimulus value can be the sum of the X stimulus values, the Y stimulus values, and the Z stimulus values.
[0129] For example, the sum of the X stimulus values, the sum of the Y stimulus values, and the sum of the Z stimulus values are X, Y, and Z, respectively, and the target stimulus value is equal to X + Y + Z, without any restrictions.
[0130] Step 208: Use the ratio of the sum of X stimulus values to the target stimulus value as the horizontal axis color coordinate for each RGB combination.
[0131] For example, if the sum of the X stimulus values corresponding to any RGB combination is X, and the corresponding target stimulus value is equal to X+Y+Z, then X / (X+Y+Z) can be used as the horizontal axis color coordinate corresponding to the RGB combination.
[0132] Step 209: Use the ratio of the sum of Y stimulus values to the target stimulus value as the vertical color coordinate for each RGB combination.
[0133] For example, if the sum of the Y stimulus values corresponding to any RGB combination is Y, and the corresponding target stimulus value is equal to X+Y+Z, then Y / (X+Y+Z) can be used as the vertical color coordinate corresponding to the RGB combination.
[0134] Step 210: If the difference between the color coordinates corresponding to any RGB combination and the target color coordinates is less than a preset threshold, the RGB parameters corresponding to any RGB combination are used as the correction parameters for the color to be corrected.
[0135] It should be noted that the specific implementation of step 210 can be referred to the above embodiments, and will not be repeated here.
[0136] In this embodiment, the luminance value corresponding to the first gray level in the sample to be tested and the color coordinates corresponding to the reference RGB combination are first obtained, where the reference RGB combination represents the color to be corrected. Then, based on the luminance value corresponding to each first gray level, the luminance value corresponding to each second gray level is determined, where the first and second gray levels constitute all gray levels. Based on the color coordinates corresponding to the reference gray levels and the luminance value corresponding to each gray level in all gray levels, the stimulus value corresponding to each gray level is determined. Then, based on the color coordinates corresponding to each color channel in the reference RGB combination and the stimulus value corresponding to each gray level, the stimulus value corresponding to each color channel and all gray levels is determined. Finally, based on each color channel corresponding to each gray level, multiple RGB combinations are constructed. Based on the X, Y, and Z stimulus values corresponding to each color channel in each RGB combination, the sum of the X, Y, and Z stimulus values for each RGB combination is determined. Based on these sums, the target stimulus value is determined. The ratio of the sum of the X stimulus values to the target stimulus value is used as the horizontal axis color coordinate for each RGB combination, and the ratio of the sum of the Y stimulus values to the target stimulus value is used as the vertical axis color coordinate. Finally, if the difference between the color coordinates of any RGB combination and the target color coordinates is less than a preset threshold, the RGB parameters of that RGB combination are used as the correction parameters for the color to be corrected. This allows for a comprehensive analysis and handling of color correction problems at different brightness levels. Different grayscale levels typically correspond to different brightness levels, and changes in brightness affect color performance. By determining the brightness and stimulus values corresponding to each grayscale level, it is possible to better adapt to the color correction needs at different grayscale levels, ensuring accurate color performance under various brightness conditions. This method processes each color channel separately, determining the stimulus values corresponding to each color channel and all grayscale levels. It fully considers the characteristics and variations of the red, green, and blue color channels, better adapting to the performance differences of different color channels at different grayscale levels. It can be used for color correction in devices such as monitors and projectors, improving image quality and color accuracy. By precisely adjusting the RGB parameters, display devices can present more realistic and natural colors at different grayscale levels and color channels, enhancing the user's visual experience. Based on the color coordinates and grayscale stimulus values corresponding to each color channel, the sum of stimulus values corresponding to the RGB combinations is determined, and the horizontal and vertical color coordinates are further calculated, accurately locating the position of each RGB combination in the color space. This allows for more accurate identification of the closest RGB combination when compared with the target color coordinates, thereby improving the accuracy of color correction.
[0137] To facilitate better implementation of the method for determining correction parameters of this disclosure, this disclosure also provides an apparatus for determining correction parameters based on the above-described method. The meanings of the terms used are the same as in the method for determining correction parameters described above, and specific implementation details can be found in the descriptions of the method embodiments.
[0138] Please refer to Figure 4, which is a schematic diagram of the structure of the calibration parameter determination device 400 provided in this embodiment of the present disclosure. The calibration parameter determination device 400 includes:
[0139] The first acquisition module 410 is used to acquire the brightness value corresponding to the first gray level in the sample to be tested and the color coordinates corresponding to the reference three primary colors RGB combination, wherein the reference RGB combination represents the color to be corrected;
[0140] The first determining module 420 is used to determine the color coordinates corresponding to each RGB combination based on the brightness value corresponding to the first gray level and the color coordinates corresponding to the reference RGB combination.
[0141] The second determining module 430 is used to use the RGB parameters corresponding to any RGB combination as the correction parameters of the color to be corrected when the difference between the color coordinates corresponding to any RGB combination and the target color coordinates is less than a preset threshold.
[0142] Optionally, there may be multiple first gray levels, and the first gray level may belong to all gray levels.
[0143] The first determining module includes:
[0144] The first determining unit is used to determine the stimulation value of each color channel corresponding to each gray level in the entire gray level based on the brightness value corresponding to the first gray level and the color coordinates corresponding to the reference RGB combination.
[0145] The building unit is used to build multiple RGB combinations based on each color channel corresponding to each grayscale level;
[0146] The second determining unit is used to determine the color coordinates corresponding to each RGB combination based on the stimulus values of each color channel in each RGB combination.
[0147] Optionally, the second determining unit is specifically used for:
[0148] Based on the X, Y, and Z stimulus values corresponding to each color channel in each RGB combination, determine the sum of the X, Y, and Z stimulus values for each RGB combination.
[0149] The target stimulus value is determined based on the sum of the X stimulus values, the sum of the Y stimulus values, and the sum of the Z stimulus values.
[0150] The ratio of the sum of the X stimulus values to the target stimulus value is used as the horizontal axis color coordinate corresponding to each RGB combination;
[0151] The ratio of the sum of the Y stimulus values to the target stimulus value is used as the vertical color coordinate corresponding to each RGB combination.
[0152] Optionally, the first determining unit includes:
[0153] The third determining unit is used to determine the brightness value corresponding to each second gray level based on the brightness value corresponding to each first gray level, wherein the first gray level and the second gray level constitute the total gray levels;
[0154] The fourth determining unit is used to determine the stimulus value corresponding to each gray level based on the color coordinates corresponding to the reference gray level and the brightness value corresponding to each gray level in all gray levels.
[0155] The fifth determining unit is used to determine the stimulus values corresponding to each color channel and all gray levels based on the color coordinates corresponding to each color channel in the reference RGB combination and the stimulus values corresponding to each gray level.
[0156] Optionally, the third determining unit is specifically used for:
[0157] The polynomial parameters are determined by performing polynomial fitting on the brightness values corresponding to each of the first gray levels.
[0158] Based on the polynomial parameters, construct the first polynomial;
[0159] The brightness value corresponding to each second gray level is determined based on the gray level value corresponding to each second gray level and the first polynomial.
[0160] Optional, the fourth determining unit, specifically used for:
[0161] Determine the first ratio between the horizontal and vertical color coordinates corresponding to the reference grayscale;
[0162] The product of the first ratio and the brightness value corresponding to any gray level is taken as the X stimulus value;
[0163] The brightness value corresponding to any gray level is used as the Y stimulus value;
[0164] Subtract the horizontal and vertical color coordinates of the reference grayscale from the first preset value to determine the first difference.
[0165] The product of the first difference and the brightness value corresponding to any gray level is used as the Z-stimulation value.
[0166] Optionally, the device may also include:
[0167] The traversal module is used to traverse each of the RGB combinations in a preset order to determine the difference between the color coordinates corresponding to each RGB combination and the target color coordinates.
[0168] In this embodiment, the luminance value corresponding to the first grayscale level of the sample to be tested and the color coordinates corresponding to the reference RGB combination are first obtained, where the reference RGB combination represents the color to be corrected. Then, based on the luminance value corresponding to the first grayscale level and the color coordinates corresponding to the reference RGB combination, the color coordinates corresponding to multiple RGB combinations are determined. Then, if the difference between the color coordinates corresponding to any RGB combination and the target color coordinates is less than a preset threshold, the RGB parameters corresponding to any RGB combination are used as correction parameters for the color to be corrected. Thus, by obtaining the luminance value of the first grayscale level and the color coordinates of the reference RGB combination, the initial color state of the sample to be tested can be understood more comprehensively. Based on this information, determining the color coordinates of multiple RGB combinations allows for precise exploration of the performance of different color combinations at specific luminance levels, thereby finding the combination closest to the target color coordinates. When an RGB combination whose color coordinates differ from the target color coordinates by less than a preset threshold is found, it is used as a correction parameter, making the final corrected color closer to the target color in the color space, reducing color deviation, and providing users with a more realistic and accurate color experience.
[0169] In addition, this disclosure also provides an electronic device, as shown in Figure 5, which illustrates a structural schematic diagram of the electronic device involved in this disclosure. Specifically:
[0170] The electronic device may include components such as a processor 501 with one or more processing cores, a memory 502 with one or more computer-readable storage media, a power supply 503, and an input unit 504. Those skilled in the art will understand that the electronic device structure shown in FIG. 5 does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:
[0171] The processor 501 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 502, and by calling data stored in the memory 502, it performs various functions and processes data, thereby providing overall monitoring of the electronic device. Optionally, the processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 501.
[0172] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 502 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
[0173] The electronic device also includes a power supply 503 that supplies power to various components. Preferably, the power supply 503 can be logically connected to the processor 501 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 503 may also include one or more DC or AC power supplies, recharging systems, power equipment debugging circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0174] The electronic device may also include an input unit 504, which can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0175] Although not shown, the electronic device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 501 in the electronic device loads the executable files corresponding to the processes of one or more application programs into the memory 502 according to the following instructions, and the processor 501 runs the application programs stored in the memory 502, thereby implementing the steps in any of the calibration parameter determination methods provided in the embodiments of this disclosure.
[0176] In this embodiment, the luminance value corresponding to the first grayscale level of the sample to be tested and the color coordinates corresponding to the reference RGB combination are first obtained, where the reference RGB combination represents the color to be corrected. Then, based on the luminance value corresponding to the first grayscale level and the color coordinates corresponding to the reference RGB combination, the color coordinates corresponding to multiple RGB combinations are determined. Then, if the difference between the color coordinates corresponding to any RGB combination and the target color coordinates is less than a preset threshold, the RGB parameters corresponding to any RGB combination are used as correction parameters for the color to be corrected. Thus, by obtaining the luminance value of the first grayscale level and the color coordinates of the reference RGB combination, the initial color state of the sample to be tested can be understood more comprehensively. Based on this information, determining the color coordinates of multiple RGB combinations allows for precise exploration of the performance of different color combinations at specific luminance levels, thereby finding the combination closest to the target color coordinates. When an RGB combination whose color coordinates differ from the target color coordinates by less than a preset threshold is found, it is used as a correction parameter, making the final corrected color closer to the target color in the color space, reducing color deviation, and providing users with a more realistic and accurate color experience.
[0177] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0178] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0179] To this end, the present disclosure provides a computer-readable storage medium storing a computer program that can be loaded by a processor to perform the steps in any of the calibration parameter determination methods provided in the present disclosure.
[0180] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0181] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0182] Since the instructions stored in the computer-readable storage medium can execute the steps in any of the calibration parameter determination methods provided in this disclosure, the beneficial effects that any of the calibration parameter determination methods provided in this disclosure can achieve can be realized, as detailed in the preceding embodiments, and will not be repeated here.
[0183] The foregoing has provided a detailed description of a method, apparatus, electronic device, and computer-readable storage medium for determining calibration parameters. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, those skilled in the art will recognize that there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for determining a correction parameter, wherein, include: Obtain the brightness value corresponding to the first gray level in the sample to be tested and the color coordinates corresponding to the reference RGB combination, wherein the reference RGB combination represents the color to be corrected; Based on the brightness value corresponding to the first gray level and the color coordinates corresponding to the reference RGB combination, determine the color coordinates corresponding to multiple RGB combinations; If the difference between the color coordinates corresponding to any RGB combination and the target color coordinates is less than a preset threshold, the RGB parameters corresponding to any RGB combination are used as the correction parameters for the color to be corrected.
2. The method according to claim 1, wherein, There are multiple first gray levels, and these first gray levels belong to all gray levels. The step of determining the color coordinates corresponding to each RGB combination based on the brightness value corresponding to the first grayscale and the color coordinates corresponding to the reference RGB combination includes: Based on the brightness value corresponding to the first gray level and the color coordinates corresponding to the reference RGB combination, determine the stimulation value of each color channel corresponding to each gray level in the entire gray level. Based on each color channel corresponding to each gray level, multiple RGB combinations are constructed; The color coordinates corresponding to each RGB combination are determined based on the stimulus values of each color channel in each RGB combination.
3. The method according to claim 2, wherein, The step of determining the color coordinates corresponding to each RGB combination based on the stimulus values of each color channel in each RGB combination includes: Based on the X, Y, and Z stimulus values corresponding to each color channel in each RGB combination, determine the sum of the X, Y, and Z stimulus values for each RGB combination. The target stimulus value is determined based on the sum of the X stimulus values, the sum of the Y stimulus values, and the sum of the Z stimulus values. The ratio of the sum of the X stimulus values to the target stimulus value is used as the horizontal axis color coordinate corresponding to each RGB combination; The ratio of the sum of the Y stimulus values to the target stimulus value is used as the vertical color coordinate corresponding to each RGB combination.
4. The method according to claim 2, wherein, The step of determining the stimulation values of each color channel corresponding to each gray level in the entire grayscale based on the brightness value corresponding to the first gray level and the color coordinates corresponding to the reference RGB combination includes: Based on the brightness value corresponding to each of the first gray levels, the brightness value corresponding to each of the second gray levels is determined, wherein the first gray levels and the second gray levels constitute the total number of gray levels; Based on the color coordinates corresponding to the reference gray level and the brightness value corresponding to each gray level in all gray levels, the stimulation value corresponding to each gray level is determined. Based on the color coordinates of each color channel in the reference RGB combination and the stimulus value corresponding to each grayscale, determine the stimulus value corresponding to each color channel and all grayscale.
5. The method according to claim 2, wherein, The step of determining the stimulation values of each color channel corresponding to each gray level in the entire grayscale based on the brightness value corresponding to the first gray level and the color coordinates corresponding to the reference RGB combination includes: Using a preset first calculation model, the brightness value of each gray level and the color coordinates of the reference RGB combination are used as inputs to the first calculation model, so that the first calculation model outputs the RGB stimulus value of each color channel corresponding to each gray level.
6. The method according to claim 4, wherein, The step of determining the brightness value corresponding to each second gray level based on the brightness value corresponding to each first gray level includes: The polynomial parameters are determined by performing polynomial fitting on the brightness values corresponding to each of the first gray levels. Based on the polynomial parameters, construct the first polynomial; The brightness value corresponding to each second gray level is determined based on the gray level value corresponding to each second gray level and the first polynomial.
7. The method according to claim 4, wherein, The step of determining the stimulus value corresponding to any gray level based on the color coordinates corresponding to the reference gray level and the brightness value corresponding to any gray level includes: Determine the first ratio between the horizontal and vertical color coordinates corresponding to the reference grayscale; The product of the first ratio and the brightness value corresponding to any gray level is taken as the X stimulus value; The brightness value corresponding to any gray level is used as the Y stimulus value; Subtract the horizontal and vertical color coordinates of the reference grayscale from the first preset value to determine the first difference. The product of the first difference and the brightness value corresponding to any gray level is used as the Z-stimulation value.
8. The method according to claim 1, wherein, Also includes: According to a preset order, each of the RGB combinations is traversed to determine the difference between the color coordinates corresponding to each RGB combination and the target color coordinates.
9. The method according to claim 8, wherein, The difference between the color coordinates corresponding to each of the RGB combinations and the target color coordinates includes the deviation of the horizontal axis color coordinates and the deviation of the vertical axis color coordinates.
10. A device for determining correction parameters, wherein, include: The first acquisition module is used to acquire the brightness value corresponding to the first gray level in the sample to be tested and the color coordinates corresponding to the reference RGB combination, wherein the reference RGB combination represents the color to be corrected. The first determining module is used to determine the color coordinates corresponding to each RGB combination based on the brightness value corresponding to the first gray level and the color coordinates corresponding to the reference RGB combination. The second determining module is used to use the RGB parameters corresponding to any RGB combination as the correction parameters of the color to be corrected when the difference between the color coordinates corresponding to any RGB combination and the target color coordinates is less than a preset threshold.
11. The apparatus according to claim 10, wherein, The first grayscale level in the first determining module is multiple, and the first grayscale level belongs to all grayscale levels. The first determining module determines the color coordinates corresponding to each RGB combination based on the brightness value corresponding to the first grayscale and the color coordinates corresponding to the reference RGB combination, including: Based on the brightness value corresponding to the first gray level and the color coordinates corresponding to the reference RGB combination, determine the stimulation value of each color channel corresponding to each gray level in the entire gray level. Based on each color channel corresponding to each gray level, multiple RGB combinations are constructed; The color coordinates corresponding to each RGB combination are determined based on the stimulus values of each color channel in each RGB combination.
12. The apparatus according to claim 11, wherein, The first determining module determines the color coordinates corresponding to each RGB combination based on the stimulus values of each color channel in each RGB combination, including: Based on the X, Y, and Z stimulus values corresponding to each color channel in each RGB combination, determine the sum of the X, Y, and Z stimulus values for each RGB combination. The target stimulus value is determined based on the sum of the X stimulus values, the sum of the Y stimulus values, and the sum of the Z stimulus values. The ratio of the sum of the X stimulus values to the target stimulus value is used as the horizontal axis color coordinate corresponding to each RGB combination; The ratio of the sum of the Y stimulus values to the target stimulus value is used as the vertical color coordinate corresponding to each RGB combination.
13. The apparatus according to claim 11, wherein, The first determining module determines the stimulus values of each color channel corresponding to each gray level in the entire grayscale based on the brightness value corresponding to the first gray level and the color coordinates corresponding to the reference RGB combination, including: Based on the brightness value corresponding to each of the first gray levels, the brightness value corresponding to each of the second gray levels is determined, wherein the first gray levels and the second gray levels constitute the total number of gray levels; Based on the color coordinates corresponding to the reference gray level and the brightness value corresponding to each gray level in all gray levels, the stimulation value corresponding to each gray level is determined. Based on the color coordinates of each color channel in the reference RGB combination and the stimulus value corresponding to each grayscale, determine the stimulus value corresponding to each color channel and all grayscale.
14. The apparatus according to claim 11, wherein, The first determining module determines the stimulus values of each color channel corresponding to each gray level in the entire grayscale based on the brightness value corresponding to the first gray level and the color coordinates corresponding to the reference RGB combination, including: Using a preset first calculation model, the brightness value of each gray level and the color coordinates of the reference RGB combination are used as inputs to the first calculation model, so that the first calculation model outputs the RGB stimulus value of each color channel corresponding to each gray level.
15. The apparatus according to claim 13, wherein, The first determining module determines the brightness value corresponding to each second gray level based on the brightness value corresponding to each first gray level, including: The polynomial parameters are determined by performing polynomial fitting on the brightness values corresponding to each of the first gray levels. Based on the polynomial parameters, construct the first polynomial; The brightness value corresponding to each second gray level is determined based on the gray level value corresponding to each second gray level and the first polynomial.
16. The apparatus according to claim 13, wherein, The first determining module determines the stimulus value corresponding to any gray level based on the color coordinates corresponding to the reference gray level and the brightness value corresponding to any gray level, including: Determine the first ratio between the horizontal and vertical color coordinates corresponding to the reference grayscale; The product of the first ratio and the brightness value corresponding to any gray level is taken as the X stimulus value; The brightness value corresponding to any gray level is used as the Y stimulus value; Subtract the horizontal and vertical color coordinates of the reference grayscale from the first preset value to determine the first difference. The product of the first difference and the brightness value corresponding to any gray level is used as the Z-stimulation value.
17. The apparatus according to claim 10, wherein, The second determining module is further configured to traverse each of the RGB combinations in a preset order to determine the difference between the color coordinates corresponding to each RGB combination and the target color coordinates.
18. The apparatus according to claim 17, wherein, The difference between the color coordinates corresponding to each RGB combination in the second determining module and the target color coordinates includes the deviation of the horizontal axis color coordinates and the deviation of the vertical axis color coordinates.
19. An electronic device, wherein, The method includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the steps of the method as described in any one of claims 1-9.
20. A computer-readable storage medium, wherein, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the method as described in any one of claims 1-9.