A method and device for color correction of display panel
By combining the correction matrix and 3D lookup table, the color correction problem of the display panel between different color gamut standards is solved, especially in the color correction of low-brightness and high-brightness areas, and accurate color conversion and data storage are achieved. The savings improve the efficiency and accuracy of color correction.
Patent Information
- Application Number
- CN202211149898.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-23
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2042-09-23
AI Technical Summary
The color performance of the display panel is nonlinear when it is low brightness, resulting in color irregularity and distortion of skin tone. It is difficult for the prior art to perform accurate color conversion between different color gamut standards, especially in color correction in low brightness and high brightness areas. Storage and computing efficiency issues.
Color correction is carried out using a method combining correction matrix and 3D lookup table. Low brightness areas use 3D lookup tables, and high brightness areas use simple correction matrix. By obtaining initial brightness information and target brightness information, 3D lookup tables and color corrections are constructed. Matrix, realizes color correction to the display panel.
Ensures the accuracy of low-brightness data colors, reduces the size of the lookup table, saves data storage space, improves the efficiency and accuracy of color correction, and reduces equipment expenses.
Smart Images

Figure CN116092423B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of display technology and relates to a display panel color correction method and device. Background Art
[0002] With the increasing development of electronic technology, display technology is being used more and more widely in people's daily lives. OLED display panels with many advantages such as wide color gamut, low power consumption, and high contrast have gradually become the mainstream of the display industry. At the same time, with the development of display technology, people are paying more and more attention to color fidelity. Wide color gamut panels can restore more real colors and more delicate color gradients, but when the color gamut of the input image or video source is inconsistent with the color gamut of the display panel, it may cause a series of color display errors such as color inaccuracy and skin color distortion on the display panel. The goal of color correction is to ensure that the color performance of pictures and other content remains consistent on various devices, which requires the device to perform accurate color conversion when displaying content with different color gamut standards.
[0003] The color performance of a display panel is usually nonlinear at low brightness. The present invention discloses a display panel color correction method and device, which can perform color correction on the display panel in combination with a correction matrix and a 3D lookup table. The low-brightness area is corrected using a 3D lookup table, and the high-brightness area is corrected using a simple correction matrix. This can not only ensure the accuracy of color correction of low-brightness data, but also reduce the size of the lookup table, save data storage space, and greatly reduce expenses. Summary of the invention
[0004] The present invention provides a display panel color correction method, comprising:
[0005] Step 1, obtaining multiple groups of initial brightness and chromaticity information of the display panel to be calibrated;
[0006] Step 2, determining target brightness and chromaticity information according to the target color gamut;
[0007] Step 3: determine whether each color component of the current pixel to be corrected is less than a set threshold;
[0008] Step 4: output the corrected data according to the judgment result.
[0009] Furthermore, in step one, the image group to be tested is first determined, and each color component of the original color space needs to be discretely sampled at equal intervals. The original color space is divided into (N-1)×(N-1)×(N-1) minimum cubic units using N×N×N sampling points. The display panel to be calibrated is controlled to display multiple preset test images respectively, and a color analyzer is used to measure under different (R, G, B) images to obtain multiple groups of initial brightness and chromaticity data.
[0010] Furthermore, in step 2, it is assumed that the chromaticity coordinates of the three primary colors of the target color gamut are:
[0011] R:(r x , r y ), G:(g x , g y ), B(b x , b y ), the target white point color coordinates are: (w x , w y ), the coordinates of the RGB primary colors and the target white point in the RGB color space are: (1, 0, 0), (0, 1, 0), (0, 0, 1), (1, 1, 1)
[0012] The coordinates of the RGB primary colors in the XYZ color space can be expressed as:
[0013] R XYZ =(R X , R Y , R Z )=(r x , r y , 1-r x -r y )×θ r
[0014] G XYZ =(G X , G Y , G Z )=(g x , g y , 1-g x -g y )×θ g
[0015] B XYZ =(B X , B Y , B Z )=(b x , b y , 1-b x -b y )×θ b
[0016] The coordinates of the target white point in XYZ color space should be:
[0017]
[0018] in:
[0019] W Y =1
[0020] Based on this, the conversion matrix M1 from RGB color space to XYZ color space in the target color gamut can be obtained:
[0021]
[0022] The target brightness and chromaticity data of the test image group can be calculated according to the following formula:
[0023]
[0024] Among them, θ r ,θ g ,θ b ,θ w They represent the conversion coefficients of the RGB primary colors and the target white point from the xyz color space to the XYZ color space.
[0025] Furthermore, in step 3, if the color component is less than the set threshold, i groups of initial brightness and chromaticity data and target brightness and chromaticity data are screened out within the set threshold range, and a lookup table LUT1 of the RGB color space and the XYZ color space of the low brightness area of the display panel to be corrected is obtained accordingly.
[0026] LUT1:[(X1,Y1,Z1),(X2,Y2,Z2),……,(X i ,Y i ,Z i )]
[0027] =f[(R1,G1,B1),(R2,G2,B2),……,(R i ,G i ,B i )]
[0028] Where i represents the number of color components in the preset test image group that are less than the set threshold, [(R1, G1, B1), (R2, G2, B2), ..., (R i ,G i ,B i )] represents the RGB color component values of the i test images that meet the conditions, [(X1, Y1, Z1), (X2, Y2, Z2), ..., (X i ,Y i ,Z i )] is the corresponding XYZ color space coordinate, that is, the initial brightness and chromaticity data,
[0029] Based on the CIE 1994 color difference formula, the XYZ component value with the smallest color difference with the target brightness and chromaticity data is found in the lookup table LUT1. The corresponding RGB color component value is the target correction data required to achieve the target brightness and chromaticity, and the 3D lookup table LUT2 is constructed based on this.
[0030] Furthermore, in step 3, if the color component is greater than or equal to the set threshold, m groups of initial brightness and chromaticity data and target brightness and chromaticity data that meet the conditions are screened out, and a conversion matrix M2 between the XYZ color space and the RGB color space of the highlight area of the display panel is fitted based on the linear least squares method according to the multiple groups of test image RGB color component values and the initial brightness and chromaticity data.
[0031] Ax=b
[0032]
[0033] Among them, b represents the RGB color component values of the m groups of test images that meet the conditions, A represents the corresponding initial brightness and chromaticity data, and x is the transformation matrix vector M2 to be solved
[0034] The color correction matrix for the highlight area is:
[0035] C=M2×M1
[0036] Assume that the RGB color components of the pixel to be corrected are (R, G, B) in , the target correction data is calculated as follows:
[0037]
[0038] The present invention also provides a display panel color correction device, including a preprocessing module and a display panel correction module.
[0039] The pre-processing module collects the brightness and chromaticity information of the display panel, calculates the 3D lookup table for the low-brightness area and the correction matrix for the high-brightness area according to the target color gamut, and uploads the relevant data to the chip storage unit, including:
[0040] Display control module: controls the display panel to be calibrated to display a plurality of preset test images respectively;
[0041] Data acquisition module: collects multiple sets of initial brightness and color information of the display panel;
[0042] 3D lookup table calculation module: calculates target correction data required to achieve target brightness and chromaticity according to initial brightness and chromaticity information of the low-brightness area and target brightness and chromaticity information, constructs a 3D lookup table, and uploads it to the storage module of the color correction device;
[0043] Correction matrix calculation module: calculates the display panel color space conversion matrix based on the initial brightness and chromaticity information of the highlight area, obtains the color correction matrix in combination with the target brightness and chromaticity information, and uploads it to the storage module;
[0044] The display panel correction module reads the color component threshold, the low-brightness area 3D lookup table and the high-brightness area correction matrix from the storage module, and performs color correction on the input content of the display panel according to the threshold, specifically including:
[0045] Storage module: stores color component thresholds, low-brightness area 3D lookup table and highlight area correction matrix, and sends the data to the color correction processing module;
[0046] Color correction processing module: performs color correction on the input content of the display panel according to the data information sent by the storage module and outputs it. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 Shown is a color correction flow chart of the present invention;
[0048] Figure 2 Shown is a schematic diagram of color space sampling of the present invention;
[0049] Figure 3 Shown is a schematic diagram of cube segmentation of the present invention;
[0050] Figure 4 The figure shows the display panel color correction device of the present invention. DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] See also Figure 1 The present invention discloses a display panel color correction method, comprising:
[0053] Step 1, obtaining multiple groups of initial brightness and chromaticity information of the display panel to be calibrated;
[0054] Step 2, determining target brightness and chromaticity information according to the target color gamut;
[0055] Step 3: determine whether each color component of the current pixel to be corrected is less than a set threshold;
[0056] Step 4: output the corrected data according to the judgment result.
[0057] If the color component is less than the set threshold, a 3D lookup table is constructed based on the initial brightness and chromaticity information and the target brightness and chromaticity information obtained in step one, and the target correction data of the current pixel is obtained by table lookup and interpolation; if the color component is greater than or equal to the threshold, a correction matrix is calculated based on the initial brightness and chromaticity information and the target brightness and chromaticity information obtained in step one, and the current pixel is corrected accordingly.
[0058] Embodiment 1 obtains multiple groups of initial brightness and chromaticity information of a display panel to be calibrated.
[0059] First, determine the image group to be tested. It is necessary to perform discrete sampling of each color component of the original color space at equal intervals, and use N×N×N sampling points to divide the original color space into (N-1)×(N-1)×(N-1) minimum cubic units, such as Figure 1 As shown, N can be 5, 9, 17, 33, etc. The specific number of points can be determined according to specific needs (trade-off between hardware resources and computing efficiency).
[0060] The display panel to be calibrated is controlled to display a plurality of preset test images respectively, and a color analyzer is used to perform measurements under different (R, G, B) images to obtain a plurality of groups of initial brightness and chromaticity data.
[0061] Embodiment 2 determines target brightness and chromaticity information according to the target color gamut.
[0062] The target color gamut is usually a color gamut defined by a standards association, such as sRGB, DCI-P3, BT.2020, etc. It can also be a user-defined color gamut. After determining the target color gamut, multiple sets of target brightness and chromaticity data for the test image group can be obtained through color gamut conversion calculation.
[0063] Assume that the chromaticity coordinates of the three primary colors of the target color gamut are: R:(r x , r y ), G:(g x , g y ), B(b x , b y ), the target white point color coordinates are: (w x , w y ), the coordinates of the RGB primary colors and the target white point in the RGB color space are: (1, 0, 0), (0, 1, 0), (0, 0, 1), (1, 1, 1)
[0064] The coordinates of the RGB primary colors in the XYZ color space can be expressed as:
[0065] R XYZ =(R X , R Y , T Z )=(r x , ry , 1-r x -r y )×θ r
[0066] G XYZ =(G X , G Y , G Z )=(g x , g y , 1-g x -g y )×θ g
[0067] B XYZ =(B X , B Y , B Z )=(b x , b y , 1-b x -b y )×θ b
[0068] The coordinates of the target white point in XYZ color space should be:
[0069]
[0070] in:
[0071] W Y =1
[0072] Based on this, the conversion matrix M1 from RGB color space to XYZ color space in the target color gamut can be obtained:
[0073]
[0074] The target brightness and chromaticity data of the test image group can be calculated according to the following formula:
[0075]
[0076] Among them, θ r ,θ g ,θ b ,θ w They represent the conversion coefficients of the RGB primary colors and the target white point from the xyz color space to the XYZ color space.
[0077] Embodiment 3 determines whether each color component of the current pixel to be corrected is less than a set threshold.
[0078] (1) If the color component is less than the set threshold, i groups of initial brightness and chromaticity data and target brightness and chromaticity data are selected within the set threshold range, and a lookup table LUT1 of the RGB color space and the XYZ color space of the low brightness area of the display panel to be corrected is obtained accordingly.
[0079] LUT1:[(X1,Y1,Z1),(X2,Y2,Z2),……,(X i ,Y i ,Z i )]
[0080] =f[(R1,G1,B1),(R2,G2,B2),……,(R i ,G i ,B i )]
[0081] Where i represents the number of color components in the preset test image group that are less than the set threshold, [(R1, G1, B1), (R2, G2, B2), ..., (R i ,G i ,B i )] represents the RGB color component values of the i test images that meet the conditions, [(X1, Y1, Z1), (X2, Y2, Z2), ..., (X i ,Y i ,Z i )] is the corresponding XYZ color space coordinate, i.e. the initial brightness and chromaticity data,
[0082] Based on the CIE 1994 color difference formula, the XYZ component value with the smallest color difference from the target brightness and chromaticity data is found in the lookup table LUT1. The corresponding RGB color component value is the target correction data required to achieve the target brightness and chromaticity, and the 3D lookup table LUT2 is constructed accordingly. The input of the 3D lookup table LUT2 is the RGB color component value of multiple test images whose color components are less than the set threshold, and the output is the corresponding RGB correction data. The example is as follows:
[0083]
[0084] A number of sampling points are extracted around the pixel to be corrected. These points must be able to form a closed polygon. Three-dimensional interpolation is performed inside the polygon to obtain the target correction data.
[0085] Commonly used three-dimensional interpolation methods can be divided into three-dimensional linear interpolation (eight-point hexahedron), triangular prism interpolation (six-point pentahedron), pyramid interpolation (five-point pentahedron) and tetrahedron (four-point tetrahedron) interpolation. Among them, tetrahedron interpolation has less calculation and higher accuracy, and its specific implementation is as follows:
[0086] Assume that the pixel to be corrected is point P, whose coordinates in the XYZ color space are (X, Y, Z), and the color values corresponding to the vertices of the smallest cube surrounded by the eight nearby sampling points are P and 000 (X0,Y0,Z0),P 001 (X0,Y0,Z1),P 010 (X0,Y1,Z0),P 011 (X0,Y1,Z1),P 100 (X1,Y0,Z0),P 101 (X1,Y0,Z1),P 110 (X1,Y1,Z0),P 111 (X1, Y1, Z1). The cube can be split into six tetrahedrons of equal volume, such as Figure 3 shown.
[0087] Calculate whether the sum of the volumes of the four tetrahedrons formed by any three vertices in each tetrahedron and the pixel to be corrected is equal to the volume of the original tetrahedron. If so, the pixel to be corrected is included in this tetrahedron, that is, the color component values corresponding to the four vertices of the tetrahedron are selected for interpolation calculation. The specific calculation formula is as follows:
[0088]
[0089] in:
[0090] ΔX=X-X0
[0091] ΔY=Y-Y0
[0092] ΔZ=Z-Z0
[0093] ΔX1=X1-X0
[0094] ΔY1=Y1-Y0
[0095] ΔZ1=Z1-Z0
[0096] (2) If the color component is greater than or equal to the set threshold, m groups of initial brightness and chromaticity data and target brightness and chromaticity data that meet the conditions are selected, and a conversion matrix M2 between the XYZ color space and the RGB color space of the highlight area of the display panel is fitted based on the linear least squares method according to the multiple groups of test image RGB color component values and the initial brightness and chromaticity data.
[0097] Ax=b
[0098]
[0099] Among them, b represents the RGB color component values of the m groups of test images that meet the conditions, A represents the corresponding initial brightness and chromaticity data, and x is the transformation matrix vector M2 to be solved
[0100] The color correction matrix for the highlight area is:
[0101] C=M2×M1
[0102] Assume that the RGB color components of the pixel to be corrected are (R, G, B) in , the target correction data is calculated as follows:
[0103]
[0104] Embodiment 4 A display panel color correction device.
[0105] See also Figure 4 The device includes a preprocessing module and a display panel correction module.
[0106] The pre-processing module collects the brightness and chromaticity information of the display panel, calculates the 3D lookup table for the low-brightness area and the correction matrix for the high-brightness area according to the target color gamut, and uploads the relevant data to the chip storage unit, including:
[0107] Display control module: controls the display panel to be calibrated to display a plurality of preset test images respectively;
[0108] Data acquisition module: collects multiple sets of initial brightness and color information of the display panel;
[0109] 3D lookup table calculation module: calculates target correction data required to achieve target brightness and chromaticity according to initial brightness and chromaticity information of the low-brightness area and target brightness and chromaticity information, constructs a 3D lookup table, and uploads it to the storage module of the color correction device;
[0110] Correction matrix calculation module: calculates the display panel color space conversion matrix based on the initial brightness and chromaticity information of the highlight area, obtains the color correction matrix in combination with the target brightness and chromaticity information, and uploads it to the storage module;
[0111] The display panel correction module reads the color component threshold, the low-brightness area 3D lookup table and the high-brightness area correction matrix from the storage module, and performs color correction on the input content of the display panel according to the threshold, specifically including:
[0112] Storage module: stores color component thresholds, low-brightness area 3D lookup table and highlight area correction matrix, and sends the data to the color correction processing module;
[0113] Color correction processing module: performs color correction on the input content of the display panel according to the data information sent by the storage module and outputs it.
[0114] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is limited by the appended claims and their equivalents.
Claims
1. A display panel color correction method, characterized in that: Include, Step 1, obtaining multiple groups of initial brightness and chromaticity information of the display panel to be calibrated; Step 2, determining target brightness and chromaticity information according to the target color gamut; Step 3: determine whether each color component of the current pixel to be corrected is less than a set threshold; Step 4: outputting the corrected data according to the judgment result; In the step 1, firstly, the image group to be tested is determined, and each color component of the original color space needs to be discretely sampled at equal intervals, and the original color space is divided into (N-1)×(N-1)×(N-1) minimum cubic units using N×N×N sampling points, and the display panel to be calibrated is controlled to display multiple preset test images respectively, and a color analyzer is used to measure under different (R, G, B) images to obtain the multiple groups of initial brightness and chromaticity information; In the step 2, it is assumed that the chromaticity coordinates of the three primary colors of the target color gamut are: R:(r x , r y ), G:(g x , g y ), B(b x , b y ), the target white point color coordinates are: (w x , w y ), the coordinates of the RGB primary colors and the target white point in the RGB color space are: (1, 0, 0), (0, 1, 0), (0, 0, 1), (1, 1, 1) The coordinates of the RGB primary colors in the XYZ color space are expressed as: R XYZ =(R X ,R Y ,R Z )=(r x ,r y ,1-r x -r y )×θ r G XYZ =(G X ,G Y ,G Z )=(g x ,g y ,1-g x -g y )×θ g B XYZ =(B X ,B Y ,B Z )=(b x ,b y ,1-b x -b y )×θ b The coordinates of the target white point in the XYZ color space are: in: W Y =1 Based on this, the conversion matrix M1 from RGB color space to XYZ color space in the target color gamut can be obtained: The target brightness and chromaticity data of the test image group are calculated according to the following formula: Among them, θ r ,θ g ,θ b ,θ w They represent the conversion coefficients of the RGB primary colors and the target white point from the RGB color space to the XYZ color space; In the step 3, if the color component is less than the set threshold, i groups of initial brightness and chromaticity information and target brightness and chromaticity data are screened out within the set threshold range, and a lookup table LUT1 of the RGB color space and the XYZ color space of the low brightness area of the display panel to be corrected is obtained accordingly. LUT1:[(X1,Y1,Z1),(X2,Y2,Z2),……,(X i ,Y i ,Z i )] =f[(R1,G1,B1),(R2,G2,B2),……,(R i ,G i ,B i )] Where i represents the number of color components in the preset test image group that are less than the set threshold, [(R1, G1, B1), (R2, G2, B2), ..., (R i ,G i ,B i )] represents the RGB color component values of the i test images that meet the conditions, [(X1, Y1, Z1), (X2, Y2, Z2), ..., (X i ,Y i ,Z i )] is the corresponding XYZ color space coordinate, i.e., the initial brightness and chromaticity information, Based on the CIE 1994 color difference formula, the XYZ component value with the smallest color difference with the target brightness and chromaticity data is found in the lookup table LUT1, and the corresponding RGB color component value is the target correction data required to achieve the target brightness and chromaticity, and the 3D lookup table LUT2 is constructed accordingly; In step 3, if the color component is greater than or equal to the set threshold, m groups of initial brightness and chromaticity information and target brightness and chromaticity data that meet the conditions are screened out, and a conversion matrix M2 between the XYZ color space and the RGB color space of the highlight area of the display panel is fitted based on the linear least squares method according to the multiple groups of test image RGB color component values and the initial brightness and chromaticity information. Ax=b Among them, b represents the RGB color component value of the m groups of test images that meet the conditions, A represents the corresponding initial brightness and chromaticity information, and x is the transformation matrix vector M2 to be solved The color correction matrix of the highlight area is C = M2 × M1 Assume that the RGB color components of the pixel to be corrected are (R, G, B) in , the target correction data is calculated as follows:
2. A display panel color correction device, capable of implementing a display panel color correction method according to claim 1, characterized in that: Including, pre-processing module and display panel correction module, The preprocessing module collects the brightness and chromaticity information of the display panel, calculates the 3D lookup table of the low-brightness area and the correction matrix of the high-brightness area according to the target color gamut, and uploads the relevant data to the storage module, specifically including: Display control module: controls the display panel to be calibrated to display a plurality of preset test images respectively; Data acquisition module: collects multiple sets of initial brightness and color information of the display panel; 3D lookup table calculation module: calculates the target correction data required to achieve the target brightness and chromaticity based on the initial brightness and chromaticity information of the low-brightness area and the target brightness and chromaticity information, constructs a 3D lookup table, and uploads it to the storage module; Correction matrix calculation module: calculates the display panel color space conversion matrix based on the initial brightness and chromaticity information of the highlight area, obtains the color correction matrix in combination with the target brightness and chromaticity information, and uploads it to the storage module; The display panel correction module reads the color component threshold, the low-brightness area 3D lookup table and the high-brightness area correction matrix from the storage module, and performs color correction on the input content of the display panel accordingly, specifically including: Storage module: stores color component thresholds, low-brightness area 3D lookup table and highlight area correction matrix, and sends the data to the color correction processing module; Color correction processing module: performs color correction on the input content of the display panel according to the data information sent by the storage module and outputs it.
