CN116820367A - Image display method, device, electronic equipment and storage medium - Google Patents

Image display method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116820367A
CN116820367A CN202210283936.4A CN202210283936A CN116820367A CN 116820367 A CN116820367 A CN 116820367A CN 202210283936 A CN202210283936 A CN 202210283936A CN 116820367 A CN116820367 A CN 116820367A
Authority
CN
China
Prior art keywords
illumination intensity
lookup table
dimensional lookup
target
color
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210283936.4A
Other languages
Chinese (zh)
Inventor
李阳运
滑嘉晨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202210283936.4A priority Critical patent/CN116820367A/en
Publication of CN116820367A publication Critical patent/CN116820367A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9017Indexing; Data structures therefor; Storage structures using directory or table look-up

Abstract

The present disclosure relates to an image display method, an apparatus, an electronic device, and a storage medium, wherein the image display method includes: acquiring illumination intensity of ambient light; determining a three-dimensional lookup table corresponding to the illumination intensity; fitting the three-dimensional lookup table with the target illumination intensity to obtain a target three-dimensional lookup table; and displaying the image based on the target three-dimensional lookup table. The method and the device can realize the algorithm for keeping the consistency of the color rendering of the screen under different environmental lights, ensure that the subjective display effect of the mobile phone display is consistent when a user uses the mobile phone, and avoid the conditions of over-light screen display color or over-bright screen display in darkroom under sunlight and the like.

Description

