A method for generating a screen color calibration file, and a screen color calibration method

By generating a screen color calibration file and utilizing a color coordinate matrix and a three-dimensional lookup table, the problem of inconsistent screen colors under different brightness levels is solved, achieving efficient and accurate screen color calibration.

CN122116839APending Publication Date: 2026-05-29BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
Filing Date
2024-11-27
Publication Date
2026-05-29

Smart Images

  • Figure CN122116839A_ABST
    Figure CN122116839A_ABST
Patent Text Reader

Abstract

The present disclosure provides a method for generating a screen color calibration file and a screen color calibration method, and relates to the field of screen color calibration under multiple luminances. The method comprises the following steps: determining a color coordinate matrix of three primary colors corresponding to the screen under N luminances, wherein N is a positive integer greater than 2; determining a conversion function matrix corresponding to the screen according to the N color coordinate matrices, wherein the conversion function matrix is used to map the color gamut of the screen under each luminance to the color gamut under a reference luminance; performing color calibration on the screen under the reference luminance to obtain a three-dimensional lookup table under the reference luminance; and determining the conversion function matrix and the three-dimensional lookup table as the color calibration file of the screen. Thus, the color gamut under different luminances can be kept consistent, and color calibration under the maximum luminance can ensure the color accuracy under all luminances, thereby ensuring the reliability of screen color calibration and improving the calibration efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of screen color calibration under multiple brightness levels, and particularly to a method for generating a screen color calibration file and a screen color calibration method. Background Technology

[0002] Screen color calibration is crucial for ensuring that display devices accurately reproduce the colors in images or videos, and for guaranteeing color consistency across different display devices. It holds significant importance in professional fields such as printing, photography, and design. Developing screen color calibration technology helps avoid quality problems caused by color deviations, improves work efficiency, and enhances collaboration between multiple devices. Summary of the Invention

[0003] This disclosure aims to at least partially address one of the technical problems in the related art.

[0004] The first aspect of this disclosure provides a method for generating a screen color calibration file, including:

[0005] Determine the color coordinate matrix of the three primary colors corresponding to the screen at N brightness levels, where N is a positive integer greater than 2;

[0006] Based on the N color coordinate matrices, a transformation function matrix corresponding to the screen is determined, wherein the transformation function matrix is ​​used to map the color gamut of the screen at each brightness to the color gamut at a reference brightness.

[0007] The screen is color-calibrated at the reference brightness to obtain a three-dimensional lookup table at the reference brightness.

[0008] The transformation function matrix and the three-dimensional lookup table are used to determine the color calibration file for the screen.

[0009] A second aspect of this disclosure provides a screen color calibration method, including:

[0010] Determine the current screen brightness value and the corresponding color calibration file;

[0011] Based on the transformation function matrix in the color calibration file, determine the target transformation matrix corresponding to the current brightness value;

[0012] Based on the target conversion matrix, the first color gamut of the screen at the current brightness value is converted into the second color gamut at the reference brightness value;

[0013] The second color gamut is calibrated based on the three-dimensional lookup table under the reference brightness in the color calibration file.

[0014] A third aspect of this disclosure provides an apparatus for generating a screen color calibration file, comprising:

[0015] The first determining module is used to determine the color coordinate matrix of the three primary colors corresponding to the screen at N brightness levels, where N is a positive integer greater than 2;

[0016] The second determining module is used to determine the transformation function matrix corresponding to the screen based on the N color coordinate matrices, wherein the transformation function matrix is ​​used to map the color gamut of the screen at each brightness to the color gamut at a reference brightness.

[0017] The first acquisition module is used to perform color calibration on the screen under the reference brightness to obtain a three-dimensional lookup table under the reference brightness.

[0018] The third determining module is used to determine the transformation function matrix and the three-dimensional lookup table as the color calibration file of the screen.

[0019] A fourth aspect of this disclosure provides a screen color calibration apparatus, comprising:

[0020] Determine the current screen brightness value and the corresponding color calibration file;

[0021] Based on the transformation function matrix in the color calibration file, determine the target transformation matrix corresponding to the current brightness value;

[0022] Based on the target conversion matrix, the first color gamut of the screen at the current brightness value is converted into the second color gamut at the reference brightness value;

[0023] The second color gamut is calibrated based on the three-dimensional lookup table under the reference brightness in the color calibration file.

[0024] A fifth aspect of this disclosure provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements a screen color calibration file generation method as proposed in a first aspect of this disclosure, or a screen color calibration method as proposed in a second aspect of this disclosure.

[0025] A sixth aspect of this disclosure provides a chip, the chip including a processing circuit and an interface circuit; wherein, the interface circuit is used to acquire instructions and send the instructions to the processing circuit, the processing circuit being used to execute the instructions to implement the screen color calibration file generation method proposed in the first aspect of this disclosure, or the screen color calibration method proposed in the second aspect of this disclosure.

