Image display method and device, equipment and storage medium

By obtaining ambient light illuminance and screen brightness in electronic devices, optimizing the color conversion matrix and performing color conversion on the image, the problem of poor color conversion effect in the prior art is solved, and the color diversity and user experience of the image are improved.

CN120220623APending Publication Date: 2025-06-27BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311814204.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-26
Publication Date
2025-06-27

AI Technical Summary

Technical Problem

In the prior art, the conversion effect of the color conversion matrix is ​​poor, which affects the color diversity and restoration of the screen display image, and thus affects the user experience.

Method used

By obtaining the ambient illuminance and screen brightness of the environment in which the electronic device is located, the current color conversion matrix is ​​optimized, and the target image is converted based on this matrix.

Benefits of technology

Improves the color diversity and restoration of the screen display images and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120220623A_ABST
    Figure CN120220623A_ABST
Patent Text Reader

Abstract

The invention relates to an image display method and device, equipment and a storage medium, and the method comprises the steps: obtaining the environment illuminance of an environment where electronic equipment is located and the screen brightness of the electronic equipment in response to an obtained to-be-displayed target image; optimizing a current color conversion matrix of the electronic equipment based on the ambient illuminance and the screen brightness to obtain an optimized color conversion matrix; performing color conversion on the target image based on the optimized color conversion matrix to obtain a converted target image; and displaying the converted target image on a screen of the electronic equipment. According to the invention, the color diversity and reducibility of the image displayed on the screen can be improved, so that the user experience can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of display technologies, and particularly to an image display method, apparatus, device, and storage medium. Background Art

[0002] With the development of computer technologies, networks, and multimedia technologies, electronic devices with display functions have been widely used in various fields such as consumption, industry, and scientific research. Due to various factors such as imaging mechanisms, component performances, and manufacturing process precisions, there may be a deviation between the color reproduction performance of the screen of an electronic device and the standard value. To eliminate this deviation, a color conversion matrix is usually used in related technologies to convert the colors that need to be displayed on the screen, so as to achieve the correction of the colors displayed on the screen.

[0003] However, the inventors found in the process of implementing the present disclosure that the conversion effect of the color conversion matrix in related technologies is poor, which affects the color diversity and reducibility of the images displayed on the screen, and further affects the user experience. Summary of the Invention

[0004] To overcome the problems existing in related technologies, embodiments of the present disclosure provide an image display method, apparatus, device, and storage medium to solve the defects in related technologies.

[0005] According to a first aspect of the embodiments of the present disclosure, an image display method is provided. The method includes:

[0006] In response to obtaining a target image to be displayed, obtaining the ambient illuminance of the environment where the electronic device is located and the screen brightness of the electronic device;

[0007] Optimizing the current color conversion matrix of the electronic device based on the ambient illuminance and the screen brightness to obtain an optimized color conversion matrix;

[0008] Performing color conversion on the target image based on the optimized color conversion matrix to obtain a converted target image;

[0009] Displaying the converted target image on the screen of the electronic device.

[0010] In some embodiments, the optimizing the current color conversion matrix of the electronic device based on the ambient illuminance and the screen brightness to obtain an optimized color conversion matrix includes:

[0011] Determining a reference matrix coefficient threshold based on the ambient illuminance and the screen brightness, where the reference matrix coefficient threshold is a threshold of the coefficients of the color conversion matrix that can distinguish color bands at various locations in a test image under the ambient illuminance and the screen brightness;

[0012] Optimize the current color conversion matrix based on the reference matrix coefficient threshold to obtain an optimized color conversion matrix.

[0013] In some embodiments, determining the reference matrix coefficient threshold based on the ambient illuminance and the screen brightness includes:

[0014] Input the ambient illuminance and the screen brightness into a pre-constructed coefficient determination model to obtain the reference matrix coefficient threshold, where the coefficient determination model is used to predict the corresponding reference matrix coefficient threshold according to any screen brightness and any ambient illuminance.

[0015] In some embodiments, the method further includes constructing the coefficient determination model based on the following:

[0016] Obtain the target matrix coefficients corresponding to each sample screen brightness under multiple different sample ambient illuminances, where the target matrix coefficients include the matrix coefficients obtained by adjusting the initial matrix coefficients of the simplified color conversion matrix until a set condition is met when the screen brightness of the electronic device is the sample screen brightness and the electronic device is in the multiple different sample ambient illuminances;

[0017] Determine the actual brightness difference between two target color bands under the multiple different sample ambient illuminances based on the target matrix coefficients;

[0018] Construct the coefficient determination model using an interpolation method based on the multiple different sample ambient illuminances and the actual brightness difference.

[0019] In some embodiments, the set condition being met includes that two target color bands displayed on the screen of the electronic device reach a degree where the human eye can just not distinguish them, and the two target color bands include two color bands with different grayscales that are prone to being indistinguishable to the human eye after color conversion in the test image.

[0020] In some embodiments, the simplified color conversion matrix is a diagonal matrix with equal elements on the main diagonal, and the initial matrix coefficient and the target matrix coefficient are the values of the elements on the main diagonal before and after adjustment, respectively.

[0021] In some embodiments, optimizing the current color conversion matrix based on the reference matrix coefficient threshold includes:

[0022] Determine the maximum value of the sum of the elements in each row of the current color conversion matrix;

[0023] Adjust the coefficients of the current color conversion matrix based on the comparison result between the maximum value of the sum of the elements in each row and the reference matrix coefficient threshold.

[0024] In some embodiments, adjusting the coefficients of the current color conversion matrix based on the comparison result between the maximum value of the sum of elements in each row and the reference matrix coefficient threshold includes:

[0025] In response to the maximum value of the sum of elements in each row being less than the reference matrix coefficient threshold, adjusting the coefficients of the current color conversion matrix based on the ratio of the reference matrix coefficient threshold to the maximum value of the sum of elements in each row.

[0026] In some embodiments, adjusting the coefficients of the current color conversion matrix based on the comparison result between the maximum value of the sum of elements in each row and the reference matrix coefficient threshold includes:

[0027] In response to the maximum value of the sum of elements in each row being greater than or equal to the reference matrix coefficient threshold, adjusting the coefficients of the current color conversion matrix based on the maximum value of the sum of elements in each row.

[0028] According to a second aspect of the embodiments of the present disclosure, there is provided an image display device, which includes:

