Display method and device, electronic equipment and storage medium
By color correction of the first image in the perceived color space, the problem of inconsistent brightness adjustment in the HSL color space is solved, and the effect of improving the readability and color consistency of the display screen in a strong light environment is achieved.
Patent Information
- Application Number
- CN202311576846.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-23
- Publication Date
- 2025-05-23
AI Technical Summary
In a strong light environment, the brightness adjustment based on the HSL color space is inconsistent with the human eye's perception law, resulting in the actual brightness value of the display screen is inconsistent with the human eye's perception brightness value, affecting the user's visual experience.
By determining the color data of the first image in the perceived color space, including the light and darkness parameters, color correction is performed, the second image is obtained, ensuring the color consistency, and adjusting the brightness during display to match the perception of the human eye.
It solves the problem that the color brightness value is inconsistent with the perceived brightness value of the human eye, improves the readability of the display in a strong lighting environment, and maintains the consistency of color cognition and improves the user experience.
Smart Images

Figure CN120032602A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a display method, device, electronic device and storage medium. Background Art
[0002] The readability of the display screen will decrease in strong light environments. To address this phenomenon, various manufacturers will provide corresponding sunlight screen solutions based on the HSL (Hue, Saturation, Lightness) color space to increase the brightness of the display screen to ensure readability in strong light environments. However, the brightness adjustment based on the HSL color space does not conform to the perception law of the human eye, which will cause the actual brightness value of the display screen to be inconsistent with the perceived brightness value of the human eye, affecting the user's visual experience. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a display method, device, electronic device and storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a display method is provided, the method comprising:
[0005] Determine first color data of the first image in a first color space, the first color space represents a perceptual color space, the first color data includes a first parameter, and the first parameter represents a degree of brightness of the color;
[0006] Based on the first parameter, color correction is performed on the first image to obtain a second image, wherein the first image and the second image have the same hue;
[0007] The second image is displayed.
[0008] In an exemplary embodiment, performing color correction on the first image based on the first parameter to obtain a second image includes:
[0009] Acquire an initial value of the first parameter and distribution data of the first parameter in the first image;
[0010] Determining a correction value of the first parameter based on the distribution data of the first parameter, and an initial value of the first parameter and a first mapping relationship, wherein the first mapping relationship represents a mapping relationship between the initial value of the first parameter and the correction value of the first parameter;
[0011] Based on the correction value of the first parameter, color correction is performed on the first image to obtain the second image.
[0012] In an exemplary embodiment, the first color data further includes a second parameter, and the second parameter represents the saturation of the color; and performing color correction on the first image based on the correction value of the first parameter to obtain the second image includes:
[0013] Acquire an initial value of the second parameter in the first image;
[0014] Determining a corrected value of the second parameter based on an initial value of the first parameter, an initial value of the second parameter, a corrected value of the first parameter, and a first relationship; wherein the first relationship represents a relationship between a first value and a second value, the first value is a difference between the corrected value of the first parameter and the initial value of the first parameter, and the second value is a difference between the corrected value of the second parameter and the initial value of the second parameter;
[0015] Based on the correction value of the first parameter and the correction value of the second parameter, color correction is performed on the first parameter and the second parameter of the first image to obtain first corrected color data of the second image in the first color space.
[0016] In an exemplary embodiment, displaying the second image includes:
[0017] Converting first corrected color data of the second image in the first color space into second corrected color data in a second color space;
[0018] Based on the second corrected color data, the second image is displayed.
[0019] In an exemplary embodiment, converting the first corrected color data of the second image in the first color space into second corrected color data in the second color space includes:
[0020] Converting the first corrected color data into third corrected color data in a third color space;
[0021] The third corrected color data is converted into the second corrected color data.
[0022] In an exemplary embodiment, determining first color data of the first image in the first color space includes:
[0023] Acquire second color data of the first image in a second color space, where the second color space represents a color space related to a display device;
[0024] The second color data is converted into the first color data.
[0025] In an exemplary embodiment, converting the second color data into the first color data includes:
[0026] Convert the second color data into third color data in a third color space, where the third color space represents a color space that is independent of a display device;
[0027] The third color data is converted into the first color data.
[0028] In an exemplary embodiment, the first color space includes an HCT color space, the second color space includes an RGB color space, and the third color space includes an XYZ color space.
[0029] According to a second aspect of an embodiment of the present disclosure, a display device is provided, the device comprising:
[0030] A determination module is configured to determine first color data of the first image in a first color space, where the first color space represents a perceptual color space, and the first color data includes a first parameter, where the first parameter represents a degree of brightness of the color;
[0031] a correction module, configured to perform color correction on the first image based on the first parameter to obtain a second image, wherein the first image and the second image have the same hue;
[0032] The display module is configured to display the second image.
[0033] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0034] processor;
[0035] a memory for storing processor-executable instructions;
[0036] The processor is configured to execute the method as described in the first aspect of the embodiment of the present disclosure.
[0037] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method described in the first aspect of the embodiment of the present disclosure.
[0038] The above method disclosed in the present invention has the following beneficial effects: the first image is color corrected by the first parameter in the first color data, thereby solving the problem of inconsistency between the color brightness value and the brightness value perceived by the human eye, and being able to increase the readability of the display screen while maintaining the consistency of color cognition, thereby improving the user experience of the display screen.
[0039] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0041] Figure 1 is a flow chart of a display method according to an exemplary embodiment;
[0042] Figure 2 is a flow chart of a display method according to an exemplary embodiment;
[0043] Figure 3 is a flow chart of a display method according to an exemplary embodiment;
[0044] Figure 4 is a block diagram of a display device according to an exemplary embodiment;
[0045] Figure 5 It is a block diagram of a terminal for processing executable codes according to an exemplary embodiment. DETAILED DESCRIPTION
[0046] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0047] In some embodiments, in the HSL color space, yellow, cyan, red, and blue with a brightness value (Ligntness) of 50 are sampled respectively. In the human eye perception, yellow will give people a very bright or even a bit dazzling feeling, while blue will give people a feeling of lower brightness. These colors are grayscaled, and the grayscale image can intuitively reflect that the perceived brightness of these colors decreases in the order of yellow, cyan, red, and blue. Therefore, the brightness value in the HSL color space is inconsistent with the perceived brightness value of the human eye.
[0048] In an exemplary embodiment of the present disclosure, in order to overcome the problems existing in the related art, a display method is provided, including: determining first color data of a first image in a first color space, the first color space represents a perceptual color space, the first color data includes a first parameter, and the first parameter represents the brightness of the color; based on the first parameter, color correction is performed on the first image to obtain a second image, and the hue of the first image and the second image is the same; and the second image is displayed. The display method performs color correction on the first image through the first parameter in the first color data, which can increase the readability of the display screen while maintaining the consistency of color cognition, and solves the problem of inconsistency between the color brightness value and the brightness value perceived by the human eye, and can improve the user experience of the display screen.
[0049] In an exemplary embodiment of the present disclosure, a display method is provided. Figure 1 is a flow chart of a display method according to an exemplary embodiment. Figure 1 As shown, the following steps are included:
[0050] Step S101, determining first color data of a first image in a first color space, where the first color space represents a perceptual color space, and the first color data includes a first parameter, where the first parameter represents the brightness of the color;
[0051] Step S102, based on the first parameter, color correction is performed on the first image to obtain a second image, and the hue of the first image and the second image is the same;
[0052] Step S103: display the second image.
[0053] The display method in the disclosed embodiment is applied to electronic devices, including electronic devices with display screens such as smart phones, tablets, personal computers, smart home devices, smart wearable devices, and smart car devices, or can also be directly applied to the display screen. The display method in the disclosed embodiment can be applied in any lighting environment, and can also be applied in special lighting environments such as strong lighting environments or weak lighting environments. When applied in special lighting environments, the electronic device detects the ambient light value, and when the ambient light value meets the special lighting environment conditions, the display method in the present embodiment is turned on. The display method in the present embodiment can be used as a default display method or as an optional display method. For example, in the display-related system settings, when the user chooses to turn on the display optimization function, the display method in the present embodiment is turned on.
[0054] In step S101, the first image represents the image to be displayed in the display screen, and the first color space represents the perceived color space, that is, the color space that conforms to the human eye's perception of color, and each color component therein is a human eye perception value. The first color space includes a first parameter, which is a color component in the first color space. The first parameter represents the brightness of the color, that is, the color perception brightness that conforms to the human eye's perception of color brightness. For example, the first color space is an HCT (Hue, Chroma, Tone) color space, including color components: hue Hue, saturation Chroma, brightness Tone, wherein hue is the perceived hue, saturation is the perceived saturation, and brightness is the perceived brightness, then the first parameter is brightness Tone. The first color data represents the values of each color component of each pixel in the first image in the first color space, for example, the H value, C value, and T value of each pixel in the HCT color space are recorded as the first color data.
[0055] In step S102, the first parameter represents the color brightness perceived by the human eye, and the first image is color corrected according to the brightness perceived by the human eye to obtain a corrected first image, which is the second image. The correction method for color correction of the first image based on the first parameter is determined according to the lighting environment. For example, in a strong lighting environment, in order to see the content of the first image clearly, the first parameter of the first image needs to be increased, and in a weak lighting environment, in order to avoid glare, the first parameter of the first image needs to be reduced. In an ordinary lighting environment, the overexposure phenomenon can be eliminated by adjusting the first parameter.
[0056] Hue indicates the appearance of color. The characteristics of hue are determined by the spectral composition of the light source and the perception of the human eye caused by the ratio of radiation of various wavelengths reflected by the surface of the colored object. Hue is used to distinguish different colors. For example, different colors such as pink, scarlet, yellow, and blue are distinguished by hue. Therefore, in order to ensure that the color perception of the image is the same before and after color correction, the hue value is not adjusted during the color correction process, that is, the hue of the first image and the second image is the same. For example, if a pixel in the first image is pink, then the pixel in the second image is still pink.
[0057] In step S103, the second image is displayed on the display screen, which can increase the readability of the content on the display screen.
[0058] In an exemplary embodiment of the present disclosure, by acquiring first color data of a first image in a first color space, the perceived color data of the first image is obtained, and color correction is performed on the first image through a first parameter in the first color data to obtain a second image. The display effect of the first image can be adjusted to adapt to the current ambient lighting, thereby increasing the readability of the display screen. In addition, the hue of the first image and the second image is the same, thereby ensuring that the color perception of the first image and the color perception of the second image remain consistent, and solving the problem of inconsistency between the color brightness value and the brightness value perceived by the human eye, thereby bringing users a better sunlight screen usage experience and improving users' usage experience of the display screen.
[0059] In an exemplary embodiment of the present disclosure, a display method is provided. Figure 2 is a flow chart of a display method according to an exemplary embodiment. Figure 2 As shown, the following steps are included:
[0060] Step S201, determining first color data of a first image in a first color space, where the first color space represents a perceptual color space, and the first color data includes a first parameter, where the first parameter represents the brightness of the color;
[0061] Step S202, obtaining an initial value of a first parameter and distribution data of the first parameter in a first image;
[0062] Step S203, determining a correction value of the first parameter based on the distribution data of the first parameter, and the initial value of the first parameter and a first mapping relationship, wherein the first mapping relationship represents a mapping relationship between the initial value of the first parameter and the correction value of the first parameter;
[0063] Step S204, performing color correction on the first image based on the correction value of the first parameter to obtain a second image;
[0064] Step S205: display the second image.
[0065] The specific implementation of step S201 and step S205 refers to step S101 and step S103, which will not be repeated here.
[0066] In step S202, the value of the first parameter of each pixel in the first image is obtained, and the initial value of the first parameter represents the value of the first parameter before the color correction is performed on the first image. The distribution data of the first parameter represents the distribution of the value of the first parameter in the first image, and the distribution data of the first parameter can be represented by a histogram, in which the horizontal axis is the initial value of the first parameter and the vertical axis is the number of pixels corresponding to the initial value of the first parameter. For example, in the first image, the T value of each pixel in the HCT color space is obtained, the T values of all pixels are counted, and the distribution of the T value is represented by a histogram. In the T value histogram, the horizontal axis is the T value and the vertical axis is the number of pixels corresponding to the T value.
[0067] In step S203, the distribution data of the first parameter can reflect the distribution of color brightness of the first image. In order to ensure the color consistency between the first image and the second image before and after color correction, the distribution of the corrected first parameter in the second image needs to be consistent with the distribution of the first parameter in the first image.
[0068] The first mapping relationship represents the mapping relationship between the initial value of the first parameter and the correction value of the first parameter. The first mapping relationship can be a mapping relationship table or a functional relationship. The first mapping relationship is obtained from experimental data. For example, in a strong light environment, the initial value of the first parameter is 40, and the displayed content cannot be seen. When it is adjusted to above 90, that is, when the correction value of the first parameter is greater than 90, the displayed content can be seen. When the initial value of the first parameter is 40, the corresponding correction value of the first parameter is above 90. Thus, a set of mapping relationships is obtained. The correction values corresponding to different initial values of the first parameter are obtained in turn, and the first mapping relationship can be obtained. It should be noted that the first mapping relationships of different display screens may be different, and the first mapping relationship corresponding to the display screen needs to be determined according to the characteristics of the display screen.
[0069] The initial value of the first parameter of each pixel in the first image is obtained, and the correction value of the first parameter of each pixel is matched through the first mapping relationship, and then the correction value of the first parameter of each pixel is adjusted according to the distribution of the initial value of the first parameter in the first image, so that the distribution of the correction value of the first parameter is the same as the distribution of the initial value of the first parameter. For example, in the first image, the initial values of the first parameters of pixel 1, pixel 2, and pixel 3 are 30, 40, and 50 respectively. In a strong light environment, they all need to be adjusted to above 90, that is, the correction values of the first parameters of the three pixels are all greater than 90. At this time, the correction value of the first parameter of each pixel is determined according to the distribution of the initial values of the first parameters of the three pixels. That is, since the initial value of the first parameter increases successively, the correction value of the first parameter also needs to increase successively, and the correction values of the first parameter are 90, 100, and 110 respectively.
[0070] In step S204, the initial value of the first parameter of each pixel in the first image is replaced by the corrected value of the first parameter corresponding to each pixel, thereby completing the color correction of the first image and obtaining the second image.
[0071] In this embodiment, while enhancing the readability of the display screen, it is possible to ensure that the distribution of the first parameter in the first image and the second image is the same before and after color correction, so as to ensure color consistency between the first image and the second image.
[0072] In an exemplary embodiment of the present disclosure, a display method is provided. Figure 3 is a flow chart of a display method according to an exemplary embodiment. Figure 3 As shown, the following steps are included:
[0073] Step S301, obtaining second color data of a first image in a second color space, where the second color space represents a color space related to a display device;
[0074] Step S302, converting the second color data into first color data in a first color space, the first color space represents a perceptual color space, the first color data includes a first parameter, and the first parameter represents the brightness of the color;
[0075] Step S303, obtaining an initial value of a first parameter and distribution data of the first parameter in the first image;
[0076] Step S304, determining a correction value of the first parameter based on the distribution data of the first parameter, and the initial value of the first parameter and a first mapping relationship, wherein the first mapping relationship represents a mapping relationship between the initial value of the first parameter and the correction value of the first parameter;
[0077] Step S305, obtaining an initial value of the second parameter in the first image;
[0078] Step S306, determining a corrected value of the second parameter based on the initial value of the first parameter, the initial value of the second parameter, the corrected value of the first parameter, and the first relationship; wherein the first relationship represents a relationship between the first value and the second value, the first value is a difference between the corrected value of the first parameter and the initial value of the first parameter, and the second value is a difference between the corrected value of the second parameter and the initial value of the second parameter;
[0079] Step S307, based on the correction value of the first parameter and the correction value of the second parameter, color correction is performed on the first parameter and the second parameter of the first image to obtain first corrected color data of the second image in the first color space;
[0080] Step S308, converting the first corrected color data of the second image in the first color space into second corrected color data in the second color space;
[0081] Step S309: displaying a second image based on the second corrected color data.
[0082] The specific implementation of step S303-step S304 refers to step S202-step S203, which will not be repeated here.
[0083] In step S301, the second color space represents a color space related to the display device, that is, in the second color space, different display devices may display different colors, for example, the second color space is an RGB color space. The second color data represents the value of each color component of each pixel in the first image in the second color space, for example, the R value, G value, and B value of each pixel in the RGB color space are recorded as the second color data.
[0084] In step S302, the second color data is converted into the first color data in the first color space, that is, the second color space is converted into the first color space. The existing color space conversion method can be used, for example, color space conversion is performed based on a color space conversion matrix. When the second color space is an RGB color space and the first color space is an HCT color space, the RGB color space is converted into the HCT color space by the following formula:
[0085]
[0086] Wherein, X represents the conversion matrix between the second color space and the first color space.
[0087] In some possible implementations, the second color data is converted into third color data in a third color space, where the third color space represents a color space that is independent of a display device; and the third color data is converted into the first color data.
[0088] The third color space represents a color space that is independent of the display device, that is, under the third color space, there will be no difference in the colors displayed by different display devices, for example, the third color space is an XYZ color space. The second color data is converted into the third color data, and then the third color data is converted into the first color data, that is, the second color space is converted into the third color space, and then the third color space is converted into the first color space, and the existing color space conversion method can be used. For example, based on the color space conversion matrix, when the second color space is the RGB color space, the third color space is the XYZ color space, and the first color space is the HCT color space, the RGB color space is converted into the XYZ color space by the following formula:
[0089]
[0090] Among them, X 1 Represents the conversion matrix between the second color space and the third color space.
[0091] The XYZ color space is then converted to the HCT color space using the following formula:
[0092]
[0093] Among them, X 2 Represents a conversion matrix between the third color space and the first color space.
[0094] Since the third color data is device-independent color data, the second color data is first converted into the third color data, and then the third color data is converted into the first color data, so that the accuracy of the first color data can be ensured.
[0095] In step S305, the first color data also includes a second parameter, which is another color component in the first color space. The second parameter represents the saturation of the color, that is, the color perception saturation that conforms to the law of color saturation perception of the human eye. For example, if the first color space is the HCT color space, the second parameter is the saturation Chroma. The initial value of the second parameter represents the value of the second parameter of each pixel in the first image before the second parameter is adjusted.
[0096] In step S306, taking the first color space as the HCT color space as an example, the initial value of the first parameter is recorded as T input , the correction value of the first parameter is recorded as T output , the initial value of the second parameter is recorded as C input , the correction value of the second parameter is recorded as C output , then the first value ΔT is expressed as: ΔT = T output -T input , the second value ΔC is expressed as: ΔC = C output -C input The first relationship represents the relationship between the first value ΔT and the second value ΔC. Therefore, after obtaining the initial value of the first parameter, the correction value of the first parameter, and the initial value of the second parameter, substituting them into the first relationship can obtain the correction value of the second parameter.
[0097] In one example, the first relationship is expressed as:
[0098] ΔE=(ΔT 2 +ΔC 2 / (K_s×C-1)) 0.5
[0099] Wherein, ΔE represents the perceived color difference between the second image and the first image, which is the set value, ΔT represents the first value, ΔC represents the second value, K_s represents a constant, which is usually 1, and C_1 represents the initial value C of the second parameter. input The correction value C of the second parameter output If the first image and the second image satisfy the first relationship, that is, the images before and after color correction satisfy the first relationship, it means that the color saturation difference and the color perceived brightness difference of the images before and after color correction are within the preset range, that is, the color perception of the images before and after color correction is consistent.
[0100] In step S307, the initial value of the first parameter of each pixel in the first image is replaced by the corrected value of the first parameter corresponding to each pixel, and the initial value of the second parameter of each pixel in the first image is replaced by the corrected value of the second parameter corresponding to each pixel, thereby completing the color correction of the first image and obtaining the first corrected color data of the second image in the first color space. The first corrected color data includes the corrected value of the first parameter, the corrected value of the second parameter and the hue, and when the first color space is the HCT color space, the first corrected color data includes the corrected C value and the corrected T value, and the uncorrected H value.
[0101] Since the color gamut range of the display screen has limited coverage of the color space, the color gamut range of some displays cannot cover all colors. When the color brightness increases, the display screen may be distorted, causing some colors to be displayed as darker colors, making the colors displayed on the display screen look dimmer and unsaturated. Therefore, when performing color correction on the first image, adjusting the perceived brightness and perceived saturation of the color at the same time can avoid unrealistic color display caused by a decrease in color saturation when the color brightness is too high, further optimize the display effect, and enhance the user experience of the display screen.
[0102] In step S308, the first corrected color data of the second image in the first color space is converted into the second corrected color data in the second color space, that is, the first color space is converted into the second color space, and the inverse conversion method of converting the second color space into the first color space is adopted. For example, when the second color space is the RGB color space and the first color space is the HCT color space, the RGB color space is converted into the HCT color space by the following formula:
[0103]
[0104] Among them, X -1 Represents the inverse matrix of the conversion matrix between the second color space and the first color space.
[0105] In some possible implementations, the first corrected color data is converted into third corrected color data in a third color space; and the third corrected color data is converted into second corrected color data.
[0106] The inverse conversion method is also used. For example, when the second color space is an RGB color space, the third color space is an XYZ color space, and the first color space is an HCT color space, the HCT color space is converted into the XYZ color space by the following formula:
[0107]
[0108] Among them, X 2 -1 Represents the inverse matrix of the conversion matrix between the third color space and the first color space.
[0109] Then convert the XYZ color space to RGB color space using the following formula:
[0110]
[0111] Among them, X 1 -1 Represents the inverse matrix of the conversion matrix between the second color space and the third color space.
[0112] The method of converting the first corrected color data of the second image in the first color space into the second corrected color data in the second color space and the method of converting the second color data of the first image in the second color space into the first color data in the first color space are inverse methods.
[0113] In step S309, the second image is displayed based on the second corrected color data, that is, the image after color correction is displayed.
[0114] In an exemplary embodiment of the present disclosure, a display device is provided. Figure 4 is a block diagram of a display device according to an exemplary embodiment. Figure 4 As shown, the display device includes:
[0115] A determination module 401 is configured to determine first color data of a first image in a first color space, where the first color space represents a perceptual color space, and the first color data includes a first parameter, where the first parameter represents a degree of brightness of the color;
[0116] The correction module 402 is configured to perform color correction on the first image based on the first parameter to obtain a second image, wherein the first image and the second image have the same hue;
[0117] The display module 403 is configured to display the second image.
[0118] In an exemplary embodiment, the correction module 402 is further configured to:
[0119] Acquire an initial value of a first parameter and distribution data of the first parameter in a first image;
[0120] Determining a correction value of the first parameter based on the distribution data of the first parameter, and an initial value of the first parameter and a first mapping relationship, wherein the first mapping relationship represents a mapping relationship between the initial value of the first parameter and the correction value of the first parameter;
[0121] Based on the correction value of the first parameter, color correction is performed on the first image to obtain a second image.
[0122] In an exemplary embodiment, the first color data further includes a second parameter, and the second parameter represents the saturation of the color; the correction module 402 is further configured to:
[0123] Obtaining an initial value of a second parameter in the first image;
[0124] Determining a corrected value of the second parameter based on an initial value of the first parameter, an initial value of the second parameter, a corrected value of the first parameter, and a first relationship; wherein the first relationship represents a relationship between the first value and the second value, the first value is a difference between the corrected value of the first parameter and the initial value of the first parameter, and the second value is a difference between the corrected value of the second parameter and the initial value of the second parameter;
[0125] Based on the correction value of the first parameter and the correction value of the second parameter, color correction is performed on the first parameter and the second parameter of the first image to obtain first corrected color data of the second image in the first color space.
[0126] In an exemplary embodiment, the display module 403 is further configured to:
[0127] Converting first corrected color data of the second image in the first color space into second corrected color data in the second color space;
[0128] Based on the second corrected color data, a second image is displayed.
[0129] In an exemplary embodiment, the display module 403 is further configured to:
[0130] Converting the first corrected color data into third corrected color data in a third color space;
[0131] The third corrected color data is converted into second corrected color data.
[0132] In an exemplary embodiment, the determination module 401 is further configured to:
[0133] Acquire second color data of the first image in a second color space, where the second color space represents a color space related to a display device;
[0134] The second color data is converted into the first color data.
[0135] In an exemplary embodiment, the determination module 401 is further configured to:
[0136] Convert the second color data into third color data in a third color space, where the third color space represents a color space that is independent of a display device;
[0137] The third color data is converted into the first color data.
[0138] In an exemplary embodiment, the first color space includes an HCT color space, the second color space includes an RGB color space, and the third color space includes an XYZ color space.
[0139] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0140] Figure 5 is a block diagram of an electronic device 500 according to an exemplary embodiment.
[0141] Reference Figure 5 , the electronic device 500 may include one or more of the following components: a processing component 502 , a memory 504 , a power component 506 , a multimedia component 508 , an audio component 510 , an input / output (I / O) interface 512 , a sensor component 514 , and a communication component 516 .
[0142] The processing component 502 generally controls the overall operation of the electronic device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.
[0143] The memory 504 is configured to store various types of data to support operations on the electronic device 500. Examples of such data include instructions for any application or method operating on the electronic device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 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 memory, flash memory, magnetic disk or optical disk.
[0144] The power supply component 506 provides power to the various components of the electronic device 500. The power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 500.
[0145] The multimedia component 508 includes a screen that provides an output interface between the electronic device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the electronic device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0146] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the electronic device 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.
[0147] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0148] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the electronic device 500. For example, the sensor assembly 514 can detect the open / closed state of the electronic device 500, the relative positioning of components, such as the display and keypad of the electronic device 500, and the sensor assembly 514 can also detect the position change of the electronic device 500 or a component of the electronic device 500, the presence or absence of user contact with the electronic device 500, the orientation or acceleration / deceleration of the electronic device 500, and the temperature change of the electronic device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0149] The communication component 516 is configured to facilitate wired or wireless communication between the electronic device 500 and other devices. The electronic device 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 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 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0150] In an exemplary embodiment, the electronic device 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0151] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, and the instructions can be executed by a processor 520 of an electronic device 500 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0152] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute a display method, the method including any of the above methods.
[0153] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0154] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A display method, It is characterized in that The method comprises: Determine first color data of the first image in a first color space, the first color space represents a perceptual color space, the first color data includes a first parameter, and the first parameter represents a degree of brightness of the color; Based on the first parameter, color correction is performed on the first image to obtain a second image, wherein the first image and the second image have the same hue; The second image is displayed.
2. The display method according to claim 1, It is characterized in that The step of performing color correction on the first image based on the first parameter to obtain a second image includes: Acquire an initial value of the first parameter and distribution data of the first parameter in the first image; Determining a correction value of the first parameter based on the distribution data of the first parameter, and an initial value of the first parameter and a first mapping relationship, wherein the first mapping relationship represents a mapping relationship between the initial value of the first parameter and the correction value of the first parameter; Based on the correction value of the first parameter, color correction is performed on the first image to obtain the second image.
3. The display method according to claim 2, It is characterized in that The first color data also includes a second parameter, and the second parameter represents the saturation of the color; and the color correction of the first image based on the correction value of the first parameter to obtain the second image includes: Acquire an initial value of the second parameter in the first image; Determining a corrected value of the second parameter based on an initial value of the first parameter, an initial value of the second parameter, a corrected value of the first parameter, and a first relationship; wherein the first relationship represents a relationship between a first value and a second value, the first value is a difference between the corrected value of the first parameter and the initial value of the first parameter, and the second value is a difference between the corrected value of the second parameter and the initial value of the second parameter; Based on the correction value of the first parameter and the correction value of the second parameter, color correction is performed on the first parameter and the second parameter of the first image to obtain first corrected color data of the second image in the first color space.
4. The display method according to claim 3, It is characterized in that The displaying the second image comprises: Converting first corrected color data of the second image in the first color space into second corrected color data in a second color space; Based on the second corrected color data, the second image is displayed.
5. The display method according to claim 4, It is characterized in that The converting the first corrected color data of the second image in the first color space into second corrected color data in the second color space comprises: Converting the first corrected color data into third corrected color data in a third color space; The third corrected color data is converted into the second corrected color data.
6. The display method according to claim 1, It is characterized in that The determining first color data of the first image in the first color space includes: Acquire second color data of the first image in a second color space, where the second color space represents a color space related to a display device; The second color data is converted into the first color data.
7. The display method according to claim 6, It is characterized in that The converting the second color data into the first color data comprises: Convert the second color data into third color data in a third color space, where the third color space represents a color space that is independent of a display device; The third color data is converted into the first color data.
8. The display method according to claim 5 or 7, It is characterized in that The first color space includes an HCT color space, the second color space includes an RGB color space, and the third color space includes an XYZ color space.
9. A display device, It is characterized in that The device comprises: A determination module is configured to determine first color data of the first image in a first color space, where the first color space represents a perceptual color space, and the first color data includes a first parameter, where the first parameter represents a degree of brightness of the color; a correction module, configured to perform color correction on the first image based on the first parameter to obtain a second image, wherein the first image and the second image have the same hue; The display module is configured to display the second image.
10. An electronic device, It is characterized in that include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the method as claimed in any one of claims 1 to 8.
11. A non-transitory computer-readable storage medium, It is characterized in that When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method as claimed in any one of claims 1 to 8.
Citation Information
Patent Citations
Display apparatus
CN107872662A
Image display method, and mobile terminal
CN108184037A
Contrast enhancement method and device
CN111179197A
Display screen correction method, device and system and computer readable storage medium
CN112669758A
Image processing method and device, electronic equipment and storage medium
CN116167950A