[0026] A seventh aspect of this disclosure provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements a screen color calibration file generation method as proposed in a first aspect of this disclosure, or a screen color calibration method as proposed in a second aspect of this disclosure.

[0027] The method for generating screen color calibration files and the screen color calibration method disclosed herein have the following beneficial effects:

[0028] In this embodiment, the transformation function matrix corresponding to the screen is determined by using the color coordinate matrices corresponding to the screen at multiple brightness levels. This matrix, combined with a three-dimensional lookup table obtained by color calibration of the screen at a reference brightness, generates a color calibration file for the screen. This provides the conditions for ensuring color gamut consistency at different brightness levels and achieving color calibration at all brightness levels, which helps improve the efficiency and accuracy of screen color calibration and optimizes the user experience.

[0029] Additional aspects and advantages of this disclosure will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this disclosure. Attached Figure Description

[0030] The above and / or additional aspects and advantages of this disclosure will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, in which:

[0031] Figure 1 This is a schematic flowchart illustrating a method for generating a screen color calibration file according to an embodiment of the present disclosure.

[0032] Figure 2 This is a flowchart illustrating a method for generating a screen color calibration file according to another embodiment of the present disclosure.

[0033] Figure 3 This is a flowchart illustrating a method for generating a screen color calibration file according to another embodiment of the present disclosure.

[0034] Figure 4 This is a schematic flowchart of a screen color calibration method provided in an embodiment of the present disclosure;

[0035] Figure 5 A schematic diagram of the structure of a screen color calibration file generation apparatus provided in another embodiment of this disclosure;

[0036] Figure 6 This is a schematic diagram of the structure of a screen color calibration device provided in another embodiment of the present disclosure;

[0037] Figure 7A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown;

[0038] Figure 8 This is a schematic diagram of the structure of a chip proposed in an embodiment of this disclosure. Detailed Implementation

[0039] Embodiments of this disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this disclosure, and should not be construed as limiting this disclosure.

[0040] The following description, with reference to the accompanying drawings, describes a method for generating screen color calibration files, as well as a screen color calibration method, apparatus, electronic device, chip, and storage medium according to embodiments of the present disclosure.

[0041] In existing technologies, in order to make the screen colors more accurate, a three-dimensional lookup table (3D LUT) method is often used to calibrate the screen more precisely. However, this method is time-consuming and is generally only calibrated at maximum brightness, making it difficult to guarantee color accuracy in other brightness scenarios and failing to meet the needs of users to view the screen at different brightness levels.

[0042] Therefore, the screen color calibration file generation method and screen color calibration method proposed in this disclosure can combine the color gamut conversion matrix of different brightness and maximum brightness to keep the color gamut consistent under different brightness. Color calibration can be performed only at maximum brightness to ensure color accuracy at all brightness levels.

[0043] Figure 1 This is a flowchart illustrating a method for generating a screen color calibration file according to an embodiment of the present disclosure.

[0044] This embodiment illustrates the use of a screen color calibration file generation method configured in a screen color calibration file generation device. This screen color calibration file generation device can be applied to any electronic device, such as a mobile phone or computer, so that the electronic device can perform the function of calibrating screen colors under different brightness levels.

[0045] like Figure 1 As shown, the method for generating this screen color calibration file may include the following steps:

[0046] Step 101: Determine the color coordinate matrix of the three primary colors corresponding to the screen at N brightness levels.

[0047] Where N is a positive integer greater than 2, the value of N can be determined according to the fitting requirements of the transformation function and the computational efficiency, for example, it can be 10.

[0048] In this embodiment of the disclosure, the color coordinates of red, green, and blue (i.e., the three primary colors) on the screen can be measured at each brightness level. Then, the color coordinates can be filled according to the corresponding rows of red, green, and blue in the color coordinate matrix to obtain the color coordinate matrix corresponding to that brightness level, thereby determining N color coordinate matrices.

[0049] It should be noted that the screen's brightness range can be divided into N equal levels, resulting in N brightness levels, with the Nth brightness level being the screen's maximum brightness. Alternatively, N brightness values ​​with unequal differences can be selected from within the screen's brightness range.

[0050] Optionally, the brightness range of the screen can be divided into N levels, and then the color coordinates of the three primary colors corresponding to each brightness division point and the maximum brightness can be obtained.

[0051] For example, if the maximum brightness of the screen is 1 and N is 10, and the brightness range of 0 to 1 is divided into 10 levels, the 10 brightness division points are 0.1, 0.2, 0.3, ..., 0.9 and 1, then the color coordinates of the three primary colors corresponding to the screen at these 10 brightness levels of 0.1, 0.2, 0.3, ..., 0.9 and 1 can be obtained respectively.