[0029] An information acquisition module, configured to acquire the ambient illuminance of the environment where the electronic device is located and the screen brightness of the electronic device in response to acquiring a target image to be displayed;

[0030] A matrix optimization module, configured to optimize the current color conversion matrix of the electronic device based on the ambient illuminance and the screen brightness to obtain an optimized color conversion matrix;

[0031] An image conversion module, configured to perform color conversion on the target image based on the optimized color conversion matrix to obtain a converted target image;

[0032] An image display module, configured to display the converted target image on the screen of the electronic device.

[0033] In some embodiments, the matrix optimization module includes:

[0034] A threshold determination unit, configured to determine a reference matrix coefficient threshold based on the ambient illuminance and the screen brightness, where the reference matrix coefficient threshold is a threshold of the coefficients of the color conversion matrix that can distinguish color bands at various locations in a test image under the ambient illuminance and the screen brightness;

[0035] A matrix optimization unit, configured to optimize the current color conversion matrix based on the reference matrix coefficient threshold to obtain an optimized color conversion matrix.

[0036] In some embodiments, the threshold determination unit is further configured to input the ambient light intensity and the screen brightness into a pre-constructed coefficient determination model to obtain the reference matrix coefficient threshold, and the coefficient determination model is used to predict the corresponding reference matrix coefficient threshold according to any screen brightness and any ambient light intensity.

[0037] In some embodiments, the apparatus further includes a model construction module;

[0038] The model construction module includes:

[0039] A coefficient acquisition unit, configured to acquire target matrix coefficients corresponding to each sample screen brightness under multiple different sample ambient light intensities, where the target matrix coefficients include matrix coefficients obtained by adjusting the initial matrix coefficients of the simplified color conversion matrix until a set condition is met when the screen brightness of the electronic device is the sample screen brightness and the electronic device is in the multiple different sample ambient light intensities;

[0040] A brightness difference determination unit, configured to determine the actual brightness difference between two target color bands under the multiple different sample ambient light intensities based on the target matrix coefficients;

[0041] A model construction unit, configured to construct the coefficient determination model by using an interpolation method based on the multiple different sample ambient light intensities and the actual brightness difference.

[0042] In some embodiments, the satisfaction of the set condition includes that two target color bands displayed on the screen of the electronic device reach a degree where the human eye can just not distinguish them, and the two target color bands include two color bands with different gray levels in the test image that are easily indistinguishable by the human eye after color conversion.

[0043] In some embodiments, the simplified color conversion matrix is a diagonal matrix with equal elements on the main diagonal, and the initial matrix coefficients and the target matrix coefficients are the values of the elements on the main diagonal before and after adjustment, respectively.

[0044] In some embodiments, the matrix optimization unit is further configured to:

[0045] Determine the maximum value of the sum of the elements in each row of the current color conversion matrix;

[0046] Based on the comparison result between the maximum value of the sum of the elements in each row and the reference matrix coefficient threshold, adjust the coefficients of the current color conversion matrix.

[0047] In some embodiments, the matrix optimization unit is further configured to, in response to the maximum value of the sum of the elements in each row being less than the reference matrix coefficient threshold, adjust the coefficients of the current color conversion matrix based on the ratio of the reference matrix coefficient threshold to the maximum value of the sum of the elements in each row.

[0048] In some embodiments, the matrix optimization unit is further configured to, in response to the maximum value of the sum of the elements in each row being greater than or equal to the reference matrix coefficient threshold, adjust the coefficients of the current color conversion matrix based on the maximum value of the sum of the elements in each row.

[0049] According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, the device including:

[0050] a processor and a memory for storing a computer program;

[0051] wherein the processor is configured to, when executing the computer program, implement:

[0052] in response to obtaining a target image to be displayed, obtaining the ambient illumination of the environment where the electronic device is located and the screen brightness of the electronic device;

[0053] optimizing the current color conversion matrix of the electronic device based on the ambient illumination and the screen brightness to obtain an optimized color conversion matrix;

[0054] performing color conversion on the target image based on the optimized color conversion matrix to obtain a converted target image;

[0055] displaying the converted target image on the screen of the electronic device.

[0056] According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, it implements:

[0057] in response to obtaining a target image to be displayed, obtaining the ambient illumination of the environment where the electronic device is located and the screen brightness of the electronic device;

[0058] optimizing the current color conversion matrix of the electronic device based on the ambient illumination and the screen brightness to obtain an optimized color conversion matrix;

[0059] performing color conversion on the target image based on the optimized color conversion matrix to obtain a converted target image;

[0060] displaying the converted target image on the screen of the electronic device.

[0061] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

[0062] The present disclosure obtains the ambient illumination of the environment where the electronic device is located and the screen brightness of the electronic device in response to obtaining a target image to be displayed, optimizes the current color conversion matrix of the electronic device based on the ambient illumination and the screen brightness to obtain an optimized color conversion matrix, then performs color conversion on the target image based on the optimized color conversion matrix to obtain a converted target image, and further displays the converted target image on the screen of the electronic device. Since the influence of the ambient illumination of the environment where the electronic device is located and the screen brightness of the electronic device is considered on the basis of the current color conversion matrix of the electronic device to optimize the current color conversion matrix of the electronic device, the color diversity and reducibility of the screen display image can be improved, and thus the user experience can be improved.

[0063] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.

[0065] Figure 1 is a flowchart of an image display method shown according to an exemplary embodiment of the present disclosure;

[0066] Figure 2A is a flowchart of how to optimize the current color conversion matrix of the electronic device based on the ambient illumination and the screen brightness shown according to an exemplary embodiment of the present disclosure;

[0067] Figure 2B is a schematic diagram of a test image for evaluating color resolution shown according to an exemplary embodiment of the present disclosure;

[0068] Figure 3 is a flowchart of how to construct the coefficient determination model shown according to an exemplary embodiment of the present disclosure;

[0069] Figure 4 is a flowchart of how to optimize the current color conversion matrix based on the reference matrix coefficient threshold shown according to an exemplary embodiment of the present disclosure;

[0070] Figure 5 is a block diagram of an image display device shown according to an exemplary embodiment of the present disclosure;

[0071] Figure 6 is a block diagram of another image display device shown according to an exemplary embodiment of the present disclosure;

[0072] Figure 7 It is a block diagram of an electronic device shown according to an exemplary embodiment of the present disclosure. Detailed implementation manners

