Chromatic aberration correction method, device and computer program product
By matching the conversion matrix according to the brightness value in the display and updating the three-dimensional lookup table, the problem of low accuracy of medium and low grayscale conversion is solved, and the high accuracy color correction of the display under different brightness conditions is achieved.
Patent Information
- Application Number
- CN202510920127.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-03
- Publication Date
- 2025-08-22
AI Technical Summary
Existing display color calibration methods are more accurate in the high grayscale part, but the value accuracy of medium and low grayscale conversion is lower.
Match the target conversion matrix according to the current brightness value of the target screen, obtain the target color value through the three-dimensional lookup table, measure the true chromaticity value, and update the three-dimensional lookup table based on the color deviation value to achieve chromatic aberration correction.
Improves the accuracy of color conversion in low and medium gray levels, ensuring the accuracy and consistency of the color output of the monitor under different brightness conditions.
Smart Images

Figure CN120526697A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure generally relates to the field of image display technology, and more particularly to a method, apparatus, and computer program product for color difference correction. Background Art
[0002] Monitors are essential output devices for our daily work and entertainment. With the prevalence of digital content, the importance of accurately reproducing image colors has become increasingly prominent. Monitor color calibration involves a series of standardized adjustments to ensure that the monitor's color output is as consistent as possible with the actual image or object.
[0003] Existing display color calibration methods are more accurate in high grayscale parts, but the accuracy of the values converted from medium to low grayscale is lower. Summary of the Invention
[0004] In view of the above-mentioned defects or deficiencies in the related art, it is desired to provide a color difference correction method, device and computer program product that can solve the problem that the high grayscale part is more accurate and the value accuracy of the medium and low grayscale conversion is lower.
[0005] In a first aspect, a method for correcting chromatic aberration is provided, the method comprising: Matching a target conversion matrix from a correspondence information table according to a current brightness value of the target screen, wherein the correspondence information table includes a plurality of grayscale intervals and a conversion matrix corresponding to each grayscale interval, wherein the conversion matrix is used to convert chromaticity values into color values; Acquire multiple target color values based on a three-dimensional lookup table, assign values to display channels of the target screen based on the multiple target color values at the current brightness value to obtain corresponding display images, and measure the true chromaticity value corresponding to each of the display images; Converting the true chromaticity values corresponding to the plurality of target color values into measured color values based on the target conversion matrix; Each measured color value is compared with a corresponding target color value to obtain a color deviation value, and the three-dimensional lookup table is updated based on each color deviation value. The target screen is displayed according to the updated three-dimensional lookup table.
[0006] This application provides a color difference correction method that addresses the problem that existing color difference correction methods are relatively accurate for high grayscales but have low accuracy for mid- and low-grayscale conversions. This application matches a target conversion matrix from a correspondence information table based on the current brightness value of the target screen. Specifically, this application uses different conversion matrices for target screens of different brightnesses. After determining the target conversion matrix that matches the current brightness value of the target screen, multiple target color values are obtained based on a three-dimensional lookup table. Based on the multiple target color values, the display channels of the target screen are assigned values at the current brightness value to obtain multiple display images. Multiple true chromaticity values are obtained by measuring each display image. The true chromaticity values corresponding to the target color values are then converted to measured color values based on the target conversion matrix. Finally, the measured color values are compared with the target color values, and the three-dimensional lookup table is updated based on the color deviation value, thereby achieving color difference correction for the target screen. This application calculates corresponding conversion matrices for different grayscales. Therefore, the corresponding target conversion matrix is selected for target screens of different brightness values to convert color values. This solves the problem of relatively accurate high grayscales but low accuracy for mid- and low-grayscale conversions.
[0007] In a second aspect, a chromatic aberration correction device is provided, the device comprising: a matching module, configured to match a target conversion matrix from a correspondence information table according to a current brightness value of the target screen, wherein the correspondence information table includes a plurality of grayscale intervals and a conversion matrix corresponding to each grayscale interval, wherein the conversion matrix is used to convert chromaticity values into color values; an acquisition and measurement module, configured to acquire a plurality of target color values based on a three-dimensional lookup table, and assign values to display channels of the target screen based on the plurality of target color values at the current brightness value to obtain corresponding display images, and measure true chromaticity values corresponding to each of the display images; A conversion module, configured to convert the real chromaticity values corresponding to the plurality of target color values into measured color values based on the target conversion matrix; The comparison and update module is used to compare each of the measured color values with the corresponding target color value to obtain a color deviation value, and update the three-dimensional lookup table based on each of the color deviation values. The target screen is displayed according to the updated three-dimensional lookup table.
[0008] A third aspect provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the chromatic aberration correction method of the first aspect when executing the computer program.
[0009] A fourth aspect provides a computer program product, comprising a computer program, which implements the chromatic aberration correction method of the first aspect when executed by a processor.
[0010] Additional aspects and advantages of the present invention will be set forth in part in the description which follows and, in part, will be obvious from the description which follows, or may be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Other features, objects and advantages of the present application will become more apparent upon reading the detailed description of non-limiting embodiments made with reference to the following drawings: Figure 1 A flowchart of a method for correcting chromatic aberration provided in an embodiment of the present application; Figure 2 A schematic diagram of a flow chart of a chromatic aberration correction method provided in an embodiment of the present application; Figure 3 A schematic diagram of a flow chart of a chromatic aberration correction method provided in an embodiment of the present application; Figure 4 A schematic diagram of a flow chart of a chromatic aberration correction method provided in an embodiment of the present application; Figure 5 A schematic diagram of a flow chart of a chromatic aberration correction method provided in an embodiment of the present application; Figure 6 A schematic diagram of a flow chart of a chromatic aberration correction method provided in an embodiment of the present application; Figure 7 A schematic diagram of a flow chart of a chromatic aberration correction method provided in an embodiment of the present application; Figure 8 A schematic structural diagram of a chromatic aberration correction device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0012] The present application will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely for the purpose of explaining the relevant invention and are not intended to limit the invention. It should also be noted that, for ease of description, only portions relevant to the invention are shown in the accompanying drawings.
[0013] It should be noted that, unless there is any conflict, the embodiments and features in the embodiments of this application can be combined with each other.
[0014] The following combination Figure 1 For an explanation of the chromatic aberration correction method provided in this application, please refer to Figure 1 , Figure 1 A flowchart of a method for correcting chromatic aberration provided by an exemplary embodiment of the present application includes the following steps: Step S20, matching a target conversion matrix from a correspondence information table according to the current brightness value of the target screen, wherein the correspondence information table includes multiple grayscale intervals and a conversion matrix corresponding to each grayscale interval, and the conversion matrix is used to convert chromaticity values into color values; The target screen is any screen that requires chromatic aberration correction. In the field of display technology, it specifically refers to the physical structure of the display screen, typically consisting of components such as the pixel array, driver circuit, and backlight module. It is the hardware carrier that carries the image display function.
[0015] The current brightness value of the target screen can be obtained, for example, by light sensors positioned around the target screen and transmitted to a processor of the target screen or an external processing device via wireless transmission technology. The current brightness value of the target screen is used to calculate the current grayscale value of the target screen for subsequent matching of the target transformation matrix.
[0016] The correspondence information table can be pre-set at a memory address on the target screen or at a memory address on an external processing device. After obtaining the current brightness value of the target screen, for example, via a light sensor, and processing the current brightness value to obtain the corresponding grayscale value, the correspondence information table can be directly read from the corresponding memory address to match the target transformation matrix. The process for obtaining the correspondence information table is described in detail below and is not further elaborated here.
[0017] For example, the correspondence information table is as follows:
[0018] If the grayscale of the target screen is calculated to be 680 according to the current brightness value of the target screen, then the target conversion matrix can be matched to M3 according to the corresponding relationship information table.
[0019] Step S30, obtaining multiple target color values based on the three-dimensional lookup table, and assigning values to display channels of the target screen based on the multiple target color values at the current brightness value to obtain corresponding display images, and measuring the true chromaticity value corresponding to each display image; The present application is used to correct the color difference of the target screen. The core of the correction is to update the three-dimensional lookup table based on the deviation between the measured color value and the target color value to achieve the purpose of correcting the color difference of the target screen. The above step S20 is used to determine the conversion matrix used to convert the true color value to the true color value, so it is necessary to obtain the true color value of the target screen. The true color value of the target screen can be measured based on the three-dimensional lookup table according to the settings of a color analyzer, a three-dimensional coordinate measuring machine, etc.
[0020] Here is an explanation of the three-dimensional lookup table: A three-dimensional lookup table is a file whose size is determined by the density of points along each axis within the three-dimensional coordinate system. Once the file is loaded by an application, the image's color space can be reconstructed. Essentially, the source color space is evenly divided into regular cubes. This means the three RGB channels are equally divided into N vertices, forming N×N×N sampling points, each corresponding to a target color value. The number of target color values is related to the value of N. N can be 5, 9, 17, or 33. For example, if N is 17, there are 4913 target color values, including (0, 0, 0), (0, 0, 16), (0, 0, 32)…(255, 255, 255).
[0021] It is understood that after obtaining multiple target color values based on the three-dimensional lookup table according to the above steps, the present application can assign values to the display channels of the target screen based on the combination of color channels corresponding to each target color value. For example, the three color channels of the target screen are assigned values of (0, 0, 0), (0, 0, 16), (0, 0, 32) ... (255, 255, 255) in sequence. Once the three color channels of the target screen are assigned values, the corresponding display image will appear on the target screen.
[0022] Next, the true chromaticity values corresponding to the multiple displayed images can be obtained by measuring a predetermined position on the target screen using a measuring device such as a color analyzer or a coordinate measuring machine. The predetermined position can be, for example, the center point or an edge point of the screen, and can be determined according to a predetermined measurement strategy, which is not specifically limited here.
[0023] It can be understood that for multiple display images, multiple real chromaticity values will be measured and obtained.
[0024] Step S40, converting the true chromaticity values corresponding to the plurality of target color values into measured color values based on the target conversion matrix; The target transformation matrix is used to perform the mapping transformation in the color space. It is defined based on the color correction model and converts input color values to output values through linear or nonlinear operations to minimize color error. It is obtained using the aforementioned correspondence information.
[0025] The multiple target color values are derived from a three-dimensional lookup table, and the true chromaticity values corresponding to the multiple target color values are obtained through measurement based on display images corresponding to the multiple target color values.
[0026] For example, multiple real chromaticity values may be linearly multiplied by the target conversion matrix respectively, thereby obtaining multiple measured color values.
[0027] In step S50 , each measured color value is compared with the corresponding target color value to obtain a color deviation value, and a three-dimensional lookup table is updated based on each color deviation value. The target screen is displayed according to the updated three-dimensional lookup table.
[0028] The target color values are obtained using a three-dimensional lookup table, and the measured color values are obtained in step S40. Since the target color values are predefined and represent the input three-channel color values, mapping them according to the three-dimensional lookup table yields the desired colors displayed on the target screen after conversion. Therefore, by comparing the measured color values of the target screen with the target color values, the difference between the color output of the target screen and the actual image or object can be determined, referred to herein as the color deviation value.
[0029] After obtaining the color deviation value, the mapping relationship in the three-dimensional lookup table can be reversely adjusted according to the color deviation value. For example, if the measured color is yellowish, the yellow component in the output signal can be reduced.
[0030] After the 3D lookup table is updated, the target screen reloads the updated 3D lookup table and performs real-time color conversion on the input image signal to offset the original color deviation. The final displayed color is closer to the target value, thus achieving color difference correction for the target screen.
[0031] In an optional embodiment, if Figure 2 As shown, Figure 2 An optional method embodiment of determining the brightness value of a target screen when it is currently pressed is provided by an exemplary embodiment of the present application. The method embodiment includes the following steps: Step S201, adjusting the display brightness of the target screen through gamma correction; In particular, the present application may be to perform gamma correction on the target screen before performing color difference correction on the target screen. By pre-compensating the input signal, the brightness change of the target screen conforms to the linear law of human eye perception, avoiding loss of dark image details or overexposure of bright areas. By adjusting the gamma curve, the transition from black to white of the image displayed on the target screen is ensured to be smooth and in compliance with industry standards, providing a uniform brightness benchmark for subsequent color difference correction of the target screen.
[0032] Step S202 : measuring the adjusted brightness value of the center point of the target screen as the brightness value currently displayed on the target screen.
[0033] The center point of the target screen usually represents the benchmark display performance of the target screen and is less affected by edge backlight unevenness, so the brightness value of the center point of the target screen is measured as the brightness value currently displayed by the target screen.
[0034] In an optional embodiment, if Figure 3 As shown, Figure 3 An optional method embodiment of determining a target transformation matrix provided by an exemplary embodiment of the present application includes the following steps: Step S301, measuring the gamma value of the adjusted target screen; The target screen's gamma value is an exponential parameter that represents the nonlinear relationship between the target screen's input signal (e.g., RGB grayscale) and the target screen's brightness. Therefore, for example, the target screen's grayscale can be determined by combining the gamma value obtained through power function fitting with the target screen's currently displayed brightness.
[0035] Step S302, determining the grayscale of the target screen according to the gamma value and the brightness value currently displayed on the target screen; For example, the grayscale of the target screen can be calculated using the following formula:
[0036] G is the grayscale value, L_max is the maximum brightness value of the target screen, 100 is the brightness value currently displayed on the target screen, and 2.2 is the gamma value obtained by measurement.
[0037] Step S303 : determining a target grayscale interval that matches the grayscale of the target screen from the correspondence information table, and determining a conversion matrix corresponding to the target grayscale interval as a target conversion matrix.
[0038] The correspondence information table includes multiple grayscale intervals of target screens and a conversion matrix corresponding to each grayscale interval of the target screen. After the target screen grayscale is obtained through the above process, the target conversion matrix can be matched from the correspondence information table.
[0039] In an optional embodiment, if Figure 4 As shown, Figure 4 An exemplary embodiment of the present application provides an optional method embodiment for converting true chromaticity values corresponding to multiple target color values into measured color values based on a target conversion matrix. The method embodiment includes the following steps: Step S401, mapping the true chromaticity value into the linear component of the standard RGB color space according to the target conversion matrix to obtain the initial color value; Step S402 : superimposing the gamma value of the target screen on the initial color value to obtain a measured color value.
[0040] The above calculation process is explained by an exemplary formula:
[0041]
[0042] The gamma value is obtained by measuring the target screen; X, Y, and Z are the true chromaticity values; and R, G, and B are the measured color values.
[0043] In an optional embodiment, if Figure 5 As shown, Figure 5 An optional method embodiment of obtaining a correspondence information table provided in an exemplary embodiment of the present application includes the following steps: Step S501, assigning color values of a pure color image corresponding to each grayscale of a plurality of preset grayscales to display channels of a target screen to obtain a plurality of target images; The multiple preset grayscales include, for example, 64, 128, 192, and 255. Taking grayscale 255 as an example, the color values of a solid color image corresponding to grayscale 255 are (255, 0, 0), (0, 255, 0), and (0, 0, 255). Taking grayscale 64 as an example, the color values of a solid color image corresponding to grayscale 64 are (64, 0, 0), (0, 64, 0), and (0, 0, 64).
[0044] For example, the color values of the picture are assigned to (255, 0, 0), (0, 255, 0), and (0, 0, 255) respectively to obtain three target images; the color values of the picture are assigned to (64, 0, 0), (0, 64, 0), and (0, 0, 64) respectively to obtain three target images.
[0045] Step S502, measuring the three-dimensional coordinates of a predetermined point in a plurality of target images corresponding to each grayscale; The preset points are, for example, the center point of the target screen or the edge point of the screen; and the two-dimensional coordinates of the preset points in the multiple target images can be measured, for example, by a color analyzer, a three-dimensional coordinate measuring machine, or the like.
[0046] Step S503, obtaining an initial matrix corresponding to each grayscale according to the principle of color additive method and each two-dimensional coordinate; The initial matrix can be obtained by calculating the following formula:
[0047] , , , , , , , , are the three-dimensional coordinates of the measured target image; M is the initial matrix.
[0048]
[0049] x w ,y w , z w , is the three-dimensional coordinate corresponding to the measured (255, 255, 255), (64, 64, 64), (128, 128, 128) or (192, 192, 192); R +Y G +Y B =1 is obtained according to the principle of additive color method.
[0050] Step S504, determining the inverse matrix of the initial matrix corresponding to each gray level as a conversion matrix; After the initial matrix is obtained by the above formula, the conversion matrix corresponding to each grayscale is obtained by calculating the inverse matrix.
[0051] Step S505 : Divide the plurality of preset grayscales into a plurality of grayscale intervals, and correspond the plurality of grayscale intervals with the conversion matrix to obtain a correspondence information table.
[0052] After obtaining the conversion matrix corresponding to each grayscale according to the above calculation method, each grayscale may be divided into a plurality of grayscale intervals, which are then respectively matched with the conversion matrix to obtain a corresponding relationship information table.
[0053] In an optional embodiment, if Figure 6 As shown, Figure 6 An optional method embodiment of updating a three-dimensional lookup table based on each color deviation value provided in an exemplary embodiment of the present application includes the following steps: Step S601, obtaining a color correction value according to the target color value and the color deviation value; Step S602: Replace the target color value with the corresponding color correction value to obtain an updated three-dimensional lookup table.
[0054] The target color value is the input value in the three-dimensional lookup table and is the value that currently needs to be corrected. The color deviation value is calculated according to the above process. In this application, for example, the color correction value can be obtained through polynomial regression or reverse stretching. For example, if the target color value is (240, 192, 128), the measured color value is (243, 188, 125), and the color deviation value is (-3, 4, 3), then the correction value is (237, 204, 131).
[0055] In an optional embodiment, if Figure 7 As shown, Figure 7 An optional method embodiment of chromatic aberration correction provided by an exemplary embodiment of the present application includes the following steps: Step S701 , after the target screen is displayed according to the updated three-dimensional lookup table, measuring the real chromaticity value corresponding to the updated color value based on the updated three-dimensional lookup table; Among them, after the original three-dimensional lookup table is updated according to the above correction process, the target screen reloads the updated three-dimensional lookup table. If you want to evaluate the effect of chromatic aberration correction, you still need to obtain multiple updated color values based on the updated three-dimensional lookup table, and then assign values to the color channels of the target screen respectively. The corresponding display image will be displayed on the target screen, and then the true chromaticity value of the screen center point corresponding to each display image can be measured.
[0056] Step S702, evaluating the naturalness of the target screen color transition based on the color difference calculation formula in the color space and each true chromaticity value; Among them, the naturalness of color transition when the screen displays gradient colors (such as sky gradient, skin color transition) meets the following requirements: color continuity (no discontinuity / color banding), brightness smoothness (no step-like jumps), and hue consistency (no unexpected color deviation).
[0057] Evaluation metrics include step smoothness, hue consistency, and brightness continuity. If the naturalness of the target screen's color transition is evaluated based on step smoothness, adjacent color step values must be calculated.
[0058] Adjacent color level values are calculated using the following formula: , ΔL' / ΔC' / ΔH': Differences in lightness / chroma / hue S_L / S_C / S_H: Visual weight compensation coefficient R_T: Blue area rotation term (corrects perceptual nonlinearity) Step S703: If the naturalness of the color transition of the target screen meets the requirement, then stop performing the color difference correction operation on the target screen; Among them, the natural degree meets the requirements, for example, the maximum ΔE 00 <3.0, average ΔE 00 <1.5, etc. Based on the above calculation results, it can be determined whether the naturalness of the color transition of the target screen meets the requirements. If the requirements are met, the color difference correction of the target screen is stopped. Otherwise, the above color difference correction operation is repeated until the naturalness of the color transition of the target screen meets the requirements.
[0059] Step S704: If the naturalness of the target screen color transition does not meet the requirements, repeat the following steps: Step S705 , matching a target conversion matrix from a correspondence information table according to the brightness value currently displayed on the target screen, where the correspondence information table includes a plurality of grayscale intervals and a conversion matrix corresponding to each grayscale interval; Step S706 , obtaining a plurality of target color values based on the three-dimensional lookup table, and measuring the chromaticity coordinates corresponding to the plurality of three-channel color values; Step S707 , converting the chromaticity coordinates corresponding to the multiple target color values into measured color values based on the target conversion matrix; In step S708, each measured color value is compared with the corresponding target color value to obtain a color deviation value, and the three-dimensional lookup table is updated based on each color deviation value. The target screen is displayed according to the updated three-dimensional lookup table until the naturalness of the color transition of the target screen meets the requirements.
[0060] The above is a cyclic chromatic aberration correction process for the target screen, which has been described above and will not be repeated here.
[0061] It should be noted that although the operations of the present invention are described in a particular order in the accompanying drawings, this does not require or imply that these operations must be performed in this particular order, or that all the operations shown must be performed to achieve the desired results. On the contrary, the steps depicted in the flowchart can be performed in a different order.
[0062] Further references Figure 8 , which shows an exemplary structural block diagram of a chromatic aberration correction device 800 according to the present application, the chromatic aberration correction device 800 includes a matching module 801, an acquisition measurement module 802, a conversion module 803 and a comparison and update module 804.
[0063] Matching module 801, configured to match a target conversion matrix from a correspondence information table according to the current brightness value of the target screen, wherein the correspondence information table includes multiple grayscale intervals and a conversion matrix corresponding to each grayscale interval, wherein the conversion matrix is used to convert chromaticity values into color values; An acquisition and measurement module 802 is configured to acquire a plurality of target color values based on a three-dimensional lookup table, assign values to display channels of the target screen based on the plurality of target color values at the current brightness value to obtain corresponding display images, and measure true chromaticity values corresponding to each of the display images; A conversion module 803 is configured to convert the real chromaticity values corresponding to the plurality of target color values into measured color values based on the target conversion matrix; The comparison and update module 804 is used to compare each measured color value with the corresponding target color value to obtain a color deviation value, and update the three-dimensional lookup table based on each color deviation value. The target screen is displayed according to the updated three-dimensional lookup table.
[0064] In an optional embodiment, an adjustment module is further included. An adjustment module, configured to adjust the display brightness of the target screen through gamma correction; The adjusted brightness value of the center point of the target screen is measured as the brightness value currently displayed on the target screen.
[0065] In an optional embodiment, the matching module 801 is specifically configured to measure the adjusted gamma value of the target screen; determining a grayscale of the target screen according to the gamma value and a brightness value currently displayed on the target screen; A target grayscale interval matching the grayscale of the target screen is determined from the correspondence information table, and a conversion matrix corresponding to the target grayscale interval is determined as the target conversion matrix.
[0066] In an optional embodiment, the conversion module 803 is specifically configured to map the true chromaticity value into a linear component of a standard RGB color space according to the target conversion matrix to obtain an initial color value; The measured color value is obtained by superimposing the gamma value of the target screen on the initial color value.
[0067] In an optional embodiment, it further includes an acquisition module, An acquisition module, configured to assign a value to a display channel of the target screen according to a color value of a pure color image corresponding to each grayscale in a plurality of preset grayscales to obtain a plurality of target images; measuring the two-dimensional coordinates of preset points in a plurality of target images corresponding to each grayscale; Obtaining an initial matrix corresponding to each grayscale according to the principle of color additive method and the two-dimensional coordinates; Determine the inverse matrix of the initial matrix corresponding to each grayscale as a conversion matrix; The plurality of preset grayscales are divided into a plurality of grayscale intervals, and the plurality of grayscale intervals are matched with a conversion matrix to obtain the corresponding relationship information table.
[0068] In an optional embodiment, the comparison and update module 804 is specifically configured to obtain a color correction value according to the target color value and the color deviation value; The target color value is replaced with the corresponding color correction value to obtain an updated three-dimensional lookup table.
[0069] In an optional embodiment, a verification module is further included. a verification module, configured to measure, based on the updated three-dimensional lookup table, chromaticity coordinates corresponding to the updated color values after the target screen displays according to the updated three-dimensional lookup table; Evaluating the naturalness of the target screen color transition according to the color difference calculation formula in the color space and the chromaticity coordinates; If the naturalness of the color transition of the target screen meets the requirements, then stop performing the color difference correction operation on the target screen; If the naturalness of the target screen color transition does not meet the requirements, repeat the following steps: Matching a target conversion matrix from a correspondence information table according to a brightness value currently displayed on the target screen, wherein the correspondence information table includes a plurality of grayscale intervals and a conversion matrix corresponding to each grayscale interval; Acquire multiple target color values based on a three-dimensional lookup table, and measure chromaticity coordinates corresponding to the multiple three-channel color values; Converting the chromaticity coordinates corresponding to the plurality of target color values into measured color values based on the target conversion matrix; Each measured color value is compared with the corresponding target color value to obtain a color deviation value, and the three-dimensional lookup table is updated based on each color deviation value. The target screen is displayed according to the updated three-dimensional lookup table until the naturalness of the color transition of the target screen meets the requirements.
[0070] It should be understood that the various units or modules described in the chromatic aberration correction device 800 are the same as those described in the reference Figure 1 The various steps in the described method correspond to each other. Therefore, the operations and features described above for the method are also applicable to the chromatic aberration correction device 800 and the units contained therein, and will not be repeated here. The chromatic aberration correction device 800 can be pre-implemented in the browser or other security application of the electronic device, or can be loaded into the browser or its security application of the electronic device through downloading or other means. The corresponding units in the chromatic aberration correction device 800 can cooperate with the units in the electronic device to implement the solution of the embodiment of the present application.
[0071] The present application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following is achieved: Matching a target conversion matrix from a correspondence information table according to a current brightness value of the target screen, wherein the correspondence information table includes a plurality of grayscale intervals and a conversion matrix corresponding to each grayscale interval, wherein the conversion matrix is used to convert chromaticity values into color values; Acquire multiple target color values based on a three-dimensional lookup table, assign values to display channels of the target screen based on the multiple target color values at the current brightness value to obtain corresponding display images, and measure the true chromaticity value corresponding to each of the display images; Converting the true chromaticity values corresponding to the plurality of target color values into measured color values based on the target conversion matrix; Each measured color value is compared with a corresponding target color value to obtain a color deviation value, and the three-dimensional lookup table is updated based on each color deviation value. The target screen is displayed according to the updated three-dimensional lookup table.
[0072] In an optional embodiment, when the processor executes the computer program, it further implements: Adjusting the display brightness of the target screen through gamma correction; The adjusted brightness value of the center point of the target screen is measured as the brightness value currently displayed on the target screen.
[0073] In an optional embodiment, when the processor executes the computer program, it further implements: measuring the adjusted gamma value of the target screen; determining a grayscale of the target screen according to the gamma value and a brightness value currently displayed on the target screen; A target grayscale interval matching the grayscale of the target screen is determined from the correspondence information table, and a conversion matrix corresponding to the target grayscale interval is determined as the target conversion matrix.
[0074] In an optional embodiment, when the processor executes the computer program, it further implements: Mapping the true chromaticity value to a linear component of a standard RGB color space according to the target conversion matrix to obtain an initial color value; The measured color value is obtained by superimposing the gamma value of the target screen on the initial color value.
[0075] In an optional embodiment, when the processor executes the computer program, it further implements: Assigning a value to a display channel of the target screen for each of the plurality of preset grayscales corresponding to a pure color image to obtain a plurality of target images; Measuring the three-dimensional coordinates of preset points in a plurality of target images corresponding to each grayscale; Obtaining an initial matrix corresponding to each grayscale according to the principle of color additive method and the three-dimensional coordinates; Determine the inverse matrix of the initial matrix corresponding to each grayscale as a conversion matrix; The plurality of preset grayscales are divided into a plurality of grayscale intervals, and the plurality of grayscale intervals are matched with a conversion matrix to obtain the corresponding relationship information table.
[0076] In an optional embodiment, when the processor executes the computer program, it further implements: Obtaining a color correction value according to the target color value and the color deviation value; The target color value is replaced with the corresponding color correction value to obtain an updated three-dimensional lookup table.
[0077] In an optional embodiment, when the processor executes the computer program, it further implements: After the target screen is displayed according to the updated three-dimensional lookup table, measuring chromaticity coordinates corresponding to the updated color values based on the updated three-dimensional lookup table; Evaluating the naturalness of the target screen color transition according to the color difference calculation formula in the color space and the chromaticity coordinates; If the naturalness of the color transition of the target screen meets the requirements, then stop performing the color difference correction operation on the target screen; If the naturalness of the target screen color transition does not meet the requirements, repeat the following steps: Matching a target conversion matrix from a correspondence information table according to a brightness value currently displayed on the target screen, wherein the correspondence information table includes a plurality of grayscale intervals and a conversion matrix corresponding to each grayscale interval; Acquire multiple target color values based on a three-dimensional lookup table, and measure chromaticity coordinates corresponding to the multiple three-channel color values; Converting the chromaticity coordinates corresponding to the plurality of target color values into measured color values based on the target conversion matrix; Each measured color value is compared with the corresponding target color value to obtain a color deviation value, and the three-dimensional lookup table is updated based on each color deviation value. The target screen is displayed according to the updated three-dimensional lookup table until the naturalness of the color transition of the target screen meets the requirements.
[0078] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0079] The units or modules involved in the embodiments described in this application may be implemented by software or hardware. The units or modules described may also be provided in a processor. For example, it may be described as follows: a processor includes unit XX, unit YY, and unit ZZ. The names of these units or modules do not, in certain circumstances, constitute limitations on the units or modules themselves. For example, unit XX may also be described as a "unit for XX."
[0080] As another aspect, the present application further provides a computer-readable storage medium. This computer-readable storage medium may be included in the apparatus described in the above embodiments, or may be a separate computer-readable storage medium not incorporated into the apparatus. The computer-readable storage medium stores one or more programs, which are used by one or more processors to execute the chromatic aberration correction method described in the present application.
[0081] The above description is merely a preferred embodiment of the present application and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of the invention herein is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also encompasses other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the inventive concept. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features having similar functions disclosed in this application.
Claims
1. A method for correcting chromatic aberration, characterized in that: The method comprises: Matching a target conversion matrix from a correspondence information table according to a current brightness value of the target screen, wherein the correspondence information table includes a plurality of grayscale intervals and a conversion matrix corresponding to each grayscale interval, wherein the conversion matrix is used to convert chromaticity values into color values; Acquire multiple target color values based on a three-dimensional lookup table, assign values to display channels of the target screen based on the multiple target color values at the current brightness value to obtain corresponding display images, and measure the true chromaticity value corresponding to each of the display images; Converting the true chromaticity values corresponding to the plurality of target color values into measured color values based on the target conversion matrix; Each measured color value is compared with a corresponding target color value to obtain a color deviation value, and the three-dimensional lookup table is updated based on each color deviation value. The target screen is displayed according to the updated three-dimensional lookup table.
2. The method according to claim 1, characterized in that The method further comprises: Adjusting the display brightness of the target screen through gamma correction; The adjusted brightness value of the center point of the target screen is measured as the brightness value currently displayed on the target screen.
3. The method according to claim 2, characterized in that The matching of the target conversion matrix from the corresponding relationship information table according to the brightness value currently displayed on the target screen includes: measuring the adjusted gamma value of the target screen; determining a grayscale of the target screen according to the gamma value and a brightness value currently displayed on the target screen; A target grayscale interval matching the grayscale of the target screen is determined from the correspondence information table, and a conversion matrix corresponding to the target grayscale interval is determined as the target conversion matrix.
4. The method according to claim 2, characterized in that The converting the real chromaticity values corresponding to the plurality of target color values into measured color values based on the target conversion matrix includes: Mapping the true chromaticity value to a linear component of a standard RGB color space according to the target conversion matrix to obtain an initial color value; The measured color value is obtained by superimposing the gamma value of the target screen on the initial color value.
5. The method according to claim 1, characterized in that The method further comprises the step of obtaining the corresponding relationship information table: Assigning a value to a display channel of the target screen for each of the plurality of preset grayscales corresponding to a pure color image to obtain a plurality of target images; Measuring the three-dimensional coordinates of preset points in a plurality of target images corresponding to each grayscale; Obtaining an initial matrix corresponding to each grayscale according to the principle of color additive method and the three-dimensional coordinates; Determine the inverse matrix of the initial matrix corresponding to each grayscale as a conversion matrix; The plurality of preset grayscales are divided into a plurality of grayscale intervals, and the plurality of grayscale intervals are matched with a conversion matrix to obtain the corresponding relationship information table.
6. The method according to claim 1, characterized in that The updating of the three-dimensional lookup table based on each of the color deviation values includes: Obtaining a color correction value according to the target color value and the color deviation value; The target color value is replaced with the corresponding color correction value to obtain an updated three-dimensional lookup table.
7. The method according to claim 1, characterized in that The method further comprises: After the target screen is displayed according to the updated three-dimensional lookup table, measuring chromaticity coordinates corresponding to the updated color values based on the updated three-dimensional lookup table; Evaluating the naturalness of the target screen color transition according to the color difference calculation formula in the color space and the chromaticity coordinates; If the naturalness of the color transition of the target screen meets the requirements, then stop performing the color difference correction operation on the target screen; If the naturalness of the target screen color transition does not meet the requirements, repeat the following steps: Matching a target conversion matrix from a correspondence information table according to a brightness value currently displayed on the target screen, wherein the correspondence information table includes a plurality of grayscale intervals and a conversion matrix corresponding to each grayscale interval; Acquire multiple target color values based on a three-dimensional lookup table, and measure chromaticity coordinates corresponding to the multiple three-channel color values; Converting the chromaticity coordinates corresponding to the plurality of target color values into measured color values based on the target conversion matrix; Each measured color value is compared with the corresponding target color value to obtain a color deviation value, and the three-dimensional lookup table is updated based on each color deviation value. The target screen is displayed according to the updated three-dimensional lookup table until the naturalness of the color transition of the target screen meets the requirements.
8. A chromatic aberration correction device, characterized in that: The device comprises: a matching module, configured to match a target conversion matrix from a correspondence information table according to a current brightness value of the target screen, wherein the correspondence information table includes a plurality of grayscale intervals and a conversion matrix corresponding to each grayscale interval, wherein the conversion matrix is used to convert chromaticity values into color values; an acquisition and measurement module, configured to acquire a plurality of target color values based on a three-dimensional lookup table, and assign values to display channels of the target screen based on the plurality of target color values at the current brightness value to obtain corresponding display images, and measure true chromaticity values corresponding to each of the display images; A conversion module, configured to convert the real chromaticity values corresponding to the plurality of target color values into measured color values based on the target conversion matrix; The comparison and update module is used to compare each of the measured color values with the corresponding target color value to obtain a color deviation value, and update the three-dimensional lookup table based on each of the color deviation values. The target screen is displayed according to the updated three-dimensional lookup table.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Methods and systems for LED backlight white balance
CN102165514A
Fast calibration of displays using spectral-based colorimetrically calibrated multicolor camera
CN103765503A
Color gamut conversion method and device, electronic equipment and storage medium
CN111724324A
Display panel color correction method and device
CN116092423A
Method and system for efficient Demura processing based on CIEXYZ data
CN117392930A