[0052] In this embodiment of the disclosure, by averaging the brightness range corresponding to the screen and selecting 10 brightness levels, the color gamut transfer function during screen color calibration is calculated, which simplifies the brightness selection process and can accurately reflect the characteristics and patterns of color gamut changes under different screen brightness levels.

[0053] Step 102: Determine the transformation function matrix corresponding to the screen based on the N color coordinate matrices.

[0054] The transformation function matrix is ​​used to map the color gamut of the screen at each brightness level to the color gamut at the reference brightness level.

[0055] It should be noted that, in this disclosure, the reference brightness is the maximum brightness among N brightness levels. It may be the maximum brightness of the screen, or any brightness level among the medium and high brightness levels of the screen. This disclosure does not limit it in this way.

[0056] In this embodiment of the disclosure, the color coordinate matrix under the reference brightness can be multiplied by the inverse of the color coordinate matrix under any brightness to obtain the transformation matrix corresponding to that brightness.

[0057] For example, the formula for calculating the transformation matrix can be shown in equation (1) below.

[0058]

[0059] Among them, Matrix i Let N be the transformation matrix corresponding to the i-th brightness level, where i is a positive integer, N is 10, and m is the value of m. il For the i-th luminance, the l-th element in the transformation matrix is ​​(XR) i YR i ZR i Let (XG) be the color coordinate of red at the i-th brightness level. i YG i ZG i Let (XB) be the color coordinates of green at the i-th brightness level. i YB i ZB i Let be the color coordinate of blue at the i-th brightness. The 10th brightness is the reference brightness, then in formula (1) (XR) 10 YR 10 ZR 10 (XG) represents the color coordinates of red at the reference brightness. 10 YG 10 ZG 10 (XB) represents the color coordinates of green at the reference brightness. 10 YB 10 ZB 10 () represents the color coordinates of blue at the reference brightness.

[0060] Then, after determining the transformation matrices corresponding to the N-1 brightness levels other than the reference brightness, the N-1 elements at the same position in all transformation matrices can be fitted to obtain the transformation function, thereby determining the transformation function matrix corresponding to the screen.

[0061] For example, the transformation function matrix can be represented by the following formula (2).

[0062]

[0063] Among them, f l (x) is the transformation function obtained by fitting the N-1 elements at the l-th position in the transformation matrix, where x is the brightness value. For example, f l The form of the function (x) can be shown in the following formula (3).

[0064] f l (x)=a l x 3 +b l x 2 +c l x+d l (3)

[0065] Among them, al b l c l d l These are the fitting parameters.

[0066] Step 103: Perform color calibration on the screen under reference brightness to obtain a three-dimensional lookup table under reference brightness.

[0067] The Three-Dimensional Lookup Table (3D LUT) is a list of corresponding values ​​that can map one color space to another, thereby enabling color calibration of images or videos.

[0068] In this embodiment of the disclosure, color data, including RGB values ​​and luminance values, can be collected under a reference brightness. Then, based on the collected color data, a three-dimensional lookup table is established. By adjusting the output values ​​corresponding to the input RGB values, the color calibration of the screen under the reference brightness is completed, resulting in a three-dimensional lookup table under the reference brightness.

[0069] Step 104: Determine the transformation function matrix and three-dimensional lookup table as the screen's color calibration file.

[0070] In this embodiment of the disclosure, the transformation function matrix and the three-dimensional lookup table can be stored in a file, which is then designated as the screen's color calibration file.

[0071] In this embodiment, the transformation function matrix corresponding to the screen is determined by using the color coordinate matrices corresponding to the screen at multiple brightness levels. This matrix, combined with a three-dimensional lookup table obtained by color calibration of the screen at a reference brightness, generates a color calibration file for the screen. This provides the conditions for ensuring color gamut consistency at different brightness levels and achieving color calibration at all brightness levels, which helps improve the efficiency and accuracy of screen color calibration and optimizes the user experience.

[0072] Figure 2 This is a flowchart illustrating a method for generating a screen color calibration file according to an embodiment of the present disclosure, as shown below. Figure 2 As shown, the method for generating this screen color calibration file may include the following steps:

[0073] Step 201: Determine the commonly used brightness range and the uncommon brightness range of the screen according to the terminal type to which the screen belongs.

[0074] The terminal type to which the screen belongs can be a television, a mobile phone, a computer, or a display screen used in places such as shopping malls and stations.