[0073] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0074] Figure 1 It is a flowchart of an image display method shown according to an exemplary embodiment; the method of this embodiment can be executed by an image display device, and the image display device can be configured in an electronic device (such as, a smart phone, a tablet computer, smart glasses, a smart watch, etc.). As Figure 1 shown, the method includes the following steps S101 - S103:

[0075] In step S101, in response to obtaining a target image to be displayed, obtain the ambient illuminance of the environment where the electronic device is located and the screen brightness of the electronic device.

[0076] In this embodiment, the electronic device can, in response to obtaining a target image to be displayed, obtain the ambient illuminance of the environment where it is located and its own screen brightness.

[0077] For example, when a target image needs to be displayed on the electronic device, the target image can be transmitted to the electronic device as the image to be displayed, and then when the electronic device obtains the target image, it can obtain the ambient illuminance of the environment where the electronic device itself is located and its own screen brightness.

[0078] In step S102, optimize the current color conversion matrix of the electronic device based on the ambient illuminance and the screen brightness to obtain an optimized color conversion matrix.

[0079] In this embodiment, after obtaining the ambient light intensity of the environment where the electronic device is located and the screen brightness of the electronic device, the current color conversion matrix of the electronic device can be optimized based on the ambient light intensity and the screen brightness. For example, when the ambient light intensity is lower than the light intensity threshold and / or the screen brightness is lower than the brightness threshold, the matrix coefficients of the current color conversion matrix (for example, the values of each element in the matrix) can be increased; while when the ambient light intensity is higher than the light intensity threshold and / or the screen brightness is higher than the brightness threshold, the matrix coefficients of the current color conversion matrix (for example, the values of each element in the matrix) can be reduced to obtain the optimized color conversion matrix. As an example, the above-mentioned light intensity threshold and brightness threshold can be determined according to the standard ambient light intensity and the standard screen brightness used in the related art when designing the current color conversion matrix, and this embodiment does not limit this.

[0080] In some other embodiments, for the above method of optimizing the current color conversion matrix of the electronic device based on the ambient light intensity and the screen brightness, reference can also be made to the following Figure 2A illustrated embodiments, which will not be elaborated here first.

[0081] In step S103, the target image is color-converted based on the optimized color conversion matrix to obtain the color-converted target image.

[0082] In this embodiment, when the current color conversion matrix of the electronic device is optimized based on the ambient light intensity and the screen brightness to obtain the optimized color conversion matrix, the target image can be color-converted based on the optimized color conversion matrix to obtain the color-converted target image.

[0083] For example, assume that the target image is an image in the RGB three-channel format, and both the current color conversion matrix and the optimized color conversion matrix are 3×3 matrices (hereinafter referred to as "3×3 matrices") for converting RGB data into color-corrected RGB data. Then, the matrix can be multiplied by the RGB values of the target image to obtain the color-converted target image. It can be understood that by multiplying the optimized color conversion matrix by the RGB values of the target image, the chromaticity and brightness of the target image can be corrected.

[0084] In step S104, the color-converted target image is displayed on the screen of the electronic device.

[0085] In this embodiment, when the target image is color-converted based on the optimized color conversion matrix to obtain the color-converted target image, the color-converted target image can be immediately displayed on the screen of the electronic device.

[0086] As described above, the method of this embodiment obtains the ambient light intensity of the environment where the electronic device is located and the screen brightness of the electronic device in response to obtaining a target image to be displayed, and optimizes the current color conversion matrix of the electronic device based on the ambient light intensity and the screen brightness to obtain an optimized color conversion matrix. Then, the target image is color-converted based on the optimized color conversion matrix to obtain a color-converted target image, and then the color-converted target image is displayed on the screen of the electronic device. Since the influence of the ambient light intensity of the environment where the electronic device is located and the screen brightness of the electronic device is considered on the basis of the current color conversion matrix of the electronic device to optimize the current color conversion matrix of the electronic device, the color diversity and reducibility of the screen display image can be improved, and thus the user experience can be enhanced.

[0087] Figure 2A FIG. is a flowchart showing how to optimize the current color conversion matrix of the electronic device based on the ambient light intensity and the screen brightness according to an exemplary embodiment of the present disclosure; this embodiment takes how to optimize the current color conversion matrix of the electronic device based on the ambient light intensity and the screen brightness as an example for exemplary illustration on the basis of the above embodiment.

[0088] As Figure 2A shown, the optimization of the current color conversion matrix of the electronic device based on the ambient light intensity and the screen brightness in step S102 above to obtain an optimized color conversion matrix may include the following steps S201-S202:

[0089] In step S201, a reference matrix coefficient threshold is determined based on the ambient light intensity and the screen brightness.

[0090] In this embodiment, after obtaining the ambient light intensity of the environment where the electronic device is located and the screen brightness of the electronic device, a reference matrix coefficient threshold may be determined based on the ambient light intensity and the screen brightness.

[0091] Among them, the above reference matrix coefficient threshold may be a threshold of the coefficients of the color conversion matrix that can distinguish the color bands at various places in the test image under the ambient light intensity and the screen brightness. That is to say, when the coefficient of the color torque matrix is greater than this threshold, the color bands at various places in the test image converted based on this color conversion matrix can be distinguished by the human eye, and when the coefficient of the color torque matrix is less than this threshold, the color bands at various places in the test image converted based on this color conversion matrix cannot be distinguished by the human eye.

[0092] For example, the above test image can be an image for evaluating color resolution, and its design method includes, for example: setting R = G = B, and determining a color band transition diagram that varies uniformly from 0 to 255 at intervals of a selected pixel value (such as 16, etc.), to obtain the above test image. Exemplarily, Figure 2B is a schematic diagram of a test image for evaluating color resolution shown according to an exemplary embodiment of the present disclosure; as Figure 2B shown, in this test image, the regions from dark to bright at 0, 16,..., 240, 255 are successively color bands (0, 0, 0), (16, 16, 16),..., (240, 240, 240), (255, 255, 255). It can be understood that the color bands at (0, 0, 0) and (16, 16, 16) are likely to be indistinguishable to the human eye after color conversion. Therefore, in the subsequent embodiments, the resolution of these two color bands is mainly concerned. In other words, if these two darker color bands can be distinguished by the human eye, then the other brighter color bands will surely be distinguishable by the human eye.

