Correction parameter determination method and device, electronic equipment and storage medium
By obtaining the first gray-scale brightness value of the sample to be tested and the color coordinates of the reference RGB combination, the color coordinates of multiple RGB combinations are determined, and when the difference between the color coordinates of the RGB combination and the target color coordinates is less than the preset threshold, it is used as a correction parameter to solve the problem of color accuracy and consistency of the display screen, and efficient color correction and a more realistic color experience are achieved.
Patent Information
- Application Number
- CN202510143086.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-08
- Publication Date
- 2025-04-15
AI Technical Summary
In modern display technology, the color accuracy and consistency of the display screen is difficult to achieve, resulting in the impact of user experience, and the strict material control cost in the prior art is high.
By obtaining the first gray-scale brightness value of the sample to be tested and the color coordinates of the reference RGB combination, the color coordinates of the multiple RGB combinations are determined, and when the difference between the color coordinates of the RGB combination and the target color coordinates is less than the preset threshold, it is used as a correction parameter.
More accurate color correction is achieved, reducing color deviation, providing users with a more realistic and accurate color experience, and reducing the cost of color calibration.
Smart Images

Figure CN119832878A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the technical field of color correction, and in particular to a method, device, electronic device, and computer-readable storage medium for determining correction parameters. Background Art
[0002] In modern display technology, the color accuracy and consistency of the display is one of the key factors affecting the user experience. Whether it is used in consumer electronics, professional image processing equipment, or screens for advertising and public display, color accuracy directly affects the final visual effect and user satisfaction.
[0003] In the related technology, various raw materials (such as liquid crystal materials, backlight sources, filters, etc.) that constitute the display screen are usually strictly controlled and screened to make the performance parameters of these materials as close to the design values as possible, thereby reducing the deviation range of the color coordinates of the color finally presented by the display screen. However, strict material control requires a lot of manpower and material resources to test, screen and grade raw materials, which is very costly. Summary of the invention
[0004] The embodiments of the present disclosure provide a method, device, electronic device and computer-readable storage medium for determining a correction parameter, aiming to solve at least one of the technical problems in the related art to a certain extent.
[0005] In a first aspect, an embodiment of the present disclosure provides a method for determining a correction parameter, the method comprising:
[0006] Obtaining the brightness value corresponding to the first grayscale 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;
[0007] Determine color coordinates corresponding to a plurality of RGB combinations based on the brightness value corresponding to the first grayscale and the color coordinates corresponding to the reference RGB combination;
[0008] When 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 the any RGB combination are used as correction parameters of the color to be corrected.
[0009] In a second aspect, an embodiment of the present disclosure further provides a device for determining a correction parameter, the device comprising:
[0010] A first acquisition module is used to acquire a brightness value corresponding to a first grayscale in the sample to be tested and a color coordinate corresponding to a reference three primary colors RGB combination, wherein the reference RGB combination represents a color to be corrected;
[0011] A first determination module, configured to determine 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;
[0012] The second determination 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.
[0013] In a third aspect, an embodiment of the present disclosure further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps in the above-mentioned method for determining correction parameters when executed by the processor.
[0014] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above-mentioned method for determining correction parameters are implemented.
[0015] In a fifth aspect, the embodiments of the present disclosure further provide a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in various optional implementations of the embodiments of the present disclosure.
[0016] In the disclosed embodiment, the brightness value corresponding to the first gray scale in the sample to be tested and the color coordinates corresponding to the reference three primary colors RGB combination are first obtained, wherein the reference RGB combination represents the color to be corrected, and then based on the brightness value corresponding to the first gray scale and the color coordinates corresponding to the reference RGB combination, the color coordinates corresponding to multiple RGB combinations are determined, and then when 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 of the color to be corrected. Thus, by obtaining the brightness value of the first gray scale and the color coordinates of the reference RGB combination, the initial color state of the sample to be tested can be more comprehensively understood, and the color coordinates of multiple RGB combinations are determined based on this information, so that the performance of different color combinations under specific brightness can be accurately explored, so as to find 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, so that the final corrected color is 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.
[0017] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the present disclosure, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0019] Figure 1 is a flowchart of a method for determining correction parameters provided in the first embodiment of the present disclosure;
[0020] Figure 2 is a schematic diagram of exemplary product test values provided by an embodiment of the present disclosure;
[0021] Figure 3 is a flow chart of a method for determining correction parameters provided in the second embodiment of the present disclosure;
[0022] Figure 4 is a structural schematic diagram of a device for determining correction parameters provided in an embodiment of the present disclosure;
[0023] Figure 5 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0024] Some embodiments of the present disclosure will be described in detail here, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. Various changes, modifications and equivalents of the methods, devices and / or systems described herein will become apparent after understanding the present disclosure. For example, the order of operations described herein is merely an example and is not limited to those orders set forth herein, but can be changed as becomes apparent after understanding the present disclosure, except for operations that must be performed in a specific order. In addition, for clarity and brevity, descriptions of features known in the art may be omitted.
[0025] The embodiments described in some embodiments of the present disclosure below do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0026] It should be noted that the executor of the correction parameter determination method of this embodiment can be a correction parameter determination device, which can be configured in any type of electronic device, such as a tablet computer, television, mobile phone, computer, etc., and is not limited here.
[0027] In the embodiments of the present disclosure, the “correction parameter determination device” is used as the execution subject to execute the “correction parameter determination method” for illustration, and no limitation is made herein.
[0028] It should be noted that the description order of the following embodiments is not intended to limit the priority order of the embodiments.
[0029] Figure 1 It is a flowchart of a method for determining correction parameters provided according to the first embodiment of the present disclosure.
[0030] like Figure 1 As shown, the method includes:
[0031] Step 101, obtaining a brightness value corresponding to a first grayscale in a sample to be tested and a color coordinate corresponding to a reference three primary colors RGB combination, wherein the reference RGB combination represents a color to be corrected.
[0032] Among them, the three primary colors usually represent red (Red, R), green (Green, G) and blue (Blue, B).
[0033] The sample to be tested may be any type of electronic device. In the disclosed embodiment, the sample to be tested may be a device with a display screen, such as a tablet computer, a television, a mobile phone, a computer, etc., which is not limited here.
[0034] The color to be corrected may be a color that currently needs to be calibrated, such as white, black, or green, which is not limited here.
[0035] Exemplarily, in the embodiment of the present disclosure, the color to be corrected may be pure white, and the following will be schematically described using pure white as the color to be corrected.
[0036] The reference RGB combination may be an RGB combination corresponding to the color to be corrected, and the RGB combination is a combination of different grayscales of the three colors of red (R), green (G), and blue (B).
[0037] It is understandable that the grayscale ranges corresponding to R, G, and B can be 0-255. For example, (R255, G255, B20) can be used as an RGB combination, and R252, G255, B200) can be used as an RGB combination. The number of RGB combinations can be 256×256×256. Different RGB combinations can present different colors.
[0038] Optionally, if the color to be corrected is pure white, it means that the grayscales corresponding to the three color channels R, G and B are all 255. The reference RGB combination will be recorded as (R255, G255, B255) below, and is not limited here.
[0039] The first grayscale may be a partial grayscale taken from 256 grayscales. The number of the first grayscales may be one or more. In order to improve the accuracy of the calculation, multiple first grayscales may be selected for measurement.
[0040] As an example, in the embodiment of the present disclosure, 10 gray levels, namely, 26, 51, 77, 102, 128, 153, 179, 204, 230, and 255, can be selected for measurement, which is not limited here.
[0041] The brightness value is an indicator that measures the brightness of the light emitted by the display product. Different grayscales will show different brightness performances. Generally speaking, the higher the grayscale value, the higher the brightness may be. The specific situation varies depending on the characteristics of the display product.
[0042] Specifically, the sample to be tested may be actually measured to obtain different brightness values corresponding to the sample to be tested at multiple first grayscales.
[0043] The color coordinates may be a coordinate representation of a color.
[0044] As an example, the color coordinates may be coordinates in the CIE1931 color space. The CIE 1931 color space is a color space for describing and quantifying colors developed by the International Commission on Illumination (CIE) in 1931. In the CIE1931 color space, the horizontal axis of the color coordinate is x and the vertical axis is y, where x represents the mixing ratio of red to green, and y represents the mixing ratio of green to blue.
[0045] The horizontal axis of the color coordinate is x, and the vertical axis of the color coordinate is y, which are recorded as the horizontal axis ordinate and the vertical axis ordinate respectively. The color coordinate can accurately represent the position of the color in the chromaticity diagram.
[0046] like Figure 2 As shown, Figure 2The brightness values corresponding to a plurality of different first grayscales and the color coordinates corresponding to the reference RGB combination are recorded in , wherein 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 grayscales currently measured, and the corresponding brightness values (Lv) are respectively recorded as Lv-w255, Lv-w230, Lv-w204, Lv-w179, Lv-w153, Lv-w128, Lv-w102, Lv-w77, Lv-w51, and Lv-w26. The corresponding 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. The horizontal color coordinates of R255 are x-r255, and the vertical color coordinates are y-r255. The measured values are 0.6891 and 0.308 respectively. The horizontal color coordinates of G255 are x-g255, and the vertical color coordinates are y-g255. The measured values are 0.2668 and 0.6805 respectively. The horizontal color coordinates of B255 are x-b255, and the vertical color coordinates are y-b255. The measured values are 0.1269 and 0.0528 respectively.
[0047] It should be noted that Figure 2 This is only an illustrative description and is not intended to limit the present disclosure.
[0048] Step 102 : determining color coordinates corresponding to a plurality of RGB combinations based on the brightness value corresponding to the first grayscale and the color coordinates corresponding to the reference RGB combination.
[0049] Optionally, there are multiple first grayscales, and the first grayscale belongs to all grayscales.
[0050] As a possible implementation method, the stimulation values of each color channel corresponding to each grayscale in all grayscales can be determined based on the brightness value corresponding to the first grayscale and the color coordinates corresponding to the reference RGB combination, and then multiple RGB combinations can be constructed based on the color channels corresponding to each grayscale. After that, the color coordinates corresponding to each RGB combination can be determined according to the stimulation values of each color channel in each RGB combination.
[0051] Among them, the stimulation value corresponding to the grayscale refers to the quantitative value of the degree of stimulation to the human visual system under a specific grayscale state. Grayscale is related to brightness, a lower grayscale corresponds to a darker brightness, and a higher grayscale corresponds to a brighter brightness. The stimulation value corresponding to each grayscale can reflect the intensity of stimulation to the human vision of the brightness represented by the grayscale. For example, in a display device, pixels of different grayscales will emit light of different intensities, and the degree of visual stimulation produced by these lights on the human eye can be expressed by the stimulation value.
[0052] In color display, different grayscales may affect the brightness and saturation of color pixels, thereby stimulating the color perception of the human eye. Therefore, the stimulation value of each color channel of each grayscale represents the degree of stimulation of the grayscale on color perception. In the embodiment of the present disclosure, the stimulation value may include an X stimulation value, a Y stimulation value, and a Z stimulation value.
[0053] The X stimulus value represents the stimulus amount of the red component in the light source, the Y stimulus value represents the stimulus amount of the green component in the light source, and the Z stimulus value represents the stimulus amount of the blue component in the light source.
[0054] Optionally, the brightness value of the first grayscale can be first used to perform polynomial fitting through the least squares method to predict the brightness values corresponding to all grayscales, and then the stimulation values of the three color channels of red, green and blue corresponding to each grayscale in all grayscales can be determined by using the brightness values of all grayscales and the color coordinates of the reference RGB combination through a preset first calculation model. 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 is necessary to train or set the first calculation model based on known data. For example, the brightness value and color coordinates of a standard light source and the corresponding RGB stimulation values can be used to calibrate the model.
[0055] Optionally, a preset first calculation model may be used to take the brightness value of each grayscale and the color coordinates of the reference RGB combination as input, and output the RGB stimulation value of each color channel corresponding to each grayscale.
[0056] Specifically, when constructing each RGB combination, it can be constructed based on all grayscales. Since R, G and B correspond to 256 grayscales respectively, there are 256×256×256 RGB combinations.
[0057] Optionally, the color coordinates corresponding to each RGB combination can be determined by using the stimulus values of each color channel in each RGB combination through a preset second calculation model, wherein the second calculation model can be constructed based on a conversion formula and algorithm of a color space.
[0058] Step 103 : when 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 of the color to be corrected.
[0059] The correction parameters may be a set of values used to adjust the color to be corrected to reach a specific standard or desired state. The purpose of the correction parameters is to eliminate color deviation and make the actual displayed color closer to the standard color.
[0060] The RGB parameter may be a combination of values of 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 variety of colors.
[0061] 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.
[0062] The target color coordinates represent the standard color coordinates corresponding to the color to be corrected.
[0063] For example, when the color to be corrected is pure white, x=0.3127, y=0.329 can be used as the target color coordinates. That is, 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).
[0064] It should be noted that in the standard color calculation system, white is usually based on D65. The standard color calculation system is a system used to accurately describe, quantify and compare colors. It provides unified standards and methods for various industries involving color to ensure color consistency and accuracy.
[0065] D65 represents a light source that simulates average daylight, with a color temperature of about 6500 K. This light source has a specific spectral power distribution and can more accurately simulate the color characteristics of natural daylight.
[0066] Among them, 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 the deviation of the horizontal axis color coordinates and the deviation of the vertical axis color coordinates are both 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.
[0067] The preset threshold may be a preset coordinate deviation threshold. As an example, in the embodiment of the present disclosure, the preset threshold may be set to 0.003, or may be set to 0.002, which is not limited here.
[0068] It should be noted that in some related technologies, the mass production control value of the white point color coordinate is: x, y ± 0.02, that is, the corresponding preset threshold is 0.02. This will make the white color coordinate range very large, resulting in a large difference in the color perceived by the human eye. Even for the same product, its color accuracy and consistency are difficult to be recognized.
[0069] For example, assuming that any RGB combination is (Rα, Gβ, Bφ), the corresponding horizontal axis color coordinate x and vertical axis color coordinate y are 0.3138 and 0.33 respectively. Among them, 0.3138-0.3127=0.0011<0.003, 0.33-0.329=0.001<0.003. Therefore, the RGB parameters corresponding to (Rα, Gβ, Bφ) can be used as correction parameters. Then, the RGB parameters corresponding to (Rα, Gβ, Bφ) and the original pure white RGB values (R255, G255, B255) can be mapped and replaced. That is to say, in the display system or color processing flow, the RGB value originally representing pure white is replaced with the calibrated RGB value. After such mapping and replacement, the white color calibration is completed. At this time, when the display device or system needs to display white, the calibrated RGB value will be used, so that the displayed white is closer to the standard white, improving the accuracy and consistency of the color.
[0070] As a possible implementation method, each RGB combination is traversed in a preset order to determine the difference between the color coordinates corresponding to each RGB combination and the target color coordinates.
[0071] The preset order may refer to a preset order for traversing each RGB combination, which may be in descending order of color channel values. That is, when searching for an RGB combination that meets a specific condition, first try the combination with a larger value, and then gradually move to the combination with a smaller value.
[0072] For example, the traversal order can be to first fix R at 255 and G at 255, and then gradually reduce from B at 255 to B at 0. This is the first stage of traversal. Next, keep R at 255, change the value of G from 255 minus 1 to 254, and then gradually reduce from B at 255 to B at 0 again. And so on, traverse all possible RGB combinations.
[0073] Alternatively, the traversal order can be to first fix G at 255 and R at 255, and then gradually decrease from B at 255 to B at 0. This is the first stage of traversal. Next, keep G at 255, change the value of R from 255 minus 1 to 254, and then gradually decrease from G at 255 to B at 0 again. And so on, traverse all possible RGB combinations.
[0074] Alternatively, the traversal order can be to first fix R at 255 and G at 255, and then gradually decrease from B at 255 to B at 0. This is the first stage of traversal. Next, keep R at 255, change the value of G from 255 minus 1 to 254, and then gradually decrease from R at 255 to 0 again. And so on, traverse all possible RGB combinations.
[0075] It should be noted that there are many ways to implement the traversal order, which are not limited here.
[0076] For example, if the first traversed RGB combination is (R255, G255, B255), the difference between the color coordinates (x1, y1) corresponding to (R255, G255, B255) and the target color coordinates can be compared first.
[0077] The second traversed RGB combination is (R255, G255, B254), then the difference between the color coordinates (x2, y2) corresponding to (R255, G255, B254) and the target color coordinates can be compared.
[0078] The third traversed RGB combination is (R255, G255, B253), then the difference between the color coordinates (x3, y3) corresponding to (R255, G255, B253) and the target color coordinates can be compared, and no limitation is made here.
[0079] In the disclosed embodiment, the brightness value corresponding to the first grayscale in the sample to be tested and the color coordinates corresponding to the reference three primary colors RGB combination are first obtained, wherein the reference RGB combination represents the color to be corrected, and then based on the brightness value corresponding to the first grayscale and the color coordinates corresponding to the reference RGB combination, the color coordinates corresponding to multiple RGB combinations are determined, and then when 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 of the color to be corrected. Thus, by obtaining the brightness value of the first grayscale and the color coordinates of the reference RGB combination, the initial color state of the sample to be tested can be more comprehensively understood, and the color coordinates of multiple RGB combinations are determined based on this information, so that the performance of different color combinations under specific brightness can be accurately explored, 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, so that the final corrected color is closer to the target color in the color space, reducing color deviation, and providing users with a more realistic and accurate color experience.
[0080] Figure 3 It is a flowchart of a method for determining correction parameters provided according to the second embodiment of the present disclosure.
[0081] like Figure 3 As shown, the method includes:
[0082] Step 201, obtaining the brightness value corresponding to the first grayscale 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.
[0083] It should be noted that the specific implementation of step 201 can refer to the above embodiment and will not be described in detail here.
[0084] Step 202 : determining a brightness value corresponding to each second grayscale based on a brightness value corresponding to each first grayscale, wherein the first grayscale and the second grayscale constitute all grayscales.
[0085] The second grayscale may be any other grayscale among all grayscales except the first grayscale.
[0086] For example, all grayscales include 256 grayscales, and the number of first grayscales is 10, and the remaining 246 grayscales can be used as second grayscales, which is not limited here.
[0087] Optionally, polynomial fitting can be first performed on the brightness values corresponding to each first gray scale to determine the polynomial parameters, and then a first polynomial can be constructed based on the polynomial parameters. Thereafter, the brightness value corresponding to each second gray scale can be determined based on the gray scale value corresponding to each second gray scale and the first polynomial.
[0088] For example, we can first construct an initial polynomial: Lv-wn = a3*n 3 +a2*n 2 +a1*n+a0.
[0089] Wherein, Lv-wn represents the brightness value corresponding to the grayscale wn, and a3, a2, a1 and a0 are polynomial parameters.
[0090] Combined with the example in step 101 above, the 10 first grayscales selected are W26, W51, W77, W102, W128, W153, W179, W204, W230, and W255, and then the X corresponding to the 10 first grayscales is determined as follows:
[0091]
[0092] Combine the brightness values corresponding to each first grayscale to determine the Y corresponding to each grayscale, as follows:
[0093]
[0094] Among them, θ can be expressed as follows:
[0095]
[0096] Furthermore, the polynomial parameters can be calculated using the following formula and the above measured values:
[0097] θ=(X T X) -1 X TY
[0098] In the embodiment of the present disclosure, as an example, the calculated a3, a2, a1 and a0 are 0, 0.0071, -0.1261 and 2.3062 respectively, and the calculated polynomial parameters are inserted into the initial polynomial, so that the first polynomial is obtained as follows:
[0099] Lv-wn=0.0071*n 2 -0.1261*n+2.3062.
[0100] Specifically, by substituting each second grayscale into the above formula, the brightness value corresponding to each second grayscale can be predicted.
[0101] It should be noted that the above example is only an illustrative description and is not intended to limit the present disclosure.
[0102] Step 203 , determining the stimulation value corresponding to each gray scale according to the color coordinates corresponding to the reference gray scale and the brightness value corresponding to each gray scale in all the gray scales.
[0103] Optionally, the device may first measure the color coordinates corresponding to the reference gray scale.
[0104] Optionally, the reference grayscale may be the maximum grayscale, that is, the grayscale value is 255. In the embodiment of the present disclosure, the reference grayscale may be recorded as w255. Figure 2 As shown, the color coordinates corresponding to w255, including the horizontal axis color coordinate x-w255 and the vertical axis color coordinate y-w255, have measured values of 0.3071 and 0.3095 respectively.
[0105] Among them, the stimulus value corresponding to each grayscale refers to the quantitative value of the degree of stimulation to the human visual system under a specific grayscale state. Grayscale is related to brightness, a lower grayscale corresponds to a darker brightness, and a higher grayscale corresponds to a brighter brightness. The stimulus value corresponding to each grayscale can reflect the intensity of stimulation of the brightness represented by the grayscale to the human vision. For example, in a display device, pixels of different grayscales emit light of different intensities, and the degree of visual stimulation produced by these lights on the human eye can be expressed by stimulus values. In a color display, different grayscales may affect the brightness and saturation of color pixels, thereby stimulating the color perception of the human eye. Therefore, the stimulus value corresponding to each grayscale also includes the degree of stimulation to color perception. In the embodiment of the present disclosure, the stimulus value may include an X stimulus value, a Y stimulus value, and a Z stimulus value.
[0106] Optionally, a first ratio between the horizontal color coordinate and the vertical color coordinate corresponding to the reference gray scale may be determined first, and then the product between the first ratio and the brightness value corresponding to any gray scale is used as the X stimulus value, and then the brightness value corresponding to any gray scale is used as the Y stimulus value, and then the horizontal color coordinate and the vertical color coordinate corresponding to the reference gray scale are subtracted from the first preset value to determine a first difference, and finally the product between the first difference and the brightness value corresponding to any gray scale may be used as the Z stimulus value.
[0107] For example, if the reference grayscale is w255, the horizontal color coordinate corresponding to the reference grayscale is x-w255, the vertical color coordinate is y-w255, and the first ratio is x-w255 / y-w255. For example, if the brightness value corresponding to any grayscale wn (n is 0-255) is Lv-wn, then the X stimulus value corresponding to wn is: Xwn=(x-w255 / y-w255)*Lv-wn.
[0108] Among them, the Y stimulus value corresponding to wn is: Ywn=Lv-wn.
[0109] In the embodiment of the present disclosure, the first preset value may be 1, which is not limited here.
[0110] The first difference is the first preset value minus the value of the horizontal axis color coordinate and the vertical axis color coordinate corresponding to the reference grayscale. For example, the first difference is: 1-x-w255-y-w255.
[0111] Among them, the Z stimulus value corresponding to wn is: Zwn = (1-x-w255-y-w255)*Lv-wn.
[0112] Specifically, the X stimulus value Xwn, the Y stimulus value Ywn, and the Z stimulus value Zwn corresponding to each grayscale may be determined by the above-mentioned calculation method.
[0113] Step 204 , determining the stimulation value corresponding to each color channel and all gray levels according to the color coordinates corresponding to each color channel in the reference RGB combination and the stimulation value corresponding to each gray level.
[0114] Optionally, the stimulus value corresponding to each color channel and the full grayscale can be calculated by the following formula.
[0115] R full grayscale tristimulus value: Xrn = (x-r255 / y-r255)*Yrn;
[0116] Yrn=Yrn;
[0117] Zrn=(1-x-r255-y-r255)*Yrn / y-r255.
[0118] G full grayscale tristimulus value: Xgn = (x-g255 / y-g255)*Ygn;
[0119] Ygn=Ygn;
[0120] Zgn=(1-x-g255-y-g255)*Ygn / y-g255.
[0121] B full grayscale tristimulus value: Xbn = (x-b255 / y-b255)*Ybn;
[0122] Ybn=Ybn;
[0123] Zbn=(1-x-b255-y-b255)*Ybn / y-b255.
[0124] The range of n is 0-255, representing 256 gray levels.
[0125] Among them, 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.
[0126] Among them, 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.
[0127] Among them, 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.
[0128] Wherein, Xrn represents the X stimulus value corresponding to the red color channel R and any grayscale n, Yrn represents the Y stimulus value corresponding to the red color channel R and any grayscale n, and Zrn represents the Z stimulus value corresponding to the red color channel R and any grayscale n.
[0129] Wherein, Xgn represents the X stimulus value corresponding to the green color channel G and any grayscale n, Ygn represents the Y stimulus value corresponding to the green color channel G and any grayscale n, and Zgn represents the Z stimulus value corresponding to the green color channel G and any grayscale n.
[0130] Wherein, Xbn represents the X stimulus value corresponding to the green color channel B and any grayscale n, Ybn represents the Y stimulus value corresponding to the green color channel B and any grayscale n, and Zbn represents the Z stimulus value corresponding to the green color channel B and any grayscale n.
[0131] Step 205: construct multiple RGB combinations based on the color channels corresponding to each grayscale.
[0132] It should be noted that the specific implementation of step 205 can refer to the above embodiment and will not be described in detail here.
[0133] Step 206 , according to 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.
[0134] The sum of the X stimulus values is the sum of the X stimulus values corresponding to each color channel in any RGB combination, the sum of the Y stimulus values is the sum of the Y stimulus values corresponding to each color channel in any RGB combination, and the sum of the Z stimulus values is the sum of the Z stimulus values corresponding to each color channel in any RGB combination.
[0135] For example, the RGB combination is (R255, G250, B240), the X stimulus value, Y stimulus value, and Z stimulus value corresponding to R255 are Xr255, Yr255, and Zr255 respectively; the X stimulus value, Y stimulus value, and Z stimulus value corresponding to G250 are Xg250, Yg250, and Zg250 respectively; the X stimulus value, Y stimulus value, and Z stimulus value corresponding to B240 are Xb240, Yb240, and Zb240 respectively.
[0136] Among them, the sum X of the X stimulus values corresponding to (R255, G250, B240) is Xr255+Xg250+Xb240, the sum Y of the Y stimulus values Y is Yr255+Yg250+Yb240, and the sum Z of the Z stimulus values Z is Zr255+Zg250+Zb240, which are not limited here.
[0137] Step 207, determining a target stimulus value according to the sum of the X stimulus values, the sum of the Y stimulus values, and the sum of the Z stimulus values.
[0138] The target stimulation value may be the sum of the X stimulation value, the Y stimulation value, and the Z stimulation value.
[0139] For example, the sum of the X stimulus value, the sum of the Y stimulus value, and the sum of the Z stimulus value are X, Y, and Z respectively, and the target stimulus value is equal to X+Y+Z, which is not limited here.
[0140] Step 208: 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.
[0141] 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.
[0142] Step 209: The ratio of the sum of the Y stimulus values to the target stimulus value is used as the vertical axis color coordinate corresponding to each RGB combination.
[0143] 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 axis color coordinate corresponding to the RGB combination.
[0144] Step 210: When 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 of the color to be corrected.
[0145] It should be noted that the specific implementation of step 210 can refer to the above embodiment and will not be described in detail here.
[0146] In the embodiment of the present disclosure, firstly, the brightness value corresponding to the first grayscale in the sample to be tested and the color coordinates corresponding to the reference three primary colors RGB combination are obtained, wherein the reference RGB combination represents the color to be corrected, and then based on the brightness value corresponding to each first grayscale, the brightness value corresponding to each second grayscale is determined, wherein the first grayscale and the second grayscale constitute all grayscales, and according to the color coordinates corresponding to the reference grayscale and the brightness value corresponding to each grayscale in all grayscales, the stimulation value corresponding to each grayscale is determined, and then according to the color coordinates corresponding to each color channel in the reference RGB combination and the stimulation value corresponding to each grayscale, the stimulation value corresponding to each color channel and all grayscales is determined, and then based on each color channel corresponding to each grayscale, multiple RGB combinations are constructed. According to the X stimulus value, Y stimulus value and Z stimulus value corresponding to each color channel in each RGB combination, 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 is determined. According to the sum of the X stimulus value, the sum of the Y stimulus value and the sum of the Z stimulus value, the target stimulus value is determined, and the ratio of the sum of the X stimulus value to the target stimulus value is used as the horizontal axis color coordinate corresponding to each RGB combination. Then, the ratio of the sum of the Y stimulus value to the target stimulus value is used as the vertical axis color coordinate corresponding to each RGB combination. Finally, when the difference between the color coordinate corresponding to any RGB combination and the target color coordinate is less than a preset threshold, the RGB parameters corresponding to any RGB combination are used as the correction parameters of the color to be corrected. In this way, the color correction problem under different brightness levels can be comprehensively analyzed and processed. Different grayscales usually correspond to different brightness levels, and changes in brightness will affect the color performance. By determining the brightness value and stimulus value corresponding to each grayscale, the color correction requirements under different grayscales can be better adapted to ensure accurate color performance under various brightness conditions. Process each color channel separately to determine the stimulus value corresponding to each color channel and all grayscales, fully consider the characteristics and changes of the three color channels of red, green and blue, and better adapt to the performance differences of different color channels at different grayscales. It can be used for color correction of displays, projectors and other equipment to improve the quality and color accuracy of images. By accurately adjusting the RGB parameters, the display device can present more realistic and natural colors at different grayscales and color channels, enhancing the user's visual experience. According to the color coordinates and grayscale stimulus values corresponding to each color channel, the sum of the stimulus values corresponding to the RGB combination is determined, and the horizontal and vertical color coordinates are further calculated, so that the position of each RGB combination in the color space can be accurately located. In this way, when compared with the target color coordinates, the RGB combination closest to the target can be found more accurately, thereby improving the accuracy of color correction.
[0147] In order to better implement the correction parameter determination method of the present disclosure, the present disclosure also provides a correction parameter determination device based on the correction parameter determination method. The meanings of the terms are the same as those in the correction parameter determination method, and the specific implementation details can refer to the description in the method embodiment.
[0148] See also Figure 4 , Figure 4 4 is a schematic diagram of a structure of a device for determining a correction parameter provided in an embodiment of the present disclosure. The device 400 for determining a correction parameter includes:
[0149] A first acquisition module 410 is used to acquire a brightness value corresponding to a first grayscale in the sample to be tested and a color coordinate corresponding to a reference three-primary color RGB combination, wherein the reference RGB combination represents a color to be corrected;
[0150] A first determination module 420, configured to determine 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;
[0151] The second determination module 430 is configured 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.
[0152] Optionally, the number of the first grayscales is multiple, and the first grayscale belongs to all grayscales.
[0153] The first determining module includes:
[0154] A first determining unit, configured to determine the stimulus values of each color channel corresponding to each grayscale in all grayscales based on the brightness value corresponding to the first grayscale and the color coordinates corresponding to the reference RGB combination;
[0155] A construction unit, configured to construct a plurality of RGB combinations based on the color channels corresponding to each grayscale;
[0156] The second determining unit is used to determine the color coordinates corresponding to each RGB combination according to the stimulus values of each color channel in each RGB combination.
[0157] Optionally, the second determining unit is specifically configured to:
[0158] Determine the sum of the X stimulus values, the sum of the Y stimulus values, and the sum of the Z stimulus values corresponding to each RGB combination according to the X stimulus value, the Y stimulus value, and the Z stimulus value corresponding to each color channel in each RGB combination;
[0159] Determining a target stimulus value according to the sum of the X stimulus values, the sum of the Y stimulus values, and the sum of the Z stimulus values;
[0160] 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;
[0161] The ratio of the sum of the Y stimulus values to the target stimulus value is used as the vertical axis color coordinate corresponding to each RGB combination.
[0162] Optionally, the first determining unit includes:
[0163] A third determining unit, configured to determine a brightness value corresponding to each second grayscale based on a brightness value corresponding to each first grayscale, wherein the first grayscale and the second grayscale constitute the total grayscale;
[0164] a fourth determining unit, configured to determine a stimulus value corresponding to each gray scale according to the color coordinates corresponding to the reference gray scale and the brightness value corresponding to each gray scale in all the gray scales;
[0165] The fifth determining unit is used to determine the stimulation value corresponding to each color channel and all gray levels according to the color coordinates corresponding to each color channel in the reference RGB combination and the stimulation value corresponding to each gray level.
[0166] Optionally, the third determining unit is specifically configured to:
[0167] Determine polynomial parameters by performing polynomial fitting on the brightness values corresponding to each of the first grayscales;
[0168] Based on the polynomial parameters, construct a first polynomial;
[0169] The brightness value corresponding to each second gray scale is determined according to the gray scale value corresponding to each second gray scale and the first polynomial.
[0170] Optionally, the fourth determining unit is specifically configured to:
[0171] Determine a first ratio between the horizontal axis color coordinate and the vertical axis color coordinate corresponding to the reference grayscale;
[0172] taking the product of the first ratio and the brightness value corresponding to any gray scale as the X stimulus value;
[0173] Taking the brightness value corresponding to any grayscale as the Y stimulus value;
[0174] Subtracting the horizontal axis color coordinate and the vertical axis color coordinate corresponding to the reference grayscale from the first preset value to determine a first difference;
[0175] The product of the first difference value and the brightness value corresponding to any gray scale is used as the Z stimulus value.
[0176] Optionally, the device further includes:
[0177] 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 of the RGB combinations and the target color coordinates.
[0178] In the disclosed embodiment, the brightness value corresponding to the first grayscale in the sample to be tested and the color coordinates corresponding to the reference three primary colors RGB combination are first obtained, wherein the reference RGB combination represents the color to be corrected, and then based on the brightness value corresponding to the first grayscale and the color coordinates corresponding to the reference RGB combination, the color coordinates corresponding to multiple RGB combinations are determined, and then when 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 of the color to be corrected. Thus, by obtaining the brightness value of the first grayscale and the color coordinates of the reference RGB combination, the initial color state of the sample to be tested can be more comprehensively understood, and the color coordinates of multiple RGB combinations are determined based on this information, so that the performance of different color combinations under specific brightness can be accurately explored, 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, so that the final corrected color is closer to the target color in the color space, reducing color deviation, and providing users with a more realistic and accurate color experience.
[0179] In addition, the present disclosure also provides an electronic device, such as Figure 5 As shown, it shows a schematic diagram of the structure of the electronic device involved in the present disclosure, specifically:
[0180] 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 appreciate that Figure 5 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0181] The processor 501 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 502, and calling data stored in the memory 502, the processor 501 performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. 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 processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 501.
[0182] 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, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an 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 a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
[0183] The electronic device also includes a power supply 503 for supplying power to various components. Preferably, the power supply 503 can be logically connected to the processor 501 through a power management system, so as to manage charging, discharging, power consumption and other functions through the power management system. The power supply 503 can also include one or more DC or AC power supplies, recharging systems, power supply device debugging circuits, power converters or inverters, power status indicators and other arbitrary components.
[0184] The electronic device may further include an input unit 504, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0185] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 501 in the electronic device will load 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 will run the application programs stored in the memory 502, thereby implementing the steps in any one of the methods for determining the correction parameters provided in the embodiments of the present disclosure.
[0186] In the disclosed embodiment, the brightness value corresponding to the first grayscale in the sample to be tested and the color coordinates corresponding to the reference three primary colors RGB combination are first obtained, wherein the reference RGB combination represents the color to be corrected, and then based on the brightness value corresponding to the first grayscale and the color coordinates corresponding to the reference RGB combination, the color coordinates corresponding to multiple RGB combinations are determined, and then when 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 of the color to be corrected. Thus, by obtaining the brightness value of the first grayscale and the color coordinates of the reference RGB combination, the initial color state of the sample to be tested can be more comprehensively understood, and the color coordinates of multiple RGB combinations are determined based on this information, so that the performance of different color combinations under specific brightness can be accurately explored, 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, so that the final corrected color is closer to the target color in the color space, reducing color deviation, and providing users with a more realistic and accurate color experience.
[0187] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0188] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0189] To this end, the present disclosure provides a computer-readable storage medium having a computer program stored thereon, and the computer program can be loaded by a processor to execute the steps in any one of the correction parameter determination methods provided in the present disclosure.
[0190] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0191] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0192] Since the instructions stored in the computer-readable storage medium can execute the steps in any method for determining the correction parameters provided in the present disclosure, the beneficial effects that can be achieved by any method for determining the correction parameters provided in the present disclosure can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0193] The above is a detailed introduction to a method, device, electronic device and computer-readable storage medium for determining a correction parameter provided by the present disclosure. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for determining a correction parameter, characterized in that: include: Obtaining the brightness value corresponding to the first grayscale 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; Determine color coordinates corresponding to a plurality of RGB combinations based on the brightness value corresponding to the first grayscale and the color coordinates corresponding to the reference RGB combination; When 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 the any RGB combination are used as correction parameters of the color to be corrected.
2. The method according to claim 1, characterized in that The number of the first grayscales is multiple, and the first grayscale belongs to all grayscales. The 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: Determine the stimulus value of each color channel corresponding to each grayscale in all grayscales based on the brightness value corresponding to the first grayscale and the color coordinates corresponding to the reference RGB combination; Constructing multiple RGB combinations based on the color channels corresponding to each grayscale; According to the stimulation values of each color channel in each RGB combination, the color coordinates corresponding to each RGB combination are determined.
3. The method according to claim 2, characterized in that Determining the color coordinates corresponding to each RGB combination according to the stimulus values of each color channel in each RGB combination includes: Determine the sum of the X stimulus values, the sum of the Y stimulus values, and the sum of the Z stimulus values corresponding to each RGB combination according to the X stimulus value, the Y stimulus value, and the Z stimulus value corresponding to each color channel in each RGB combination; Determining a target stimulus value according to 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 axis color coordinate corresponding to each RGB combination.
4. The method according to claim 2, characterized in that: The step of determining the stimulus value of each color channel corresponding to each grayscale in all grayscales based on the brightness value corresponding to the first grayscale and the color coordinates corresponding to the reference RGB combination includes: Determine, based on the brightness value corresponding to each of the first grayscales, a brightness value corresponding to each of the second grayscales, wherein the first grayscales and the second grayscales constitute the total grayscales; Determine the stimulus value corresponding to each gray scale according to the color coordinates corresponding to the reference gray scale and the brightness value corresponding to each gray scale in all the gray scales; The stimulation values corresponding to each color channel and all gray levels are determined according to the color coordinates corresponding to each color channel in the reference RGB combination and the stimulation values corresponding to each gray level.
5. The method according to claim 4, characterized in that The determining, based on the brightness value corresponding to each first grayscale, the brightness value corresponding to each second grayscale comprises: Determine polynomial parameters by performing polynomial fitting on the brightness values corresponding to each of the first grayscales; Based on the polynomial parameters, construct a first polynomial; The brightness value corresponding to each second gray scale is determined according to the gray scale value corresponding to each second gray scale and the first polynomial.
6. The method according to claim 4, characterized in that Determining the stimulus value corresponding to any gray scale according to the color coordinates corresponding to the reference gray scale and the brightness value corresponding to any gray scale includes: Determine a first ratio between the horizontal axis color coordinate and the vertical axis color coordinate corresponding to the reference grayscale; taking the product of the first ratio and the brightness value corresponding to any gray scale as the X stimulus value; Taking the brightness value corresponding to any gray scale as the Y stimulus value; Subtracting the horizontal axis color coordinate and the vertical axis color coordinate corresponding to the reference grayscale from the first preset value to determine a first difference; The product of the first difference value and the brightness value corresponding to any gray scale is used as the Z stimulus value.
7. The method according to claim 1, characterized in that Also includes: The RGB combinations are traversed in a preset order to determine the difference between the color coordinates corresponding to each RGB combination and the target color coordinates.
8. A device for determining a correction parameter, characterized in that: include: A first acquisition module is used to acquire a brightness value corresponding to a first grayscale in the sample to be tested and a color coordinate corresponding to a reference three-primary color RGB combination, wherein the reference RGB combination represents a color to be corrected; A first determination module, configured to determine 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; The second determination 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.
9. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Calibration method of light source machine
CN121678139A
Method and apparatus for determining correction parameter, and electronic device and storage medium
WO2026166414A1