[0075] It is understandable that, due to the different applicable scenarios of different types of terminals, the required screen brightness varies when users use the terminal. Furthermore, different brightness levels affect color saturation and contrast, thus impacting the calibration results. Therefore, in this disclosure, the brightness values ​​used to calculate the color gamut transfer matrix during screen color calibration can be selected based on the commonly used and uncommon brightness ranges corresponding to the terminal type. This further makes the screen color calibration more consistent with actual application conditions and improves the accuracy of the calibration.

[0076] In this embodiment of the disclosure, the historical screen brightness usage of a type of terminal can be statistically analyzed to determine the commonly used brightness range and the rarely used brightness range corresponding to the screen of that type of terminal.

[0077] Step 202: Divide the commonly used brightness range into M levels and the unused brightness range into L levels.

[0078] The sum of M and L is N.

[0079] In this embodiment of the disclosure, in order to improve the reliability of screen color calibration in the commonly used brightness range, when selecting N brightness levels, more of the commonly used brightness range can be selected, and the value of M should be greater than the value of L.

[0080] In other words, the areas of extremely low brightness on the screen are rarely used and are considered unused brightness ranges. In these ranges, when selecting brightness values ​​using a fixed brightness difference, the step size can be larger, dividing the unused brightness range into L levels. Conversely, in the medium-to-high brightness areas, which are commonly used brightness ranges, the step size for selecting brightness values ​​can be smaller, dividing the unused brightness range into M levels.

[0081] Step 203: Obtain the color coordinates of the three primary colors corresponding to each brightness division point and the maximum brightness of the screen.

[0082] For a detailed description of step 206 in this embodiment, please refer to other embodiments of this disclosure, which will not be repeated here.

[0083] In this embodiment, by dividing the screen brightness into a commonly used brightness range and a less commonly used brightness range, and selecting a corresponding number of zero-degree dividing points with different time lengths in each of the two ranges, the calibration effect is better ensured within the commonly used brightness range.

[0084] Step 204: Determine the transformation function matrix corresponding to the screen based on the N color coordinate matrices.

[0085] Step 205: Perform color calibration on the screen under reference brightness to obtain a three-dimensional lookup table under reference brightness.

[0086] Step 206: Determine the transformation function matrix and three-dimensional lookup table as the screen's color calibration file.

[0087] For a detailed description of steps 204 to 206 above, please refer to other embodiments of this disclosure, which will not be repeated here.

[0088] Figure 3 This is a flowchart illustrating a method for generating a screen color calibration file according to an embodiment of the present disclosure, as shown below. Figure 3 As shown, the method for generating this screen color calibration file may include the following steps:

[0089] Step 301: Determine the color coordinate matrix of the three primary colors corresponding to the screen at N brightness levels.

[0090] For a detailed description of step 301 above, please refer to other embodiments of this disclosure, which will not be repeated here.

[0091] Step 302: Based on the first color coordinate matrix corresponding to the i-th brightness and the second color coordinate matrix corresponding to the reference brightness, determine the transformation matrix corresponding to the color gamut mapping from the i-th brightness to the color gamut corresponding to the reference brightness.

[0092] Where i is a positive integer less than or equal to N. The reference brightness is the Nth zero degree.

[0093] In this embodiment of the disclosure, the inverse of the first color coordinate matrix can be calculated by multiplying the second color coordinate matrix by the first color coordinate matrix to obtain the transformation matrix corresponding to the color gamut at the i-th brightness level and the color gamut at the reference brightness level.

[0094] It should be noted that, in this disclosure, the reference brightness value can be the maximum brightness value corresponding to the screen, or the reference brightness value can be any brightness value in the commonly used brightness range corresponding to the screen.

[0095] Step 303: Based on N-1 transformation matrices, determine the transformation function matrix corresponding to the screen.

[0096] In this embodiment, since when i equals N, multiplying the second color coordinate matrix by its inverse results in an identity matrix (with 1s on the main diagonal and 0s for all other elements), N-1 transformation matrices can be obtained. After obtaining N-1 transformation matrices, the N-1 elements at the same position in all transformation matrices can be fitted to obtain the transformation function, thereby determining the transformation function matrix corresponding to the screen.

[0097] In this embodiment, the transformation matrix corresponding to the color gamut at the i-th brightness level is determined by using the first color coordinate matrix corresponding to the i-th brightness level and the second color coordinate matrix corresponding to the reference brightness level. Then, based on N-1 transformation matrices, the transformation function matrix corresponding to the screen is determined. This improves the accuracy of the transformation function matrix and provides conditions for improving the reliability of screen color calibration.

[0098] Optionally, the k-th transformation function in the transformation function matrix can be obtained by fitting the luminance value corresponding to each transformation matrix and the element at the k-th position in the transformation matrix.