[0093] Therefore, the above reference matrix coefficient threshold can be the threshold of the coefficients of the color conversion matrix that can distinguish the color band (0, 0, 0) and the color band (16, 16, 16) in the test image under the environmental illumination and the screen brightness.

[0094] In some embodiments, the threshold of the coefficients of the color conversion matrix that can distinguish each color band (mainly the darkest ones) in the test image under various screen brightnesses and various different environmental illuminations can be determined through experiments. Then, interpolation can be performed based on these thresholds to obtain the relationship between any screen brightness, any environmental illumination, and the corresponding reference matrix coefficient threshold. On this basis, the corresponding reference matrix coefficient threshold can be determined according to the environmental illumination of the environment where the electronic device is located and the screen brightness of the electronic device obtained in step S101.

[0095] In other embodiments, the environmental illumination and the screen brightness can be input into a pre-constructed coefficient determination model to obtain the reference matrix coefficient threshold. Among them, this coefficient determination model is used to predict the corresponding reference matrix coefficient threshold according to any screen brightness and any environmental illumination. The construction method of the above coefficient determination model can be seen in the following Figure 3 shown embodiment, which will not be elaborated here first.

[0096] In step S202, the current color conversion matrix is optimized based on the reference matrix coefficient threshold to obtain an optimized color conversion matrix.

[0097] In this embodiment, after determining the reference matrix coefficient threshold based on the ambient light intensity and the screen brightness, the current color conversion matrix can be optimized based on the reference matrix coefficient threshold to obtain an optimized color conversion matrix.

[0098] For example, it can be determined whether the current color conversion matrix meets the optimization condition based on the reference matrix coefficient threshold. Then, when it is determined that the current color conversion matrix meets the optimization condition, the current color conversion matrix is optimized to obtain an optimized color conversion matrix. Whether the current color conversion matrix meets the optimization condition can include, for example, that the color bands (0, 0, 0) and (16, 16, 16) cannot be distinguished by the human eye after being converted by the current color conversion matrix. This embodiment does not limit this.

[0099] In some other embodiments, the above method for optimizing the current color conversion matrix based on the reference matrix coefficient threshold can also refer to the following Figure 4 illustrated embodiments, which will not be elaborated here first.

[0100] As can be seen from the above description, in this embodiment, by determining the reference matrix coefficient threshold based on the ambient light intensity and the screen brightness, and optimizing the current color conversion matrix based on the reference matrix coefficient threshold to obtain an optimized color conversion matrix, it is possible to optimize the current color conversion matrix of the electronic device based on the ambient light intensity and the screen brightness. Furthermore, it is possible to perform color conversion on the target image based on the optimized color conversion matrix subsequently, obtain the converted target image, and display the converted target image on the screen of the electronic device, which can enhance the color diversity and reducibility of the screen display image, and thus can enhance the user experience.

[0101] Figure 3 It is a flowchart showing how to construct the coefficient determination model according to an exemplary embodiment of the present disclosure; this embodiment takes how to construct the coefficient determination model as an example for exemplary illustration based on the above embodiment.

[0102] As Figure 3 shown, the construction of the coefficient determination model described in step S104 above may include the following steps S301 - S302:

[0103] In step S301, obtain the target matrix coefficients corresponding to each sample screen brightness under multiple different sample ambient light intensities.

[0104] In this embodiment, when constructing the coefficient determination model, the target matrix coefficients corresponding to each sample screen brightness under multiple different sample ambient light intensities can be obtained.

[0105] Among them, the above-mentioned target matrix coefficients include the matrix coefficients obtained by adjusting the initial matrix coefficients of the simplified color conversion matrix until the set conditions are met when the screen brightness of the electronic device is the sample screen brightness and the electronic device is in the multiple different sample ambient illuminances.

[0106] In some embodiments, the above-mentioned meeting the set conditions may include that two target color bands displayed on the screen of the electronic device reach the degree that the human eye can just not distinguish them. The two target color bands include two color bands with different grayscales that are easily indistinguishable to the human eye after color conversion in the test image, such as color band (0, 0, 0) and color band (16, 16, 16).

[0107] The above-mentioned simplified color conversion matrix may be a diagonal matrix with equal elements on the main diagonal. The initial matrix coefficients and the target matrix coefficients are respectively the values of the elements on the main diagonal before and after adjustment.

[0108] In some embodiments, when constructing the coefficient determination model, the color conversion matrix of m*n (such as a 3×3 matrix) selected can be simplified first to obtain a simplified color conversion matrix, such as a diagonal matrix with equal elements on the diagonal. It can be understood that a diagonal matrix is a matrix in which all elements except those on the main diagonal are equal to 0. Then, a test image for evaluating color resolution can be determined. For example, R = G = B can be set, and a color band transition image that changes uniformly from 0 to 255 at a selected pixel value (such as 16, etc.) as the interval can be determined as the test image. Among them, the resolution of at least two color bands that are easily indistinguishable to the human eye after color conversion, such as color band (0, 0, 0) and color band (16, 16, 16), needs to be focused on.

[0109] Furthermore, under multiple different sample ambient illuminances (as an example, the illuminance of 0 Lux in a dark room environment, the illuminance of 500 Lux in a normal office environment, the illuminance of 10,000 Lux in an outdoor environment, etc.), the screen brightness of the electronic device can be set to each of the sample screen brightnesses (for example, at equal intervals of 100 nit, set each sample screen brightness such as 0 nit, 300 nit, 400 nit, ……, and 1400 nit, etc.). Then, fine-tune the coefficients of the simplified color conversion matrix (that is, simultaneously adjust the elements on the main diagonal of the simplified color conversion matrix) so that the color bands (0, 0, 0) and (16, 16, 16) in the test pattern displayed on the screen of the electronic device reach the level where the human eye can just barely distinguish them, in order to obtain the target matrix coefficients. Further, to ensure the accuracy of determining the "level where the human eye can just barely distinguish them", the actual brightness corresponding to the color bands (0, 0, 0) and (16, 16, 16) at this time can be obtained while obtaining the target matrix coefficients, so as to determine whether it actually reaches the "level where the human eye can just barely distinguish them" based on the comparison result of the actual brightness. As an example, the coefficients of the simplified color conversion matrix can be gradually reduced in a smaller step until the color bands (0, 0, 0) and (16, 16, 16) cannot be distinguished by the human eye, and the first actual brightness corresponding to the color band (16, 16, 16) can be measured by an instrument (such as a color analyzer like CA - 410, etc.). Considering that the brightness of the color band (0, 0, 0) is extremely low, it can be considered that its actual brightness is 0 nit under any screen brightness and ambient illuminance. When the first actual brightness is obtained, if the difference between the first actual brightness and 0 nit is less than or equal to the brightness threshold, it can be regarded that the color bands (0, 0, 0) and (16, 16, 16) reach the level where the human eye can just barely distinguish them. As an example, this brightness threshold can be determined based on the current brightness of the screen. For example, it can be determined to be 1% of the current screen brightness, etc. This embodiment does not limit this.

