A gamma calibration method, system and device based on linear interpolation and adjustable specific gravity
Through a gamma calibration method based on linear interpolation and adjustable weight, the RGB change value and weight of the OLED display are dynamically adjusted, solving display problems caused by differences in the brightness response characteristics of the OLED display and changes in environmental factors, achieving more natural color transitions and clear detail display, and improving the user's visual experience.
Patent Information
- Application Number
- CN202510078590.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-17
- Publication Date
- 2025-10-14
- Estimated Expiration
- 2045-01-17
AI Technical Summary
The existing technology uses R, G, and B digital value conversion technology based on a fixed grayscale image to perform gamma calibration on OLED displays. This technology cannot accurately adapt to the differences in brightness response characteristics of OLED displays and changes in environmental factors, resulting in dark or bright images, loss of details, or poor layering, affecting the user's visual experience.
Adopting a gamma calibration method based on linear interpolation and adjustable weight, by setting the color coordinate specifications, brightness specifications and target gamma value, dynamically adjusting the RGB change value and weight, and combining multiple judgment and calculation algorithms, accurate calibration of the display can be achieved.
The display quality of the display is improved, ensuring natural color transitions, clear details, accurate and vivid image colors, and enhancing the user's visual experience.
Smart Images

Figure CN119763492B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of display measurement technology, and in particular to a gamma calibration method, system, and device based on linear interpolation and adjustable weight. Background Art
[0002] With the advancement of OLED materials and manufacturing technology, OLED displays have become a vital component of the display industry, widely used in a variety of electronic devices, from smartphones to large TV screens. When optimizing OLED display image quality, gamma is a crucial parameter for measuring the OLED display's brightness curve. Gamma accurately characterizes the display's brightness response characteristics, representing how the OLED display's output brightness changes under different input signals. It reflects the close connection between displayed brightness and the human eye's perception of natural light, and is closer to a power exponential curve.
[0003] In the prior art, gamma calibration of OLED displays is usually performed using a digital value conversion technology based on R, G, and B of a fixed grayscale image. The digital value conversion technology based on R, G, and B of a fixed grayscale image obtains the digital values of R, G, and B of the fixed grayscale image, converts the digital values into analog voltages, and finally adjusts the brightness output of the display according to the converted analog voltages to achieve gamma calibration that meets the visual characteristics of the human eye.
[0004] However, there are certain shortcomings in using the digital value conversion technology of R, G, and B based on a fixed grayscale image to perform gamma calibration on OLED displays. Since the brightness response characteristics of different OLED displays vary, and in actual applications they are affected by various factors such as environmental factors and display aging, it is easy for the digital values of R, G, and B based on a fixed grayscale image to be unable to accurately adapt to various changes, resulting in the image display after gamma calibration appearing darker or brighter, with loss of details or poor layering, seriously affecting the user's visual experience. Summary of the Invention
[0005] In order to solve the above technical problems, the present application provides a gamma calibration method, system and device based on linear interpolation and adjustable weight.
[0006] The technical solution provided in this application is described below:
[0007] In a first aspect, the present application provides a gamma calibration method based on linear interpolation and adjustable weight, the method comprising:
[0008] Set the color coordinate specifications, brightness specifications and target Gamma value, and initialize the RGB change value of the display;
[0009] Obtaining color coordinates and brightness corresponding to the grayscale image on the display screen, and determining whether the color coordinates meet the color coordinate specifications;
[0010] If not, calculating a first RGB change value using a first preset algorithm based on the color coordinates and the color coordinate specification;
[0011] After obtaining the first RGB change value, determining whether the brightness meets the brightness specification;
[0012] When the brightness meets the brightness specification, adjusting the proportion value of RGB based on the first RGB change value, the color coordinates, and the brightness;
[0013] When the brightness does not meet the brightness specification, a second preset algorithm is used to calculate a second RGB change value based on the brightness and the brightness specification, and a RGB weight value is adjusted based on the second RGB change value, the color coordinates, and the brightness;
[0014] Updating the adjusted specific gravity value into the RGB register of the display screen to achieve display adjustment of the display screen;
[0015] The target color coordinates and target brightness of the display screen after display adjustment are collected and displayed, and gamma calibration of the display screen is performed based on the target gamma value, the target color coordinates, and the target brightness.
[0016] Optionally, the collecting and displaying the adjusted target color coordinates and target brightness of the display screen, and performing gamma calibration of the display screen based on the target gamma value, the target color coordinates, and the target brightness, includes:
[0017] Collecting the target color coordinates and target brightness of the display screen after display adjustment, and calculating the Gamma value based on the target color coordinates and the target brightness;
[0018] Determining whether the Gamma value reaches the target Gamma value;
[0019] If not, the color coordinates and the brightness corresponding to the grayscale image on the display screen are re-acquired for judgment and calculation until the Gamma value reaches the target Gamma value, thereby completing the Gamma calibration of the display screen.
[0020] Optionally, the calculating the first RGB change value using a first preset algorithm based on the color coordinates and the color coordinate specification includes:
[0021] Obtaining an X grayscale range parameter and a Y grayscale range parameter based on the color coordinates, and calculating an R change value, a G change value, and a B change value respectively using a first preset algorithm in combination with the color coordinates and the color coordinate specification;
[0022] The R change value, the G change value, and the B change value are integrated to obtain a first RGB change value.
[0023] Optionally, the R change value is calculated by the following formula:
[0024] ΔR=Xstep*100*[(Xtarget-Xmeter) / Xtarget]-Ystep*11.5*[(Ytarget-Ymeter) / Ytarget];
[0025] The G change value is calculated by the following formula:
[0026] ΔG=Ystep*98*[(Ytarget-Ymeter) / Ytarget]-Xstep*18*[(Xtarget-Xmeter) / Xtarget];
[0027] The B change value is calculated by the following formula:
[0028] ΔB=Ystep*88*[(Ytarget-Ymeter) / Ytarget]-Xstep*48*[(Xtarget-Xmeter) / Xtarget];
[0029] Among them, ΔR represents the R change value, ΔG represents the G change value, ΔB represents the B change value, Xstep represents the X grayscale range parameter; Xtarget represents the X value of the color coordinate specification, Xmeter represents the X value of the color coordinate, Ystep represents the Y grayscale range parameter, Ytarget represents the Y value of the color coordinate specification, and Ymeter represents the Y value of the color coordinate.
[0030] Optionally, after obtaining the color coordinates and brightness corresponding to the grayscale image on the display screen and determining whether the color coordinates meet the color coordinate specifications, the method further includes:
[0031] If so, a second preset algorithm is used to calculate a second RGB change value based on the brightness and the brightness specification, and the RGB weight value is adjusted based on the second RGB change value, the color coordinates, and the brightness.
[0032] Optionally, obtaining the color coordinates and brightness corresponding to the grayscale image on the display screen includes:
[0033] Obtaining color coordinates, brightness, grayscale value, and grayscale parameters corresponding to the grayscale image on the display screen;
[0034] After obtaining the color coordinates, brightness, grayscale value and grayscale parameters corresponding to the grayscale image on the display screen, the method further includes:
[0035] Determining whether the grayscale value is less than a preset grayscale threshold;
[0036] If so, an interpolation algorithm is used to calculate a third RGB variation value based on the grayscale parameter and the grayscale value, and the RGB weight value is adjusted based on the third RGB variation value, the color coordinates, and the brightness.
[0037] Optionally, the third RGB change value is calculated by the following formula:
[0038] ΔRGB=Gn*(R0-Gn+1) / (G0-Gn+1)+(G0*Gn-(Rn+1)*G0) / (Gn-G0);
[0039] Among them, ΔRGB represents the third RGB change value, Gn represents the nth grayscale value, R0 represents the R value corresponding to the 0th grayscale in the grayscale parameters, G0 represents the 0th grayscale value, and Rn represents the R value corresponding to the nth grayscale in the grayscale parameters.
[0040] Optionally, after calculating to obtain the first RGB change value or calculating to obtain the second RGB change value, the method further includes:
[0041] Setting a maximum RGB change value, and determining whether the first RGB change value or the second RGB change value exceeds the maximum RGB change value;
[0042] If so, the first RGB change value or the second RGB change value is modified to the RGB maximum change value.
[0043] A second aspect of the present application provides a gamma calibration system based on linear interpolation and adjustable weight, the system comprising:
[0044] The setting unit is used to set the color coordinate specifications, brightness specifications and target Gamma value, and initialize the RGB change value of the display;
[0045] a first judging unit, configured to obtain color coordinates and brightness corresponding to the grayscale image on the display screen, and to judge whether the color coordinates meet the color coordinate specifications;
[0046] a first calculating unit, configured to, if not, calculate a first RGB change value using a first preset algorithm based on the color coordinates and the color coordinate specification;
[0047] a second judging unit, configured to judge whether the brightness meets the brightness specification after obtaining the first RGB change value;
[0048] a first adjustment unit, configured to adjust a weight value of RGB based on the first RGB variation value, the color coordinates, and the brightness when the brightness meets the brightness specification;
[0049] a second adjustment unit, configured to calculate, based on the brightness and the brightness specification, a second RGB change value using a second preset algorithm when the brightness does not meet the brightness specification, and adjust the RGB weight value based on the second RGB change value, the color coordinates, and the brightness;
[0050] An updating unit, configured to update the adjusted specific gravity value into the RGB register of the display screen to implement display adjustment of the display screen;
[0051] The calibration unit is used to collect the target color coordinates and target brightness of the display screen after display adjustment, and perform gamma calibration of the display screen based on the target gamma value, the target color coordinates and the target brightness.
[0052] Optionally, the calibration unit is specifically used to:
[0053] Collecting the target color coordinates and target brightness of the display screen after display adjustment, and calculating the Gamma value based on the target color coordinates and the target brightness;
[0054] Determining whether the Gamma value reaches the target Gamma value;
[0055] If not, the color coordinates and the brightness corresponding to the grayscale image on the display screen are re-acquired for judgment and calculation until the Gamma value reaches the target Gamma value, thereby completing the Gamma calibration of the display screen.
[0056] Optionally, the first computing unit is specifically configured to:
[0057] Obtaining an X grayscale range parameter and a Y grayscale range parameter based on the color coordinates, and calculating an R change value, a G change value, and a B change value respectively using a first preset algorithm in combination with the color coordinates and the color coordinate specification;
[0058] The R change value, the G change value, and the B change value are integrated to obtain a first RGB change value.
[0059] Optionally, the R change value is calculated by the following formula:
[0060] ΔR=Xstep*100*[(Xtarget-Xmeter) / Xtarget]-Ystep*11.5*[(Ytarget-Ymeter) / Ytarget];
[0061] The G change value is calculated by the following formula:
[0062] ΔG=Ystep*98*[(Ytarget-Ymeter) / Ytarget]-Xstep*18*[(Xtarget-Xmeter) / Xtarget];
[0063] The B change value is calculated by the following formula:
[0064] ΔB=Ystep*88*[(Ytarget-Ymeter) / Ytarget]-Xstep*48*[(Xtarget-Xmeter) / Xtarget];
[0065] Among them, ΔR represents the R change value, ΔG represents the G change value, ΔB represents the B change value, Xstep represents the X grayscale range parameter; Xtarget represents the X value of the color coordinate specification, Xmeter represents the X value of the color coordinate, Ystep represents the Y grayscale range parameter, Ytarget represents the Y value of the color coordinate specification, and Ymeter represents the Y value of the color coordinate.
[0066] Optionally, a third adjustment unit is further included, specifically configured to:
[0067] If so, a second preset algorithm is used to calculate a second RGB change value based on the brightness and the brightness specification, and the RGB weight value is adjusted based on the second RGB change value, the color coordinates, and the brightness.
[0068] Optionally, the first judgment unit is specifically configured to:
[0069] Obtaining color coordinates, brightness, grayscale value, and grayscale parameters corresponding to the grayscale image on the display screen;
[0070] After obtaining the color coordinates, brightness, grayscale value and grayscale parameters corresponding to the grayscale image on the display screen, the method further includes:
[0071] Determining whether the grayscale value is less than a preset grayscale threshold;
[0072] If so, an interpolation algorithm is used to calculate a third RGB variation value based on the grayscale parameter and the grayscale value, and the RGB weight value is adjusted based on the third RGB variation value, the color coordinates, and the brightness.
[0073] Optionally, the third RGB change value is calculated by the following formula:
[0074] ΔRGB=Gn*(R0-Gn+1) / (G0-Gn+1)+(G0*Gn-(Rn+1)*G0) / (Gn-G0);
[0075] wherein, ΔRGB represents the third RGB change value, Gn represents the nth gray scale value, R0 represents the R value corresponding to the 0th gray scale in the gray scale parameter, G0 represents the 0th gray scale value, and Rn represents the R value corresponding to the nth gray scale in the gray scale parameter.
[0076] Optionally, the method further comprises a third judging unit, which is specifically configured to:
[0077] setting an RGB maximum change value, and judging whether the first RGB change value or the second RGB change value exceeds the RGB maximum change value;
[0078] if yes, modifying the first RGB change value or the second RGB change value to the RGB maximum change value.
[0079] The third aspect of the present application provides a gamma calibration device based on linear interpolation and adjustable specific gravity, which comprises:
[0080] a processor, a memory, an input / output unit and a bus;
[0081] the processor is connected with the memory, the input / output unit and the bus;
[0082] the memory stores a program, and the processor calls the program to execute the method according to any one of the above aspects.
[0083] From the above technical solutions, the present application has the following advantages:
[0084] The present application realizes comprehensive improvement of display quality of the display screen, and further improves the visual experience of the user by comprehensively adjusting and calibrating the display screen from color coordinates, brightness and the like. Firstly, color coordinate specifications, brightness specifications and a target Gamma value are set, and RGB change values of the display screen are initialized, and then color coordinates and brightness corresponding to gray scale images on the display screen are acquired. In the specific calibration process, it is judged whether the color coordinates meet the color coordinate specifications, and if not, a first preset algorithm is used to calculate a first RGB change value based on the color coordinates and the color coordinate specifications. After the value is obtained, it is judged whether the brightness meets the brightness specifications, and when the brightness meets the specifications, the proportion value of RGB is adjusted according to the first RGB change value, the color coordinates and the brightness, and when the brightness does not meet the specifications, a second RGB change value is calculated based on the brightness and the brightness specifications by a second preset algorithm, and then the proportion value of RGB is adjusted in combination with the color coordinates and the brightness.
[0085] By multiple judgments on the color coordinates and the brightness, the calculation mode and the algorithm can be dynamically adjusted according to different judgment results, so that the RGB change value can be accurately calculated, and the problems of inaccurate brightness output and dark or bright image display can be avoided. Finally, the adjusted proportion value is updated to the RGB register of the display screen to complete the display adjustment, the target color coordinates and the target brightness after the display adjustment are continuously acquired, Gamma calibration is performed based on the target Gamma value, the target color coordinates and the target brightness, and the color display effect under different gray scales is further optimized, so that the color transition is natural, the image color is accurate and bright, and the details are clear. BRIEF DESCRIPTION OF DRAWINGS
[0086] In order to more clearly illustrate the technical solutions in the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0087] Figure 1 An embodiment flowchart of the gamma calibration method based on linear interpolation and adjustable proportion provided by the present application is shown in the figure.
[0088] Figure 2 Another embodiment flowchart of the gamma calibration method based on linear interpolation and adjustable proportion provided by the present application is shown in the figure.
[0089] Figure 3 An embodiment structure diagram of the gamma calibration system based on linear interpolation and adjustable proportion provided by the present application is shown in the figure.
[0090] Figure 4This is a schematic structural diagram of an embodiment of a gamma calibration device based on linear interpolation and adjustable weight provided in this application. DETAILED DESCRIPTION
[0091] This application provides a gamma calibration method based on linear interpolation and adjustable weighting, which can improve the visual experience. It should be noted that the gamma calibration method based on linear interpolation and adjustable weighting of this application is applied to a terminal.
[0092] Gamma calibration is a technology used to optimize display quality. It primarily adjusts the image's brightness and color information, enabling the display to more accurately reproduce the original image's color, contrast, and brightness. The gamma value determines the nonlinear relationship between the input signal and output brightness. Different gamma values have different effects on the dark, mid, and bright areas of the image. Gamma calibration allows you to adjust the gamma value based on the display's characteristics and actual needs, compensating for nonlinear distortion during the display process. This ensures that images maintain natural, realistic colors and details at varying brightness levels, enhancing the visual experience.
[0093] See also Figure 1 The present application first provides an embodiment of a gamma calibration method based on linear interpolation and adjustable weighting, the embodiment comprising:
[0094] S101, set the color coordinate specification, brightness specification and target Gamma value, and initialize the RGB change value of the display;
[0095] Color coordinates are parameters used to describe the position of color in a specific color space. They mainly use numerical values to accurately represent the properties of color, can accurately judge color deviations, and provide a quantitative basis for color calibration and adjustment to achieve more accurate color display effects.
[0096] In this embodiment, the color coordinate specification can be set according to the specific type of the display screen, the application scenario and the relevant industry standards. For example, if the sRGB color space is used, the standard color coordinate range corresponding to the sRGB color space is set as the color coordinate specification.
[0097] Brightness specifications can be set based on the display's design parameters, usage environment, and user expectations. For example, in a normal indoor environment, an appropriate brightness range can be set as the brightness specification. The target gamma value can be determined by referring to a standard display characteristic curve and the human eye's brightness perception characteristics. For example, a target gamma value of 2.2 can be set based on the human eye's brightness perception characteristics and a standard display characteristic curve.
[0098] After setting the color coordinate specifications, brightness specifications, and target Gamma value, initialize the RGB change value of the display, providing a basis for subsequent adjustments.
[0099] S102, obtaining the color coordinates and brightness corresponding to the grayscale image on the display screen, and determining whether the color coordinates meet the color coordinate specifications;
[0100] Grayscale represents the brightness level of an image, typically represented by different numerical values: smaller values represent darker, and larger values represent brighter. Accurately controlling grayscale can reveal rich image detail and a realistic sense of depth, creating natural transitions and avoiding color discontinuities or uneven brightness, thereby improving visual quality and enhancing image quality.
[0101] By capturing the grayscale image displayed on the display pixel by pixel, the corresponding color coordinates and brightness can be obtained. After obtaining the color coordinates and brightness, the color coordinates are compared with the color coordinate specifications in detail to determine whether the color coordinates of each pixel or sampling point meet the color coordinate specifications.
[0102] When it is determined that the color coordinates meet the color coordinate specifications, a second preset algorithm is used to calculate the second RGB change value based on the brightness and brightness specifications; when it is determined that the color coordinates do not meet the color standard specifications, step 103 is executed.
[0103] S103, based on the color coordinates and the color coordinate specification, using a first preset algorithm to calculate a first RGB change value;
[0104] In this embodiment, when it is determined that the color coordinates do not meet the color coordinate specification, a first preset algorithm is used to perform calculation based on the color coordinates and the color coordinate specification, and the calculation result is a first RGB change value.
[0105] Specifically, the first preset algorithm involves the degree of deviation of the color coordinates, the conversion relationship of the color space, and the characteristics of the RGB color model. The color coordinates and color coordinate specifications are divided into multiple parts and calculated in combination with the formula in the first preset algorithm. After calculating the results of each part, the results of each part are combined to obtain the first RGB change value.
[0106] The first RGB change value reflects the specific value of each RGB channel that needs to be adjusted in order to make the color coordinate meet the specification requirements.
[0107] S104: After obtaining the first RGB change value, determine whether the brightness meets the brightness specification;
[0108] In this embodiment, after obtaining the first RGB change value, the brightness is compared with the brightness specification in detail to determine whether the brightness meets the brightness specification. If the brightness is within the value range specified by the brightness specification, for example, the brightness is 500cd / m2 , the brightness specification is 400 cd / m 2 , the brightness is 500 cd / m 2 , the brightness exceeds the brightness specification 400 cd / m 2 , it is determined that the brightness does not meet the brightness specification.
[0109] When it is determined that the brightness meets the brightness specification, step 105 is performed; when it is determined that the brightness does not meet the brightness specification, step 106 is performed.
[0110] S105, when the brightness meets the brightness specification, the proportion value of RGB is adjusted based on the first RGB change value, the color coordinate and the brightness;
[0111] In this embodiment, when it is determined that the brightness meets the brightness specification, the proportion value of RGB is adjusted based on the first RGB change value, the color coordinate and the brightness. First, the direction and amplitude of the adjustment of RGB channels are determined according to the first RGB change value, for example, the first RGB change value indicates that the red channel needs to be increased by a certain value, then the proportion of the red channel is adjusted accordingly.
[0112] At the same time of determining the adjustment direction and amplitude, the color coordinate is combined to further fine-tune the adjustment, to ensure the accuracy and coordination of the color, for example, the color coordinate is used to determine the deviation of the current color, and the proportion value of the corresponding RGB channel is fine-tuned to achieve more accurate color display.
[0113] After the proportion value of RGB is fine-tuned according to the color coordinate, the brightness is used to combine the influence of the adjustment of each RGB channel on the overall brightness, so that the adjusted RGB proportion value can meet the color requirement and maintain appropriate brightness.
[0114] S106, when the brightness does not meet the brightness specification, the second RGB change value is calculated based on the brightness and the brightness specification using a second preset algorithm, and the proportion value of RGB is adjusted based on the second RGB change value, the color coordinate and the brightness;
[0115] In this embodiment, when the brightness does not meet the brightness specification, the second RGB change value is first calculated based on the brightness and the brightness specification using a second preset algorithm. The second preset algorithm will calculate the second RGB change value according to the deviation degree of the brightness and the requirement of the brightness specification, in combination with the contribution characteristics of each channel in the RGB color model to the brightness.
[0116] The calculation of the second GRB change value is represented by the following formula:
[0117] ΔRGB = Lstep [ (Ltarget-Lmeter) / Ltarget ] ;
[0118] wherein, the second GRB change value is represented as ΔRGB, the luminance parameter obtained based on the gray scale range is represented as Lstep, the luminance specification is represented as Ltarget, and the luminance is represented as Lmeter.
[0119] Specifically, the luminance parameter obtained based on the gray scale range can be represented by the following table:
[0120] Grayscale range >240 >150 >80 >60 >40 >10 >5 other Lstep 185 130 70 60 40 20 15 2
[0121] After the second GRB change value is calculated, the proportion value of RGB is adjusted based on the second RGB change value, the color coordinates, and the luminance. In the adjustment process, the color coordinates are combined to ensure the accuracy of the color and avoid color distortion caused by luminance adjustment. Then, the proportion value of RGB is adjusted according to the second RGB change value, so that the luminance meets the requirements of the luminance specification while maintaining the coordination and authenticity of the color.
[0122] S107, updating the adjusted proportion value to the RGB register of the display screen to realize the display adjustment of the display screen;
[0123] In this embodiment, after the adjustment of the proportion value of RGB is completed, the adjusted proportion value is accurately written into the RGB register of the display screen. Before writing, the terminal generates a corresponding control signal from the adjusted proportion value information and transmits it to the control module of the display screen.
[0124] When the control module receives the control signal, it stores the proportion value in the corresponding RGB register according to the RGB register address mapping rule of the display, for example, the proportion value of the red channel is written into the designated red RGB register, the proportion value of the green channel is written into the designated green RGB register, and the proportion value of the blue channel is written into the designated blue RGB register.
[0125] In the subsequent display process of the display screen, the output of the RGB channel is controlled according to the updated register value, thereby realizing the adjustment of the display effect.
[0126] S108, collecting the target color coordinates and the target luminance of the display screen after the display adjustment, and performing Gamma calibration of the display screen based on the target Gamma value, the target color coordinates, and the target luminance.
[0127] In this embodiment, after the display adjustment is completed, data is collected from multiple key areas of the display screen. The collected data is the target color coordinates and the target luminance after the display adjustment, and it is necessary to ensure that the collected data can comprehensively and accurately reflect the actual display state of the display screen.
[0128] Once the acquisition is complete, the display is gamma-calibrated using a gamma calibration algorithm based on the target gamma value, the acquired target color coordinates, and the target brightness. During the calibration process, the algorithm calculates the corresponding calibration parameters based on the relationship between the target color coordinates, target brightness, and the target gamma value. These calibration parameters are then sent to the display via the display's control interface to calibrate the display's gamma curve, ensuring optimal brightness and color at all grayscale levels.
[0129] This embodiment achieves a comprehensive improvement in the display quality of the display screen by comprehensively adjusting and calibrating the display screen from multiple aspects such as color coordinates and brightness, thereby enhancing the user's visual experience. First, it is necessary to set the color coordinate specifications, brightness specifications, and target gamma value, and initialize the RGB change value of the display screen. Then, the color coordinates and brightness corresponding to the grayscale image on the display screen are obtained. During the specific calibration process, it is determined whether the color coordinates meet the color coordinate specifications. If not, a first RGB change value is calculated based on the color coordinates and color coordinate specifications using a first preset algorithm. After obtaining this value, it is determined whether the brightness meets the brightness specifications. When the brightness meets the specifications, the RGB weight value is reasonably adjusted based on the first RGB change value, color coordinates, and brightness. When the brightness does not meet the specifications, a second RGB change value is calculated based on the brightness and brightness specifications using a second preset algorithm, and the RGB weight value is then adjusted based on the color coordinates and brightness.
[0130] By performing multiple judgments on color coordinates and brightness in this way, the calculation method and algorithm can be dynamically adjusted based on the different judgment results, thereby accurately calculating the RGB change value, avoiding inaccurate brightness output and dark or bright image display issues. Finally, the adjusted specific value is updated to the RGB register of the display to complete the display adjustment. The target color coordinates and target brightness after the display adjustment are further collected and displayed. Gamma calibration is performed based on the target gamma value, target color coordinates, and target brightness to further optimize the color display effect at different grayscales, making the color transition natural, the image color accurate and vivid, and the details clear.
[0131] See also Figure 2 , Figure 2 Another embodiment of a gamma calibration method based on linear interpolation and adjustable weighting provided by the present application includes:
[0132] S201, set the color coordinate specification, brightness specification and target Gamma value, and initialize the RGB change value of the display;
[0133] In this embodiment, step S201 is similar to step S101 in the aforementioned embodiment and will not be described again here.
[0134] S202, obtaining color coordinates, brightness, grayscale value and grayscale parameters corresponding to the grayscale image on the display screen;
[0135] In this embodiment, data is first collected from a grayscale image on a display screen. The color information and brightness values of different regions of the grayscale image are measured to obtain the corresponding color coordinates and brightness. Simultaneously with obtaining the color coordinates and brightness, the grayscale values and grayscale parameters are read from the display's control chip. The grayscale values represent the brightness level of each pixel in the image, while the grayscale parameters contain parameter information related to grayscale display.
[0136] It should be noted that during the collection process, in order to ensure the accuracy and comprehensiveness of the data, multiple measurements will be performed in multiple key areas of the display screen according to preset sampling rules, and the collected data will be averaged or weighted to eliminate measurement errors and local differences.
[0137] Obtaining the color coordinates, brightness, grayscale values, and grayscale parameters corresponding to the grayscale image provides a data basis for subsequent gamma calibration. Accurate color coordinates and brightness data can reflect the current actual display status of the display, while obtaining grayscale values and grayscale parameters helps to gain a deeper understanding of the display characteristics of the display at different grayscales, allowing the calibration process to optimize different grayscales more specifically.
[0138] By comprehensively and accurately collecting color coordinates, brightness, grayscale values, and grayscale parameters, the accuracy and effect of gamma calibration can be improved, so that the display can present the best display effect at different grayscales and meet the display requirements in different application scenarios.
[0139] S203, determining whether the grayscale value is less than a preset grayscale threshold;
[0140] In this embodiment, after obtaining the grayscale value of the grayscale image on the display screen, the grayscale value is compared with a preset grayscale threshold. The preset grayscale threshold is a critical value determined according to the characteristics of the display screen and actual application requirements, and is not limited here.
[0141] During the comparison process, the grayscale value is numerically compared with the grayscale threshold through a comparison algorithm. For example, when the grayscale value is 10 and the preset grayscale threshold is 15, it is determined that the grayscale value is less than the preset grayscale threshold.
[0142] When it is determined that the grayscale value is less than the preset grayscale threshold, step 204 is executed; when it is determined that the grayscale value is not less than the preset grayscale threshold, step 205 is executed.
[0143] Determining whether a grayscale value is less than a preset grayscale threshold can employ different calculation strategies based on different grayscale conditions. When the grayscale value is less than the preset grayscale threshold, it indicates that the current display is in a lower grayscale region. In this lower grayscale region, the brightness or color coordinate changes may be smaller, and the calculation method using the first or second preset algorithms may not be able to obtain accurate RGB change values.
[0144] By judging the grayscale value, special cases where the grayscale value is less than the preset grayscale threshold can be identified in a timely manner, which can better adapt to the display characteristics of the display at different grayscales, making the entire calibration process more flexible and thus improving the accuracy of calibration.
[0145] S204: Based on the grayscale parameter and the grayscale value, an interpolation algorithm is used to calculate a third RGB change value, and the RGB weight value is adjusted based on the third RGB change value, the color coordinates, and the brightness;
[0146] In this embodiment, when it is determined that the grayscale value is less than the preset grayscale threshold, the obtained grayscale parameters and grayscale values are used as input data and input into the interpolation algorithm. The interpolation algorithm calculates the third RGB change value based on the input grayscale parameters and grayscale values.
[0147] Specifically, the interpolation algorithm is designed based on the analysis of the low grayscale display characteristics of the display screen, and can more accurately calculate the third RGB change value in the low grayscale case.
[0148] The third RGB change value is calculated by the following formula:
[0149] ΔRGB=Gn*(R0-Gn+1) / (G0-Gn+1)+(G0*Gn-(Rn+1)*G0) / (Gn-G0);
[0150] Wherein, ΔRGB represents the third RGB change value, Gn represents the nth grayscale value, R0 represents the R value corresponding to the 0th grayscale in the grayscale parameter, G0 represents the 0th grayscale value, and Rn represents the R value corresponding to the nth grayscale in the grayscale parameter.
[0151] After obtaining the third RGB change value, the RGB weight value will be adjusted in combination with the current color coordinate and brightness information. For example, the RGB weight value will be increased or decreased in a certain proportional relationship according to the deviation of the color coordinate and the actual brightness value.
[0152] At low grayscale levels, an interpolation algorithm is used to calculate the third RGB change value and adjust the RGB weighting accordingly. This effectively addresses the inaccuracy of conventional calculation methods caused by small changes in brightness or color coordinates at low grayscale levels. The interpolation algorithm performs targeted calculations based on the characteristics of low grayscale areas, resulting in RGB change values that are more consistent with actual conditions, thereby improving gamma calibration accuracy.
[0153] By adjusting the RGB weight values, the color and brightness performance of the display screen at low grayscale can be further optimized, making the dark details of the image more clearly visible and avoiding problems such as loss of details in dark areas or color deviation.
[0154] S205, determining whether the color coordinates meet the color coordinate specifications;
[0155] In this embodiment, step S205 is similar to step S102 in the aforementioned embodiment and will not be described again here.
[0156] S206 : Based on the brightness and brightness specification, use a second preset algorithm to calculate a second RGB change value, and adjust the RGB weight value based on the second RGB change value, the color coordinates, and the brightness.
[0157] In this embodiment, when it is determined that the color coordinates meet the color coordinate specification, step S206 is similar to step S106 in the above embodiment and will not be described again here.
[0158] S207, obtaining an X grayscale range parameter and a Y grayscale range parameter based on the color coordinates, and calculating an R change value, a G change value, and a B change value respectively using a first preset algorithm in combination with the color coordinates and the color coordinate specifications;
[0159] In this embodiment, when it is determined that the color coordinates do not meet the color coordinate specifications, the corresponding X grayscale range parameters and Y grayscale range parameters are obtained based on the current color coordinates. The X grayscale range parameters and Y grayscale range parameters reflect the variation range and trend of the color coordinates at different grayscales. The obtained color coordinates, color coordinate specifications, X grayscale range parameters, and Y grayscale range parameters are then used as input parameters and input into a first preset algorithm. The first preset algorithm performs calculations on the three R, G, and B components based on the input parameters to determine the change value that needs to be adjusted for each component.
[0160] During the calculation process, the first preset algorithm considers factors such as the degree of deviation between the color coordinates and the specifications and the influence of the grayscale range parameter to calculate the R change value, G change value, and B change value. For example, if the X component of the color coordinates is too small, the R component change value is increased according to the X grayscale range parameter to adjust the color deviation.
[0161] The R change value is calculated by the following formula:
[0162] ΔR=Xstep*100*[(Xtarget-Xmeter) / Xtarget]-Ystep*11.5*[(Ytarget-Ymeter) / Ytarget];
[0163] The G change value is calculated by the following formula:
[0164] ΔG=Ystep*98*[(Ytarget-Ymeter) / Ytarget]-Xstep*18*[(Xtarget-Xmeter) / Xtarget];
[0165] The B change value is calculated by the following formula:
[0166] ΔB=Ystep*88*[(Ytarget-Ymeter) / Ytarget]-Xstep*48*[(Xtarget-Xmeter) / Xtarget];
[0167] Wherein, ΔR represents the R change value, ΔG represents the G change value, ΔB represents the B change value, Xstep represents the X grayscale range parameter; Xtarget represents the X value of the color coordinate specification, Xmeter represents the X value of the color coordinate, Ystep represents the Y grayscale range parameter, Ytarget represents the Y value of the color coordinate specification, and Ymeter represents the Y value of the color coordinate.
[0168] The X grayscale range parameter and the Y grayscale range parameter are obtained based on the color coordinates, and the R, G, and B change values are calculated respectively using the first preset algorithm in combination with the color coordinates and the color coordinate specifications, so that accurate color adjustment can be performed when the color coordinates do not meet the specifications.
[0169] In a display screen, deviations in color coordinates can lead to color distortion. This embodiment specifically adjusts the change values of the three components R, G, and B according to the specific color coordinate deviation and grayscale range information, which can effectively correct the color deviation and enable the display screen to present more accurate and realistic colors.
[0170] S208 , integrating the R change value, the G change value, and the B change value to obtain a first RGB change value;
[0171] In this embodiment, after the R change value, G change value, and B change value are calculated separately using the first preset algorithm, the R change value, G change value, and B change value are integrated to obtain a first RGB change value. During the integration process, the R change value, G change value, and B change value are combined into a unified RGB change value representation as the first RGB change value.
[0172] By integrating the R change value, the G change value, and the B change value to obtain the first RGB change value, it is possible to achieve a holistic and coordinated adjustment of the display screen's color. During the color adjustment process, the three components of the R change value, the G change value, and the B change value are interrelated and influence each other. Adjusting any one component alone will lead to color imbalance. Integrating the change values of the three components into a unified RGB change value can ensure that the three components can change in a coordinated manner during the adjustment process, maintaining color balance and consistency. This can more effectively correct color deviations and make the display screen present more accurate and harmonious colors.
[0173] S209, setting the RGB maximum change value, and determining whether the first RGB change value exceeds the RGB maximum change value;
[0174] In this embodiment, the maximum RGB variation value is set according to the hardware characteristics, display requirements, industry standards, and actual needs of the display screen. The maximum RGB variation value is used to limit the range of RGB variation to ensure the stability of the display screen and the rationality of the display effect.
[0175] After the setting is complete, the calculated first RGB change value is compared with the set RGB maximum change value. During the comparison process, the change values of the R, G, and B components of the first RGB change value are extracted and compared one by one with the corresponding component thresholds in the RGB maximum change value. If the change values of any three components do not exceed the corresponding thresholds, it is determined that they do not exceed the thresholds. For example, if the change value of the R component in the first RGB change value is 50, and the R component threshold in the set RGB maximum change value is 40, then the first RGB change value is determined to have exceeded the RGB maximum change value.
[0176] When it is determined that the first RGB change value exceeds the RGB maximum change value, step 210 is executed; when it is determined that the first RGB change value does not exceed the RGB maximum change value, step 211 is executed.
[0177] Setting the maximum RGB variation value and determining whether the first RGB variation value exceeds it can effectively prevent damage to the display caused by excessive RGB variation values. Excessive RGB variation values can cause problems such as oversaturation, color distortion, and abnormal brightness on the display, affecting the display effect and even damaging the display hardware.
[0178] By limiting and judging the first RGB change value, it is possible to ensure that the RGB change value is within a reasonable range, ensure that the color and brightness adjustment of the display screen is stable, avoid the degradation of image quality due to unreasonable fluctuations in the RGB change value, and provide users with a stable and reliable visual experience.
[0179] S210, modifying the first RGB change value to the RGB maximum change value;
[0180] In this embodiment, when it is determined that the first RGB change value exceeds the RGB maximum change value, the first RGB change value is modified to the RGB maximum change value. Specifically, the change values of the R, G, and B components in the originally set RGB maximum change value are replaced by the component thresholds corresponding to the first RGB change value. For example, if the first RGB change value is (80, 90, 100) and the RGB maximum change value is (60, 70, 80), and the first RGB change value exceeds the RGB maximum change value, the first RGB change value is updated to (60, 70, 80).
[0181] When it is determined that the first RGB change value exceeds the maximum RGB change value, the value of the first RGB change value is modified to the maximum RGB change value. This can avoid problems such as color oversaturation and distortion caused by excessive RGB change values, ensure that the color and brightness performance of the image meet expectations, provide users with a high-quality visual experience, and avoid excessive RGB change values from damaging the hardware of the display and affecting the service life of the display.
[0182] S211, after obtaining the first RGB change value, determining whether the brightness meets the brightness specification;
[0183] In this embodiment, step S211 is similar to step S104 in the aforementioned embodiment and will not be described again here.
[0184] S212: When the brightness meets the brightness specification, adjust the RGB weight value based on the first RGB change value, the color coordinates, and the brightness;
[0185] In this embodiment, step S212 is similar to step S105 in the aforementioned embodiment and will not be described again here.
[0186] S213: When the brightness does not meet the brightness specification, a second RGB change value is calculated using a second preset algorithm based on the brightness and the brightness specification;
[0187] In this embodiment, step S213 is similar to step S106 in the aforementioned embodiment and will not be described again here.
[0188] S214, determining whether the second RGB change value exceeds the RGB maximum change value;
[0189] In this embodiment, the calculated second RGB change value is compared with the set RGB maximum change value. During the comparison process, the change values of the R, G, and B components of the second RGB change value are extracted and compared one by one with the corresponding component thresholds in the RGB maximum change value. If the change values of any three components do not exceed the corresponding thresholds, the result is determined to be not exceeded. For example, if the change value of the R component in the second RGB change value is 70, and the R component threshold in the set RGB maximum change value is 60, the second RGB change value is determined to have exceeded the RGB maximum change value.
[0190] When it is determined that the second RGB change value exceeds the RGB maximum change value, step 215 is executed; when it is determined that the second RGB change value does not exceed the RGB maximum change value, step 216 is executed.
[0191] Setting the maximum RGB variation value and determining whether the second RGB variation value exceeds it can effectively prevent damage to the display caused by excessive RGB variation values. Excessive RGB variation values can cause problems such as oversaturation, color distortion, and abnormal brightness on the display, affecting the display effect and even damaging the display hardware.
[0192] By limiting and judging the second RGB change value, it is possible to ensure that the RGB change value is within a reasonable range, ensure that the color and brightness adjustment of the display are stable, avoid the degradation of image quality due to unreasonable fluctuations in the RGB change value, and provide users with a stable and reliable visual experience.
[0193] S215, modifying the second RGB change value to the RGB maximum change value;
[0194] In this embodiment, when it is determined that the second RGB change value exceeds the RGB maximum change value, the second RGB change value is modified to the RGB maximum change value. Specifically, the change values of the R, G, and B components in the originally set RGB maximum change value are replaced by the component thresholds corresponding to the second RGB change value. For example, if the second RGB change value is (80, 100, 100) and the RGB maximum change value is (60, 80, 80), and the second RGB change value exceeds the RGB maximum change value, the second RGB change value is updated to (60, 80, 80).
[0195] When it is determined that the second RGB change value exceeds the maximum RGB change value, the value of the second RGB change value is modified to the maximum RGB change value. This can avoid problems such as color oversaturation and distortion caused by excessive RGB change values, ensure that the color and brightness performance of the image meet expectations, provide users with a high-quality visual experience, and avoid excessive RGB change values from damaging the hardware of the display and affecting the service life of the display.
[0196] S216, adjusting the proportion value of RGB based on the second RGB change value, the color coordinate, and the brightness;
[0197] In this embodiment, step S213 is similar to step S106 of the foregoing embodiment, and thus will not be described here again.
[0198] S217, updating the adjusted proportion value to the RGB register of the display screen to realize display adjustment of the display screen;
[0199] In this embodiment, step S217 is similar to step S107 of the foregoing embodiment, and thus will not be described here again.
[0200] S218, collecting the target color coordinate and the target brightness of the display screen after display adjustment, and calculating the Gamma value based on the target color coordinate and the target brightness;
[0201] In this embodiment, after the display adjustment of the display screen is completed, data collection is performed on the display screen after display adjustment to obtain the target color coordinate and the target brightness of the display content on the display screen. The target color coordinate reflects the specific position and characteristics of the color currently displayed by the display screen, and the target brightness represents the current brightness level.
[0202] After the target color coordinate and the target brightness are collected, the target color coordinate and the target brightness are input as input parameters into the pre-set Gamma value calculation algorithm, and the Gamma value calculation algorithm calculates the corresponding Gamma value according to the relationship between the color and the brightness and the principle of Gamma correction. The calculated Gamma value represents the non-linear relationship between the brightness and the color of the display screen in the current display state.
[0203] Collecting the target color coordinate and the target brightness and calculating the Gamma value can accurately evaluate the display state of the display screen after display adjustment. The Gamma value is used to measure the accuracy of the color and the brightness of the display screen. By calculating the Gamma value, it can be known whether there are problems such as color deviation and brightness unevenness in the actual display process of the display screen, which provides data support for subsequent Gamma calibration and helps to find and correct the problems after display adjustment, thereby improving the display quality.
[0204] S219, judging whether the Gamma value reaches the target Gamma value;
[0205] In this embodiment, after the Gamma value is calculated, the Gamma value is compared with the target Gamma value for judgment. The target Gamma value is determined according to the ideal display effect of the display screen, industry standards, and actual needs and other factors.
[0206] If the Gamma value is greater than or equal to the target Gamma value, then it is determined that the Gamma value has reached the target Gamma value; if the Gamma value is less than the target Gamma value, then it is determined that the Gamma value has not reached the target Gamma value.
[0207] When the Gamma value reaches the target Gamma value, the Gamma calibration of the display is completed;
[0208] When it is determined that the Gamma value does not reach the target Gamma value, step 220 is executed.
[0209] By determining whether the gamma value reaches the target gamma value, you can determine whether the display meets the expected standards. The target gamma value represents the optimal display state of the display. When the gamma value reaches the target gamma value, it means that the relationship between color and brightness of the display is ideal, and it can present accurate and natural image effects. However, if the gamma value does not reach the target gamma value, it indicates that there are some display issues with the display and further adjustment and calibration are required.
[0210] S220 , reacquire the color coordinates and brightness corresponding to the grayscale image on the display screen for judgment and calculation until the Gamma value reaches the target Gamma value, thereby completing the Gamma calibration of the display screen.
[0211] In this embodiment, when it is determined that the gamma value does not reach the target gamma value, the color coordinates and brightness corresponding to the grayscale image on the display screen are reacquired, that is, the process returns to step 202, and multiple judgments and calculations are performed again based on the newly acquired color coordinates and brightness, and the iterative process is carried out until the calculated gamma value reaches the target gamma value.
[0212] This embodiment can achieve accurate gamma calibration of the display screen by continuously iteratively acquiring the color coordinates and brightness of the grayscale image and performing judgment and calculation until the gamma value reaches the target gamma value, and can gradually eliminate the deviation of the display screen in color and brightness, so that the display effect continuously approaches the ideal state.
[0213] The following is a detailed description of the gamma calibration system based on linear interpolation and adjustable weight provided by this application. Figure 3 , Figure 3 An embodiment of a gamma calibration system based on linear interpolation and adjustable weighting provided by the present application includes:
[0214] The setting unit 301 is used to set the color coordinate specification, brightness specification and target Gamma value, and initialize the RGB change value of the display screen;
[0215] The first judgment unit 302 is used to obtain the color coordinates and brightness corresponding to the grayscale image on the display screen, and to judge whether the color coordinates meet the color coordinate specifications;
[0216] A first calculation unit 303 is configured to calculate a first RGB change value using a first preset algorithm based on the color coordinates and the color coordinate specification if no;
[0217] The second judgment unit 304 is used to judge whether the brightness meets the brightness specification after obtaining the first RGB change value;
[0218] A first adjustment unit 305 is configured to adjust the proportion of RGB based on the first RGB change value, the color coordinates, and the brightness when the brightness meets the brightness specification;
[0219] A second adjustment unit 306 is configured to calculate a second RGB change value using a second preset algorithm based on the brightness and the brightness specification when the brightness does not meet the brightness specification, and adjust the RGB weight value based on the second RGB change value, the color coordinates, and the brightness;
[0220] An updating unit 307 is used to update the adjusted specific gravity value to the RGB register of the display screen to achieve display adjustment of the display screen;
[0221] The calibration unit 308 is configured to collect target color coordinates and target brightness of the display screen after display adjustment, and perform gamma calibration of the display screen based on the target gamma value, target color coordinates, and target brightness.
[0222] Optionally, the calibration unit 308 is specifically configured to:
[0223] The target color coordinates and target brightness of the display screen after display adjustment are collected and displayed, and the Gamma value is calculated based on the target color coordinates and target brightness;
[0224] Determine whether the Gamma value reaches the target Gamma value;
[0225] If not, the color coordinates and brightness corresponding to the grayscale image on the display screen are re-obtained for judgment and calculation until the Gamma value reaches the target Gamma value to complete the Gamma calibration of the display screen.
[0226] Optionally, the first calculation unit 303 is specifically configured to:
[0227] Obtaining an X grayscale range parameter and a Y grayscale range parameter based on the color coordinates, and calculating an R change value, a G change value, and a B change value respectively using a first preset algorithm in combination with the color coordinates and the color coordinate specification;
[0228] The R change value, the G change value, and the B change value are integrated to obtain a first RGB change value.
[0229] Optionally, the R change value is calculated using the following formula:
[0230] ΔR=Xstep*100*[(Xtarget-Xmeter) / Xtarget]-Ystep*11.5*[(Ytarget-Ymeter) / Ytarget];
[0231] The G change value is calculated by the following formula:
[0232] ΔG=Ystep*98*[(Ytarget-Ymeter) / Ytarget]-Xstep*18*[(Xtarget-Xmeter) / Xtarget];
[0233] The B change value is calculated by the following formula:
[0234] ΔB=Ystep*88*[(Ytarget-Ymeter) / Ytarget]-Xstep*48*[(Xtarget-Xmeter) / Xtarget];
[0235] Wherein, ΔR represents the R change value, ΔG represents the G change value, ΔB represents the B change value, Xstep represents the X grayscale range parameter; Xtarget represents the X value of the color coordinate specification, Xmeter represents the X value of the color coordinate, Ystep represents the Y grayscale range parameter, Ytarget represents the Y value of the color coordinate specification, and Ymeter represents the Y value of the color coordinate.
[0236] Optionally, a third adjusting unit 309 is further included, specifically configured to:
[0237] If so, a second preset algorithm is used to calculate a second RGB change value based on the brightness and brightness specification, and the RGB weight value is adjusted based on the second RGB change value, the color coordinates, and the brightness.
[0238] Optionally, the first judging unit 302 is specifically configured to:
[0239] Obtain the color coordinates, brightness, grayscale value and grayscale parameters corresponding to the grayscale image on the display screen;
[0240] After obtaining the color coordinates, brightness, grayscale value and grayscale parameters corresponding to the grayscale image on the display screen, the following steps are also included:
[0241] Determine whether the grayscale value is less than a preset grayscale threshold;
[0242] If so, an interpolation algorithm is used to calculate a third RGB change value based on the grayscale parameter and the grayscale value, and the RGB weight value is adjusted based on the third RGB change value, the color coordinates, and the brightness.
[0243] Optionally, the third RGB change value is calculated by the following formula:
[0244] ΔRGB=Gn*(R0-Gn+1) / (G0-Gn+1)+(G0*Gn-(Rn+1)*G0) / (Gn-G0);
[0245] wherein, ΔRGB represents the third RGB change value, Gn represents the nth gray scale value, R0 represents the R value corresponding to the 0th gray scale in the gray scale parameter, G0 represents the 0th gray scale value, and Rn represents the R value corresponding to the nth gray scale in the gray scale parameter.
[0246] Optionally, the device further comprises a third determining unit 310, which is specifically configured to:
[0247] determine whether the first RGB change value or the second RGB change value exceeds the maximum RGB change value;
[0248] if yes, modify the first RGB change value or the second RGB change value to the maximum RGB change value.
[0249] The application further provides a gamma calibration device based on linear interpolation and adjustable specific gravity, please refer to Figure 4 , Figure 4 An embodiment of the gamma calibration device based on linear interpolation and adjustable specific gravity provided by the application comprises:
[0250] a processor 401, a memory 402, an input / output unit 403, and a bus 404;
[0251] The processor 401 is connected with the memory 402, the input / output unit 403, and the bus 404;
[0252] The memory 402 stores a program, and the processor 401 invokes the program to execute any of the above methods.
[0253] The application further relates to a computer readable storage medium, and the computer readable storage medium stores a program, and the program is characterized in that when the program runs on a computer, the program causes the computer to execute any of the above methods.
[0254] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiments, and will not be described here.
[0255] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0256] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0257] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0258] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk, and other media that can store program code.
Claims
1. A gamma calibration method based on linear interpolation and adjustable weighting, characterized in that: The method comprises: Set the color coordinate specifications, brightness specifications and target Gamma value, and initialize the RGB change value of the display; Obtaining color coordinates and brightness corresponding to the grayscale image on the display screen, and determining whether the color coordinates meet the color coordinate specifications; If not, calculating a first RGB change value using a first preset algorithm based on the color coordinates and the color coordinate specification; After obtaining the first RGB change value, determining whether the brightness meets the brightness specification; When the brightness meets the brightness specification, adjusting the proportion value of RGB based on the first RGB change value, the color coordinates, and the brightness; When the brightness does not meet the brightness specification, a second preset algorithm is used to calculate a second RGB change value based on the brightness and the brightness specification, and a RGB weight value is adjusted based on the second RGB change value, the color coordinates, and the brightness; Updating the adjusted specific gravity value into the RGB register of the display screen to achieve display adjustment of the display screen; Collecting the target color coordinates and target brightness of the display screen after display adjustment, and performing gamma calibration of the display screen based on the target gamma value, the target color coordinates, and the target brightness; The obtaining of the color coordinates and brightness corresponding to the grayscale image on the display screen includes: Obtaining color coordinates, brightness, grayscale value, and grayscale parameters corresponding to the grayscale image on the display screen; After obtaining the color coordinates, brightness, grayscale value and grayscale parameters corresponding to the grayscale image on the display screen, the method further includes: Determining whether the grayscale value is less than a preset grayscale threshold; If so, an interpolation algorithm is used to calculate a third RGB variation value based on the grayscale parameter and the grayscale value, and the RGB weight value is adjusted based on the third RGB variation value, the color coordinates, and the brightness.
2. The method according to claim 1, characterized in that The collecting and displaying the adjusted target color coordinates and target brightness of the display screen, and performing gamma calibration of the display screen based on the target gamma value, the target color coordinates, and the target brightness, includes: Collecting the target color coordinates and target brightness of the display screen after display adjustment, and calculating the Gamma value based on the target color coordinates and the target brightness; Determining whether the Gamma value reaches the target Gamma value; If not, the color coordinates and the brightness corresponding to the grayscale image on the display screen are re-acquired for judgment and calculation until the Gamma value reaches the target Gamma value, thereby completing the Gamma calibration of the display screen.
3. The method according to claim 1, characterized in that The calculating the first RGB change value based on the color coordinates and the color coordinate specification using a first preset algorithm includes: Obtaining an X grayscale range parameter and a Y grayscale range parameter based on the color coordinates, and calculating an R change value, a G change value, and a B change value respectively using a first preset algorithm in combination with the color coordinates and the color coordinate specification; The R change value, the G change value, and the B change value are integrated to obtain a first RGB change value.
4. The method according to claim 3, characterized in that The R change value is calculated by the following formula: ; The G change value is calculated by the following formula: ; The B change value is calculated by the following formula: ; in, represents the R change value, represents the G change value, represents the B change value, represents the X grayscale range parameter; represents the X value of the color coordinate specification, represents the X value of the color coordinate, represents the Y grayscale range parameter, represents the Y value of the color coordinate specification, Indicates the Y value of the color coordinate.
5. The method according to claim 1, wherein After obtaining the color coordinates and brightness corresponding to the grayscale image on the display screen and determining whether the color coordinates meet the color coordinate specifications, the method further includes: If so, a second preset algorithm is used to calculate a second RGB change value based on the brightness and the brightness specification, and the RGB weight value is adjusted based on the second RGB change value, the color coordinates, and the brightness.
6. The method according to claim 1, characterized in that The third RGB change value is calculated by the following formula: ; in, represents the third RGB change value, Indicates the The grayscale value, Indicates that the 0th grayscale parameter corresponds to value, represents the 0th grayscale value, Indicates the grayscale parameter The grayscale corresponds to value.
7. The method according to claim 1, characterized in that After the first RGB change value is obtained by calculation or the second RGB change value is obtained by calculation, the method further includes: Setting a maximum RGB change value, and determining whether the first RGB change value or the second RGB change value exceeds the maximum RGB change value; If so, the first RGB change value or the second RGB change value is modified to the RGB maximum change value.
8. A gamma calibration system based on linear interpolation and adjustable weighting, characterized in that: The system comprises: The setting unit is used to set the color coordinate specifications, brightness specifications and target Gamma value, and initialize the RGB change value of the display; a first judging unit, configured to obtain color coordinates and brightness corresponding to the grayscale image on the display screen, and to judge whether the color coordinates meet the color coordinate specifications; a first calculating unit, configured to, if not, calculate a first RGB change value using a first preset algorithm based on the color coordinates and the color coordinate specification; a second judging unit, configured to judge whether the brightness meets the brightness specification after obtaining the first RGB change value; a first adjustment unit, configured to adjust a weight value of RGB based on the first RGB variation value, the color coordinates, and the brightness when the brightness meets the brightness specification; a second adjustment unit, configured to, when the brightness does not meet the brightness specification, calculate a second RGB change value using a second preset algorithm based on the brightness and the brightness specification, and adjust the RGB weight value based on the second RGB change value, the color coordinates, and the brightness; An updating unit, configured to update the adjusted specific gravity value into the RGB register of the display screen to implement display adjustment of the display screen; a calibration unit, configured to collect target color coordinates and target brightness of the display screen after display adjustment, and perform gamma calibration of the display screen based on the target gamma value, the target color coordinates, and the target brightness; The first judgment unit is specifically configured to: Obtaining color coordinates, brightness, grayscale value, and grayscale parameters corresponding to the grayscale image on the display screen; After obtaining the color coordinates, brightness, grayscale value and grayscale parameters corresponding to the grayscale image on the display screen, it is also used to: Determining whether the grayscale value is less than a preset grayscale threshold; If so, an interpolation algorithm is used to calculate a third RGB variation value based on the grayscale parameter and the grayscale value, and the RGB weight value is adjusted based on the third RGB variation value, the color coordinates, and the brightness.
9. A gamma calibration device based on linear interpolation and adjustable weight, characterized in that: The device comprises: processor, memory, input and output units, and buses; The processor is connected to the memory, the input and output unit, and the bus; The memory stores a program, and the processor calls the program to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Gamma correction method and device for display module
CN110910847A
Gamma curve learning method and LED display controller
CN114613315A