[0099] In this embodiment of the disclosure, the elements at the k-th position of N-1 transformation matrices and the brightness value can be substituted into the polynomial function, where k is 1, 2, ..., the element at the k-th position is the independent variable of the polynomial function, and the brightness value is the dependent variable of the polynomial function. By fitting, the values ​​of the fitting parameters in the polynomial function can be obtained, thereby determining the k-th transformation function in the transformation function matrix, and thus obtaining the transformation function matrix corresponding to the screen.

[0100] It should be noted that if the N brightness values ​​are not uniformly distributed, different transformation matrices can also correspond to different weights, which can further improve the accuracy of the fitted function within the commonly used brightness range.

[0101] Optionally, if the difference between any two adjacent brightness values ​​in the N brightness values ​​is different, the commonly used brightness range and the uncommon brightness range corresponding to the screen can be determined.

[0102] In this embodiment of the disclosure, when the difference between any two adjacent brightness values ​​in the N brightness values ​​is different, the accuracy of the fitted transformation function may be affected by the selection of the N brightness values. Therefore, in this disclosure, the influence of the transition matrix corresponding to each brightness value on the fitted function can be adjusted according to whether each brightness value belongs to a commonly used brightness range, thereby improving the fitting accuracy.

[0103] In this embodiment of the disclosure, the commonly used brightness range and the uncommon brightness range of the screen can be determined based on the screen usage brightness statistics of similar screens.

[0104] Then, based on the brightness range to which each brightness belongs, the weight value of the transformation matrix corresponding to each brightness can be determined.

[0105] In this embodiment, the weight value of the transformation matrix corresponding to brightness in the commonly used brightness range is higher than the weight value of the transformation matrix corresponding to brightness in the uncommon brightness range, thereby increasing the influence of the transformation matrix corresponding to brightness in the commonly used brightness range on the fitting result, making the screen color calibration result more in line with user needs.

[0106] Then, based on the brightness value, weight value, and the element at the k-th position in each transformation matrix, the k-th transformation function in the transformation function matrix can be fitted.

[0107] In this embodiment of the disclosure, methods such as weighted least squares can be used to substitute the brightness value, weight value, and the element at the k-th position in each transformation matrix into a polynomial function for fitting, thereby obtaining the k-th transformation function in the transformation function matrix.

[0108] Step 304: Perform color calibration on the screen under reference brightness to obtain a three-dimensional lookup table under reference brightness.

[0109] Step 305: Determine the transformation function matrix and three-dimensional lookup table as the screen's color calibration file.

[0110] For a detailed description of steps 304 and 305 above, please refer to other embodiments of this disclosure, which will not be repeated here.

[0111] Figure 4 This is a schematic flowchart of a screen color calibration method provided in an embodiment of the present disclosure.

[0112] This embodiment illustrates the use of a screen color calibration file generation method configured in a screen color calibration device. This screen color calibration device can be applied to any electronic device, such as a mobile phone or computer, so that the electronic device can perform the function of calibrating the screen color under different brightness levels.

[0113] like Figure 4 As shown, the screen color calibration method may include the following steps:

[0114] Step 401: Determine the current brightness value of the screen and the corresponding color calibration file.

[0115] In this embodiment, the current screen brightness value can be determined through various methods, such as system settings, display control panel, third-party software, or code. Furthermore, a pre-generated color calibration file corresponding to the screen can be obtained based on the screen type, model, etc. The color calibration file is obtained using the screen color calibration file generation method provided in the above embodiments of this disclosure.

[0116] Step 402: Determine the target transformation matrix corresponding to the current brightness value based on the transformation function matrix in the color calibration file.

[0117] In this embodiment of the disclosure, the current brightness value can be substituted into each function in the transformation function matrix to obtain the target transformation matrix corresponding to the current brightness value.

[0118] Step 403: Based on the target transformation matrix, convert the first color gamut of the screen at the current brightness value to the second color gamut at the reference brightness value.

[0119] The first color gamut is the color gamut displayed by the screen at the current brightness value, and the second color gamut is the target color gamut, which is the color gamut displayed at the reference brightness.

[0120] In this embodiment of the disclosure, since the transformation matrix describes the mapping relationship from the first color gamut to the second color gamut, the target transformation matrix can be used to convert the first color gamut of the screen at the current brightness value to the second color gamut at the reference brightness value, thereby ensuring the consistency of the color gamut between different brightness values.

[0121] Step 404: Perform color calibration on the second color gamut based on the three-dimensional lookup table under the reference brightness in the color calibration file.

[0122] In this embodiment, since the first color gamut at the current screen brightness value is mapped to the second color gamut using a target transformation matrix, color calibration at the current screen brightness value can be completed by performing color calibration on the second color gamut. A three-dimensional lookup table can be used to perform color calibration on the second color gamut.