[0110] For example, assume that the selected 3×3 color conversion matrix is shown in the following formula (3 - 1):

[0111]

[0112] That is to say, when performing color transformation on the target color RGB value based on this matrix, this matrix can be multiplied by the target color RGB value to achieve the correction of the chromaticity and brightness of the target color, specifically shown in the following formula (3 - 2):

[0113]

[0114] On this basis, the above color conversion matrix can be simplified. For example, let:

[0115] a = e = i; (3-3)

[0116] b = c = d = f = g = h = 0; (3-4)

[0117] The simplified color conversion matrix is obtained as shown in the following formula (3-5):

[0118]

[0119] On this basis, under the ambient light illuminance of 0, 500, and 10000 Lux respectively, the screen brightness of the electronic device can be set to each screen brightness (such as 0, 100,..., 1400 nit), and then the coefficients of the above simplified color conversion matrix are finely adjusted so that the color band (0, 0, 0) and the color band (16, 16, 16) on the displayed test chart on the screen reach the level where the human eye can just not distinguish them, obtaining the target matrix coefficients at this time, and acquiring the actual brightness corresponding to the first target color band (0, 0, 0) and the second target color band (16, 16, 16), so as to ensure the accuracy of judging "reaching the level where the human eye can just not distinguish them". Taking the screen brightness of 1400 nit as an example, the target matrix coefficients shown in Table 1 below can be obtained:

[0120] Table 1

