Color processing method, apparatus, device, storage medium, and program product
By using a target conversion matrix to convert the node pixel values in the native color gamut to the reference color gamut when the screen brightness of the display device is less than a preset threshold, the problem of reduced brightness and inaccurate color processing caused by hardware defects in the display device is solved, thereby improving the color processing accuracy and reliability of the display device.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING XIAOMI MOBILE SOFTWARE CO LTD
- Filing Date
- 2025-01-21
- Publication Date
- 2026-07-21
AI Technical Summary
When a display device has hardware defects, lateral leakage can lead to reduced brightness, affecting the accuracy of color processing and the reliability of the display device.
When the screen brightness of the display device is less than a preset threshold, a target conversion matrix is determined, and the node pixel values in the native color gamut are converted to the reference color gamut. The color gamut range of the reference color gamut is larger than that of the native color gamut, thereby improving the accuracy of color processing.
It improves the impact of screen brightness on the native color gamut, enhancing the accuracy of node color processing and the reliability of display devices.
Smart Images

Figure CN122435871A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of display technology, and in particular to a color processing method, apparatus, device, storage medium, and program product. Background Technology
[0002] When a display device has a hardware defect, the current can easily flow unexpectedly between the light-emitting units, a phenomenon known as lateral leakage. When lateral leakage occurs, the current that would normally flow to one light-emitting unit may partially or completely flow to other light-emitting units, causing a decrease in the brightness of that unit and thus affecting the use of the display device. Summary of the Invention
[0003] To overcome the problems in related technologies, this disclosure provides a color processing method, apparatus, device, storage medium, and program product, which can map the attenuated native color gamut to a reference color gamut, improve the problem of inaccurate node color processing caused by the influence of screen brightness value on the color gamut range of the native color gamut of the display device, and help improve the accuracy of node color processing and improve the reliability of display device use.
[0004] According to a first aspect of the present disclosure, a color processing method is provided, comprising:
[0005] In response to a screen brightness value of a display device being less than a preset threshold, a target transformation matrix corresponding to the screen brightness value is determined; wherein, the target transformation matrix is different for different screen brightness values.
[0006] Based on the target transformation matrix corresponding to the screen brightness value, the first pixel value of the node in the native color gamut of the display device is transformed to obtain the second pixel value of the node in the reference color gamut.
[0007] The reference color gamut and the native color gamut are located in the same color gamut space, and the color gamut range of the reference color gamut is larger than that of the native color gamut.
[0008] In some embodiments, the method further includes:
[0009] For each test brightness value, a first color gamut range and a second color gamut range of the native color gamut of the test device are determined; wherein, the second color gamut range is the color gamut range obtained by color conversion and color restoration of the first color gamut range; the test device and the display device are of the same type;
[0010] A first matrix is determined based on each of the test brightness values, the first color gamut range, and the second color gamut range;
[0011] The step of determining the target transformation matrix corresponding to the screen brightness value in response to the display device's screen brightness value being less than a preset threshold includes:
[0012] In response to the screen brightness value being less than the preset threshold, the screen brightness value is converted based on the first matrix to determine the target conversion matrix corresponding to the screen brightness value.
[0013] In some embodiments, determining the first matrix based on each of the test luminance values, the first color gamut range, and the second color gamut range includes:
[0014] Based on the deviation information between the first color gamut range and the second color gamut range, a second matrix corresponding to the test brightness value is determined;
[0015] The first matrix is obtained by fitting each of the test brightness values and each element of the second matrix corresponding to each test brightness value.
[0016] In some embodiments, fitting the first matrix to each of the test brightness values and each element of the second matrix corresponding to each of the test brightness values includes:
[0017] For each of the second matrices, a first mapping relationship is constructed based on each element in the second matrix and the test brightness value;
[0018] By fitting the first mapping relationship at the same position within each of the second matrices, a second mapping relationship is obtained for each of the positions.
[0019] The first matrix is constructed based on the second mapping relationship corresponding to each of the aforementioned positions.
[0020] In some embodiments, determining the second color gamut range of the native color gamut of the test device includes:
[0021] For each of the first color gamut ranges, at least two first sample nodes constituting the first color gamut range are determined, as well as the first pixel value of the first sample nodes.
[0022] The first pixel value of the first sample node is transformed based on the first color transformation matrix to obtain the coordinate value of the first pixel value of the first sample node in the preset color space.
[0023] The coordinate values of the first sample node are transformed based on the second color transformation matrix to obtain the second pixel value of the first sample node;
[0024] The second color gamut range is determined based on the second pixel values of the at least two first sample nodes.
[0025] In some embodiments, the method further includes:
[0026] For any of the test brightness values, determine the first pixel value of the second sample node in the first color gamut range and the first pixel value of the third sample node in the second color gamut range; wherein, the first position of the second sample node in the first color gamut range is the same as the second position of the third sample node in the second color gamut range;
[0027] Based on the first matrix, the test brightness value is transformed to determine the target transformation matrix corresponding to the test brightness value;
[0028] Based on the target transformation matrix corresponding to the test brightness value, the first pixel value of the third sample node is transformed to obtain the second pixel value of the third sample node;
[0029] The verification result of the first matrix is obtained based on the second pixel value of the third sample node and the first pixel value of the second sample node.
[0030] According to a second aspect of the present disclosure, a color processing apparatus is provided, comprising:
[0031] The first determining module is configured to determine a target transformation matrix corresponding to the screen brightness value in response to the screen brightness value of the display device being less than a preset threshold; wherein the target transformation matrix is different for different screen brightness values.
[0032] The first conversion module is configured to convert the first pixel value of a node in the native color gamut of the display device based on the target conversion matrix corresponding to the screen brightness value, so as to obtain the second pixel value of the node in the reference color gamut.
[0033] The reference color gamut and the native color gamut are located in the same color gamut space, and the color gamut range of the reference color gamut is larger than that of the native color gamut.
[0034] In some embodiments, the apparatus further includes:
[0035] The second determining module is configured to determine, for each test brightness value, a first color gamut range of the native color gamut of the test device and a second color gamut range of the native color gamut of the test device; wherein, the second color gamut range is the color gamut range obtained by color conversion and color restoration of the first color gamut range; the test device is of the same type as the display device;
[0036] The execution module is configured to determine a first matrix based on each of the test brightness values, the first color gamut range, and the second color gamut range;
[0037] The first determining module is specifically configured as follows:
[0038] In response to the screen brightness value being less than the preset threshold, the screen brightness value is converted based on the first matrix to determine the target conversion matrix corresponding to the screen brightness value.
[0039] In some embodiments, the execution module is specifically configured as follows:
[0040] Based on the deviation information between the first color gamut range and the second color gamut range, a second matrix corresponding to the test brightness value is determined;
[0041] The first matrix is obtained by fitting each of the test brightness values and each element of the second matrix corresponding to each test brightness value.
[0042] In some embodiments, the execution module is further configured to:
[0043] For each of the second matrices, a first mapping relationship is constructed based on each element in the second matrix and the test brightness value;
[0044] By fitting the first mapping relationship at the same position within each of the second matrices, a second mapping relationship is obtained for each of the positions.
[0045] The first matrix is constructed based on the second mapping relationship corresponding to each of the aforementioned positions.
[0046] In some embodiments, the second determining module is specifically configured as follows:
[0047] For each of the first color gamut ranges, at least two first sample nodes constituting the first color gamut range are determined, as well as the first pixel value of the first sample nodes.
[0048] The first pixel value of the first sample node is transformed based on the first color transformation matrix to obtain the coordinate value of the first pixel value of the first sample node in the preset color space.
[0049] The coordinate values of the first sample node are transformed based on the second color transformation matrix to obtain the second pixel value of the first sample node;
[0050] The second color gamut range is determined based on the second pixel values of the at least two first sample nodes.
[0051] In some embodiments, the apparatus further includes:
[0052] The third determining module is configured to, for any of the test brightness values, determine the first pixel value of the second sample node in the first color gamut range and the first pixel value of the third sample node in the second color gamut range; wherein, the first position of the second sample node in the first color gamut range is the same as the second position of the third sample node in the second color gamut range;
[0053] The fourth determining module is configured to perform a transformation process on the test brightness value based on the first matrix to determine the target transformation matrix corresponding to the test brightness value;
[0054] The second conversion module is configured to convert the first pixel value of the third sample node based on the target conversion matrix corresponding to the test brightness value, so as to obtain the second pixel value of the third sample node.
[0055] The verification module is configured to obtain the verification result of the first matrix based on the second pixel value of the third sample node and the first pixel value of the second sample node.
[0056] According to a third aspect of the present disclosure, an electronic device is provided, comprising:
[0057] processor;
[0058] Memory used to store computer programs or instructions;
[0059] The processor executes computer programs or instructions to implement the steps in any of the color processing methods in the first aspect described above.
[0060] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, comprising:
[0061] When a computer program or instruction in a storage medium is executed by a processor, the steps in any of the color processing methods in the first aspect described above are implemented.
[0062] According to a fifth aspect of the present disclosure, a computer program product is provided, including a computer program or instructions, which, when executed by a processor, implement the steps of any of the color processing methods in the first aspect described above.
[0063] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:
[0064] In this embodiment, in response to a screen brightness value of the display device being less than a preset threshold, a target transformation matrix corresponding to the screen brightness value is determined; wherein, different screen brightness values correspond to different target transformation matrices; based on the target transformation matrix corresponding to the screen brightness value, the first pixel value of a node within the native color gamut of the display device is transformed to obtain the second pixel value of the node in the reference color gamut; wherein, the reference color gamut and the native color gamut are located in the same color gamut space, and the color gamut range of the reference color gamut is larger than that of the native color gamut. In this way, the attenuated native color gamut can be mapped to the reference color gamut, improving the problem of inaccurate node color processing caused by the influence of screen brightness value on the color gamut range of the native color gamut of the display device, thereby improving the accuracy of node color processing and enhancing the reliability of the display device.
[0065] 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
[0066] 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.
[0067] Figure 1 This is a flowchart illustrating a color processing method according to an exemplary embodiment. Figure 1 .
[0068] Figure 2 This is a schematic diagram illustrating the relationship between a color gamut range and a screen brightness value according to an exemplary embodiment.
[0069] Figure 3 This is a schematic diagram illustrating a color gamut range according to an exemplary embodiment.
[0070] Figure 4 This is a flowchart illustrating a color processing method according to an exemplary embodiment. Figure 2 .
[0071] Figure 5 This is a block diagram illustrating a color processing apparatus according to an exemplary embodiment.
[0072] Figure 6 This is a structural block diagram of an electronic device 600 according to an exemplary embodiment. Detailed Implementation
[0073] 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.
[0074] Figure 1 This is a flowchart illustrating a color processing method according to an exemplary embodiment. Figure 1 ,like Figure 1 As shown, this color processing method mainly includes the following steps:
[0075] In step 101, in response to the screen brightness value of the display device being less than a preset threshold, a target transformation matrix corresponding to the screen brightness value is determined; wherein, the target transformation matrix is different for different screen brightness values;
[0076] In step 102, based on the target transformation matrix corresponding to the screen brightness value, the first pixel value of the node in the native color gamut of the display device is transformed to obtain the second pixel value of the node in the reference color gamut.
[0077] The reference color gamut and the native color gamut are located in the same color gamut space, and the color gamut range of the reference color gamut is larger than that of the native color gamut.
[0078] It should be noted that the color processing method proposed in this disclosure can be applied to electronic devices. Here, electronic devices can include terminal devices, such as mobile terminals or fixed terminals. Mobile terminals can include mobile phones, tablets, laptops, wearable electronic devices, etc. Fixed terminals can include desktop computers, smart TVs, in-vehicle systems, etc. In some other embodiments, the color processing method can also be applied to applications installed on electronic devices.
[0079] In other embodiments, the color processing method in this disclosure can be configured in a color processing device, which can be located in an electronic device; this disclosure does not limit this. It should be noted that the execution entity in this disclosure can be the central processing unit (CPU) in the electronic device in hardware, and related background services in the electronic device in software; this is not limited.
[0080] In some embodiments, each pixel on the display device consists of three light-emitting units: red, green, and blue. These three light-emitting units can produce various colors on the display device through different brightness combinations. When the brightness of all three light-emitting units reaches its maximum value, the produced color is white; when the brightness of a certain light-emitting unit decreases, different colors are produced, and the lower the brightness, the lower the color saturation.
[0081] Manufacturing defects, such as improper material selection or design flaws, can occur during the production of display devices. These defects can cause the current that should flow to a particular light-emitting unit to flow partially or entirely to other light-emitting units, resulting in reduced brightness of the original unit and consequently affecting color accuracy and saturation.
[0082] When the display device's screen brightness value (DBV) is greater than or equal to a preset brightness threshold, the driving current of the three light-emitting units is larger. Due to the increase in driving current, the electric field strength inside the light-emitting units also increases, thereby reducing the occurrence of lateral leakage current. At the same time, the luminous efficiency of the light-emitting units is also higher at high brightness. Therefore, even if lateral leakage current exists, its impact on the brightness of the light-emitting units will be relatively small.
[0083] Here, screen brightness refers to the intensity of light emitted by the screen of a display device under certain conditions. The brightness value reflects the brightness of the screen's light-emitting surface, expressed in candela per square meter (cd / m²). 2 It is measured in nits or cd / m². The preset brightness threshold can be set arbitrarily according to requirements, for example, 180 cd / m². 2 .
[0084] When the screen brightness of the display device is lower than the preset brightness threshold, the driving current of the three light-emitting units is relatively small. Because the emission wavelengths and spectral characteristics of the red and green light-emitting units are similar, they are more prone to lateral leakage. This lateral leakage causes changes in the brightness of the red and green light-emitting units, affecting the positions of the red and green components in the color space, thus leading to color gamut attenuation.
[0085] Here, color gamut decay refers to the phenomenon that the range of colors displayed by a display device gradually decreases or its color performance capability declines.
[0086] Taking a 255 grayscale red as an example, the pixel value of a node in the native color gamut is (255, 0, 0). After mapping the node from the native color gamut to the P3 color gamut, green and blue components are added to the node, and the pixel value becomes (235, 37, 1), which increases the anode potential of the green emitting unit. Simultaneously, at low brightness, the current leaking from the red emitting unit to the green emitting unit further increases the brightness of the green emitting unit, thus leading to a greater color gamut attenuation ratio in the P3 color gamut at low brightness.
[0087] In some embodiments, in order to facilitate the determination of the correlation between screen brightness values and the color gamut range of the native color gamut, the color gamut percentage of the native color gamut under different screen brightness values can be determined. Figure 2 This is a schematic diagram illustrating the relationship between a color gamut range and a screen brightness value according to an exemplary embodiment, such as... Figure 2 As shown, the color gamut percentage has a non-linear relationship with screen brightness. This relationship is observed when the screen brightness is between 200-2000 cd / m². 2 When the screen brightness drops to 200 cd / m², the color gamut percentage remains stable; however, when the screen brightness drops to 200 cd / m², the color gamut percentage remains stable. 2 Subsequently, the color gamut percentage decreased, and this decrease was further reduced as the screen brightness decreased.
[0088] It should be noted that the screen brightness of a display device affects the color gamut range of the display device's native color gamut, resulting in native color gamut attenuation. The attenuated native color gamut can reproduce fewer colors and has less color saturation. At the same time, the nodes within the attenuated native color gamut will also cause inaccurate color conversion when performing color conversion.
[0089] Therefore, in this embodiment of the present disclosure, when the screen brightness value of the display device is less than a preset threshold, the first pixel value of the node in the native color gamut of the display device is converted to obtain the second pixel value of the node in the reference color gamut, so that the node is mapped from the native color gamut to the reference color gamut, thereby improving the color accuracy of the display device under low brightness and improving the accuracy of subsequent color processing of the node.
[0090] Here, the preset threshold can be set arbitrarily according to requirements, for example, 180 cd / m³. 2 This disclosure does not limit the scope of the embodiments.
[0091] It is understandable that the node is mapped from the native color gamut to the reference color gamut in order to restore the attenuated native color gamut to the unattenuated native color gamut. Therefore, the color gamut range of the reference color gamut is larger than that of the native color gamut, and the reference color gamut and the native color gamut are located in the same color gamut space.
[0092] Here, the color space referenced by the color gamut and the native color gamut of the display device is the RGB color space, which can be any one of the sRGB color gamut, Display-P3 color gamut, or AdobeRGB color gamut.
[0093] In some embodiments, the color gamut range of the native color gamut of the display device is represented by a triangular area on the chromaticity diagram formed by connecting the red, green, and blue points. The wider the color gamut triangle area, the wider the color gamut range.
[0094] Here, a node is any color point within the native color gamut of the display device. A node is formed by combining the intensity values of the red, green, and blue color channels; therefore, the first pixel value of a node is its initial RGB value. Since the reference color gamut and the native color gamut reside in the same color space, the converted second pixel value is the node's target RGB value.
[0095] It should be explained that, since different screen brightness values have different degrees of influence on the native color gamut, in order to improve the accuracy of determining the second pixel value of a node, the target transformation matrix corresponding to the screen brightness value can be determined first; then, the first pixel value of the node can be transformed based on the target transformation matrix to obtain the second pixel value of the node.
[0096] In some embodiments, to improve the accuracy of determining the target transformation matrix corresponding to the screen brightness value, a mapping relationship between each brightness range and the target transformation matrix can be pre-established. After obtaining the screen brightness value, the brightness range in which the screen brightness value is located is determined. Based on the mapping relationship and the brightness range in which the screen brightness value is located, the target transformation matrix corresponding to the brightness range in which the screen brightness value is located is determined. Here, the target transformation matrix corresponding to screen brightness values located in the same brightness range is the same, and the target transformation matrix corresponding to screen brightness values located in different brightness ranges is different.
[0097] In other embodiments, in order to further improve the accuracy of determining the target transformation matrix corresponding to the screen brightness value, a target matrix can be pre-constructed. The target matrix represents the correspondence between different screen brightness values and different target transformation matrices. After obtaining the screen brightness value, the screen brightness value is transformed based on the target matrix to determine the target transformation matrix corresponding to the screen brightness value.
[0098] In this embodiment, in response to a screen brightness value of the display device being less than a preset threshold, a target transformation matrix corresponding to the screen brightness value is determined; wherein, different screen brightness values correspond to different target transformation matrices; based on the target transformation matrix corresponding to the screen brightness value, the first pixel value of a node within the native color gamut of the display device is transformed to obtain the second pixel value of the node in the reference color gamut; wherein, the reference color gamut and the native color gamut are located in the same color gamut space, and the color gamut range of the reference color gamut is larger than that of the native color gamut. In this way, the attenuated native color gamut can be mapped to the reference color gamut, improving the problem of inaccurate node color processing caused by the influence of screen brightness value on the color gamut range of the native color gamut of the display device, thereby improving the accuracy of node color processing and enhancing the reliability of the display device.
[0099] In some embodiments, the method further includes:
[0100] For each test brightness value, the first color gamut range and the second color gamut range of the test device's native color gamut are determined; wherein, the second color gamut range is the color gamut range obtained by color conversion and color restoration of the first color gamut range; the test device and the display device are of the same type;
[0101] The first matrix is determined based on the various test brightness values, the first color gamut range, and the second color gamut range.
[0102] In response to a screen brightness value of the display device being less than a preset threshold, a target transformation matrix corresponding to the screen brightness value is determined, including:
[0103] In response to a screen brightness value being less than a preset threshold, the screen brightness value is converted based on the first matrix to determine the target conversion matrix corresponding to the screen brightness value.
[0104] It should be noted that, to improve the accuracy of determining the target transformation matrix corresponding to the screen brightness value, multiple test brightness values can be preset. By testing the test device under different test brightness values, a first matrix representing the correlation between different test brightness values and color gamut ranges can be obtained. Since display devices of the same type have similar native color gamuts, the obtained first matrix can be applied to display devices of the same type. When the screen brightness value is less than a preset threshold, the target transformation matrix corresponding to the screen brightness value can be determined based on the first matrix and the screen brightness value.
[0105] Here, the number and magnitude of the tested brightness values can be arbitrarily set according to requirements. The more preset brightness values, the higher the accuracy of the obtained first matrix. For example, the tested brightness value can be 100 cd / m². 2 140cd / m 2 180cd / m 2220cd / m 2 and 260cd / m 2 However, the embodiments disclosed herein are not limited in this respect.
[0106] It is understandable that when the attenuated native color gamut undergoes color conversion, some color information in the native color gamut will be lost. This lost color information cannot be restored during color restoration, resulting in a mismatch between the color gamut range after color conversion and restoration of the attenuated native color gamut and the color gamut range before color conversion and restoration.
[0107] Therefore, in this embodiment of the present disclosure, by determining the first color gamut range of the native color gamut of the test device under the test brightness value, and the second color gamut range obtained by color conversion and color restoration of the first color gamut range, the correlation between different test brightness values and the color gamut range of the native color gamut under each test brightness value can be obtained, thereby improving the accuracy of determining the first matrix.
[0108] In some embodiments, for each test luminance value, the color coordinates (x, y) of the test device when displaying pure red, pure green, and pure blue at the test luminance value are measured using a color measurement device (e.g., a colorimeter or spectrophotometer), i.e., R(x...). R y R ), G(x) G y G ) and B(x B y B On a two-dimensional plane, the area of a triangle formed by these three points can be calculated using the triangle area formula; the first color gamut range of the original color gamut is obtained by calculating the area of the triangle.
[0109] In some embodiments, the XYZ color space is a standard color space independent of the display device. During color gamut mapping (such as color gamut compression, tone compression, etc.), the XYZ color space acts as an intermediate bridge, enabling conversion between different color gamuts. By converting RGB values to XYZ values, color gamut matching and compression are facilitated, thereby ensuring the consistency and accuracy of output colors across different display devices. Therefore, after determining the first color gamut range of the native color gamut, this range can be converted from the RGB color space to the XYZ color space, and then from the XYZ color space back to the RGB color space to obtain the second color gamut range of the native color gamut.
[0110] Here, after obtaining the first color gamut range and the second color gamut range for each test brightness value, a first matrix can be obtained based on each test brightness value, the first color gamut range, and the second color gamut range.
[0111] In some embodiments, for each test brightness value, a first pixel value of a second sample node in a first color gamut and a first pixel value of a third sample node in a second color gamut are determined, wherein the first position of the second sample node in the first color gamut is the same as the second position of the third sample node in the second color gamut; and difference information between the first pixel value of the second sample node and the first pixel value of the third sample node is determined, and a first correlation relationship between the difference information and the test brightness value is constructed; after obtaining each first correlation relationship, a first matrix is determined based on each first correlation relationship.
[0112] In other embodiments, the first color gamut range is taken as triangle A on the chromaticity diagram, and the second color gamut range is taken as triangle B on the chromaticity diagram; for each test luminance value, the area difference between triangle A and triangle B is determined; a second correlation relationship between the area difference and the test luminance value is constructed; after obtaining each second correlation relationship, a first matrix is determined based on each second correlation relationship.
[0113] In this embodiment, the native color gamut of the testing device is determined to have a first color gamut range and a second color gamut range under different test brightness values. Based on each test brightness value, the first color gamut range, and the second color gamut range, a first matrix is determined, such that the first matrix can characterize the correlation between different test brightness values and color gamut ranges, thereby improving the accuracy of determining the first matrix. Since display devices of the same type have similar native color gamuts, the obtained first matrix can be applied to display devices of the same type, so that when the screen brightness value is less than a preset threshold, the screen brightness value is converted based on the first matrix to determine the target conversion matrix corresponding to the screen brightness value, thereby improving the accuracy of determining the target conversion matrix.
[0114] In some embodiments, determining a first matrix based on various test luminance values, a first color gamut range, and a second color gamut range includes:
[0115] Based on the deviation information between the first color gamut range and the second color gamut range, a second matrix corresponding to the test brightness value is determined.
[0116] The first matrix is obtained by fitting each element of the second matrix corresponding to each test brightness value.
[0117] It is understandable that the second color gamut range is the color gamut range obtained by color conversion and color restoration of the first color gamut range. For each test brightness value, by obtaining the deviation information between the first color gamut range and the second color gamut range, it is possible to determine the color information lost by the original color gamut during the color processing, thereby determining the compensated color information under the test brightness value, and thus improving the accuracy of determining the second matrix.
[0118] Here, the deviation information between the first color gamut range and the second color gamut range can be understood as the range deviation information between the first color gamut range and the second color gamut range, or as the pixel deviation information between the first pixel value of the second sample node of the first color gamut range and the second pixel value of the first sample node of the second color gamut range.
[0119] For example, first determine the four third sample nodes constituting the first color gamut and the first pixel value of each third sample node, and the four fourth sample nodes constituting the second color gamut and the first pixel value of each fourth sample node; construct a third matrix based on the first pixel value of each third sample node; and construct a fourth matrix based on the first pixel value of each fourth sample node; then the calculation formula for the second matrix can be as follows:
[0120]
[0121] In formula (1), For the second matrix, For the third matrix, This is the fourth matrix.
[0122] Here, after obtaining the second matrix corresponding to each test brightness value, the first matrix can be obtained by fitting each test brightness value and the elements in each second matrix.
[0123] In some embodiments, a determined fitting model is used to describe the relationship between the test brightness values and the elements in the second matrix. The fitting model is trained by using a portion of the test brightness values and the elements in the second matrix corresponding to the test brightness values as training data to obtain a trained fitting model. The model parameters of the trained fitting model are evaluated by using another portion of the test brightness values and the elements in the second matrix corresponding to the other portion of test brightness values as validation data. The fitting model that meets the conditions is determined as the first matrix.
[0124] Here, the fitting model can be arbitrarily set according to requirements, and this embodiment of the disclosure does not limit it. For example, a linear regression model is used to fit the test brightness value and each element in the second matrix. For example, the linear regression model can be expressed as:
[0125] Y = β0 + β1X + ξ (2);
[0126] In formula (2), Y is an element of the second matrix, X is the test brightness value, β0 and β1 are regression coefficients, and ξ is the random error term.
[0127] For example, a multinomial regression model can be used to fit the test brightness value to each element of the second matrix. An exemplary multinomial regression model can be expressed as:
[0128]
[0129] In formula (3), Y1 is an element of the second matrix, X1 is the test brightness value, β2, β3, and β4 are regression coefficients, and ξ1 is the random error term. n can be set arbitrarily according to requirements, for example, 8 or 9.
[0130] In this embodiment of the present disclosure, for each test brightness value, a second matrix corresponding to the test brightness value is determined by the deviation information between the first color gamut range and the second color gamut range; and each element in each test brightness value and the second matrix corresponding to each test brightness value is fitted to obtain a first matrix, thereby improving the accuracy of determining the first matrix and realizing the adaptive change of the target conversion matrix with the screen brightness value.
[0131] In some embodiments, a first matrix is obtained by fitting each test brightness value and each element in the second matrix corresponding to each test brightness value, including:
[0132] For each second matrix, based on each element in the second matrix and the test brightness value, a first mapping relationship is constructed for the position of each element in the second matrix.
[0133] By fitting the first mapping relationship at the same position within each second matrix, the second mapping relationship at each position is obtained;
[0134] Based on the second mapping relationship corresponding to each position, construct the first matrix.
[0135] It is understandable that the second matrix corresponding to the test brightness value is the color compensation matrix of the test device under the test brightness value. In order to improve the accuracy of constructing the first matrix, we can first obtain the first mapping relationship of the position of each element in the second matrix to obtain the correlation between a single test brightness value and each element in a single second matrix; then fit the first mapping relationship at the same position to obtain the second mapping relationship at each position, and obtain the correlation between different test brightness values and each element in different second matrices; finally, we construct the first matrix to realize that each element in the second matrix changes with the change of the test brightness value.
[0136] For example, for each second matrix, a preset function is constructed at the position of each element within the second matrix. Based on the test brightness value, the elements within the second matrix, and the preset function, a first mapping relationship is obtained for the position of each element. The first mapping relationship at the same position is fitted to obtain a second mapping relationship for that position. Finally, a first matrix is constructed based on each second mapping relationship. Here, the preset functions at the positions of each element can be the same or different; the preset function can be arbitrarily set according to requirements, for example, the preset function can be a multinomial regression function.
[0137] In this embodiment, for each second matrix, a first mapping relationship is constructed based on each element within the second matrix and the test brightness value. The first mapping relationships at the same positions within each second matrix are then fitted to obtain second mapping relationships for each position. Finally, a first matrix is constructed based on the second mapping relationships corresponding to each position. This approach fully captures the correlation between different test brightness values and elements within different second matrices, improving the accuracy of constructing the first matrix.
[0138] In some embodiments, determining a second color gamut range of the native color gamut of the test device includes:
[0139] For each first color gamut range, at least two first sample nodes constituting the first color gamut range are determined, as well as the first pixel value of the first sample node;
[0140] The first pixel value of the first sample node is transformed based on the first color transformation matrix to obtain the coordinate value of the first pixel value of the first sample node in the preset color space.
[0141] The coordinate values of the first sample node are transformed based on the second color transformation matrix to obtain the second pixel value of the first sample node;
[0142] The second color gamut range is determined based on the second pixel values of at least two first sample nodes.
[0143] It should be noted that, in order to improve the accuracy of determining the second color gamut range, at least two first sample nodes constituting the first color gamut range can be determined first; then, the first pixel value of the first sample node is color converted and color restored to obtain the second pixel value of the first sample node; finally, the second color gamut range is determined based on the second pixel value of each first sample node.
[0144] In some embodiments, the chromaticity diagram of the native color gamut of the test device at the test luminance value is first obtained; then the positions of the standard three primary colors (i.e., red, green, and blue) are determined on the chromaticity diagram, and the positions of the three primary colors are connected to form a color gamut triangle. Therefore, the three vertices of the color gamut triangle can be determined as the first sample node. Here, the white point is located at the center (or near the center) of the color gamut triangle, representing the reference white in this color gamut space. Therefore, the white point can also be determined as the first sample node.
[0145] Here, the default color space is XYZ color space.
[0146] For example, Figure 3 This is a schematic diagram illustrating a color gamut range according to an exemplary embodiment, such as... Figure 3As shown, the triangular area in the chromaticity diagram represents the native color gamut of the test device within the chromaticity diagram, and the circular point within the triangular area represents the selected first sample point.
[0147] For example, the conversion formula for converting the first pixel value of the first sample node from the RGB color space to the XYZ color space can be as follows:
[0148]
[0149] In formula (4), This represents the coordinates of the first sample node in the XYZ color space. Represents the color conversion matrix. This represents the first pixel value of the first sample node.
[0150] After obtaining the coordinate values of the first sample node, the coordinate values of the first sample node are transformed based on the inverse matrix of the color transformation matrix to obtain the second pixel value of the first sample node.
[0151] It is understandable that after obtaining the second pixel value of each first sample node, the analysis results are obtained by analyzing the position of the second pixel value in the native color gamut space and the correlation between each second pixel value; based on the analysis results, a color gamut range that can contain the second pixel value of each first sample node is determined, namely the second color gamut range.
[0152] In this embodiment of the present disclosure, for each first color gamut range, a first pixel value corresponding to a plurality of first sample nodes constituting the first color gamut range is determined; a second pixel value is obtained by color conversion and color restoration of the first pixel value; and a second color gamut range is determined based on each second pixel value. Thus, since the first sample nodes are constituent nodes of the first color gamut range, complete color information within the first color gamut range can be preserved, reducing processing errors during color processing of the first color gamut range, improving the accuracy of color conversion, and thereby improving the accuracy of determining the second color gamut range.
[0153] In some embodiments, the method further includes:
[0154] For any test brightness value, determine the first pixel value of the second sample node in the first color gamut range and the first pixel value of the third sample node in the second color gamut range; wherein, the first position of the second sample node in the first color gamut range is the same as the second position of the third sample node in the second color gamut range.
[0155] Based on the first matrix, the test brightness value is transformed to determine the target transformation matrix corresponding to the test brightness value;
[0156] Based on the target transformation matrix corresponding to the test brightness value, the first pixel value of the third sample node is transformed to obtain the second pixel value of the third sample node.
[0157] The verification result of the first matrix is obtained based on the second pixel value of the third sample node and the first pixel value of the second sample node.
[0158] Understandably, after obtaining the first matrix, it can be verified to determine the accuracy of the fitting process between each test brightness value and each element in the second matrix corresponding to each test brightness value, thus ensuring the reliability of the target transformation matrix corresponding to the screen brightness value.
[0159] Here, for any test brightness value, the test brightness value is transformed based on the first matrix to obtain the target transformation matrix corresponding to the test brightness value; the second color gamut is the color gamut range obtained after color processing of the attenuated original color gamut. The first pixel value of the third sample node in the second color gamut range is transformed through the target transformation matrix corresponding to the test brightness value to obtain the second pixel value of the third sample node, thereby compensating for the color information lost in the second color gamut range.
[0160] It should be noted that the second pixel value of the compensated third sample node can be aligned and compared with the first pixel value of the second sample node in the first color gamut range without color processing, so as to obtain the deviation value between the second pixel value of the third sample node and the first pixel value of the second sample node, thereby improving the accuracy of the verification result of the first matrix.
[0161] In some embodiments, given the second pixel value of the third sample node and the first pixel value of the second sample node, the channel value of each color channel (i.e., red, blue, and green) in the first pixel value and the second pixel value can be determined respectively; and the channel deviation value of each color channel can be calculated; finally, based on the channel deviation values of each color channel, the deviation value between the first pixel value and the second pixel value can be determined.
[0162] Here, in order to improve the accuracy of determining the deviation between the second pixel value of the third sample node and the first pixel value of the second sample node, it can be ensured that the first position of the second sample node in the first color gamut range is the same as the second position of the third sample node in the second color gamut range.
[0163] For example, when the second sample node is a vertex of the color gamut triangle of the first color gamut range, the third sample node is a vertex of the color gamut triangle of the second color gamut range; when the second sample node is the center point of the color gamut triangle of the first color gamut range, the third sample node is the center point of the color gamut triangle of the second color gamut range.
[0164] In some embodiments, a deviation threshold is preset. When the deviation between the second pixel value of the third sample node and the first pixel value of the second sample node is less than or equal to the deviation threshold, the accuracy of the first matrix is determined to be high, and the accuracy of the target transformation matrix obtained based on the first matrix is determined to be high. Conversely, when the deviation between the second pixel value of the third sample node and the first pixel value of the second sample node is greater than the deviation threshold, the accuracy of the first matrix is determined to be low, and the accuracy of the target transformation matrix obtained based on the first matrix is determined to be low.
[0165] In this embodiment, a target transformation matrix corresponding to the test brightness value is determined, and the first pixel value of the third sample node is transformed based on the target transformation matrix to obtain the second pixel value of the third sample node; then, based on the second pixel value of the third sample node and the first pixel value of the second sample node, the verification result of the first matrix is obtained. Thus, by comparing the compensated second pixel value of the third sample node with the first pixel value of the first sample node within the first color gamut range without color processing, the accuracy of determining the verification result of the first matrix can be improved.
[0166] Figure 4 This is a flowchart illustrating a color processing method according to an exemplary embodiment. Figure 2 ,like Figure 4 As shown, this color processing method includes at least the following steps:
[0167] In step 401, for each test brightness value, the first color gamut range of the native color gamut of the test device and the second color gamut range of the native color gamut of the test device are determined.
[0168] In step 402, a second matrix corresponding to the test brightness value is determined based on the deviation information between the first color gamut range and the second color gamut range.
[0169] In step 403, the first matrix is obtained by fitting each element of the second matrix corresponding to each test brightness value.
[0170] In step 404, in response to the screen brightness value being less than a preset threshold, the screen brightness value is converted based on the first matrix to determine the target conversion matrix corresponding to the screen brightness value.
[0171] In step 405, based on the target transformation matrix corresponding to the screen brightness value, the first pixel value of the node in the native color gamut of the display device is transformed to obtain the second pixel value of the node in the reference color gamut.
[0172] In this embodiment, the native color gamut of the testing device is determined to have a first color gamut range and a second color gamut range under different test brightness values. Based on each test brightness value, the first color gamut range, and the second color gamut range, a first matrix is determined, such that the first matrix can characterize the correlation between different test brightness values and color gamut ranges, thereby improving the accuracy of determining the first matrix. Since display devices of the same type have similar native color gamuts, the obtained first matrix can be applied to display devices of the same type, so that when the screen brightness value is less than a preset threshold, the screen brightness value is converted based on the first matrix to determine the target conversion matrix corresponding to the screen brightness value, thereby improving the accuracy of determining the target conversion matrix.
[0173] Figure 5 This is a block diagram illustrating a color processing apparatus according to an exemplary embodiment, such as... Figure 5 As shown, the color processing device 500 includes:
[0174] The first determining module 501 is configured to determine a target transformation matrix corresponding to the screen brightness value in response to the screen brightness value of the display device being less than a preset threshold; wherein the target transformation matrix is different for different screen brightness values.
[0175] The first conversion module 502 is configured to convert the first pixel value of a node in the native color gamut of the display device based on the target conversion matrix corresponding to the screen brightness value, so as to obtain the second pixel value of the node in the reference color gamut.
[0176] The reference color gamut and the native color gamut are located in the same color gamut space, and the color gamut range of the reference color gamut is larger than that of the native color gamut.
[0177] In some embodiments, the device 500 further includes:
[0178] The second determining module is configured to determine, for each test brightness value, a first color gamut range of the native color gamut of the test device and a second color gamut range of the native color gamut of the test device; wherein, the second color gamut range is the color gamut range obtained by color conversion and color restoration of the first color gamut range; the test device is of the same type as the display device;
[0179] The execution module is configured to determine a first matrix based on each of the test brightness values, the first color gamut range, and the second color gamut range;
[0180] The first determining module 501 is specifically configured as follows:
[0181] In response to the screen brightness value being less than the preset threshold, the screen brightness value is converted based on the first matrix to determine the target conversion matrix corresponding to the screen brightness value.
[0182] In some embodiments, the execution module is specifically configured as follows:
[0183] Based on the deviation information between the first color gamut range and the second color gamut range, a second matrix corresponding to the test brightness value is determined;
[0184] The first matrix is obtained by fitting each of the test brightness values and each element of the second matrix corresponding to each test brightness value.
[0185] In some embodiments, the execution module is further configured to:
[0186] For each of the second matrices, a first mapping relationship is constructed based on each element in the second matrix and the test brightness value;
[0187] By fitting the first mapping relationship at the same position within each of the second matrices, a second mapping relationship is obtained for each of the positions.
[0188] The first matrix is constructed based on the second mapping relationship corresponding to each of the aforementioned positions.
[0189] In some embodiments, the second determining module is specifically configured as follows:
[0190] For each of the first color gamut ranges, at least two first sample nodes constituting the first color gamut range are determined, as well as the first pixel value of the first sample nodes.
[0191] The first pixel value of the first sample node is transformed based on the first color transformation matrix to obtain the coordinate value of the first pixel value of the first sample node in the preset color space.
[0192] The coordinate values of the first sample node are transformed based on the second color transformation matrix to obtain the second pixel value of the first sample node;
[0193] The second color gamut range is determined based on the second pixel values of the at least two first sample nodes.
[0194] In some embodiments, the device 500 further includes:
[0195] The third determining module is configured to, for any of the test brightness values, determine the first pixel value of the second sample node in the first color gamut range and the first pixel value of the third sample node in the second color gamut range; wherein, the first position of the second sample node in the first color gamut range is the same as the second position of the third sample node in the second color gamut range;
[0196] The fourth determining module is configured to perform a transformation process on the test brightness value based on the first matrix to determine the target transformation matrix corresponding to the test brightness value;
[0197] The second conversion module is configured to convert the first pixel value of the third sample node based on the target conversion matrix corresponding to the test brightness value, so as to obtain the second pixel value of the third sample node.
[0198] The verification module is configured to obtain the verification result of the first matrix based on the second pixel value of the third sample node and the first pixel value of the second sample node.
[0199] 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.
[0200] Figure 6 This is a structural block diagram illustrating an electronic device 600 according to an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0201] Reference Figure 6 The electronic device 600 may include one or more of the following components: processing component 602, memory 604, power supply component 606, multimedia component 608, audio component 610, input / output (I / O) interface 612, sensor component 614, and communication component 616.
[0202] Processing component 602 typically controls the overall operation of electronic device 600, such as operations associated with at least one of display, telephone call, data communication, camera operation, and recording operation. Processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 602 may include one or more modules to facilitate interaction between processing component 602 and other components. For example, processing component 602 may include a multimedia module to facilitate interaction between multimedia component 608 and processing component 602.
[0203] Memory 604 is configured to store various types of data to support the operation of electronic device 600. Examples of such data include at least one of the following: instructions for any application or method operating on electronic device 600, contact data, phonebook data, messages, pictures, and videos. Memory 604 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.
[0204] Power supply component 606 provides power to various components of electronic device 600. Power supply component 606 may include at least one of the following: a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 600.
[0205] Multimedia component 608 includes a screen that provides an output interface between electronic device 600 and 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 touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 608 includes a front-facing camera and / or a rear-facing camera. When electronic device 600 is in an operating mode, such as a shooting mode or video mode, the front-facing camera and / or 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.
[0206] Audio component 610 is configured to output and / or input audio signals. For example, audio component 610 includes a microphone (MIC) configured to receive external audio signals when electronic device 600 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 604 or transmitted via communication component 616. In some embodiments, audio component 610 also includes a speaker for outputting audio signals.
[0207] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, and buttons. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0208] Sensor assembly 614 includes one or more sensors for providing state assessments of various aspects of electronic device 600. For example, sensor assembly 614 may detect the on / off state of electronic device 600, the relative positioning of components such as the display and keypad of electronic device 600, changes in position of electronic device 600 or one of its components, the presence or absence of user contact with electronic device 600, orientation or acceleration / deceleration of electronic device 600, and temperature changes of electronic device 600. Sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 614 may also include an optical sensor, such as a complementary metal-oxide-semiconductor (CMOS) or charge-coupled device (CCD) image sensor, for use in imaging applications. In some embodiments, sensor assembly 614 may also include, but is not limited to, at least one of the following: an accelerometer, a gyroscope, a magnetometer, a pressure sensor, and a temperature sensor.
[0209] Communication component 616 is configured to facilitate wired or wireless communication between electronic device 600 and other devices. Electronic device 600 can access wireless networks based on communication standards, such as Wi-Fi, 4G, 5G, or combinations thereof. In one exemplary embodiment, communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 616 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, UWB technology, Bluetooth (BT) technology, and other technologies.
[0210] In an exemplary embodiment, the electronic device 600 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.
[0211] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including executable instructions or a computer program, which can be executed by a processor 620 of an electronic device 600 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.
[0212] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform any of the color processing methods described in the embodiments of this disclosure. For example, the color processing method includes:
[0213] In response to the screen brightness value of the display device being less than a preset threshold, a target transformation matrix corresponding to the screen brightness value is determined; wherein, the target transformation matrix is different for different screen brightness values;
[0214] Based on the target transformation matrix corresponding to the screen brightness value, the first pixel value of the node in the native color gamut of the display device is transformed to obtain the second pixel value of the node in the reference color gamut.
[0215] The reference color gamut and the native color gamut are located in the same color gamut space, and the color gamut range of the reference color gamut is larger than that of the native color gamut.
[0216] This disclosure provides a computer program product comprising a computer program or executable instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer program or executable instructions from the computer-readable storage medium and executes the computer program or executable instructions, causing the computer device to perform any of the color processing methods described above in this disclosure.
[0217] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure 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.
[0218] 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 processing method, characterized in that, The method includes: In response to a screen brightness value of a display device being less than a preset threshold, a target transformation matrix corresponding to the screen brightness value is determined; wherein, the target transformation matrix is different for different screen brightness values. Based on the target transformation matrix corresponding to the screen brightness value, the first pixel value of the node in the native color gamut of the display device is transformed to obtain the second pixel value of the node in the reference color gamut. The reference color gamut and the native color gamut are located in the same color gamut space, and the color gamut range of the reference color gamut is larger than that of the native color gamut.
2. The method according to claim 1, characterized in that, The method further includes: For each test brightness value, a first color gamut range and a second color gamut range of the native color gamut of the test device are determined; wherein, the second color gamut range is the color gamut range obtained by color conversion and color restoration of the first color gamut range; the test device and the display device are of the same type; A first matrix is determined based on each of the test brightness values, the first color gamut range, and the second color gamut range; The step of determining the target transformation matrix corresponding to the screen brightness value in response to the display device's screen brightness value being less than a preset threshold includes: In response to the screen brightness value being less than the preset threshold, the screen brightness value is converted based on the first matrix to determine the target conversion matrix corresponding to the screen brightness value.
3. The method according to claim 2, characterized in that, The step of determining the first matrix based on each of the test brightness values, the first color gamut range, and the second color gamut range includes: Based on the deviation information between the first color gamut range and the second color gamut range, a second matrix corresponding to the test brightness value is determined; The first matrix is obtained by fitting each of the test brightness values and each element of the second matrix corresponding to each test brightness value.
4. The method according to claim 3, characterized in that, The step of fitting each of the test brightness values and each element of the second matrix corresponding to each of the test brightness values to obtain the first matrix includes: For each of the second matrices, a first mapping relationship is constructed based on each element in the second matrix and the test brightness value; By fitting the first mapping relationship at the same position within each of the second matrices, a second mapping relationship is obtained for each of the positions. The first matrix is constructed based on the second mapping relationship corresponding to each of the aforementioned positions.
5. The method according to any one of claims 2 to 4, characterized in that, The determination of the second color gamut range of the native color gamut of the testing equipment includes: For each of the first color gamut ranges, at least two first sample nodes constituting the first color gamut range are determined, as well as the first pixel value of the first sample nodes. The first pixel value of the first sample node is transformed based on the first color transformation matrix to obtain the coordinate value of the first pixel value of the first sample node in the preset color space. The coordinate values of the first sample node are transformed based on the second color transformation matrix to obtain the second pixel value of the first sample node; The second color gamut range is determined based on the second pixel values of the at least two first sample nodes.
6. The method according to any one of claims 2 to 4, characterized in that, The method further includes: For any of the test brightness values, determine the first pixel value of the second sample node in the first color gamut range and the first pixel value of the third sample node in the second color gamut range; wherein, the first position of the second sample node in the first color gamut range is the same as the second position of the third sample node in the second color gamut range; Based on the first matrix, the test brightness value is transformed to determine the target transformation matrix corresponding to the test brightness value; Based on the target transformation matrix corresponding to the test brightness value, the first pixel value of the third sample node is transformed to obtain the second pixel value of the third sample node; The verification result of the first matrix is obtained based on the second pixel value of the third sample node and the first pixel value of the second sample node.
7. A color processing device, characterized in that, The device includes: The first determining module is configured to determine a target transformation matrix corresponding to the screen brightness value in response to the screen brightness value of the display device being less than a preset threshold; wherein the target transformation matrix is different for different screen brightness values. The first conversion module is configured to convert the first pixel value of a node in the native color gamut of the display device based on the target conversion matrix corresponding to the screen brightness value, so as to obtain the second pixel value of the node in the reference color gamut. The reference color gamut and the native color gamut are located in the same color gamut space, and the color gamut range of the reference color gamut is larger than that of the native color gamut.
8. An electronic device, characterized in that, include: processor; Memory used to store computer programs or instructions; The processor executes the computer program or instructions to implement the steps of the method according to any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium storing a computer program or instructions, characterized in that, When the computer program or instructions in the storage medium are executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or instructions are executed by a processor, they implement the steps of the method according to any one of claims 1 to 6.