[0123] It should be noted that in this embodiment, the three-dimensional lookup table calibration is always active. When the brightness changes, the color gamut conversion matrix from the current brightness to the maximum brightness is calculated based on the calculated conversion matrix from any brightness to the maximum brightness. By applying this matrix, accurate color display at this brightness can be obtained.

[0124] In this embodiment, the color gamut of the screen at the current brightness value is mapped to the color gamut at the reference brightness value through a color gamut conversion matrix. Then, a three-dimensional lookup table at the reference brightness value is used to perform color calibration on the color gamut at the reference brightness value. This can complete the screen color calibration at different brightness levels, improving the accuracy and efficiency of screen color calibration.

[0125] To implement the above embodiments, this disclosure also proposes an apparatus for generating screen color calibration files.

[0126] Figure 5 This is a schematic diagram of the structure of the screen color calibration file generation apparatus provided in the embodiments of this disclosure.

[0127] like Figure 5 As shown, the screen color calibration file generation apparatus 500 may include:

[0128] The first determining module 501 is used to determine the color coordinate matrix of the three primary colors corresponding to the screen under N brightness levels, where N is a positive integer greater than 2;

[0129] The second determining module 502 is used to determine the transformation function matrix corresponding to the screen based on N color coordinate matrices, wherein the transformation function matrix is ​​used to map the color gamut of the screen at each brightness to the color gamut at the reference brightness.

[0130] The first acquisition module 503 is used to perform color calibration on the screen under reference brightness to obtain a three-dimensional lookup table under reference brightness.

[0131] The third determining module 504 is used to determine the transformation function matrix and the three-dimensional lookup table as the screen's color calibration file.

[0132] Optionally, the first determining module 501 can be specifically used for:

[0133] Divide the brightness range of the screen into N levels on average;

[0134] Obtain the color coordinates of the three primary colors corresponding to each brightness division point and the maximum brightness of the screen.

[0135] Optionally, the first determining module 501 can be specifically used for:

[0136] Based on the terminal type to which the screen belongs, determine the commonly used brightness range and the rarely used brightness range for the screen;

[0137] The commonly used brightness range is divided into M levels, and the rarely used brightness range is divided into L levels, where the sum of M and L is N.

[0138] Obtain the color coordinates of the three primary colors corresponding to each brightness division point and the maximum brightness of the screen.

[0139] Optionally, the second determining module 502 can be specifically used for:

[0140] Based on the first color coordinate matrix corresponding to the i-th brightness and the second color coordinate matrix corresponding to the reference brightness, determine the transformation matrix corresponding to the color gamut mapping from the i-th brightness to the color gamut corresponding to the reference brightness, where i is a positive integer less than or equal to N;

[0141] Based on N-1 transformation matrices, determine the transformation function matrix corresponding to the screen.

[0142] Optionally, the second determining module 502 can be specifically used for:

[0143] Based on the luminance value corresponding to each transformation matrix and the element at the k-th position in the transformation matrix, the k-th transformation function in the transformation function matrix is ​​obtained by fitting.

[0144] Optionally, the second determining module 502 can be specifically used for:

[0145] Given that the difference between any two adjacent brightness values ​​is different in N brightness values, determine the commonly used brightness range and the uncommon brightness range corresponding to the screen.

[0146] Based on the brightness range to which each brightness belongs, determine the weight value of the transformation matrix corresponding to each brightness.

[0147] Based on the brightness value, weight value, and element at the k-th position in each transformation matrix, the k-th transformation function in the transformation function matrix is ​​obtained by fitting.

[0148] Optionally, the reference brightness value can be the maximum brightness value corresponding to the screen, or any brightness value in the commonly used brightness range corresponding to the screen.

[0149] The functions and specific implementation principles of the modules described in this embodiment can be found in the above method embodiments, and will not be repeated here.

[0150] The screen color calibration file generation apparatus of this disclosure determines the corresponding transformation function matrix of the screen by using the color coordinate matrices corresponding to the screen at multiple brightness levels, and generates the screen color calibration file by combining the three-dimensional lookup table obtained by color calibration of the screen at a reference brightness. This provides conditions for ensuring color gamut consistency at different brightness levels and achieving color calibration at all brightness levels, which is beneficial for improving the efficiency and accuracy of screen color calibration and optimizing the screen's user experience.

[0151] This disclosure also proposes a screen color calibration device. Figure 6 This is a schematic diagram of the screen color calibration device provided in an embodiment of the present disclosure.

[0152] like Figure 6 As shown, the screen color calibration device 600 may include:

[0153] The fourth determining module 601 is used to determine the current brightness value of the screen and the corresponding color calibration file;