[0121] 1400 nit brightness 0 Lux 500 Lux 10000 Lux Target matrix coefficient <![CDATA[a0,e0,i0]]> <![CDATA[a 500 ,e 500 ,i 500 > <![CDATA[a 10000 ,e 10000 ,i 10000 >

[0122] In step S302, based on the target matrix coefficients, determine the actual brightness difference between the two target color bands under the multiple different sample ambient light illuminances.

[0123] In this embodiment, after obtaining the target matrix coefficients under multiple different sample ambient light illuminances corresponding to each sample screen brightness, the actual brightness difference between the two target color bands under the multiple different sample ambient light illuminances can be determined based on the target matrix coefficients.

[0124] Taking the actual brightness difference of the screen brightness of 1400 nit under 0 Lux as an example, since a0 = e0 = i0, the actual brightness difference between the color band (16, 16, 16) and the color band (0, 0, 0) can be calculated based on the following formula (3-6):

[0125]

[0126] Similarly, the actual brightness differences ΔY 500 and Y 10000 under the screen brightness of 1400 nit at 500 Lux and 10000 Lux can be calculated, which will not be elaborated here.

[0127] In step S303, based on the multiple different sample ambient illuminances and the actual brightness difference, an interpolation method is used to construct the coefficient determination model.

[0128] In this embodiment, after obtaining the above actual brightness difference, based on the multiple different sample ambient illuminances and the actual brightness difference, an interpolation method can be used to construct the coefficient determination model.

[0129] For example, assume that the variation range of the current ambient illuminance is 0 to E max . As an example, E max = 10000 Lux. The variation range of the screen brightness of the electronic device is 0 to 1400 nit. The brightness difference between the color band (16, 16, 16) and the color band (0, 0, 0) is ΔY max . Furthermore, through the interpolation method, based on the following formulas (3-7) to (3-9), the reference matrix coefficient threshold corresponding to any screen brightness Y and any ambient illuminance E can be constructed:

[0130]

[0131]

[0132]

[0133] Among them, γ is an intermediate parameter, ΔY 500 and Y 10000 are respectively the actual brightness differences between the color band (16, 16, 16) and the color band (0, 0, 0) at the screen brightness of 1400 nit under 500 Lux and 10000 Lux, E 500 and E 10000 are respectively 500 Lux and 10000 Lux.

[0134] It should be noted that under strong ambient illuminance, even when the screen is at the highest brightness, there will be a situation where the color resolution decreases. At this time, the color conversion coefficient needs to be much greater than 1 to distinguish the color band (16, 16, 16) from the color band (0, 0, 0). However, considering that in the color conversion process of the electronic device, its color conversion coefficient is usually specified in the range of 0 to 1, so for the color conversion coefficient exceeding 1, it can only be clipped to 1 here. That is, the smaller value between and 1 is selected on the right side of the above formula (3-9) to ensure that the coefficient a E = e E = i E does not exceed 1.

[0135] As an example, after obtaining the ambient light intensity e of the environment where the electronic device is located and the screen brightness y of the electronic device, E = e and Y = y can be set, and a can be obtained based on the above formulas (3-7) to (3-9). E = e E = i E , that is, the reference matrix coefficient threshold.

[0136] As can be seen from the above description, in this embodiment, by obtaining the target matrix coefficients under multiple different sample ambient light intensities corresponding to each sample screen brightness, and determining the actual brightness difference between two target color bands under the multiple different sample ambient light intensities based on the target matrix coefficients, and then based on the multiple different sample ambient light intensities and the actual brightness difference, using interpolation to construct the coefficient determination model, a reasonable coefficient determination model can be constructed. Furthermore, the ambient light intensity and the screen brightness can be input into the pre-constructed coefficient determination model to obtain the reference matrix coefficient threshold, and the current color conversion matrix can be optimized based on the reference matrix coefficient threshold to obtain an optimized color conversion matrix, which can improve the color diversity and reducibility of the screen display image, and thus can improve the user experience.

[0137] Figure 4 is a flowchart showing how to optimize the current color conversion matrix based on the reference matrix coefficient threshold according to an exemplary embodiment of the present disclosure; in this embodiment, based on the above embodiment, how to optimize the current color conversion matrix based on the reference matrix coefficient threshold is taken as an example for exemplary illustration.

[0138] As Figure 4 shown, the optimization of the current color conversion matrix based on the reference matrix coefficient threshold described in the above step S202 may include the following steps S401-S404:

[0139] In step S401, determine the maximum value of the sum of the elements in each row of the current color conversion matrix.

[0140] In step S402, determine whether the maximum value is less than the reference matrix coefficient threshold: if so, execute step S403; if not, execute step S404.

[0141] In step S403, adjust the coefficients of the current color conversion matrix based on the ratio of the reference matrix coefficient threshold to the maximum value of the sum of the elements in each row.

[0142] In step S404, adjust the coefficients of the current color conversion matrix based on the maximum value of the sum of the elements in each row.

[0143] In this embodiment, when optimizing the current color conversion matrix based on the reference matrix coefficient threshold, the maximum value of the sum of the elements in each row of the current color conversion matrix can be determined, and then the maximum value of the sum of the elements in each row is compared with the reference matrix coefficient threshold to obtain a comparison result (for example, the maximum value is less than the reference matrix coefficient threshold or the maximum value is greater than or equal to the reference matrix coefficient threshold). Furthermore, different adjustment methods can be selected based on this comparison result to adjust the coefficients of the current color conversion matrix.

[0144] For example, when the maximum value is less than the reference matrix coefficient threshold, the coefficients of the current color conversion matrix are adjusted based on the ratio of the reference matrix coefficient threshold to the maximum value of the sum of the elements in each row (for example, the coefficients of the current color conversion matrix can be increased. Exemplarily, the adjusted coefficients can be obtained by multiplying the ratio by the coefficients of the current color conversion matrix); or when the maximum value is greater than or equal to the reference matrix coefficient threshold, the coefficients of the current color conversion matrix are adjusted based on the maximum value of the sum of the elements in each row (for example, the coefficients of the current color conversion matrix are decreased or maintained unchanged. As an example, the adjusted coefficients can be obtained by dividing the coefficients of the current color conversion matrix by the maximum value). It can be understood that when the maximum value is 1, dividing the coefficients of the current color conversion matrix by the maximum value still results in the coefficients of the current color conversion matrix itself, that is, the coefficients are maintained unchanged.

[0145] For example, assume that the current color conversion matrix of the electronic device is shown in the following formula (4-1):

[0146]

[0147] Then, the sum of the elements in each row of the current color conversion matrix can be determined based on the following formulas (4-2) to (4-4):

[0148] A1 = a x + b x + c x ; (4-2)

[0149] A2 = d x + e x + f x ; (4-3)

[0150] A3 = g x + h x + i x ; (4-4)

[0151] Furthermore, the maximum value of the sum of the elements in each row above can be determined based on the following formula (4-5):

[0152] A max = max(A1, A2, A3); (4-5)

[0153] Based on this, the coefficients of the current color conversion matrix can be adjusted according to the following formula (4-6) to obtain an optimized color conversion matrix A':

[0154]

[0155] where t is a reference matrix coefficient threshold determined based on the environmental illuminance and the screen brightness.

[0156] As can be seen from the above description, in this embodiment, by determining the maximum value of the sum of the elements in each row of the current color conversion matrix and adjusting the coefficients of the current color conversion matrix based on the comparison result between the maximum value of the sum of the elements in each row and the reference matrix coefficient threshold, it is possible to reasonably optimize the current color conversion matrix based on the reference matrix coefficient threshold.

[0157] Figure 5 is a block diagram of an image display device shown according to an exemplary embodiment of the present disclosure; the device of this embodiment can be configured in an electronic device (such as, a smart phone, a tablet computer, smart glasses, a smart watch, etc.). As Figure 5 shown, the device may include an information acquisition module 110, a matrix optimization module 120, an image conversion module 130, and an image display module 140, where:[[]]

[0158] The information acquisition module 110 is configured to, in response to acquiring a target image to be displayed, acquire the environmental illuminance of the environment where the electronic device is located and the screen brightness of the electronic device;

[0159] The matrix optimization module 120 is configured to optimize the current color conversion matrix of the electronic device based on the environmental illuminance and the screen brightness to obtain an optimized color conversion matrix;

[0160] The image conversion module 130 is configured to perform color conversion on the target image based on the optimized color conversion matrix to obtain a converted target image;

[0161] The image display module 140 is configured to display the converted target image on the screen of the electronic device.

[0162] As described above, the device of this embodiment obtains the ambient light intensity of the environment where the electronic device is located and the screen brightness of the electronic device in response to obtaining a target image to be displayed, optimizes the current color conversion matrix of the electronic device based on the ambient light intensity and the screen brightness to obtain an optimized color conversion matrix, then performs color conversion on the target image based on the optimized color conversion matrix to obtain a converted target image, and further displays the converted target image on the screen of the electronic device. Since the influence of the ambient light intensity of the environment where the electronic device is located and the screen brightness of the electronic device is considered on the current color conversion matrix of the electronic device and the current color conversion matrix of the electronic device is optimized, the color diversity and reducibility of the screen display image can be improved, and thus the user experience can be enhanced.

[0163] Figure 6 is a block diagram of another image display device shown according to an exemplary embodiment of the present disclosure; the device of this embodiment can be configured in an electronic device (such as, a smart phone, a tablet computer, smart glasses, a smart watch, etc.). Among them, the information acquisition module 210, the matrix optimization module 220, the image conversion module 230, and the image display module 240 are the same as the Figure 5 information acquisition module 110, the matrix optimization module 120, the image conversion module 130, and the image display module 140 in the embodiment shown above, and will not be elaborated here.

[0164] As Figure 6 shown, the above matrix optimization module 220 may include:

[0165] A threshold determination unit 221, configured to determine a reference matrix coefficient threshold based on the ambient light intensity and the screen brightness, where the reference matrix coefficient threshold is a threshold of the coefficients of the color conversion matrix that can distinguish color bands at various locations in a test image under the ambient light intensity and the screen brightness;

[0166] A matrix optimization unit 222, configured to optimize the current color conversion matrix based on the reference matrix coefficient threshold to obtain an optimized color conversion matrix.

[0167] In some embodiments, the above threshold determination unit 221 may also be configured to input the ambient light intensity and the screen brightness into a pre-constructed coefficient determination model to obtain the reference matrix coefficient threshold, where the coefficient determination model is used to predict the corresponding reference matrix coefficient threshold according to any screen brightness and any ambient light intensity.

[0168] In some embodiments, the above device may further include a model construction module 250;

[0169] The model construction module 250 may include:

[0170] A coefficient acquisition unit 251, configured to acquire target matrix coefficients corresponding to each sample screen brightness under multiple different sample ambient illuminances, where the target matrix coefficients include matrix coefficients obtained by adjusting initial matrix coefficients of a simplified color conversion matrix until a set condition is met when the screen brightness of the electronic device is the sample screen brightness and the electronic device is under the multiple different sample ambient illuminances;

[0171] A brightness difference determination unit 252, configured to determine an actual brightness difference between two target color bands under the multiple different sample ambient illuminances based on the target matrix coefficients;

[0172] A model construction unit 253, configured to construct the coefficient determination model by using an interpolation method based on the multiple different sample ambient illuminances and the actual brightness difference.

[0173] In some embodiments, the meeting of the set condition may include that two target color bands displayed on the screen of the electronic device reach a degree where the human eye can just not distinguish them, and the two target color bands include two color bands with different gray levels in the test image that are likely to be indistinguishable to the human eye after color conversion.

[0174] In some embodiments, the simplified color conversion matrix may be a diagonal matrix with equal elements on the main diagonal, and the initial matrix coefficients and the target matrix coefficients are respectively the values of the elements on the main diagonal before and after adjustment.

[0175] In some embodiments, the matrix optimization unit 222 may further be configured to:

[0176] Determine a maximum value of the sum of elements in each row of the current color conversion matrix;

[0177] Adjust coefficients of the current color conversion matrix based on a comparison result between the maximum value of the sum of elements in each row and a reference matrix coefficient threshold.

[0178] In some embodiments, the matrix optimization unit 222 may further be configured to, in response to the maximum value of the sum of elements in each row being less than the reference matrix coefficient threshold, adjust coefficients of the current color conversion matrix based on a ratio of the reference matrix coefficient threshold to the maximum value of the sum of elements in each row.

[0179] In some embodiments, the matrix optimization unit 222 may further be configured to, in response to the maximum value of the sum of elements in each row being greater than or equal to the reference matrix coefficient threshold, adjust coefficients of the current color conversion matrix based on the maximum value of the sum of elements in each row.

[0180] Regarding the device in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method, and will not be elaborated here.

[0181] Figure 7 FIG. is a block diagram of an electronic device according to an exemplary embodiment. For example, device 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0182] Referring to Figure 7 , device 900 may include one or more of the following components: a processing component 902, a memory 904, a power component 906, a multimedia component 908, an audio component 910, an input / output (I / O) interface 912, a sensor component 914, and a communication component 916.

[0183] The processing component 902 generally controls the overall operation of device 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above image display method. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.

[0184] The memory 904 is configured to store various types of data to support the operation of device 900. Examples of such data include instructions for any application or method operating on device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 may 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 memory, flash memory, a magnetic disk, or an optical disk.

[0185] The power component 906 provides power to various components of device 900. The power component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 900.

[0186] The multimedia component 908 includes a screen that provides an output interface between the device 900 and the user. In some embodiments, the screen may include a liquid crystal display panel and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen 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 can sense not only the boundaries of a touch or swipe action but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the device 900 is in an operation mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.

[0187] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC) that is configured to receive external audio signals when the device 900 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 904 or sent via the communication component 916. In some embodiments, the audio component 910 further includes a speaker for outputting audio signals.

[0188] The I / O interface 912 provides an interface between the processing component 902 and a peripheral interface module, and the peripheral interface module can be a keyboard, a click wheel, buttons, etc. These buttons can include but are not limited to: a home button, a volume button, a power button, and a lock button.

[0189] The sensor component 914 includes one or more sensors for providing status assessments of various aspects of the device 900. For example, the sensor component 914 can detect the on / off state of the device 900, the relative positioning of components, such as the display panel and the keypad of the device 900. The sensor component 914 can also detect a change in the position of the device 900 or a component of the device 900, the presence or absence of user contact with the device 900, the orientation or acceleration / deceleration of the device 900, and the temperature change of the device 900. The sensor component 914 can also include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 914 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 914 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0190] The communication component 916 is configured to facilitate communication, in a wired or wireless manner, between the device 900 and other devices. The device 900 may access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, or 5G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0191] In an exemplary embodiment, the device 900 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 for performing the above-described image display method.