Image display method, device, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of image processing, and in particular relates to an image display method, an image display device, electronic equipment and a storage medium.
Background
With the continuous development of technology, more and more intelligent devices can be used by users, and most of the intelligent devices have display functions, which results in more and more time for users to watch the display screen of the intelligent device, so it is important to ensure a better display effect of the display screen.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides an image display method, apparatus, electronic device, and storage medium.
According to a first aspect of an embodiment of the present disclosure, there is provided an image display method including:
acquiring illumination intensity of ambient light;
determining a three-dimensional lookup table corresponding to the illumination intensity;
fitting the three-dimensional lookup table with the target illumination intensity to obtain a target three-dimensional lookup table;
and displaying the image based on the target three-dimensional lookup table.
In some embodiments, the determining the three-dimensional lookup table corresponding to the illumination intensity includes:
inputting the illumination intensity to a pre-established mapping model, and acquiring a three-dimensional lookup table output by the mapping model, wherein the mapping model is established based on a plurality of illumination intensity samples and the three-dimensional lookup table measured under the plurality of illumination intensity samples.
In some embodiments, the method further comprises:
the method further comprises the steps of:
respectively obtaining color coordinates corresponding to color nodes in a three-dimensional lookup table measured under a plurality of illumination intensity samples, and obtaining a three-dimensional lookup table corresponding to each illumination intensity sample;
and establishing the mapping model based on the plurality of illumination intensity samples and a three-dimensional lookup table corresponding to each illumination intensity sample.
In some embodiments, the fitting the three-dimensional lookup table to the target illumination intensity to obtain a target three-dimensional lookup table includes:
converting color coordinates corresponding to color nodes in the three-dimensional lookup table into an HSV color space to obtain first HSV information;
determining second HSV information corresponding to the target illumination intensity according to the illumination intensity, the target illumination intensity and the first HSV information;
the target three-dimensional look-up table is determined based on the second HSV information.
In some embodiments, the first HSV information includes a first hue, a first saturation, and a first brightness, and determining, according to the illumination intensity, the target illumination intensity, and the first HSV information, second HSV information corresponding to the target illumination intensity includes:
determining the first hue as a second hue;
determining the product of the first saturation and a fitting proportion as second saturation, wherein the fitting proportion is the ratio of the illumination intensity to the target illumination intensity;
determining a product of the first brightness and the fitting ratio as a second brightness;
the second HSV information is derived based on the second hue, the second saturation, and the second brightness.
In some embodiments, the converting the color coordinates corresponding to the color nodes in the three-dimensional lookup table into HSV color space includes:
converting the color coordinates corresponding to the color nodes in the three-dimensional lookup table into an RGB color space, and then converting the RGB color space into the HSV color space;
the determining the target three-dimensional look-up table based on the second HSV information includes:
and converting the second HSV information into an RGB color space, and then converting the RGB color space into color coordinates corresponding to color nodes in a three-dimensional lookup table to obtain the target three-dimensional lookup table.
In some embodiments, the displaying the image based on the target three-dimensional lookup table includes:
acquiring color information of the current display content;
adjusting the color information of the display content through the target three-dimensional lookup table;
and displaying the regulated display content.
According to a second aspect of the embodiments of the present disclosure, there is provided an image display apparatus including:
an illumination intensity acquisition module configured to acquire illumination intensity of ambient light;
the three-dimensional lookup table determining module is configured to determine a three-dimensional lookup table corresponding to the illumination intensity;
the fitting module is configured to fit the three-dimensional lookup table with the target illumination intensity to obtain a target three-dimensional lookup table;
and the display module is configured to display images based on the target three-dimensional lookup table.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring illumination intensity of ambient light;
determining a three-dimensional lookup table corresponding to the illumination intensity;
fitting the three-dimensional lookup table with the target illumination intensity to obtain a target three-dimensional lookup table;
and displaying the image based on the target three-dimensional lookup table.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the image method provided by the first aspect of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: acquiring illumination intensity of ambient light; determining a three-dimensional lookup table corresponding to the illumination intensity; fitting the three-dimensional lookup table with the target illumination intensity to obtain a target three-dimensional lookup table; and then displaying the image based on the target three-dimensional lookup table. Therefore, the three-dimensional lookup table of the display equipment can be dynamically adjusted according to different illumination intensities, the three-dimensional lookup table of the display equipment under different illumination intensities is fitted with the target illumination intensity, the target three-dimensional lookup table corresponding to the target illumination intensity is obtained, a user can feel a consistent display effect under the environment light with different illumination intensities, the conditions that the display color of the screen of the display equipment is too light or the screen of a darkroom is too bright under sunlight are avoided, and better use experience of the user is ensured.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating an image display method according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating an image display method according to another exemplary embodiment.
Fig. 3 is a process diagram according to the operation of the mapping model shown in the embodiment of fig. 2.
Fig. 4 is a block diagram of an image display apparatus according to an exemplary embodiment.
Fig. 5 is a block diagram of an electronic device, according to an example embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
It should be noted that, all actions of acquiring signals, information or data in the present application are performed under the condition of conforming to the corresponding data protection rule policy of the country of the location and obtaining the authorization given by the owner of the corresponding device.
As the frequency of using mobile phones increases, the probability of using mobile phones in different environments increases, for example, users moving from indoor to outdoor in the process of using mobile phones.
However, the subjective feeling of the human eyes on the same content displayed on the mobile phone is quite different under different environmental illumination, the human eyes can subjectively feel brighter and brighter color under the darkroom when viewing the same picture in the sunlight and in the darkroom, and the visual effect under the sunlight is opposite, so that the color of the picture can be perceived to be dull. Therefore, the pictures seen by the user in different environments are inconsistent in feeling, and the user experience is reduced.
In view of the above problems, embodiments of the present disclosure provide an image display method, an apparatus, an electronic device, and a storage medium, which can dynamically adjust color information of display content of a display device according to illumination intensity, thereby ensuring that a user experiences consistent subjective display effect on the display content of the display device when using the display device, avoiding situations of excessively light screen display color or excessively bright screen display in darkroom under sunlight, and further improving user experience.
Fig. 1 is a flowchart illustrating an image display method according to an exemplary embodiment, which may be used in a display device, as shown in fig. 1, and may include the steps of:
in step S11, the illumination intensity of the ambient light is acquired.
In some embodiments, a light sensor for detecting illumination intensity is configured on the display device, and the display device can detect the illumination intensity of the ambient light in the current environment through the light sensor, so as to obtain the illumination intensity of the ambient light.
Alternatively, the display device may include, but is not limited to: a mobile phone, a tablet device, a personal computer, an intelligent wearable device and other devices with display functions.
It will be appreciated that the ambient light in this embodiment may be considered as the ambient light of the environment in which the display device is located, for example, when the user is using the display device indoors, the ambient light is the ambient light detected in the indoor environment,
in step S12, a three-dimensional lookup table corresponding to the illumination intensity is determined.
In this embodiment, the LUT can play a role of color space conversion for the display, while the three-dimensional lookup Table (3D LUT) is composed of 3 one-dimensional lookup tables (1 DLUT), and the three input RGB channel color values are mapped according to the three lookup tables of the 3D LUT, so that the converted colors can be obtained, and color adjustment for the imaging result can be realized.
In some embodiments, the display device may determine a three-dimensional lookup table corresponding to the illumination intensity from a preset plurality of three-dimensional lookup tables. For example, a mapping relationship between a plurality of illumination intensities and a plurality of three-dimensional lookup tables may be pre-established, and when the display device determines the illumination intensity of the current ambient light, a corresponding target three-dimensional lookup table may be found from the plurality of illumination intensities according to the illumination intensity and the mapping relationship. As an example, the mapping relationship of the plurality of illumination intensities and the plurality of three-dimensional lookup tables may be as shown in table 1:
TABLE 1
Intensity of illumination Three-dimensional lookup table
Intensity of illumination a Three-dimensional lookup table 1
Intensity of illumination b Three-dimensional lookup table 2
Intensity of illumination c Three-dimensional lookup table 3
It can be seen that a three-dimensional look-up table corresponding to the illumination intensity of the current ambient light can be found from table 1. For example, the illumination intensity is the illumination intensity b, the three-dimensional lookup table 2 may be determined as a three-dimensional lookup table corresponding to the illumination intensity b.
Alternatively, the light intensity corresponding to the three-dimensional lookup table in table 1 may have a certain error tolerance, for example, the light intensity a corresponding to the three-dimensional lookup table 1 is 100Lux, and the error tolerance is ±2Lux, and then all 98Lux to 102Lux can be regarded as the light intensity a. Alternatively, the error allowable range may be set according to actual conditions, and is not limited herein.
In step S13, fitting the three-dimensional lookup table with the target illumination intensity to obtain a target three-dimensional lookup table.
In some embodiments, a fitting function may be pre-established, where the fitting function may be capable of fitting the three-dimensional lookup table corresponding to the current illumination intensity with the target illumination intensity to obtain a target three-dimensional lookup table corresponding to the target illumination intensity, so as to ensure that H, S, V of the color in the HSV space of the fitted illumination intensity is consistent with H, S, V of the color in the HSV space of the target illumination intensity.
Among them, HSV color space is a color space created from visual characteristics of colors. H in HSV is Hue, S is Saturation, and V is Value.
In step S14, an image is displayed based on the target three-dimensional lookup table.
In some embodiments, the target three-dimensional lookup table stores a mapping relationship between the corresponding input RGB values and the corresponding output RGB values under the illumination intensity of the current ambient light. The display device may map the color information of the currently displayed image as input RGB values, the input RGB color values (i.e., input RGB values) according to three lookup tables of the 3D LUT, obtain converted colors (i.e., output RGB values), and display the image through the converted colors.
It can be seen that, in the present embodiment, the illumination intensity of the ambient light is obtained; determining a three-dimensional lookup table corresponding to the illumination intensity; fitting the three-dimensional lookup table with the target illumination intensity to obtain a target three-dimensional lookup table; and then displaying the image based on the target three-dimensional lookup table. Therefore, the three-dimensional lookup table of the display equipment can be dynamically adjusted according to different illumination intensities, the three-dimensional lookup table of the display equipment under different illumination intensities is fitted with the target illumination intensity, the target three-dimensional lookup table corresponding to the target illumination intensity is obtained, a user can feel a consistent display effect under the environment light with different illumination intensities, the conditions that the display color of the screen of the display equipment is too light or the screen of a darkroom is too bright under sunlight are avoided, and better use experience of the user is ensured.
Fig. 2 is a flowchart illustrating an image display method, which may be used in a display device, as shown in fig. 2, according to an exemplary embodiment, and may include the steps of:
in step S21, the illumination intensity of the ambient light is acquired.
The specific embodiment of step S21 can refer to step S11, and thus will not be described herein.
In step S22, the illumination intensity is input to a pre-established mapping model, and a three-dimensional lookup table output by the mapping model is obtained, wherein the mapping model is established based on a plurality of illumination intensity samples and the three-dimensional lookup table measured under the plurality of illumination intensity samples.
In some embodiments, the mapping model may be stored locally on the display device or in a cloud server communicatively coupled to the display device, from which the mapping model may be invoked when the display device needs to be used.
In some embodiments, before step S22, the image display method may further include:
respectively obtaining color coordinates corresponding to color nodes in a three-dimensional lookup table measured under a plurality of illumination intensity samples, and obtaining a three-dimensional lookup table corresponding to each illumination intensity sample;
and establishing the mapping model based on the plurality of illumination intensity samples and the three-dimensional lookup table corresponding to each illumination intensity sample.
For example, the ambient light of samples with different illumination intensities, for example, the ambient light with illumination intensities of 100Lux, 200Lux, 300Lux and … 1000Lux, may be set, and XYZ color coordinates corresponding to color nodes in the 3D LUT are measured by an optical instrument under the ambient light with different illumination intensities, so as to obtain the 3D LUT with different illumination intensities. For example, in an environment with an illumination intensity of 500Lux, XYZ color coordinates corresponding to color nodes in the 3D LUT may be measured by an optical instrument and used as the 3D LUT with an illumination intensity of 500Lux. Similarly, the 3D LUT corresponding to other illumination intensity samples such as 100Lux, 200Lux, 300Lux and the like can be obtained.
It is understood that the 3D LUT may be regarded as a cube of XYZ color coordinates corresponding to a plurality of color nodes.
In step S23, the three-dimensional lookup table is fitted to the target illumination intensity, so as to obtain a target three-dimensional lookup table.
In some embodiments, the specific embodiment of step S23 may include:
step S231, converting the color coordinates corresponding to the color nodes in the three-dimensional lookup table into an HSV color space to obtain first HSV information.
In some embodiments, the specific implementation of step S231 may include:
and converting the color coordinates corresponding to the color nodes in the three-dimensional lookup table into an RGB color space, and then converting the RGB color space into the HSV color space.
Among them, the RGB color space is the most commonly used color information expression method, in which colors are quantitatively expressed by using the brightness of the three primary colors of red, green and blue, and the color mixing method is realized by overlapping RGB three-color light. The three colors are different in proportion, and the obtained colors are different. By changing the mixing ratio, various mixing effects can be obtained.
Alternatively, the conversion between the RGB color space and the HSV color space may be performed using a conversion formula in the related art, or may be performed through a color comparison table of RGB and HSV, which is not limited herein.
For example, if the current measured illumination intensity is 300Lux, the color coordinates corresponding to the color nodes in the three-dimensional lookup table corresponding to the illumination intensity of 300Lux may be converted into an HSV color space, so as to obtain the first HSV information.
Step S232, determining second HSV information corresponding to the target illumination intensity according to the illumination intensity, the target illumination intensity and the first HSV information.
As an embodiment, the first HSV information includes a first hue, a first saturation, and a first brightness, and the specific embodiment of step S232 may include:
determining the first tone as a second tone; determining the product of the first saturation and a fitting proportion as second saturation, wherein the fitting proportion is the ratio of the illumination intensity to the target illumination intensity; determining a product of the first brightness and the fitting ratio as a second brightness; the second HSV information is obtained based on the second hue, the second saturation, and the second brightness.
Illustratively, for example, in the first HSV information corresponding to the current illumination intensity, the first hue may be represented by H 0 The first saturation may be represented by S 0 The first brightness may be represented by V 0 And (3) representing. In the second HSV information corresponding to the target illumination intensity, the second hue may be represented by H, the second saturation may be represented by S, and the second brightness may be represented by V. If the target illumination intensity is mLux and the current illumination intensity is LLux, the first HSV information may be converted to the second HSV information by a fitting function as follows:
H=H 0
S=L*S 0 /m;
V=L*V 0 /m。
wherein the fitting ratio is L/m.
As a specific example, taking a target illumination intensity of 500Lux as an example, the first HSV information may be converted to the second HSV information by the following function:
H=H 0
S=L*S 0 /500;
V=L*V 0 /500。
as another specific example, at a target illumination intensity of 500Lux, the currently measured illumination intensity of 300Lux, the first HSV information may be converted to the second HSV information by the following function:
H=H 0
S=300*S 0 /500;
V=300*V 0 /500。
similarly, according to the fitting function, the first HSV information corresponding to different illumination intensities and the target illumination intensity can be fitted to obtain the second HSV information corresponding to the target illumination intensity. In addition, according to the fitting formula, after the color under the current illumination intensity is fitted, H, S, V in the HSV color space is consistent with H, S, V in the HSV color space under the target illumination intensity. Because the HSV color space can reflect the visual perception of the user on the color, the display effect perceived by the user under the current illumination intensity after fitting is consistent with the display effect perceived under the target illumination intensity.
Step S233, determining the target three-dimensional lookup table based on the second HSV information.
In some embodiments, the specific implementation of step S233 may include:
and converting the second HSV information into an RGB color space, and converting the RGB color space into color coordinates corresponding to color nodes in a three-dimensional lookup table to obtain the target three-dimensional lookup table.
In some embodiments, the fitting function may be set in the mapping model, after the mapping model determines the three-dimensional lookup table corresponding to the current illumination intensity, the three-dimensional lookup table corresponding to the current illumination intensity may be fitted with the target illumination intensity by using the fitting function, and after the target three-dimensional lookup table corresponding to the target illumination intensity is obtained, the target three-dimensional lookup table is output.
Illustratively, taking the target illumination intensity of 500Lux as an example, the working process of the mapping model may be as shown in fig. 3:
the display device can display the currently measured lightThe illumination intensity is input into a mapping model, after the mapping model determines a three-dimensional lookup table (such as the three-dimensional lookup table 1) according to the illumination intensity, the three-dimensional lookup table 1 can be converted into an HSV color space from an RGB color space, and then H corresponding to the three-dimensional lookup table 1 is respectively determined through a fitting formula 0 、S 0 、V 0 Fitting with the 500Lux illumination intensity to obtain corresponding H, S, V under the 500Lux illumination intensity, converting HSV information obtained after fitting into an RGB color space, and converting the RGB color space into color coordinates corresponding to color nodes in a three-dimensional lookup table to obtain the target three-dimensional lookup table.
Alternatively, the target illumination intensity may be set according to actual requirements, without limitation, and for example, the target illumination intensity may be set to be generally 500Lux indoor illumination intensity.
In step S24, an image is displayed based on the target three-dimensional lookup table.
In some embodiments, the specific implementation of step S24 may include:
acquiring color information of the current display content; adjusting the color information of the display content through the target three-dimensional lookup table; and displaying the regulated display content.
Wherein the color information may be information in an RGB color space.
For example, the display device may detect the 3D LUT corresponding to the current display mode, detect the illumination intensity of the current ambient light by using the light sensor, input the illumination intensity of the current ambient light to the mapping model, obtain the target 3DLUT corresponding to the illumination intensity of the current ambient light output by the mapping model, and then detect whether the 3D LUT corresponding to the current display mode is consistent with the target 3D LUT, and if so, may directly adjust the color information of the display content by using the 3D LUT corresponding to the current display mode, and display the adjusted display content. If the color information of the display content is inconsistent, the 3D LUT corresponding to the current display mode and the target illumination intensity can be fitted to obtain a target 3D LUT, the color information of the display content is regulated through the target 3D LUT, and finally the regulated display content is displayed.
Therefore, in this embodiment, the corresponding HSV value under the target illumination intensity (e.g., 500 lux) is obtained by fitting the HSV value of the color under each illumination intensity with the target illumination intensity, because the V (brightness) dimension is easily affected by the illumination intensity of the ambient light in the HSV color space. Based on the measured 3D LUT data under each light intensity and the characteristic that the change of the color V in the HSV space is influenced by the light intensity, mapping the current illumination intensity to 500Lux, constructing a mapping model, and guaranteeing consistency of the mapped color H, S and V in the HSV space and the color V under 500Lux, so that consistent display effects of the user on the color of display content under different illumination intensities are guaranteed, for example, the target illumination intensity is 500Lux, if the current illumination intensity is 200Lux, the color display effect corresponding to 200Lux is converted to the display effect corresponding to 500Lux, and if the current illumination intensity is 100Lux, the color display effect corresponding to 100Lux is also converted to the display effect corresponding to 500Lux, thereby achieving consistent display effects and further improving user experience.
Fig. 4 is a block diagram of an image display apparatus according to an exemplary embodiment. Referring to fig. 4, the apparatus 30 includes an illumination intensity acquisition module 31, a three-dimensional look-up table determination module 32, a fitting module 33, and a display module 34. Wherein:
the illumination intensity acquisition module 31 is configured to acquire illumination intensity of the ambient light.
The three-dimensional lookup table determining module 32 is configured to determine a three-dimensional lookup table corresponding to the illumination intensity.
The fitting module 33 is configured to fit the three-dimensional lookup table to the target illumination intensity to obtain a target three-dimensional lookup table.
And a display module 34 configured to display an image based on the target three-dimensional lookup table.
In some embodiments, the three-dimensional look-up table determination module 32 is specifically configured to:
inputting the illumination intensity to a pre-established mapping model, and obtaining a three-dimensional lookup table output by the mapping model, wherein the mapping model is established based on a plurality of illumination intensity samples and the three-dimensional lookup table measured under the plurality of illumination intensity samples.
In some embodiments, the image display apparatus 30 may further include:
the three-dimensional lookup table detection module is configured to respectively obtain color coordinates corresponding to color nodes in the three-dimensional lookup table measured under a plurality of illumination intensity samples, and obtain a three-dimensional lookup table corresponding to each illumination intensity sample.
The model building module is configured to build the mapping model based on the plurality of illumination intensity samples and a three-dimensional lookup table corresponding to each illumination intensity sample.
In some embodiments, fitting module 33 includes:
the first HSV information determining submodule is configured to convert color coordinates corresponding to color nodes in the three-dimensional lookup table into an HSV color space to obtain first HSV information.
The second HSV information determining sub-module is configured to determine second HSV information corresponding to the target illumination intensity according to the illumination intensity, the target illumination intensity and the first HSV information.
A target three-dimensional look-up table determination sub-module configured to determine the target three-dimensional look-up table based on the second HSV information.
In some embodiments, the first HSV information includes a first hue, a first saturation, and a first brightness, and the second HSV information determining submodule is specifically configured to:
the first tone is determined as a second tone.
And determining the product of the first saturation and a fitting proportion as second saturation, wherein the fitting proportion is the ratio of the illumination intensity to the target illumination intensity.
And determining a product of the first brightness and the fitting ratio as a second brightness.
The second HSV information is obtained based on the second hue, the second saturation, and the second brightness.
In some implementations, the first HSV information determination submodule is specifically configured to: and converting the color coordinates corresponding to the color nodes in the three-dimensional lookup table into an RGB color space, and then converting the RGB color space into the HSV color space.
The target three-dimensional lookup table determination submodule is specifically configured to: and converting the second HSV information into an RGB color space, and converting the RGB color space into color coordinates corresponding to color nodes in a three-dimensional lookup table to obtain the target three-dimensional lookup table.
In some implementations, the display module 34 is specifically configured to: acquiring color information of the current display content; adjusting the color information of the display content through the target three-dimensional lookup table; and displaying the regulated display content. The specific manner in which the various modules perform the operations in connection with the apparatus 30 of the above-described embodiments have been described in detail in connection with embodiments of the method and will not be described in detail herein.
The present disclosure also provides a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the image display method provided by the present disclosure.
Fig. 5 is a block diagram of an electronic device 800 for an image display method, according to an example embodiment. For example, electronic device 800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 5, an electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices 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 or optical disk.
The power component 806 provides power to the various components of the electronic device 800. Power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for electronic device 800.
The multimedia component 808 includes a screen between the electronic device 800 and the user that provides an output interface. 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 a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the electronic device 800 is in an operational 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 focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the electronic device 800. For example, the sensor assembly 814 may detect an on/off state of the electronic device 800, a relative positioning of the components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in position of the electronic device 800 or a component of the electronic device 800, the presence or absence of a user's contact with the electronic device 800, an orientation or acceleration/deceleration of the electronic device 800, and a change in temperature of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the electronic device 800 and other devices, either wired or wireless. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. 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.
In an exemplary embodiment, the electronic device 800 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 elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of electronic device 800 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In another exemplary embodiment, a computer program product is also provided, which comprises a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-described image display method when executed by the programmable apparatus.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. An image display method, comprising:
acquiring illumination intensity of ambient light;
determining a three-dimensional lookup table corresponding to the illumination intensity;
fitting the three-dimensional lookup table with the target illumination intensity to obtain a target three-dimensional lookup table;
and displaying the image based on the target three-dimensional lookup table.
2. The method of claim 1, wherein the determining the three-dimensional look-up table for the illumination intensity comprises:
inputting the illumination intensity to a pre-established mapping model, and acquiring a three-dimensional lookup table output by the mapping model, wherein the mapping model is established based on a plurality of illumination intensity samples and the three-dimensional lookup table measured under the plurality of illumination intensity samples.
3. The method according to claim 2, wherein the method further comprises:
respectively obtaining color coordinates corresponding to color nodes in a three-dimensional lookup table measured under a plurality of illumination intensity samples, and obtaining a three-dimensional lookup table corresponding to each illumination intensity sample;
and establishing the mapping model based on the plurality of illumination intensity samples and a three-dimensional lookup table corresponding to each illumination intensity sample.
4. The method of claim 1, wherein fitting the three-dimensional look-up table to the target illumination intensity to obtain a target three-dimensional look-up table comprises:
converting color coordinates corresponding to color nodes in the three-dimensional lookup table into an HSV color space to obtain first HSV information;
determining second HSV information corresponding to the target illumination intensity according to the illumination intensity, the target illumination intensity and the first HSV information;
the target three-dimensional look-up table is determined based on the second HSV information.
5. The method of claim 4, wherein the first HSV information includes a first hue, a first saturation, and a first brightness, wherein the determining the second HSV information corresponding to the target illumination intensity from the illumination intensity, the target illumination intensity, and the first HSV information includes:
determining the first hue as a second hue;
determining the product of the first saturation and a fitting proportion as second saturation, wherein the fitting proportion is the ratio of the illumination intensity to the target illumination intensity;
determining a product of the first brightness and the fitting ratio as a second brightness;
the second HSV information is derived based on the second hue, the second saturation, and the second brightness.
6. The method of claim 4, wherein converting the color coordinates corresponding to the color nodes in the three-dimensional lookup table into an HSV color space comprises:
converting the color coordinates corresponding to the color nodes in the three-dimensional lookup table into an RGB color space, and then converting the RGB color space into the HSV color space;
the determining the target three-dimensional look-up table based on the second HSV information includes:
and converting the second HSV information into an RGB color space, and then converting the RGB color space into color coordinates corresponding to color nodes in a three-dimensional lookup table to obtain the target three-dimensional lookup table.
7. The method according to any one of claims 1 to 6, wherein the displaying of the image based on the target three-dimensional look-up table comprises:
acquiring color information of the current display content;
adjusting the color information of the display content through the target three-dimensional lookup table;
and displaying the regulated display content.
8. An image display device, comprising:
an illumination intensity acquisition module configured to acquire illumination intensity of ambient light;
the three-dimensional lookup table determining module is configured to determine a three-dimensional lookup table corresponding to the illumination intensity;
the fitting module is configured to fit the three-dimensional lookup table with the target illumination intensity to obtain a target three-dimensional lookup table;
and the display module is configured to display images based on the target three-dimensional lookup table.
9. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring illumination intensity of ambient light;
determining a three-dimensional lookup table corresponding to the illumination intensity;
fitting the three-dimensional lookup table with the target illumination intensity to obtain a target three-dimensional lookup table;
and displaying the image based on the target three-dimensional lookup table.
10. A computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the steps of the method of any of claims 1 to 7.
CN202210283936.4A 2022-03-21 2022-03-21 Image display method, device, electronic equipment and storage medium Pending CN116820367A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210283936.4A CN116820367A (en) 2022-03-21 2022-03-21 Image display method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210283936.4A CN116820367A (en) 2022-03-21 2022-03-21 Image display method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116820367A true CN116820367A (en) 2023-09-29