[0154] The fifth determining module 602 is used to determine the target transformation matrix corresponding to the current brightness value based on the transformation function matrix in the color calibration file;

[0155] Processing module 603 is used to convert the first color gamut of the screen at the current brightness value to the second color gamut at the reference brightness value based on the target conversion matrix;

[0156] The calibration module 604 is used to perform color calibration on the second color gamut based on a three-dimensional lookup table under the reference brightness in the color calibration file.

[0157] The functions and specific implementation principles of the modules described in this embodiment can be found in the above method embodiments, and will not be repeated here.

[0158] The screen color calibration device of this disclosure uses a color gamut conversion matrix to map the color gamut of the screen at the current brightness value to the color gamut at a reference brightness value. Then, it uses a three-dimensional lookup table at the reference brightness value to perform color calibration on the color gamut at the reference brightness value. This can complete the screen color calibration at different brightness levels, improving the accuracy and efficiency of screen color calibration.

[0159] To implement the above embodiments, this disclosure also proposes an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the screen color calibration file generation method or screen color calibration method as proposed in the foregoing embodiments of this disclosure.

[0160] Figure 7 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown. Figure 7 The electronic device 12 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments disclosed herein.

[0161] like Figure 7 As shown, the electronic device 12 is represented in the form of a general-purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, system memory 28, and bus 18 connecting different system components (including system memory 28 and processing unit 16).

[0162] Bus 18 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. Examples of these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.

[0163] Electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by electronic device 12, including volatile and non-volatile media, removable and non-removable media.

[0164] Memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and / or cache memory 32. Electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write non-removable, non-volatile magnetic media (… Figure 7 Not shown; usually referred to as a "hard drive"). Although Figure 7 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disc drive for reading and writing to a removable non-volatile optical disc (e.g., a compact disc read-only memory (CD-ROM), a digital video disc read-only memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of this disclosure.

[0165] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 42 typically perform the functions and / or methods described in the embodiments of this disclosure.

[0166] Electronic device 12 can also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), and with one or more devices that enable a user to interact with electronic device 12, and / or with any device that enables electronic device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed via input / output (I / O) interface 22. Furthermore, electronic device 12 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with other modules of electronic device 12 via bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0167] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing the methods mentioned in the foregoing embodiments.

[0168] To implement the above embodiments, this disclosure also proposes a chip, which includes a processing circuit and an interface circuit; wherein the interface circuit is used to acquire instructions and send the instructions to the processing circuit, and the processing circuit is used to execute the instructions to implement the screen color calibration file generation method or screen color calibration method proposed in the foregoing embodiments of this disclosure.

[0169] Figure 8 This is a schematic diagram of the chip structure proposed in an embodiment of this disclosure. See also... Figure 8 The diagram shown is a schematic representation of the structure of chip 800, but it is not limited to this.

[0170] Chip 800 includes processing circuitry 801, which is configured to perform any of the above methods.

[0171] In some embodiments, the chip 800 further includes one or more interface circuits 802. Optionally, the interface circuit 802 is connected to the memory 803, and the interface circuit 802 can be used to receive signals from the memory 803 or other devices, and the interface circuit 802 can be used to send signals to the memory 803 or other devices. For example, the interface circuit 802 can read instructions stored in the memory 803 and send the instructions to the processing circuit 801.

[0172] In some embodiments, the interface circuit 802 performs at least one of the communication steps such as sending and / or receiving in the above method, and the processing circuit 801 performs other steps.

[0173] In some embodiments, the terms interface circuit, interface, transceiver pin, transceiver, etc., can be used interchangeably.

[0174] In some embodiments, chip 800 further includes one or more memories 803 for storing instructions. Optionally, all or part of the memories 803 may be located outside of chip 800.

[0175] To implement the above embodiments, this disclosure also proposes a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the screen color calibration file generation method or screen color calibration method as proposed in the foregoing embodiments of this disclosure.

[0176] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this disclosure. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0177] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this disclosure, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0178] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing custom logic functions or processes, and the scope of preferred embodiments of this disclosure includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which embodiments of this disclosure pertain.

[0179] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.

[0180] It should be understood that various parts of this disclosure can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0181] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.

[0182] Furthermore, the functional units in the various embodiments of this disclosure can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.

[0183] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of the present disclosure have been shown and described above, it is to be understood that the above embodiments are exemplary and should not be construed as limiting the present disclosure. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present disclosure.

Claims

1. A method for generating a screen color calibration file, characterized in that, include: Determine the color coordinate matrix of the three primary colors corresponding to the screen at N brightness levels, where N is a positive integer greater than 2; Based on the N color coordinate matrices, a transformation function matrix corresponding to the screen is determined, wherein the transformation function matrix is ​​used to map the color gamut of the screen at each brightness to the color gamut at a reference brightness. The screen is color-calibrated at the reference brightness to obtain a three-dimensional lookup table at the reference brightness. The transformation function matrix and the three-dimensional lookup table are used to determine the color calibration file for the screen.