[0192] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as a memory 904 including instructions, is also provided. The above instructions may be executed by a processor 920 of the device 900 to complete the above-described image display method. For example, the non-transitory computer-readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0193] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the disclosure herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common general knowledge or conventional technical means in the technical field not disclosed herein. The specification and examples are only to be considered as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.

[0194] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes may be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.

Claims

1. An image display method, characterized in that, The method includes: In response to obtaining a target image to be displayed, obtaining the ambient light intensity of the environment where the electronic device is located and the screen brightness of the electronic device; Optimizing the current color conversion matrix of the electronic device based on the ambient light intensity and the screen brightness to obtain an optimized color conversion matrix; Performing color conversion on the target image based on the optimized color conversion matrix to obtain a converted target image; Displaying the converted target image on the screen of the electronic device.

2. The method according to claim 1, characterized in that, The optimizing the current color conversion matrix of the electronic device based on the ambient light intensity and the screen brightness to obtain an optimized color conversion matrix includes: Determining a reference matrix coefficient threshold based on the ambient light intensity and the screen brightness, where the reference matrix coefficient threshold is a threshold for the coefficients of the color conversion matrix that can distinguish color bands at various locations in a test image under the ambient light intensity and the screen brightness; Optimizing the current color conversion matrix based on the reference matrix coefficient threshold to obtain an optimized color conversion matrix.

3. The method according to claim 2, wherein The determining a reference matrix coefficient threshold based on the ambient light intensity and the screen brightness includes: Inputting the ambient light intensity and the screen brightness into a pre-constructed coefficient determination model to obtain the reference matrix coefficient threshold, where the coefficient determination model is used to predict the corresponding reference matrix coefficient threshold according to any screen brightness and any ambient light intensity.

4. The method according to claim 3, characterized in that, The method further includes constructing the coefficient determination model based on the following method: Obtaining target matrix coefficients corresponding to each sample screen brightness under multiple different sample ambient light intensities, where the target matrix coefficients include the matrix coefficients obtained by adjusting the initial matrix coefficients of the simplified color conversion matrix until a set condition is met when the screen brightness of the electronic device is the sample screen brightness and the electronic device is in the multiple different sample ambient light intensities; Determining the actual brightness difference between two target color bands under the multiple different sample ambient light intensities based on the target matrix coefficients; Constructing the coefficient determination model by using an interpolation method based on the multiple different sample ambient light intensities and the actual brightness difference.