Family

ID=88117234

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210283936.4A Pending CN116820367A (en) 2022-03-21 2022-03-21 Image display method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116820367A (en)

Similar Documents

Publication Publication Date Title
CN107038037B (en) Display mode switching method and device
RU2630167C1 (en) Method and device for switching colour range mode
CN107992182B (en) Method and device for displaying interface image
CN108986053B (en) Screen display method and device
CN111462701A (en) Backlight brightness adjusting method and device
CN111290723A (en) Display background adjusting method, device, terminal and storage medium
CN105677352B (en) Method and device for setting application icon color
CN112331158B (en) Terminal display adjusting method, device, equipment and storage medium
CN107808626B (en) Method and device for adjusting color temperature of display screen and computer readable storage medium
CN111131596B (en) Screen brightness adjusting method and device
CN112905141A (en) Screen display method and device and computer storage medium
US10827156B2 (en) Light filling method and apparatus for photographing environment, and computer-readable storage medium
CN114067733B (en) Display screen correction method, display screen correction device and display chip
WO2021169810A1 (en) Video processing method, and server
CN112184876B (en) Image processing method, image processing device, electronic equipment and storage medium
CN116820367A (en) Image display method, device, electronic equipment and storage medium
CN116453459A (en) Screen display method and device, readable storage medium and electronic equipment
CN116433781A (en) Color matching method, device, electronic equipment and storage medium
WO2023240624A1 (en) Brightness adjustment method, apparatus and storage medium
CN111429854B (en) Method and device for driving display panel to display, display screen and terminal
CN108206012A (en) Gamma correction method and device
CN113254118A (en) Skin color display and device
CN116364006A (en) Display method and device
CN115809105A (en) Display picture adjusting method, display picture adjusting device and storage medium
CN115909989A (en) Screen color temperature control method, device and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination