Color calibration method and apparatus, storage medium, and display device
By defining a cube within the display device and calculating color correction parameters, the problem of color error after color gamut unification in the display device is solved, achieving higher-precision color calibration and improving the color display accuracy of the display device.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING XIAOMI MOBILE SOFTWARE CO LTD
- Filing Date
- 2022-03-24
- Publication Date
- 2026-07-24
AI Technical Summary
In existing technologies, display devices still have color display errors even after color gamut unification, making it difficult to further improve the accuracy of color calibration.
By determining a cube from the input sub-table of the color lookup table and selecting RGB test nodes from the cube that are different from the input sub-table, color correction parameters are calculated, and the ideal RGB output value is determined using cube interpolation for further color correction.
It improves the accuracy of color display on display devices. By further calibrating the RGB test nodes, display errors are reduced and the accuracy of color calibration is improved.
Smart Images

Figure CN116847037B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of display technology, and in particular to a color calibration method, apparatus, storage medium, and display device. Background Technology
[0002] With the development of display technology, display devices are widely used in daily life, such as mobile phone screens, computer monitors, and smartwatches. Different display devices have different color gamuts due to their panel designs and component structures. To ensure that different display devices achieve the same display effect, in addition to unifying the color gamut, color calibration is also necessary considering the influence of the display devices' own hardware conditions. Therefore, how to calibrate the colors of display devices has become an urgent problem to be solved. Summary of the Invention
[0003] To overcome the problems existing in related technologies, this disclosure provides a color calibration method, apparatus, storage medium, and display device.
[0004] According to a first aspect of the present disclosure, a color calibration method is provided, the method being applied to a display device, the method comprising:
[0005] Obtain the color lookup table of the display device, and determine a cube from the input sub-table of the color lookup table, wherein each vertex of the cube is an RGB node in the input sub-table of the color lookup table;
[0006] RGB test nodes are determined from the cube, and the actual RGB display value of the RGB test nodes on the display device is determined. The RGB test nodes are not the same as the RGB nodes in the input sub-table of the color lookup table.
[0007] The ideal RGB output value corresponding to the RGB test node is determined based on the RGB output values of each vertex of the cube in the output sub-table of the color lookup table, each vertex of the cube, and the RGB test node.
[0008] The color correction parameters are calculated based on the actual RGB display value and the ideal RGB output value. These color correction parameters are used to correct the colors displayed by the display device.
[0009] Optionally, the input sub-table of the color lookup table is preset, and the method further includes:
[0010] Obtain the target RGB node;
[0011] The display error is determined based on the target RGB node and the target RGB display value when the display device displays the target RGB node;
[0012] The corresponding output sub-table of the color lookup table is determined based on the input sub-table of the color lookup table and the display error.
[0013] Optionally, determining the cube from the input sub-table of the color lookup table includes:
[0014] Randomly select any reference RGB node within the RGB value range corresponding to the color lookup table;
[0015] The cube including the reference RGB node is determined from the input sub-table of the color lookup table based on the R, G, and B values of the reference RGB node.
[0016] Optionally, determining the cube including the reference RGB node from the input sub-table of the color lookup table based on the R, G, and B values of the reference RGB node includes:
[0017] Determine two target R values adjacent to the R value, two target G values adjacent to the G value, and two target B values adjacent to the B value from the input sub-table of the color lookup table;
[0018] The RGB nodes formed by the two target R values, the two target G values, and the two target B values are determined as the vertices of the cube.
[0019] Optionally, the method further includes:
[0020] The output sub-table of the color lookup table is corrected according to the color correction parameters to correct the colors displayed by the display device.
[0021] Optionally, determining the ideal RGB output value corresponding to the RGB test node based on the RGB output values of each vertex of the cube in the output sub-table of the color lookup table, each vertex of the cube, and the RGB test node includes:
[0022] Based on the RGB output values corresponding to each vertex of the cube in the output sub-table of the color lookup table, the vertices of the cube, and the RGB test nodes, the ideal RGB output value corresponding to the RGB test nodes is determined by cube interpolation.
[0023] Optionally, the target RGB node is determined from the input sub-table of the color lookup table.
[0024] Optionally, the method further includes:
[0025] If the RGB reference node is different from the RGB nodes in the input sub-table of the color lookup table, the reference RGB node is determined as the test RGB node.
[0026] According to a second aspect of the present disclosure, a color calibration apparatus is provided, the apparatus being applied to a display device, the apparatus comprising:
[0027] The acquisition module is configured to acquire the color lookup table of the display device and determine a cube from the input sub-table of the color lookup table, wherein each vertex of the cube is an RGB node in the input sub-table of the color lookup table;
[0028] The first determining module is configured to determine RGB test nodes from the cube and determine the actual RGB display value of the RGB test nodes on the display device, wherein the RGB test nodes are not the same as the RGB nodes in the input sub-table of the color lookup table;
[0029] The second determining module is configured to determine the ideal RGB output value corresponding to the RGB test node based on the RGB output values of each vertex of the cube in the output sub-table of the color lookup table, each vertex of the cube, and the RGB test node;
[0030] The calculation module is configured to calculate color correction parameters based on the actual RGB display value and the ideal RGB output value, the color correction parameters being used to correct the colors displayed by the display device.
[0031] According to a third aspect of the present disclosure, a computer-readable storage medium is provided, having stored thereon computer program instructions that, when executed by a processor, implement the steps of the color calibration method provided in the first aspect of the present disclosure.
[0032] According to a fourth aspect of this disclosure, a display device is provided, comprising:
[0033] A memory on which computer programs are stored;
[0034] A processor is configured to execute the computer program in the memory to implement the steps of the color calibration method provided in the first aspect of this disclosure.
[0035] The technical solutions provided by the embodiments of this disclosure can include the following beneficial effects: After determining a cube from the input sub-table of a color lookup table, and determining RGB test nodes from the cube that are different from the RGB nodes in the input sub-table of the color lookup table, color correction parameters can be calculated for the RGB test nodes to compare the actual RGB display values displayed by the display device according to the RGB test nodes with the ideal output values corresponding to the RGB test nodes. Based on this, the colors displayed by the display device can be further corrected according to the color correction parameters, thereby improving the accuracy of the colors displayed by the display device. Therefore, by using this method of the present disclosure to calibrate the colors displayed by the display device through RGB nodes in the input sub-table that are not part of the color lookup table, the accuracy of the colors displayed by the display device can be improved.
[0036] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0037] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0038] Figure 1 This is a flowchart illustrating a color calibration method according to an exemplary embodiment.
[0039] Figure 2 This is a block diagram illustrating a color calibration device according to an exemplary embodiment.
[0040] Figure 3 This is a block diagram illustrating a display device according to an exemplary embodiment. Detailed Implementation
[0041] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0042] It should be noted that all actions involving the acquisition of signals, information, or data in this application are carried out in compliance with the relevant data protection laws and policies of the country where the application is located, and with the authorization granted by the owner of the relevant device.
[0043] Before detailing the specific embodiments of this disclosure, the application scenarios of this disclosure will first be explained. Currently, there are multiple color gamut standards for displays, such as sRGB, Adobe RGB, DCI-P3, and NTSC. sRGB is widely used in monitors, printers, and the Internet, and is currently the most commonly used color gamut standard. Adobe RGB is a common standard used in professional color imaging and publishing. DCI-P3 is widely used in television systems and home theaters. NTSC is a color gamut standard developed by the National Television System Committee (NTSC) of the United States. Although the color gamut of display devices can be unified according to the above color gamut standards, due to hardware differences such as model differences, hardware losses, and hardware instability, display errors still exist even when the color gamut is unified. In related technologies, in order to improve the consistency of display devices, it is necessary to calibrate the colors of display devices. Therefore, how to calibrate the colors of display devices has become an urgent problem to be solved.
[0044] While color lookup tables can be used to calibrate the RGB nodes of the input display device, the colors displayed by the device according to the calibrated RGB nodes still have display errors. In other words, the calibration accuracy for the RGB nodes in related technologies is not high enough. This is because each RGB node in the input sub-table of the color lookup table has a corresponding ideal RGB output value in the table, and this ideal RGB output value is obtained by calibrating the RGB nodes in the input sub-table based on the display device's display errors. Therefore, it is difficult to perform further calibration based on the RGB nodes in the input sub-table of the color lookup table (i.e., the calibration accuracy for the RGB nodes in the input sub-table is difficult to improve further).
[0045] In order to overcome the technical problems existing in the above-mentioned related technologies, this disclosure provides a color calibration method, apparatus, storage medium and display device.
[0046] Figure 1 This is a flowchart illustrating a color calibration method according to an exemplary embodiment, such as... Figure 1 As shown, the color calibration method can be used in display devices, and the method includes the following steps.
[0047] In step S101, the color lookup table of the display device is obtained, and the cube is determined from the input sub-table of the color lookup table.
[0048] In this context, each vertex of the cube represents an RGB node in the input sub-table of the color lookup table.
[0049] It should be noted that the color lookup table of a display device can be a color mapping table preset in the display device before it leaves the factory, used for calibrating the display device's color display. This color lookup table can be a 3D LUT (Lookup Table). A 3D LUT is a cubic space composed of multiple RGB nodes, which can be used for color conversion in the RGB color space. Each RGB node includes R value, G value, and B value.
[0050] It's easy to understand that a color lookup table can include an input sub-table and an output sub-table. The RGB nodes in the input sub-table have a mapping relationship with the RGB nodes in the output sub-table. The RGB nodes in the input sub-table represent the colors the display device is expected to display. However, due to hardware differences and other reasons, the colors displayed by the display device according to the RGB nodes in the input sub-table may differ from the colors represented by those RGB nodes. Therefore, by calibrating the RGB nodes in the input sub-table, calibrated RGB nodes can be obtained in the output sub-table. It can be understood that the output sub-table corresponds one-to-one with the RGB nodes in the input sub-table. The output value of the RGB nodes in the output sub-table is the ideal RGB output value. This ideal RGB output value is used to ensure that the display device displays colors according to this ideal RGB output value in a way that matches the color represented by the RGB node in the input sub-table corresponding to that ideal RGB output value.
[0051] Since a color lookup table is a cubic space composed of multiple RGB nodes, after obtaining the color lookup table of the display device, a cube can be determined from the input sub-table of the color lookup table. Each vertex of this cube can be an RGB node from the input sub-table of the color lookup table.
[0052] It should be noted that the RGB nodes in the input sub-table of the color lookup table can be preset. Based on this, a cube space corresponding to the color lookup table can be constructed according to these preset RGB nodes. The cube determined from the input sub-table of the color lookup table can be a sub-cube space of this cube space.
[0053] In step S102, RGB test nodes are determined from the cube, and the actual RGB display values of the RGB test nodes on the display device are determined.
[0054] In particular, the RGB test node is different from the RGB node in the input sub-table of the color lookup table.
[0055] It should be noted that although each vertex of the cube represents an RGB node from the input sub-table of the color lookup table, the space within the cube can include other RGB nodes that are distinct from the RGB nodes in the input sub-table. Based on this, RGB test nodes that are distinct from the RGB nodes in the input sub-table can be identified within the cube, and the actual RGB display value of these test nodes on the display device can be determined.
[0056] In one possible implementation, color analysis instruments, spectrometers, and other equipment can be used to collect the tristimulus values (i.e., the color values in the XYZ color space) of the colors displayed on the display device based on the RGB test nodes. Then, methods from related technologies (i.e., methods for converting values in the XYZ color space to values in the RGB color space) can be used to convert these tristimulus values back to their RGB color space values, i.e., the actual RGB display values.
[0057] In step S103, the ideal RGB output value corresponding to the RGB test node is determined based on the RGB output values of each vertex of the cube in the output sub-table of the color lookup table, each vertex of the cube, and the RGB test node.
[0058] Since the RGB test nodes are RGB nodes inside the cube, given the RGB nodes of each vertex of the cube, the RGB output values (i.e., ideal RGB output values) corresponding to each vertex of the cube in the output sub-table of the color lookup table, and the RGB test nodes, the ideal RGB output values corresponding to the RGB test nodes can be determined by the cube interpolation method.
[0059] In step S104, color correction parameters are calculated based on the actual RGB display value and the ideal RGB output value.
[0060] Among them, the color correction parameter is used to correct the colors displayed by the display device.
[0061] It should be noted that the color correction parameters can be a transformation matrix used to convert actual RGB display values to ideal RGB output values. The formula can be as follows:
[0062] Ideal RGB output value = M ti × Actual RGB display value (1)
[0063] Wherein, the ideal RGB output value can be the matrix corresponding to the ideal RGB output value, and the actual RGB display value can be the matrix corresponding to the actual RGB display value, M tiLet ti be the transformation matrix, and ti be the element in the transformation matrix. The number of ti elements in the transformation matrix depends on the number of RGB nodes. For example, if we calculate the transformation matrix from the actual RGB display value of one RGB node to the ideal RGB output value, the transformation matrix can be a one-dimensional matrix and includes one unknown t1. If we calculate the transformation matrix from the actual RGB display value of nine RGB nodes to the ideal RGB output value, the transformation matrix can be a 3×3 two-dimensional matrix and includes nine unknowns t1 to t9. The more unknowns in the transformation matrix, the smaller the error of the calculated transformation matrix, and the higher the accuracy of the transformation.
[0064] The technical solution provided by the embodiments of this disclosure determines a cube from the input sub-table of a color lookup table, and then determines RGB test nodes from the cube that are different from the RGB nodes in the input sub-table of the color lookup table. Afterwards, color correction parameters can be calculated for the RGB test nodes, comparing the actual RGB display value displayed by the display device according to the RGB test nodes with the ideal output value corresponding to the RGB test nodes. Based on this, the colors displayed by the display device can be further corrected according to the color correction parameters, thereby improving the accuracy of the colors displayed by the display device.
[0065] In the process of calibrating the RGB nodes of an input display device using a color lookup table, it's difficult to perform further calibration based solely on the RGB nodes in the input sub-table, as each RGB node in the lookup table's input sub-table has a corresponding ideal RGB output value. Furthermore, this ideal RGB output value is obtained by correcting the RGB nodes in the input sub-table based on the display device's display error. However, the RGB test nodes are different from the RGB nodes in the color lookup table's input sub-table. Therefore, the display device's display error can be further calculated based on the RGB test nodes, yielding color calibration parameters with higher accuracy corresponding to this error. By further correcting the colors displayed by the display device using these color calibration parameters, the accuracy of the displayed colors is improved.
[0066] Optionally, the method provided in this disclosure embodiment may further include:
[0067] The colors displayed on the display device are corrected based on the output sub-table of the color lookup table described in the color correction parameters.
[0068] It should be understood that after calculating the color correction parameters, these parameters can be used to correct the colors displayed by the display device. As mentioned earlier, the colors displayed by the display device according to the RGB nodes corrected according to the color lookup table still have display errors. Based on this, the color correction parameters can be left-multiplied by the ideal RGB output value of the RGB test node to obtain a further corrected ideal RGB output value. Furthermore, the color correction parameters can be left-multiplied by each RGB node in the output sub-table of the color lookup table to obtain a further corrected output sub-table. This ensures that the effect of the display screen displaying colors according to the further corrected ideal RGB output value is consistent with the color effect represented by the RGB node in the input sub-table corresponding to the further corrected ideal RGB output value.
[0069] Optionally, the input sub-table of the color lookup table is preset, and the method provided in this disclosure embodiment may further include:
[0070] Obtain the target RGB node;
[0071] The display error is determined based on the target RGB node and the target RGB display value when the display device displays the target RGB node;
[0072] The corresponding output sub-table of the color lookup table is determined based on the input sub-table of the color lookup table and the display error.
[0073] It should be noted that the input sub-table in the color lookup table can be pre-defined. For example, the color lookup table can be a 3D LUT containing 17*17*17 input nodes. The RGB nodes included in the input sub-table of this 3D LUT can be 4913 RGB nodes obtained by combining the 17 numbers: 0, 256, 512, 768, 1024, 1280, 1536, 1792, 2048, 2303, 2559, 2815, 3071, 3327, 3583, 3839, and 4095.
[0074] The target RGB node can be determined from the input sub-table of a color lookup table, or from the corresponding RGB value range of the color lookup table. After obtaining the target RGB node, the display error can be determined based on the target RGB node and the target RGB display value when the display device displays the target RGB node. In a possible implementation, color analysis instruments, spectrometers, or similar devices can be used to collect the tristimulus values (i.e., the color values in the XYZ color space) of the color displayed on the display device based on the target RGB node. Then, using methods from related technologies (i.e., methods for converting values in the XYZ color space to values in the RGB color space), these tristimulus values can be converted back to the color values in the RGB color space, i.e., the target RGB display value. Based on this, the display error can be calculated using the following formula:
[0075] Δ = target RGB display value - target RGB node value (2)
[0076] Where Δ represents the display error, the target RGB display value is the RGB value of the color actually displayed by the display device according to the target RGB node, and the target RGB node value is the RGB value of the color that the display device is expected to display.
[0077] Understandably, after calculating the display error, the corresponding output sub-table of the color lookup table can be determined based on the input sub-table and the display error. For example, the output sub-table of the corresponding color lookup table can be determined using the following formula, where the values of the RGB nodes in the output sub-table are the ideal RGB output values:
[0078] Ideal RGB output value = Target RGB node value - Δ (3)
[0079] Combining formula (3) and formula (2), we get formula (4):
[0080] Ideal RGB output value = 2 target RGB node value - target RGB display value (4)
[0081] In this way, the RGB nodes in the output subtable corresponding to the input subtable can be obtained.
[0082] Furthermore, it should be noted that if the preset color gamut of the target RGB node is the same as the native color gamut of the display device, a color conversion table can be generated based on the aforementioned input and output sub-tables. If the preset color gamut of the target RGB node is different from the native color gamut of the display device, a conversion matrix for transforming the target RGB node from the preset color gamut to the native color gamut of the display device must be determined, and this conversion matrix is then left-multiplied by the RGB nodes in the output sub-table to obtain the RGB nodes in the color gamut-converted output sub-table. Based on this, a color conversion table can be generated based on the input sub-table and the color gamut-converted output sub-table.
[0083] The preset color gamut can be pre-defined by developers according to their needs. The preset color gamut set by developers can be a conventional color gamut, such as sRGB or NTSC, or a custom color gamut. The native color gamut of the display device can be obtained by testing with color analysis instruments, spectrometers, and other equipment.
[0084] For example, the transformation matrix for converting the target RGB node from a preset color gamut to the native color gamut of the display device can be determined as follows:
[0085] A first conversion matrix is determined to convert the preset color gamut to the XYZ color space, and a second conversion matrix is determined to convert the XYZ color space to the native color gamut of the display device; the product of the first conversion matrix and the second conversion matrix is used as the conversion matrix for converting the target RGB node from the preset color gamut to the native color gamut of the display device.
[0086] By determining the display error of the display device from the RGB nodes in the input sub-table of the color lookup table, a preliminary color lookup table for color calibration of the display device can be obtained. Based on this, by identifying RGB test nodes that are different from the RGB nodes in the input sub-table of the color lookup table, and further calculating the display error of the display device for these RGB test nodes, higher-precision color calibration parameters corresponding to this further calculated display error can be obtained. Thus, the output sub-table of the color lookup table can be further calibrated based on these color calibration parameters, resulting in a color lookup table with higher calibration accuracy. Based on this, correcting the colors displayed by the display device using the higher-precision color lookup table can improve the accuracy of the displayed colors.
[0087] Optionally, in step S101 above, the method of determining the cube from the input sub-table of the color lookup table may include:
[0088] Method 1: Randomly select any reference RGB node within the RGB value range corresponding to the color lookup table;
[0089] The cube containing the reference RGB node is determined from the input sub-table of the color lookup table based on the R, G, and B values of the reference RGB node.
[0090] The RGB value range corresponding to the color lookup table can be 0 to 4913 (the R, G, and B values all range from 0 to 4913). A cube including a reference RGB node can mean that the R value of the reference RGB node is within the R value range of each vertex of the cube, the G value is within the G value range of each vertex of the cube, and the B value is within the B value range of each vertex of the cube.
[0091] Optionally, determining the cube including the reference RGB node from the input sub-table of the color lookup table based on the R, G, and B values of the reference RGB node may include:
[0092] Determine the two target R values adjacent to the R value, the two target G values adjacent to the G value, and the two target B values adjacent to the B value from the input sub-table of the color lookup table;
[0093] The RGB nodes, consisting of two target R values, two target G values, and two target B values, are defined as the vertices of the cube.
[0094] R value G value B value 0 0 0 256 256 256 512 512 512 768 768 768 1024 1024 1024 1280 1280 1280 1536 1536 1536 1792 1792 1792 …… …… ……
[0095] For example, in the example of the input sub-table of the color lookup table above, if the selected reference RGB node is (1600, 800, 300), where the R value is 1600, the G value is 800, and the B value is 300, then the R values of the two targets adjacent to the R value are 1536 and 1792, the G values of the two targets adjacent to the G value are 768 and 1024, and the B values of the two targets adjacent to the B value are 256 and 512. Based on this, the RGB nodes obtained by combining two target R values, two target G values, and two target B values can include: (1536, 768, 256), (1536, 768, 512), (1536, 1024, 256), (1536, 1024, 512), (1792, 768, 256), (1792, 768, 512), (1792, 1024, 256), (1792, 1024, 512). These eight RGB nodes can then be used to define the vertices of the cube.
[0096] Optionally, the method provided in this disclosure embodiment may further include:
[0097] If the RGB reference node and the RGB node in the input sub-table of the color lookup table are both different, the reference RGB node will be determined as the test RGB node.
[0098] Understandably, when using a color lookup table to calibrate the RGB nodes of an input display device, it's difficult to perform further calibration based solely on these nodes. Since each RGB node in the input sub-table of the color lookup table has a corresponding ideal RGB output value, and this ideal RGB output value is obtained by correcting the display device's error against the RGB nodes in the input sub-table, it's challenging to perform further calibration based on the RGB nodes in the input sub-table. If the selected RGB reference node is also an RGB node in the input sub-table, the ideal RGB output value can be directly obtained from the output sub-table, thus preventing further improvement in calibration accuracy. However, if the selected RGB reference node differs from all RGB nodes in the input sub-table, it can be designated as the test RGB node. This allows for further calculation of the display device's error and the generation of more accurate color calibration parameters corresponding to that error. By further calibrating the displayed colors based on these color calibration parameters, the accuracy of the displayed colors can be improved.
[0099] Method 2: Determine the RGB nodes that will be the vertices of the cube from the input sub-table of the color lookup table.
[0100] The vertex RGB node can include 8 RGB nodes, which can be input by the developer or pre-set. It can be determined according to the actual situation, and this disclosure does not make specific limitations.
[0101] Optionally, step S103 above may include:
[0102] Based on the RGB output values of each vertex of the cube in the output sub-table of the color lookup table, the vertices of the cube, and the RGB test nodes, the ideal RGB output value corresponding to the RGB test nodes is determined by the cube interpolation method.
[0103] Cube interpolation can refer to trilinear interpolation, which is used to calculate the values of other points within a cube based on the values of its vertices. Given the RGB nodes of each vertex, the ideal RGB output values of each vertex in the color lookup table, and the RGB test nodes, cube interpolation can determine the ideal RGB output values corresponding to the RGB test nodes.
[0104] The technical solution provided by the embodiments of this disclosure determines a cube from the input sub-table of a color lookup table, and then determines RGB test nodes from the cube that are different from the RGB nodes in the input sub-table of the color lookup table. Color correction parameters can then be calculated for the RGB test nodes, comparing the actual RGB display value displayed by the display device with the ideal output value corresponding to the RGB test nodes. Based on this, the colors displayed by the display device can be further corrected according to the color correction parameters, thereby improving the accuracy of the displayed colors. Therefore, by using this method of the present disclosure to calibrate the colors displayed by the display device through RGB nodes in the input sub-table that are not part of the color lookup table, the accuracy of the displayed colors can be improved.
[0105] Figure 2 This is a block diagram illustrating a color calibration device according to an exemplary embodiment. (Refer to...) Figure 2 The device is applied to a display device and may include an acquisition module 101, a first determination module 102, a second determination module 103, and a calculation module 104.
[0106] The acquisition module 101 is configured to acquire a color lookup table of the display device and determine a cube from the input sub-table of the color lookup table, wherein each vertex of the cube is an RGB node in the input sub-table of the color lookup table.
[0107] The first determining module 102 is configured to determine an RGB test node from the cube and determine the actual RGB display value of the RGB test node on the display device, wherein the RGB test node is different from the RGB nodes in the input sub-table of the color lookup table.
[0108] The second determining module 103 is configured to determine the ideal RGB output value corresponding to the RGB test node based on the RGB output values of each vertex of the cube in the output sub-table of the color lookup table, each vertex of the cube, and the RGB test node.
[0109] The calculation module 104 is configured to calculate color correction parameters based on the actual RGB display values and the ideal RGB output values. These color correction parameters are used to correct the colors displayed by the display device.
[0110] This disclosure determines a cube from the input sub-table of a color lookup table, and then identifies RGB test nodes from the cube that are different from the RGB nodes in the input sub-table of the color lookup table. Color correction parameters can then be calculated for the RGB test nodes, comparing the actual RGB display values displayed by the display device with the ideal output values corresponding to those RGB test nodes. Based on these parameters, the colors displayed by the display device can be further corrected, thereby improving the accuracy of the displayed colors. Therefore, by using this device to calibrate the colors displayed by the display device through RGB nodes in an input sub-table other than a color lookup table, the accuracy of the displayed colors can be improved.
[0111] Optionally, the device may further include an execution module configured to:
[0112] Obtain the target RGB node;
[0113] The display error is determined based on the target RGB node and the target RGB display value when the display device displays the target RGB node;
[0114] The corresponding output sub-table of the color lookup table is determined based on the input sub-table and the display error.
[0115] Optionally, the first determining module 102 is further configured to:
[0116] Randomly select any reference RGB node within the RGB value range corresponding to the color lookup table;
[0117] The cube containing the reference RGB node is determined from the input sub-table of the color lookup table based on the R, G, and B values of the reference RGB node.
[0118] Optionally, the first determining module 102 is further configured to:
[0119] Determine the two target R values adjacent to the R value, the two target G values adjacent to the G value, and the two target B values adjacent to the B value from the input sub-table of the color lookup table;
[0120] The RGB nodes, consisting of two target R values, two target G values, and two target B values, are defined as the vertices of the cube.
[0121] Optionally, the device may further include a calibration module configured to:
[0122] The output sub-table of the color lookup table is corrected based on the color correction parameters to correct the colors displayed on the display device.
[0123] Optionally, the second determining module 102 is further configured to:
[0124] Based on the RGB output values of each vertex of the cube in the output sub-table of the color lookup table, the vertices of the cube, and the RGB test node, the ideal RGB output value corresponding to the RGB test node is determined by cube interpolation.
[0125] Optionally, the target RGB node is determined from the input sub-table of the color lookup table.
[0126] Optionally, the device may further include a third determining module, which is configured to:
[0127] If the RGB reference node and the RGB node in the input sub-table of the color lookup table are both different, the reference RGB node will be determined as the test RGB node.
[0128] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0129] This disclosure also provides a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, implement the steps of the color calibration method provided in this disclosure.
[0130] Figure 3 This is a block diagram illustrating a display device 200 according to an exemplary embodiment. For example, the display device 200 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0131] Reference Figure 3 The display device 200 may include one or more of the following components: a processing component 202, a memory 204, a power component 206, a multimedia component 208, an audio component 210, an input / output (I / O) interface 212, a sensor component 214, and a communication component 216.
[0132] Processing component 202 typically controls the overall operation of display device 200, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 202 may include one or more processors 220 to execute instructions to complete all or part of the steps of the road positioning method described above. Furthermore, processing component 202 may include one or more modules to facilitate interaction between processing component 202 and other components. For example, processing component 202 may include a multimedia module to facilitate interaction between multimedia component 208 and processing component 202.
[0133] Memory 204 is configured to store various types of data to support operation on display device 200. Examples of this data include instructions for any application or method operating on display device 200, contact data, phonebook data, messages, pictures, videos, etc. Memory 204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0134] Power component 206 provides power to various components of display device 200. Power component 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to display device 200.
[0135] Multimedia component 208 includes a screen that provides an output interface between the display device 200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 208 includes a front-facing camera and / or a rear-facing camera. When the display device 200 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0136] Audio component 210 is configured to output and / or input audio signals. For example, audio component 210 includes a microphone (MIC) configured to receive external audio signals when display device 200 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 204 or transmitted via communication component 216. In some embodiments, audio component 210 also includes a speaker for outputting audio signals.
[0137] I / O interface 212 provides an interface between processing component 202 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0138] Sensor assembly 214 includes one or more sensors for providing state assessments of various aspects of display device 200. For example, sensor assembly 214 may detect the on / off state of display device 200, the relative positioning of components such as the display and keypad of display device 200, changes in the position of display device 200 or a component of display device 200, the presence or absence of user contact with display device 200, the orientation or acceleration / deceleration of display device 200, and temperature changes of display device 200. Sensor assembly 214 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 214 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 214 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.
[0139] Communication component 216 is configured to facilitate wired or wireless communication between display device 200 and other devices. Display device 200 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 216 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 216 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0140] In an exemplary embodiment, the display device 200 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the road positioning method described above.
[0141] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 204 including instructions, which can be executed by the processor 220 of the display device 200 to complete the road positioning method described above. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0142] In another exemplary embodiment, a computer program product is also provided, the computer program product comprising a computer program executable by a programmable display device, the computer program having a code portion for performing the road positioning method described above when executed by the programmable display device.
[0143] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of this disclosure. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0144] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A color calibration method, characterized in that, The method is applied to a display device, and the method includes: Obtain the color lookup table of the display device, and determine a cube from the input sub-table of the color lookup table, wherein each vertex of the cube is an RGB node in the input sub-table of the color lookup table; RGB test nodes are determined from the cube, and the actual RGB display value of the RGB test nodes on the display device is determined. The RGB test nodes are not the same as the RGB nodes in the input sub-table of the color lookup table. Based on the RGB output values of each vertex of the cube in the output sub-table of the color lookup table, the vertices of the cube, and the RGB test node, determine the ideal RGB output value corresponding to the RGB test node; The color correction parameters are calculated based on the actual RGB display value and the ideal RGB output value. These color correction parameters are used to correct the colors displayed by the display device.
2. The method according to claim 1, characterized in that, The input sub-table of the color lookup table is preset, and the method further includes: Obtain the target RGB node; The display error is determined based on the target RGB node and the target RGB display value when the display device displays the target RGB node; The corresponding output sub-table of the color lookup table is determined based on the input sub-table of the color lookup table and the display error.
3. The method according to claim 1, characterized in that, Determining the cube from the input sub-table of the color lookup table includes: Randomly select any reference RGB node within the RGB value range corresponding to the color lookup table; The cube including the reference RGB node is determined from the input sub-table of the color lookup table based on the R, G, and B values of the reference RGB node.
4. The method according to claim 3, characterized in that, Determining the cube including the reference RGB node from the input sub-table of the color lookup table based on the R, G, and B values of the reference RGB node includes: Determine two target R values adjacent to the R value, two target G values adjacent to the G value, and two target B values adjacent to the B value from the input sub-table of the color lookup table; The RGB nodes formed by the two target R values, the two target G values, and the two target B values are determined as the vertices of the cube.
5. The method according to claim 1, characterized in that, The method further includes: The output sub-table of the color lookup table is corrected according to the color correction parameters to correct the colors displayed by the display device.
6. The method according to any one of claims 1-5, characterized in that, The step of determining the ideal RGB output value corresponding to the RGB test node based on the RGB output values of each vertex of the cube in the output sub-table of the color lookup table, each vertex of the cube, and the RGB test node includes: Based on the RGB output values corresponding to each vertex of the cube in the output sub-table of the color lookup table, the vertices of the cube, and the RGB test nodes, the ideal RGB output value corresponding to the RGB test nodes is determined by cube interpolation.
7. The method according to claim 2, characterized in that, The target RGB node is determined from the input sub-table of the color lookup table.
8. The method according to claim 3 or 4, characterized in that, The method further includes: If the reference RGB node is different from the RGB nodes in the input sub-table of the color lookup table, the reference RGB node is determined as the RGB test node.
9. A color calibration device, characterized in that, The device is used in a display device, and the device includes: The acquisition module is configured to acquire the color lookup table of the display device and determine a cube from the input sub-table of the color lookup table, wherein each vertex of the cube is an RGB node in the input sub-table of the color lookup table; The first determining module is configured to determine RGB test nodes from the cube and determine the actual RGB display value of the RGB test nodes on the display device, wherein the RGB test nodes are not the same as the RGB nodes in the input sub-table of the color lookup table; The second determining module is configured to determine the ideal RGB output value corresponding to the RGB test node based on the RGB output values of each vertex of the cube in the output sub-table of the color lookup table, each vertex of the cube, and the RGB test node; The calculation module is configured to calculate color correction parameters based on the actual RGB display value and the ideal RGB output value, the color correction parameters being used to correct the colors displayed by the display device.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the program implements the steps of the method described in any one of claims 1-8.
11. A display device, characterized in that, include: A memory on which computer programs are stored; A processor for executing the computer program in the memory to implement the steps of the method according to any one of claims 1-8.