5. The method according to claim 4, wherein The meeting the set condition includes that the two target color bands displayed on the screen of the electronic device reach the degree where the human eye can just not distinguish them, and the two target color bands include two color bands with different gray levels in the test image that are likely to be indistinguishable by the human eye after color conversion.

6. The method according to claim 4, characterized in that The simplified color conversion matrix is a diagonal matrix with equal elements on the main diagonal, and the initial matrix coefficients and the target matrix coefficients are the values of the elements on the main diagonal before and after adjustment, respectively.

7. The method according to claim 2, wherein The optimizing the current color conversion matrix based on the reference matrix coefficient threshold includes: Determining the maximum value of the sum of the elements in each row of the current color conversion matrix; Adjusting the coefficients of the current color conversion matrix based on the comparison result between the maximum value of the sum of the elements in each row and the reference matrix coefficient threshold.

8. The method according to claim 7, wherein The adjusting the coefficients of the current color conversion matrix based on the comparison result between the maximum value of the sum of the elements in each row and the reference matrix coefficient threshold includes: In response to the maximum value of the sum of the elements in each row being less than the reference matrix coefficient threshold, adjust the coefficients of the current color conversion matrix based on the ratio of the reference matrix coefficient threshold to the maximum value of the sum of the elements in each row.

9. The method according to claim 7, wherein The adjustment of the coefficients of the current color conversion matrix based on the comparison result between the maximum value of the sum of the elements in each row and the reference matrix coefficient threshold includes: In response to the maximum value of the sum of the elements in each row being greater than or equal to the reference matrix coefficient threshold, adjust the coefficients of the current color conversion matrix based on the maximum value of the sum of the elements in each row.

10. An image display device, characterized in that, The device includes: An information acquisition module, configured to acquire the ambient illuminance of the environment where the electronic device is located and the screen brightness of the electronic device in response to acquiring a target image to be displayed. A matrix optimization module, configured to optimize the current color conversion matrix of the electronic device based on the ambient illuminance and the screen brightness to obtain an optimized color conversion matrix. An image conversion module, configured to perform color conversion on the target image based on the optimized color conversion matrix to obtain a converted target image. An image display module, configured to display the converted target image on the screen of the electronic device.

11. The device according to claim 10, characterized in that, The matrix optimization module includes: A threshold determination unit, configured to determine a reference matrix coefficient threshold based on the ambient illuminance and the screen brightness, where the reference matrix coefficient threshold is the threshold of the coefficients of the color conversion matrix that can distinguish color bands at various locations in a test image under the ambient illuminance and the screen brightness. A matrix optimization unit, configured to optimize the current color conversion matrix based on the reference matrix coefficient threshold to obtain an optimized color conversion matrix.

12. The device according to claim 11, wherein The threshold determination unit is further configured to input the ambient illuminance and the screen brightness into a pre-constructed coefficient determination model to obtain the reference matrix coefficient threshold, and the coefficient determination model is used to predict the corresponding reference matrix coefficient threshold according to any screen brightness and any ambient illuminance.

13. The device according to claim 12, characterized in that, The device further includes a model construction module; The model construction module includes: A coefficient acquisition unit, configured to acquire target matrix coefficients corresponding to each sample screen brightness under multiple different sample ambient illuminances, where the target matrix coefficients include the matrix coefficients obtained by adjusting the initial matrix coefficients of a simplified color conversion matrix until a set condition is met when the screen brightness of the electronic device is the sample screen brightness and the electronic device is in the multiple different sample ambient illuminances. A brightness difference determination unit, configured to determine the actual brightness difference between two target color bands under the multiple different sample ambient illuminances based on the target matrix coefficients. A model construction unit, configured to construct the coefficient determination model based on the multiple different sample ambient illuminances and the actual brightness difference by using an interpolation method.

14. The device according to claim 13, wherein The satisfaction of the set condition includes that two target color bands displayed on the screen of the electronic device reach the degree where the human eye can just not distinguish them, and the two target color bands include two color bands with different gray levels in the test image that are likely to be indistinguishable by the human eye after color conversion.

15. The device according to claim 13, characterized in that, The simplified color conversion matrix is a diagonal matrix with equal elements on the main diagonal, and the initial matrix coefficient and the target matrix coefficient are the values of the elements on the main diagonal before and after adjustment, respectively.

16. The device according to claim 11, characterized in that, The matrix optimization unit is further configured to: Determine the maximum value of the sum of the elements in each row of the current color conversion matrix; Adjust the coefficients of the current color conversion matrix based on the comparison result between the maximum value of the sum of the elements in each row and the reference matrix coefficient threshold.

17. The device according to claim 16, characterized in that, The matrix optimization unit is further configured to, in response to the maximum value of the sum of the elements in each row being less than the reference matrix coefficient threshold, adjust the coefficients of the current color conversion matrix based on the ratio of the reference matrix coefficient threshold to the maximum value of the sum of the elements in each row.

18. The device according to claim 16, characterized in that, The matrix optimization unit is further configured to, in response to the maximum value of the sum of the elements in each row being greater than or equal to the reference matrix coefficient threshold, adjust the coefficients of the current color conversion matrix based on the maximum value of the sum of the elements in each row.

19. An electronic device, characterized in that, The device includes: A processor and a memory for storing a computer program; Wherein, the processor is configured to, when executing the computer program, implement: In response to obtaining a target image to be displayed, obtain the ambient illuminance of the environment where the electronic device is located and the screen brightness of the electronic device; Optimize the current color conversion matrix of the electronic device based on the ambient illuminance and the screen brightness to obtain an optimized color conversion matrix; Perform color conversion on the target image based on the optimized color conversion matrix to obtain a converted target image; Display the converted target image on the screen of the electronic device.

20. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements: In response to obtaining a target image to be displayed, obtain the ambient illuminance of the environment where the electronic device is located and the screen brightness of the electronic device; Optimize the current color conversion matrix of the electronic device based on the ambient illuminance and the screen brightness to obtain an optimized color conversion matrix; Perform color conversion on the target image based on the optimized color conversion matrix to obtain a converted target image; Display the converted target image on the screen of the electronic device.