2. The method as described in claim 1, characterized in that, Determining the color coordinates of the three primary colors corresponding to the screen at N brightness levels includes: The brightness range corresponding to the screen is divided into N levels on average; Obtain the color coordinates of the three primary colors corresponding to each brightness division point and the maximum brightness of the screen.

3. The method as described in claim 1, characterized in that, Determining the color coordinates of the three primary colors corresponding to the screen at N brightness levels includes: Based on the terminal type to which the screen belongs, determine the commonly used brightness range and the rarely used brightness range corresponding to the screen; The commonly used brightness range is divided into M levels on average, and the rarely used brightness range is divided into L levels on average, where the sum of M and L is N. Obtain the color coordinates of the three primary colors corresponding to each brightness division point and the maximum brightness of the screen.

4. The method as described in claim 1, characterized in that, The step of determining the transformation function matrix corresponding to the screen based on the N color coordinate matrices includes: Based on the first color coordinate matrix corresponding to the i-th brightness and the second color coordinate matrix corresponding to the reference brightness, determine the transformation matrix corresponding to the color gamut mapping from the i-th brightness to the color gamut corresponding to the reference brightness, where i is a positive integer less than or equal to N; Based on the N-1 transformation matrices, the transformation function matrix corresponding to the screen is determined.

5. The method as described in claim 4, characterized in that, The step of determining the transformation function matrix corresponding to the screen based on N-1 transformation matrices includes: Based on the luminance value corresponding to each of the transformation matrices and the element at the k-th position in the transformation matrix, the k-th transformation function in the transformation function matrix is ​​obtained by fitting.

6. The method as described in claim 4, characterized in that, The step of determining the transformation function matrix corresponding to the screen based on N-1 transformation matrices includes: When the difference between any two adjacent brightness values ​​in the N brightness values ​​is different, the commonly used brightness range and the uncommon brightness range corresponding to the screen are determined. Based on the brightness range to which each brightness belongs, determine the weight value of the transformation matrix corresponding to each brightness. Based on the brightness value, weight value, and element at the k-th position of each transformation matrix, the k-th transformation function in the transformation function matrix is ​​fitted.

7. The method according to any one of claims 1-6, characterized in that, The reference brightness value is the maximum brightness value corresponding to the screen, or the reference brightness value is any brightness value in the commonly used brightness range corresponding to the screen.

8. A screen color calibration method, characterized in that, include: Determine the current screen brightness value and the corresponding color calibration file; Based on the transformation function matrix in the color calibration file, determine the target transformation matrix corresponding to the current brightness value; Based on the target conversion matrix, the first color gamut of the screen at the current brightness value is converted into the second color gamut at the reference brightness value; The second color gamut is calibrated based on the three-dimensional lookup table under the reference brightness in the color calibration file.

9. An apparatus for generating screen color calibration files, characterized in that, include: The first determining module is used to determine the color coordinate matrix of the three primary colors corresponding to the screen at N brightness levels, where N is a positive integer greater than 2; The second determining module is used to determine the transformation function matrix corresponding to the screen based on the N color coordinate matrices, wherein the transformation function matrix is ​​used to map the color gamut of the screen at each brightness to the color gamut at a reference brightness. The first acquisition module is used to perform color calibration on the screen under the reference brightness to obtain a three-dimensional lookup table under the reference brightness. The third determining module is used to determine the transformation function matrix and the three-dimensional lookup table as the color calibration file of the screen.

10. A screen color calibration device, characterized in that, include: The fourth determination module is used to determine the current brightness value of the screen and the corresponding color calibration file; The fifth determining module is used to determine the target transformation matrix corresponding to the current brightness value based on the transformation function matrix in the color calibration file; The processing module is used to convert the first color gamut of the screen at the current brightness value into a second color gamut at a reference brightness value based on the target conversion matrix. The calibration module is used to perform color calibration on the second color gamut based on a three-dimensional lookup table under the reference brightness in the color calibration file.

11. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the method for generating a screen color calibration file as described in any one of claims 1-7, or the screen color calibration method as described in claim 8.

12. A chip, characterized in that, The chip includes a processing circuit and an interface circuit; wherein, the interface circuit is used to acquire instructions and send the instructions to the processing circuit, and the processing circuit is used to execute the instructions to implement the screen color calibration file generation method as described in any one of claims 1-7, or the screen color calibration method as described in claim 8.

13. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the method for generating a screen color calibration file as described in any one of claims 1-7, or the screen color calibration method as described in claim 8.