CN117711300A - Image display method, electronic device, readable storage medium and chip - Google Patents

Image display method, electronic device, readable storage medium and chip Download PDF

Info

Publication number
CN117711300A
CN117711300A CN202310742343.4A CN202310742343A CN117711300A CN 117711300 A CN117711300 A CN 117711300A CN 202310742343 A CN202310742343 A CN 202310742343A CN 117711300 A CN117711300 A CN 117711300A
Authority
CN
China
Prior art keywords
contrast
value
values
electro
candidate
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
CN202310742343.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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310742343.4A priority Critical patent/CN117711300A/en
Publication of CN117711300A publication Critical patent/CN117711300A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The application provides an image display method, electronic equipment, a readable storage medium and a chip, wherein in the method, first illumination values of an environment are acquired through an ambient light sensor, a plurality of first brightness values of a display screen are determined according to a plurality of pixel values of a first image through a first electro-optical corresponding relation corresponding to the first illumination values, N1 pixel values in the plurality of pixel values are determined to be the largest first brightness values in the N first brightness values, the number of N1 pixel values (high gray levels) corresponding to the largest first brightness values which can cause overexposure is smaller than the number of N2 pixel values (high gray levels) corresponding to the largest second brightness values which can cause overexposure, and therefore, when the first image is displayed on the display screen through the plurality of first brightness values, the overexposure degree of the brightness values of the display screen corresponding to the high gray levels in the first image is reduced, and the user experience is improved.

Description

Image display method, electronic device, readable storage medium and chip
Technical Field
The present disclosure relates to the field of image display, and in particular, to an image display method, an electronic device, a readable storage medium, and a chip.
Background
With the popularization and application of various HDR standards associated with high dynamic range imaging (High Dynamic Range, HDR), HDR display has become an important display feature for electronic devices such as cell phones, tablets, displays, and the like.
Most electronic products realize the display of HDR effect through an Electro-optical conversion (Electro-Optical Transfer Function, EOTF) curve, and along with the enhancement of ambient light, the luminance of a display screen is enhanced by corresponding multiple through the EOTF curve so as to enhance the luminance of an image, thus the whole luminance of the image is enhanced, and meanwhile, the luminance of a display area corresponding to high gray scale in the image is overexposed, so that the user cannot realize the same comfort as the user watching the image in a dark environment when watching the image in a bright environment, and the user experience is affected.
Disclosure of Invention
The application provides an image display method, electronic equipment, a readable storage medium and a chip, which can enable a user to realize the same comfort as the image watching in a dark environment when watching the image in a bright environment, and promote user experience.
In a first aspect, a method of image processing is provided, the method comprising obtaining a first illumination value of an environment by an ambient light sensor; determining a plurality of first brightness values of a display screen according to a plurality of pixel values of a first image through a first electro-optical corresponding relation corresponding to the first illumination value, wherein the first electro-optical corresponding relation is used for representing a one-to-one correspondence between N pixel values and N first brightness values under the first illumination value, the plurality of pixel values belong to the N pixel values, the plurality of first brightness values belong to the N first brightness values, N1 pixel values in the N pixel values correspond to the largest first brightness value in the N first brightness values, the number of the N1 pixel values is smaller than the number of the N2 pixel values, and N is an integer larger than 1; displaying the first image on the display screen by the plurality of first brightness values; the N2 pixel values correspond to the largest second luminance value of the N second luminance values represented by the second electro-optical correspondence, where the second electro-optical correspondence is used to represent a one-to-one correspondence between the N pixel values and the N second luminance values under a second luminance value, the second luminance value is smaller than the first luminance value, and the largest second luminance value is smaller than the largest first luminance value.
According to the embodiment of the application, different brightness values of the display screen can be obtained based on the electro-optical corresponding relation under different illumination values. The first electro-optical correspondence is used for representing a one-to-one correspondence between N pixel values and N first brightness values under a first illumination value, N1 pixel values (high gray scale) in the N pixel values correspond to the largest first brightness value in the N first brightness values, and for the first image, a plurality of first brightness values of the display screen can be determined according to a plurality of pixel values of the first image through the first electro-optical correspondence; the second electro-optical correspondence is used for representing a one-to-one correspondence between N pixel values and N second luminance values under a second luminance value, N2 pixel values (high gray scale) in the N pixel values correspond to a largest second luminance value in the N second luminance values, wherein the number of N1 pixel values is smaller than the number of N2 pixel values, and for the first image, a plurality of second luminance values of the display screen can be determined according to a plurality of pixel values of the first image through the second electro-optical correspondence.
When the maximum first luminance value of the determined plurality of first luminance values reaches the maximum first luminance value of the N first luminance values represented by the first electro-optical correspondence relation, or when the maximum second luminance value of the determined plurality of second luminance values reaches the maximum second luminance value of the N second luminance values represented by the second electro-optical correspondence relation, there is a possibility that overexposure occurs due to the fact that the maximum first luminance value or the maximum second luminance value exceeds the exposure luminance range which should be when the first image is captured.
Because the N1 pixel values (high gray levels) in the N pixel values in the first electro-optic correspondence correspond to the largest first luminance value in the N first luminance values, and the N2 pixel values (high gray levels) in the N pixel values in the second electro-optic correspondence correspond to the largest second luminance value in the N second luminance values, the number of the N1 pixel values is smaller than the number of the N2 pixel values, the number of the high gray levels in the plurality of pixel values of the first image determined in the first luminance value is smaller than the number of the high gray levels in the plurality of pixel values of the first image determined in the second luminance value, that is, when the ambient light intensity is raised from the second luminance value to the first luminance value, the number of the high gray levels corresponding to the largest first luminance value exceeding the exposure luminance range in the first luminance value is smaller than the number of the high gray levels corresponding to the second luminance value exceeding the exposure range in the second luminance value, so that the number of the high gray levels corresponding to the high gray levels in the first luminance value can be raised to the first luminance value, and when the first luminance value of the first image includes the high luminance value, the ambient light intensity is raised to the first luminance value, and the ambient light intensity is lowered to the ambient light level when the first luminance value is raised to the first luminance value.
With reference to the first aspect, in certain implementations of the first aspect, the method further includes: obtaining a second contrast set based on a second candidate electro-optic corresponding relation corresponding to the second electro-optic corresponding relation, wherein the second contrast set comprises N-1 second contrasts, each second contrast is the contrast of two adjacent second candidate brightness values in N second candidate brightness values of the second candidate electro-optic corresponding relation, and a curve part of a second electro-optic curve determined by the second electro-optic corresponding relation is a part of the second candidate electro-optic curve determined by the second candidate electro-optic corresponding relation;
obtaining a first contrast set based on the second contrast set, wherein the first contrast set comprises N-1 first contrasts, each first contrast is the contrast of two adjacent first candidate brightness values in N first candidate brightness values of a first candidate electro-optic corresponding relation, the first candidate electro-optic corresponding relation is used for representing the one-to-one correspondence between N pixel values and the N first candidate brightness values under the first illumination value, the curve part of a first electro-optic curve determined through the first electro-optic corresponding relation is a part of a first candidate electro-optic curve determined through the first candidate electro-optic corresponding relation, P first contrasts in the N-1 first contrasts are smaller than P second contrasts in the N-1 second contrasts, the P first contrasts are in one-to-one correspondence with the P second contrasts, two adjacent pixel values corresponding to the i second brightness values in the P second contrasts are used for generating the two adjacent pixel values corresponding to the P first candidate brightness values, the P first contrast values corresponding to the P first pixel values corresponding to the P first brightness values in the P second contrast are used for generating the P first candidate brightness values which are larger than the P first contrast values corresponding to the P first candidate brightness values;
And determining the N first brightness values according to the first contrast set, a first brightness value and a first brightness threshold corresponding to the first illumination value, wherein the first brightness value is the minimum first brightness value in the N first brightness values, and the first brightness threshold is the maximum first brightness value.
The first electro-optic correspondence is determined based on the N first luminance values and the N pixel values.
According to the embodiment of the application, the first contrast set can be obtained based on the second contrast set, each second contrast in the second contrast set is the contrast of two adjacent second candidate brightness values in N second candidate brightness values of the second candidate electro-optic correspondence, the curve part of the second electro-optic curve determined by the second electro-optic correspondence is a part of the second candidate electro-optic curve determined by the second candidate electro-optic correspondence, each first contrast in the first contrast set is the contrast of two adjacent first candidate brightness values in N first candidate brightness values of the first candidate electro-optic correspondence, the curve part of the first electro-optic curve determined by the first candidate electro-optic correspondence is a part of the first candidate electro-optic curve determined by the first candidate electro-optic correspondence, and the P first contrasts in the N-1 first contrasts in the first contrast set are smaller than the P second contrasts in the second electro-optic correspondence, so that the curve part of the first curve is different in trend from the curve part of the second curve;
Further, since the pixel value corresponding to the first candidate luminance value for generating the P first contrasts is larger than the pixel value corresponding to the first candidate luminance value for generating the N-1-P first contrasts, the number of pixel values corresponding to the largest first luminance value among the N first luminance values of the determined first electro-optic correspondence is smaller than the number of pixel values corresponding to the largest second luminance value among the N second luminance values of the second electro-optic correspondence based on the N first luminance values and the N pixel values, so that the number of pixel values corresponding to the largest first luminance value that may be overexposed is smaller than the number of pixel values corresponding to the largest second luminance value that may be overexposed, and the exposure degree may be reduced when the plurality of first luminance values are determined by the determined first electro-optic correspondence.
In some possible implementations, in a case where P is equal to N-1, the obtaining a first contrast set based on the second contrast set includes:
determining, based on a first formula, the ith one of the P first contrasts from the ith one of the P second contrasts in the second contrast set to obtain the first contrast set:
Wherein,representing said i-th first contrast, < >>Represents the ith second contrast, C1 * i+1 Represents the largest value of the two adjacent second candidate luminance values for generating the ith second contrast, C1 * i Representing the first contrast for generating the ith second contrastAnd the second candidate brightness value with the smallest numerical value in the two adjacent second candidate brightness values is an integer which is more than or equal to 1 and less than or equal to P.
According to the embodiment of the application, under the condition that P is equal to N-1, based on a first formula, according to the ith second contrast in the P second contrasts in the second contrast set, the ith first contrast in the P first contrasts is determined, and the determined ith first contrast can be smaller than the ith second contrast due to the first formula, so that the ith first contrast can be accurately determined, and the data of the obtained first contrast set is more accurate.
In some possible implementations, in a case where P is less than N-1, the obtaining a first contrast set based on the second contrast set includes:
determining, based on a second formula, an ith first contrast of the P first contrasts according to the ith second contrast of the P second contrasts in the second contrast set, to obtain the P first contrasts:
Wherein,representing said i-th first contrast, < >>Represents the ith second contrast, C1 * i+1 Represents the second candidate luminance value with the largest value among the two adjacent second candidate luminance values for generating the ith second contrast, C1 * i Representing a second candidate luminance value of which the value is smallest among the two adjacent second candidate luminance values for generating the ith second contrast, i being an integer greater than 1 and less than or equal to P;
and obtaining the first contrast set based on N-1-P second contrasts in the second contrast set and the P first contrasts, wherein the N-1-P second contrasts are second contrasts except the P second contrasts in the second contrast set.
In the embodiment of the application, when P is smaller than N-1, the ith first contrast in the P first contrasts can be determined according to the ith second contrast in the P second contrasts in the second contrast set based on the second formula, and the determined ith first contrast can be smaller than the ith second contrast due to the second formula, so that the ith first contrast can be accurately determined, and the obtained data of the P first contrasts are more accurate;
Moreover, since P is smaller than N-1, P first contrasts among N-1 first contrasts are smaller than P second contrasts among N-1 second contrasts, and thus N-1-P first contrasts among N-1 first contrasts are equal to P second contrasts among N-1 second contrasts, P second contrasts among N-1 second contrasts can be obtained based on N-1-P second contrasts among the second contrast sets, and thus a first contrast set can be accurately obtained based on N-1-P second contrasts and P first contrasts among the second contrast sets.
With reference to the first aspect, in certain implementation manners of the first aspect, the determining the N first luminance values according to the first contrast set, a first luminance value, and a first luminance threshold value corresponding to the first luminance value includes:
determining the N first candidate brightness values according to the first contrast set and the first brightness value, wherein the N first candidate brightness values are brightness values of a first candidate electro-optic corresponding relation;
and determining the N first brightness values according to the N first candidate brightness values and a first brightness threshold corresponding to the first illumination value.
In some possible implementations, the determining the N first candidate luminance values according to the first contrast set and the first luminance value includes:
based on a third formula, obtaining a second first candidate brightness value according to the first brightness value and the first contrast in the first contrast set:
wherein C1 * 2 Representing the second first candidate luminance value, C1 1 Representing the first luminance value,representing the first contrast;
based on a fourth formula, according to the j-th first candidate brightness value and the j-th first contrast in the first contrast set, obtaining j+1th first candidate brightness value, so as to obtain the N first candidate brightness values:
wherein C1 * j+1 Represents the j+1th first candidate luminance value, C1 j Representing the jth first candidate luminance value,and the j-th first contrast ratio is represented, and j is an integer which is more than or equal to 2 and less than or equal to N-1.
According to the embodiment of the application, based on the third formula, the second first candidate brightness value is obtained according to the first brightness value and the first contrast in the first contrast set, and based on the fourth formula, the (j+1) th first candidate brightness value is obtained according to the (j) th second candidate brightness value and the (j) th first contrast in the first contrast set, and because the (j+1) th first candidate brightness value is determined based on the (j) th second candidate brightness value and the (j) th first contrast, N first candidate brightness values can be accurately obtained.
With reference to the first aspect, in certain implementations of the first aspect, the method further includes:
obtaining a third contrast set based on a reference electro-optic correspondence, wherein the reference electro-optic correspondence is used for representing a one-to-one correspondence between N pixel values and N reference brightness values under a reference illumination value, the third contrast set comprises N-1 third contrasts, and each third contrast is the contrast of two adjacent reference brightness values in the N reference brightness values;
based on the third contrast set, obtaining the second contrast set, wherein the P second contrasts in the N-1 second contrasts in the second contrast set are smaller than or equal to the P third contrasts in the N-1 third contrasts, the P third contrasts are in one-to-one correspondence with the P second contrasts, two pixel values corresponding to two adjacent second candidate brightness values for generating the ith second contrast in the P second contrasts are identical to two pixel values corresponding to two adjacent reference brightness values for generating the ith third contrast in the P third contrasts, and the pixel value corresponding to the second candidate brightness value for generating the P second contrasts is larger than the pixel value corresponding to the second candidate brightness value for generating the N-1-P second contrasts;
And determining the N second brightness values according to the second contrast set, a first second brightness value and a second brightness threshold corresponding to the second illumination value, wherein the first second brightness value is the minimum second brightness value in the N second brightness values, and the second brightness threshold is the maximum second brightness value.
The second electro-optic correspondence is determined based on the N second luminance values and the N pixel values.
According to the embodiment of the application, the second contrast set can be obtained based on the third contrast set, each third contrast in the third contrast set is the contrast of two adjacent reference brightness values in N reference brightness values of the reference electro-optic correspondence, each second contrast in the second contrast set is the contrast of two adjacent second candidate brightness values in N second candidate brightness values of the second candidate electro-optic correspondence, the curve part of the second electro-optic curve determined by the second electro-optic correspondence is a part of the second candidate electro-optic curve determined by the second candidate electro-optic correspondence, and P second contrasts in N-1 second contrasts in the second contrast set are smaller than or equal to P third contrasts in N-1 third contrasts, so that the curve trend of the curve part of the second electro-optic curve is the same as or different from that of the reference electro-optic curve determined based on the reference electro-optic correspondence;
Further, according to the second contrast set, the first second luminance value and the second luminance threshold corresponding to the second luminance value, N second luminance values are determined, and based on the N second luminance values and the N pixel values, the second electro-optical correspondence is determined, so that the second electro-optical correspondence identical to or different from the curve trend of the reference electro-optical curve can be accurately constructed.
With reference to the first aspect, in certain implementation manners of the first aspect, the first electro-optical correspondence and the second electro-optical correspondence are preconfigured correspondences.
In a second aspect, an electronic device is provided, which is configured to perform the method provided in the first aspect. In particular, the electronic device may comprise a processing module for performing any one of the possible implementations of the first aspect.
In a third aspect, an electronic device is provided, comprising: one or more processors; a memory; and one or more computer programs. Wherein one or more computer programs are stored in the memory, the one or more computer programs comprising instructions. The instructions, when executed by an electronic device, cause the electronic device to perform the method in any of the possible implementations of the first aspect described above.
In a fourth aspect, there is provided a computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of the first aspect described above.
In a fifth aspect, a chip is provided, including a memory: for storing instructions; further comprising a processor for calling and executing instructions from the memory to cause the communication device on which the chip system is mounted to perform the method according to the first aspect described above.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present application.
FIG. 2 is a set of graphical user interfaces provided by embodiments of the present application.
FIG. 3 is another set of graphical user interfaces provided by embodiments of the present application.
Fig. 4 is a schematic flowchart of an image display method 400 provided in an embodiment of the present application.
Fig. 5 is an exemplary diagram of an electro-optic curve provided by an embodiment of the present application.
Fig. 6 is an exemplary diagram of another electro-optic curve provided by an embodiment of the present application.
Fig. 7 is a schematic flow chart diagram of a method 500 for constructing a second electro-optic correspondence according to an embodiment of the present application.
Fig. 8 is an exemplary diagram of a second electro-optic curve and a second candidate electro-optic curve provided in an embodiment of the present application.
Fig. 9 is an exemplary diagram of N second luminance values provided in an embodiment of the present application.
Fig. 10 is an exemplary diagram of a second candidate electro-optic curve and a reference electro-optic curve provided in an embodiment of the present application.
FIG. 11 is an exemplary diagram of another second candidate electro-optic curve and a reference electro-optic curve provided by embodiments of the present application.
Fig. 12 is an exemplary diagram of another second candidate electro-optic curve and a reference electro-optic curve provided by embodiments of the present application.
Fig. 13 is a schematic flowchart of a method 600 for constructing a first electro-optic correspondence according to an embodiment of the present application.
Fig. 14 is an exemplary diagram of N first luminance values according to an embodiment of the present application.
Fig. 15 is an exemplary diagram of a commonly constructed electro-optic correspondence provided in an embodiment of the present application.
Fig. 16 is an exemplary diagram of a first candidate electro-optic curve and a second candidate electro-optic curve provided in an embodiment of the present application.
Fig. 17 is an exemplary diagram of another first candidate electro-optic curve and a second candidate electro-optic curve provided by embodiments of the present application.
Fig. 18 is an exemplary block diagram of an electronic device 700 provided by an embodiment of the present application.
Fig. 19 is a schematic structural diagram of an electronic device 800 provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. Wherein, in the description of the embodiments of the present application, "/" means or is meant unless otherwise indicated, for example, a/B may represent a or B; "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, in the description of the embodiments of the present application, "plural" or "plurality" means two or more than two.
The terms "first" and "second" are used below for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present embodiment, unless otherwise specified, the meaning of "plurality" is two or more.
The method provided by the embodiment of the application can be applied to electronic devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (augmented reality, AR)/Virtual Reality (VR) devices, notebook computers, ultra-mobile personal computer (UMPC), netbooks, personal digital assistants (personal digital assistant, PDA) and the like, and the embodiment of the application does not limit the specific types of the electronic devices.
By way of example, fig. 1 shows a schematic diagram of an electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, an antenna 1, an antenna 2, a mobile communication module 140, a wireless communication module 150, an audio module 160, a sensor module 170, keys 180, a camera 181, a display 182, and the like. The sensor module 170 may include a pressure sensor 170A, a gyro sensor 170B, a fingerprint sensor 170C, a touch sensor 170D, and the like.
It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and a command center of the electronic device 100, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
In this embodiment of the present application, the processor 110 may invoke the electro-optical correspondence corresponding to the luminance value, and determine a plurality of luminance values of the display screen according to the pixel value of the image and the electro-optical correspondence corresponding to the luminance value, so that the image is displayed on the display screen with the plurality of luminance values.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In the embodiment of the application, the memory is used for storing the electro-optical corresponding relation corresponding to the illumination value.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
Illustratively, a MIPI interface may be used to connect processor 110 with peripheral devices such as display 182, camera 181, and the like. The MIPI interfaces include camera serial interfaces (camera serial interface, CSI), display serial interfaces (display serial interface, DSI), and the like. In some embodiments, processor 110 and camera 181 communicate through a CSI interface to implement the photographing functions of electronic device 100. The processor 110 and the display 182 communicate via a DSI interface to implement the display functions of the electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 181, display 182, wireless communication module 150, audio module 160, sensor module 170, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transfer data between the electronic device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and does not limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
Wireless communication module 150 the wireless communication functions of the electronic device 100 may be implemented by an antenna 1, an antenna 2, a mobile communication module 140, a wireless communication module 150, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 140 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied on the electronic device 100. The mobile communication module 140 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 140 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 140 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 140 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 140 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device or displays images or video through a display 182. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 140 or other functional module, independent of the processor 110.
The wireless communication module 150 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied to the electronic device 100. The wireless communication module 150 may be one or more devices that integrate at least one communication processing module. The wireless communication module 150 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 150 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2.
In some embodiments, antenna 1 and mobile communication module 140 of electronic device 100 are coupled, and antenna 2 and wireless communication module 150 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
In the embodiment of the present application, the electronic device 100 may communicate with a cloud server or other servers through the mobile communication module 140 or the wireless communication module 150.
The electronic device 100 implements display functions through a GPU, a display screen 182, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 182 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display 182 is used to display images, videos, and the like. The display 182 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 182, N being a positive integer greater than 1.
In the present embodiment, the electronic device 100 converts the image information into light information of the display screen through the display screen 182 through a nonlinear mapping, which is generally referred to as an Electro-optical conversion curve B (Electro-Optical Transfer Function, EOTF).
The implementation process of the electronic device 100 converting the image information into the light information of the display screen through the display screen 182 by the nonlinear mapping may be:
the display 182 reads the pixel value (image information) of each pixel in the image, performs normalization processing, inputs the normalized processing result into the electro-optical conversion curve B, and outputs the luminance value (light information of the display) of the display.
The electronic device 100 may implement photographing functions through an ISP, a camera 181, a video codec, a GPU, a display screen 182, an application processor, and the like.
The ISP is used to process the data fed back by the camera 181. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 181.
The camera 181 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, the electronic device 100 may include 1 or N cameras 181, N being a positive integer greater than 1.
In this embodiment of the present application, the electronic device 100 may convert external light information into image information through nonlinear mapping through the camera 181 and store the image information, which is essentially storing the image information as a digital signal; this linear mapping is commonly referred to as photoelectric conversion curve a (Optical-Electro Transfer Function, OETF).
It is understood that the camera 181 of the embodiment of the present application may also be a device independent of the electronic device 100, which is not limited in the embodiment of the present application.
The implementation process of the electronic device 100 converting external light information into image information through nonlinear mapping by the camera 181 may be:
first, the electronic device 100 performs normalization processing on the value of each pixel point of the image in advance, and maps the value to between 0 and 1.
It will be appreciated that the pixel value of each pixel of an image is related to the number of image bits, which may characterize the depth of the image color. Generally, the common bits are 8 bits (bit), 10 bits, 16 bits, etc. The pixel value is a value assigned by the processor when the image is digitized and may represent the average luminance information of a small square in the image.
In an example, the number of bits of an image is 8 bits, the depth of the color of the image is 8 power of 2, which means that the image contains 256 colors or 256 gray scales, and then the value of each pixel point of the image is between 0 and 255. The 256 numbers can be mapped linearly between 0 and 1 by normalizing 0 to 255.
Secondly, the electronic device 100 captures the brightness in the real scene in nature through the camera 181, and performs normalization processing on the brightness, maps the brightness to between 0 and 1, and obtains external light information. The external light information is input into the photoelectric conversion curve A, and the output value of the photoelectric conversion curve A is compared with the normalization result of the pixel value, so that the pixel value (image information) of the pixel point can be obtained.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, high efficiency video coding (High Efficiency Video Coding, HEVC), video coding experts group (Video Coding Experts Group, VCEG), etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the electronic device 100 may be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
In the embodiment of the application, the electro-optical correspondence relationship corresponding to the illuminance value may be stored in the external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
In the embodiment of the present application, the processor 110 executes the function of adjusting the brightness of the display screen according to the change of the ambient illuminance value by executing the instructions stored in the internal memory 121.
The electronic device 100 may implement audio functions through the audio module 160, an application processor, and the like. Such as music playing, recording, etc.
The audio module 160 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 160 may also be used to encode and decode audio signals. In some embodiments, the audio module 160 may be disposed in the processor 110, or some functional modules of the audio module 160 may be disposed in the processor 110.
The pressure sensor 170A is used to sense a pressure signal, which can be converted into an electrical signal. In some embodiments, the pressure sensor 170A may be disposed on the display 182. The pressure sensor 170A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. When a force is applied to the pressure sensor 170A, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display 182, the electronic apparatus 100 detects the intensity of the touch operation according to the pressure sensor 170A. The electronic device 100 may also calculate the location of the touch based on the detection signal of the pressure sensor 170A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The gyro sensor 170B may be used to determine a motion gesture of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., x, y, and z axes) may be determined by gyro sensor 170B. The gyro sensor 170B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 170B detects the shake angle of the electronic device 100, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the electronic device 100 through the reverse motion, so as to realize anti-shake. The gyro sensor 170B may also be used for navigating, somatosensory game scenes.
The fingerprint sensor 170C is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint feature to unlock the fingerprint, access the application lock, photograph the fingerprint, answer the incoming call, etc.
The touch sensor 170D, also referred to as a "touch panel". The touch sensor 170D may be disposed on the display 182, and the touch sensor 170D and the display 182 form a touch screen, which is also referred to as a "touch screen". The touch sensor 170D is used to detect a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 182. In other embodiments, the touch sensor 170D may also be disposed on the surface of the electronic device 100 at a different location than the display 182.
The ambient light sensor 170E is used to sense ambient light level. The electronic device 100 may adaptively adjust the brightness of the display 182 based on the perceived ambient light level. The ambient light sensor 170E may also be used to automatically adjust white balance during photographing.
The keys 180 include a power on key, a volume key, etc. The keys 180 may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
As to the hardware structure of the electronic device 100, it is to be understood that the components included in the hardware structure shown in fig. 1 do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or less components than illustrated, which is not limiting in this application.
The following describes problems that occur when an electronic device displays an image in a process in which the intensity of ambient light is changed from weak to strong in an application scene.
Fig. 2 is a set of graphical user interfaces (graphical user interface, GUI) provided by embodiments of the present application.
Referring to the GUI shown in fig. 2 (a), the GUI is a display interface of a video player of the cellular phone. The display interface comprises a display frame 201, wherein the display frame 201 is used for displaying a video Vi to be watched by a user, the display interface further comprises a selection class control 202, the selection class control 202 is used for selecting and playing the content of the video to be watched, the selection class control 202 in the display interface comprises controls corresponding to numbers 1 to 9, and the user can play the video content corresponding to any number by clicking the control corresponding to the number. For example: the user clicks the control 2021 corresponding to the numeral 7 in the selection class control 202, representing that the user wants to view the content corresponding to the 7 th set, and the video content corresponding to the 7 th set is displayed in the display box 201.
When the user clicks any one of the selection type controls 202 (for example, the control 2021), the mobile phone responds to the operation of clicking any one of the selection type controls 202 by the user, and starts the ambient light sensor to detect the ambient light intensity, and in the case that the ambient light intensity detected by the ambient light sensor is weak, the built-in electro-optical conversion curve corresponding to the weak ambient light intensity is called to convert the pixel value of each pixel point in the image into the brightness value of the display screen, so as to obtain the GUI as shown in (b) in fig. 2. Referring to the GUI shown in (b) of fig. 2, a video frame including an image 1 is displayed in the display frame 201, where H1 in the image 1 represents a display screen luminance value corresponding to a high gray scale.
In some embodiments, during the process of viewing the video Vi by the user, the ambient light sensor continuously detects the ambient light intensity, and in the case that the ambient light intensity detected by the ambient light sensor is strong, the built-in electro-optical conversion curve corresponding to the strong ambient light intensity is called to convert the pixel value of each pixel point in the image into the brightness value of the display screen, so as to obtain the GUI shown in fig. 2 (c), see the GUI shown in fig. 2 (c), and the video frame containing the image 2 is displayed in the display frame 201, where H2 in the image 2 represents the brightness value of the display screen corresponding to the high gray scale. It can be seen that the brightness of H2 relative to H1 is overexposed for image 2 relative to image 1, and that H2 has no hierarchy and blurry details.
The following describes problems that occur when an electronic device displays an image in a process in which the intensity of ambient light is changed from weak to strong in another application scenario.
FIG. 3 is another set of graphical user interface GUIs provided by embodiments of the present application.
Referring to the GUI shown in fig. 3 (a), the GUI is a display interface of images in the gallery application of the mobile phone. The display interface includes thumbnails of a plurality of images, for example: including thumbnail 301 of image 3. When the user wants to view image 3, the user can view image 3 by clicking on thumbnail 301.
In implementation, when the user clicks the thumbnail 301, the mobile phone responds to the clicking operation of the user, starts the ambient light sensor to detect the ambient light intensity, and calls the built-in electro-optical conversion curve corresponding to the weaker ambient light intensity to convert the pixel value of each pixel point in the image 3 into the brightness value of the display screen under the condition that the ambient light intensity detected by the ambient light sensor is weaker, so as to obtain the GUI as shown in (b) in fig. 3. Referring to the GUI shown in fig. 3 (b), image 3 is displayed in the display frame 302, where H3 in image 3 represents a display screen luminance value corresponding to a high gray scale.
In the process of viewing the image 3 by the user, assuming that the ambient light intensity is changed from weak to strong, there are two ways to improve the overall brightness of the image 3:
In the first mode, during the process of viewing the image 3 by the user, the ambient light sensor continuously detects the ambient light intensity, and when the ambient light intensity detected by the ambient light sensor is strong, the built-in electro-optical conversion curve corresponding to the strong ambient light intensity is called to convert the pixel value of each pixel point in the image 3 into the brightness value of the display screen, so as to obtain the GUI as shown in (d) in fig. 3.
In a second mode, referring to the GUI shown in (c) of fig. 3, the display interface of the gallery application further includes a control 303 for starting an ambient light sensor to detect ambient light intensity, in the process that the user views the image 3, the user may click on the control 303, the mobile phone responds to the clicking operation of the user to start the ambient light sensor to detect ambient light intensity, and in the case that the ambient light intensity is detected to be stronger, the built-in electro-optical conversion curve corresponding to the stronger ambient light intensity is called to convert the pixel value of each pixel point in the image 3 into the brightness value of the display screen, so as to obtain the GUI shown in (d) of fig. 3.
Referring to the GUI shown in (d) of fig. 3, image 3 is displayed in the display frame 302, where H4 in image 3 represents the luminance value of the display screen corresponding to the high gray scale. It can be seen that the image 3 of (d) in fig. 3 is overexposed with respect to the luminance of H4 with respect to H3, and H4 has no hierarchy and the details are blurred, with respect to the image 3 of (b) or (c) in fig. 3.
The reason why the brightness overexposure of the display screen corresponding to the high gray level in fig. 2 or fig. 3 is caused is that, in general, a plurality of electro-optical conversion curves corresponding to the ambient light intensity are preconfigured in the electronic device, under different ambient light intensities, the pixel value of each pixel point in the image is converted into the brightness value of the display screen by using different electro-optical conversion curves, however, the curve trend of the plurality of electro-optical conversion curves is the same, and when the ambient light is converted from darker (dark environment) to lighter (bright environment), the brightness value of the display screen corresponding to each pixel point is improved by the same multiple by using the electro-optical conversion curve with the same curve trend, including the brightness value of the display screen corresponding to the pixel value with the larger value (high gray level).
Therefore, the brightness value of the display screen corresponding to the larger pixel value may exceed the exposure brightness range which should be used when the image is shot, so that the brightness value of the display screen corresponding to the larger pixel value is overexposed, the overexposed image brightness is concentrated in a high gray scale range, the overexposed part of the image has no layering sense, and the details are blurred.
It should be noted that since gray scale refers to the luminance level relationship between darkest to brightest of the display screen. For example: the color depth value of the display screen is 8 bits, and the display can represent 8 power of 2 (256) brightness levels, and the gray scale value is between 0 and 255. The pixel value is a value given by the processor when the image is digitized, and can represent the average brightness of a small square in the image, the larger the pixel value is, the higher the average brightness is, for example, the number of bits of the image is 8 bits, the depth of the color of the image is 8 powers of 2, the image contains 256 gray levels, the gray levels are between 0 and 255, the gray levels can reflect the brightness of the image, and the value of each pixel point of the image is between 0 and 255. Therefore, after the electronic device reads the pixel value of each pixel point in the image, the value of each pixel point can be used as the gray scale value.
It should be understood that a high gray level refers to a gray level having a value greater than a middle gray level, a low gray level refers to a gray level having a value less than a middle gray level, and a middle gray level refers to a middle gray level of the entire gray level. For example, when the gray scale is 0 to 255, the value of the middle gray scale is 127.
In order to solve the above problem, when the ambient light is changed from darker to brighter, the luminance value of the display screen corresponding to each pixel point in the image data can be increased through the electro-optical conversion curve with different curve trends, the luminance value of the display screen corresponding to the larger pixel value is reduced, the number of high gray levels exceeding the due exposure luminance range when shooting the image is reduced, the overexposure degree of the luminance value of the display screen corresponding to the high gray levels is reduced, the user can realize the same comfort as when watching the image in a dark environment when watching the image in a bright environment, and the user experience is improved.
For a better understanding of the solution provided by the embodiments of the present application, the following describes the internal implementation procedure of the embodiments of the present application with reference to the accompanying drawings.
Fig. 4 is a schematic flowchart of an image display method 400 provided in an embodiment of the present application. The method 400 may be performed by an electronic device, or may be performed by a processor or chip in an electronic device, and embodiments of the present application are not limited in any way. For ease of description, method 400 will be described in detail using an electronic device as an example.
S401, the electronic device acquires a first illumination value of the environment through the ambient light sensor.
It should be understood that the illuminance value is also called an illumination intensity value, and refers to the luminous flux of visible light received per unit area, and the unit is Lux (Lux or lx). The illumination value may be used to indicate the intensity of illumination and the amount by which the surface area of the object is illuminated.
In the embodiment of the application, after detecting the operation of the user, the electronic device may obtain, by the ambient light sensor, the first illuminance value of the environment in response to the operation of the user.
For example, the user's operation may be an operation in which the user clicks the control, for example, in fig. 2, the user's operation may be an operation in which the user clicks the control 2021. For another example, in fig. 3, the user may click on the thumbnail 301 or click on the control 303 for activating the ambient light sensor to detect the ambient light intensity.
After the electronic equipment detects the operation of the user, the ambient light sensor is started to detect the illuminance value in response to the operation of the user, the ambient light sensor transmits the detected illuminance value to the processor, and the electronic equipment can acquire the first illuminance value.
In some embodiments, while the user views the image or video, the electronic device may continuously detect the illuminance value by using the ambient light sensor, or may start the ambient light sensor to detect the illuminance value at intervals of a preset duration (for example, 5 minutes, 10 minutes, etc.), and when the detected rising amplitude or falling amplitude of the illuminance value is greater than a preset amplitude threshold (for example, the preset amplitude threshold is 10 lux, the illuminance value detected by the ambient light sensor before is 100 lux, and the current detected illuminance value is 120 lux, then the detected rising amplitude (20 lux) of the illuminance value is greater than the preset amplitude threshold (10 lux)), the current detected illuminance value is transmitted to the processor, and the electronic device may acquire the first illuminance value.
S402, the electronic device determines a plurality of first brightness values of the display screen according to a plurality of pixel values of the first image through a first electro-optical corresponding relation corresponding to the first illumination value.
It should be appreciated that the first image may be a still image, for example: image 3 in fig. 3. Image frames in video are also possible, for example: in the image frame Vi in fig. 2, the type of the first image is not limited in the embodiment of the present application.
In this embodiment of the present application, the first electro-optical correspondence is used to represent a one-to-one correspondence between N pixel values and N first luminance values under a first luminance value, where the plurality of pixel values belong to N pixel values, the plurality of first luminance values belong to N first luminance values, N1 pixel values in the N pixel values correspond to a largest first luminance value in the N first luminance values, the number of N1 pixel values is smaller than the number of N2 pixel values, N is an integer greater than 1, the N2 pixel values correspond to a largest second luminance value in the N second luminance values represented by the second electro-optical correspondence, and the second electro-optical correspondence is used to represent a one-to-one correspondence between N pixel values and N second luminance values under the second luminance value, where the second luminance value is smaller than the first luminance value, and the largest second luminance value is smaller than the largest first luminance value.
It may also be appreciated that the first electro-optic correspondence may be characterized by a first electro-optic curve determined by the first electro-optic correspondence and the second correspondence may be characterized by a second electro-optic curve determined by the second electro-optic correspondence. The electro-optical conversion curve functions to convert image information into light information for the display screen. That is, the electro-optical curves are used to convert the pixel values of each frame of image into the brightness values of the display screen, and the specific implementation process is already described in the above embodiments, which is not repeated here.
Illustratively, FIG. 5 is an exemplary graph of an electro-optic curve provided by an embodiment of the present application. In fig. 5, the abscissa (the value on the X-axis) represents N pixel values, the ordinate (the value on the Y-axis) represents N luminance values of the display screen, and the first electro-optical curve B1 is used to represent a one-to-one correspondence between N pixel values and N first luminance values C1 at the first luminance value L1, one pixel value corresponds to one first luminance value, and N1 pixel values in the N pixel values correspond to the maximum luminance value in the N first luminance values C1. In fig. 5, N1 is an integer greater than 1 and less than N, in other examples, N1 may be 0 or 1, where no pixel value among N pixel values corresponds to the maximum luminance value among N first luminance values C1, and where N1 is 1, only 1 pixel value among N pixel values corresponds to the maximum luminance value among N first luminance values C1.
The second electro-optical curve B2 is configured to represent a one-to-one correspondence between N pixel values and N second luminance values C2 at the second luminance value L2, where one pixel value corresponds to one second luminance value, and N2 pixel values in the N pixel values correspond to a maximum luminance value in the N second luminance values C2. In fig. 5, N2 is an integer greater than 1 and less than N, and in other examples, N2 may be 1, where when N2 is 1, only 1 pixel value out of the N pixel values corresponds to the maximum luminance value out of the N second luminance values C2. Note that when N2 is 1, since the number of N1 needs to be smaller than the number of N2, N1 is 0.
In fig. 5, the value of the second luminance value L2 is smaller than the value of the first luminance value L1, and the maximum second luminance value in C2 is smaller than the maximum first luminance value in C1. The number of N1 pixel values is smaller than the number of N2 pixel values, and the number of the largest first brightness values in C1 corresponding to the N1 pixel values is smaller than the number of the largest second brightness values in C2 corresponding to the N2 pixel values.
In implementation, in the case where the illuminance value is L2, the electronic device determines a plurality of second luminance values from a plurality of pixel values of the first image through B2 corresponding to L2, in the case where the illuminance value rises from L2 to L1, the electronic device determines a plurality of first luminance values from a plurality of pixel values of the first image through B1 corresponding to L1, and the plurality of first luminance values obtained based on B1 are larger than the plurality of second luminance values obtained based on B2, the plurality of pixel values belong to N pixel values.
Assuming that the plurality of pixel values of the first image includes N1 pixel values and N2 pixel values of the N pixel values, the N1 pixel values of the first image are determined as the largest first luminance value of C1, the N2 pixel values of the first image are determined as the largest second luminance value of C2, the number of N1 pixel values is smaller than the number of N2 pixel values, and the number of largest first luminance values of C1 is smaller than the number of largest second luminance values of C2.
It should be understood that, after the electronic device reads the plurality of pixel values of the first image, the plurality of pixel values may be regarded as the values of the gray levels, and the high gray level refers to the value of the gray level being greater than the value of the medium gray level, where N1 pixel values and N2 pixel values refer to the values of the high gray levels in the embodiment of the present application, so that N1 pixel values of the first image are determined as the maximum first luminance value in C1, N1 high gray levels are also understood as the maximum first luminance value in C1, and N2 pixel values of the first image are determined as the maximum first luminance value in C2, and N2 high gray levels are also understood as the maximum first luminance value in C2. The meaning of the middle gray level and the high gray level is already stated in other embodiments, and will not be repeated here.
In the above example, the curve trend of the curve portion of B1 is completely different from the curve trend of the curve portion of B2, and the curve trend may be used to represent an internal relationship between the pixel value and the luminance value, reflecting a change rule of the luminance value with the change of the pixel value.
In another example, the curve trend of the curve portion of B1 and the curve trend of the curve portion of B2 may be partially the same, partially different. Fig. 6 is an exemplary diagram of another electro-optic curve provided by an embodiment of the present application. In fig. 6, the parameters B1, B2, L1, L2, C1, C2, N1 and N2 have the same meanings as those in fig. 5, and the areas with the same trend of the curve portions of B1 and B2 are shown as a in fig. 6, and the areas with different trend of the curve portions of B1 and B2 are areas other than a. As can be seen from fig. 6, the number of N1 pixel values is smaller than the number of N2 pixel values, and the number of maximum first luminance values in C1 is smaller than the number of maximum second luminance values in C2.
It should be noted that, in the embodiment of the present application, in order to describe in detail the brightness change condition of the display screen corresponding to the pixel value in the image displayed by the electronic device when the ambient light intensity is from weak to strong, the first illuminance value in the embodiment of the present application may be understood as the illuminance value detected when the ambient light intensity is strong, and the second illuminance value may be understood as the illuminance value detected when the ambient light intensity is weak.
S403, the electronic device displays a first image on the display screen through a plurality of first brightness values.
It should be understood that the electronic device determines a plurality of first luminance values C1 from a plurality of pixel values of the first image by corresponding to B1 in fig. 5 or 6, and if the plurality of pixel values of the first image includes N1 pixel values out of the N pixel values, then when the first image is displayed on the display screen by the plurality of first luminance values, the N1 pixel values out of the plurality of pixel values of the first image are displayed with the largest first luminance value out of C1, and the pixel values out of the plurality of pixel values other than N1 are displayed with the first luminance values out of C1 other than the largest first luminance value.
According to the embodiment of the application, different brightness values of the display screen can be obtained based on the electro-optical corresponding relation under different illumination values. The first electro-optical correspondence is used for representing a one-to-one correspondence between N pixel values and N first brightness values under a first illumination value, N1 pixel values (high gray scale) in the N pixel values correspond to the largest first brightness value in the N first brightness values, and for the first image, a plurality of first brightness values of the display screen can be determined according to a plurality of pixel values of the first image through the first electro-optical correspondence; the second electro-optical correspondence is used for representing a one-to-one correspondence between N pixel values and N second luminance values under a second luminance value, N2 pixel values (high gray scale) in the N pixel values correspond to a largest second luminance value in the N second luminance values, wherein the number of N1 pixel values is smaller than the number of N2 pixel values, and for the first image, a plurality of second luminance values of the display screen can be determined according to a plurality of pixel values of the first image through the second electro-optical correspondence.
When the maximum first luminance value of the determined plurality of first luminance values reaches the maximum first luminance value of the N first luminance values represented by the first electro-optical correspondence relation, or when the maximum second luminance value of the determined plurality of second luminance values reaches the maximum second luminance value of the N second luminance values represented by the second electro-optical correspondence relation, there is a possibility that overexposure occurs due to the fact that the maximum first luminance value or the maximum second luminance value exceeds the exposure luminance range which should be when the first image is captured.
Because the N1 pixel values (high gray levels) in the N pixel values in the first electro-optic correspondence correspond to the largest first luminance value in the N first luminance values, and the N2 pixel values (high gray levels) in the N pixel values in the second electro-optic correspondence correspond to the largest second luminance value in the N second luminance values, the number of the N1 pixel values is smaller than the number of the N2 pixel values, the number of the high gray levels in the plurality of pixel values of the first image determined in the first luminance value is smaller than the number of the high gray levels in the plurality of pixel values of the first image determined in the second luminance value, that is, when the ambient light intensity is raised from the second luminance value to the first luminance value, the number of the high gray levels corresponding to the largest first luminance value exceeding the exposure luminance range in the first luminance value is smaller than the number of the high gray levels corresponding to the second luminance value exceeding the exposure range in the second luminance value, so that the number of the high gray levels corresponding to the high gray levels in the first luminance value can be raised to the first luminance value, and when the first luminance value of the first image includes the high luminance value, the ambient light intensity is raised to the first luminance value, and the ambient light intensity is lowered to the ambient light level when the first luminance value is raised to the first luminance value.
As is apparent from the above-described embodiments, the reason why the user can achieve the same comfort as when viewing an image in a bright environment (first illuminance value) as when viewing an image in a dark environment (second illuminance value) is that the number of N1 pixel values of the first electro-optic correspondence corresponding to the first illuminance value is smaller than the number of N2 pixel values of the second electro-optic correspondence corresponding to the second illuminance value. The following embodiments describe in detail the construction process of the first electro-optical correspondence relationship and the second electro-optical correspondence relationship with reference to the accompanying drawings, and describe in detail the reason why the number of N1 pixel values is smaller than the number of N2 pixel values.
It should be noted that, the first electro-optical correspondence and the second electro-optical correspondence may be preconfigured correspondences, or may be correspondences that are constructed in real time after the electronic device obtains the illuminance value of the environment through the ambient light sensor, which is not limited in the embodiment of the present application. However, in order to facilitate implementation, the processing duration may be reduced and the processing rate may be improved by adopting a preconfigured correspondence.
In an embodiment in which the first electro-optical correspondence and the second electro-optical correspondence may be preconfigured correspondences, before executing the method 400, the electronic device may pre-construct a plurality of electro-optical correspondences by using an electronic device or a server (the server may be a cloud server, a server cluster, or the like), where one electro-optical correspondence corresponds to one illuminance value. The plurality of electro-optic correspondences includes the first electro-optic correspondences and the second electro-optic correspondences, and then the plurality of electro-optic correspondences are stored (when the server is constructed, the constructed plurality of electro-optic correspondences need to be transmitted to the electronic device for storage), and the first electro-optic correspondences corresponding to the first illuminance value are directly invoked when the method 400 is executed.
The preconfigured plurality of electro-optic correspondences have the following characteristics: the number of pixel values corresponding to the maximum luminance value in the electro-optical correspondence corresponding to the luminance value with a large value is smaller than the number of pixel values corresponding to the maximum luminance value in the electro-optical correspondence corresponding to the luminance value with a small value. For example: referring to fig. 5 again, L1 is a luminance value with a large value, B1 is an electro-optical correspondence relationship corresponding to the luminance value with a large value, N1 is a number of pixel values corresponding to a maximum luminance value in the electro-optical correspondence relationship corresponding to the luminance value with a large value, L2 is a luminance value with a small value, B2 is an electro-optical correspondence relationship corresponding to the luminance value with a small value, N2 is a number of pixel values corresponding to a maximum luminance value in the electro-optical correspondence relationship corresponding to the luminance value with a small value, and N1 is smaller than N2.
The following embodiments describe an internal implementation process for constructing the second electro-optical correspondence according to the embodiments of the present application with reference to the accompanying drawings.
Fig. 7 is a schematic flow chart diagram of a method 500 for constructing a second electro-optic correspondence according to an embodiment of the present application. The method 500 may be performed by an electronic device, a server, a processor or a chip in an electronic device, or a processor or a chip in a server, which is not limited in this embodiment. For ease of description, method 500 will be described in detail using an electronic device as an example.
S501, the electronic equipment obtains a third contrast set based on the reference electro-optic correspondence.
It should be understood that the method 500 is for describing in detail how the second electro-optic correspondence is constructed from the reference electro-optic correspondence.
The reference electro-optical correspondence is used to represent a one-to-one correspondence between N pixel values and N reference luminance values at the reference luminance value, and the reference electro-optical correspondence may be characterized by a reference electro-optical curve determined by the reference electro-optical correspondence, the reference electro-optical conversion curve being a standard curve specified in the correlation specification. For example: the reference electro-optical conversion curve may be a perceptual quantization (Perceptual Quantizer, PQ) curve, a Hybrid Log Gamma (HLG) curve, a standard Gamma curve for moving images, a standard Gamma curve for still images, or the like, which is not limited in the embodiment of the present application. For example, assuming that the number of bits of an image is 8, and the value of each pixel point of the image is between 0 and 255, the reference electro-optical correspondence is used to represent a one-to-one correspondence between 256 pixel values and 256 reference luminance values at the reference luminance value.
It is further understood that each third contrast in the third contrast set is a contrast of two adjacent reference luminance values among the N reference luminance values of the reference electro-optic correspondence, and the third contrast set includes N-1 third contrasts. For example, assuming that the number of image bits is 8 bits, the third contrast set includes 256-1=255 contrasts, each being the contrast of two adjacent reference luminance values among 256 reference luminance values, for example, the 1 st contrast is the contrast of the 1 st reference luminance value and the 2 nd reference luminance value.
In the embodiment of the present application, N reference luminance values of the reference electro-optical conversion curve may be obtained from the relevant specifications. For example: the calculation formula of the PQ curve is given in the related specification, the calculation formula can reflect the nonlinear mapping relation between N pixel values and N reference brightness values, and the N pixel values are substituted into the calculation formula, so that a plurality of reference brightness values corresponding to the N reference pixel values can be obtained.
In one implementation, the electronic device may determine an ith third contrast of the N-1 third contrasts according to the N pixel values and the N reference luminance values of the reference electro-optic correspondence based on the following formula to obtain a third contrast set:
wherein,represents the ith third contrast in N-1 third contrasts,/I>Represents the (i+1) th reference luminance value among the N reference luminance values,/th reference luminance value>Representing the i-th reference luminance value.
In another implementation, the electronic device may determine an i-th third contrast of the N-1 third contrasts from the N pixel values and the N reference luminance values of the reference electro-optic correspondence based on the following formula to obtain the third contrast set:
in another implementation, the electronic device may determine an i-th third contrast of the N-1 third contrasts from the N pixel values and the N reference luminance values of the reference electro-optic correspondence based on the following formula to obtain the third contrast set:
S502, the electronic equipment obtains a second contrast set based on the third contrast set.
It should be appreciated that each second contrast in the second contrast set is the contrast of two adjacent second candidate luminance values of the N second candidate luminance values in the second candidate electro-optic correspondence, the second contrast set comprising N-1 second contrasts. Illustratively, the second contrast set includes 255 second contrasts, each contrast being a contrast of two adjacent reference luminance values of the 256 second candidate luminance values.
It will also be appreciated that the second candidate electro-optic correspondence is used to represent a one-to-one correspondence between N pixel values and N second candidate luminance values at the second luminance value. The curve portion of the second electro-optic curve determined by the second electro-optic correspondence is a portion of a second candidate electro-optic curve determined by the second candidate electro-optic correspondence. In popular terms, the curve trend of the curve part of the second electro-optic curve is the same as the curve trend of the second candidate electro-optic curve, and the contrast of the curve part of the second electro-optic correspondence is a part of the second contrast set, so that the second electro-optic correspondence can be constructed by the determined second contrast set.
Illustratively, FIG. 8 is an exemplary diagram of a second electro-optic curve and a second candidate electro-optic curve provided by embodiments of the present application. C2C 2 * Representing N second candidate luminance values,and B2 represents the second candidate electro-optical curve, and the curve trend of the curve part F1 of the second electro-optical correspondence is the same as the curve trend of the second candidate electro-optical curve.
It is further understood that P second contrasts of the N-1 second contrasts in the second contrast set are smaller than or equal to P third contrasts of the N-1 third contrasts, the P third contrasts are in one-to-one correspondence with the P second contrasts, two pixel values corresponding to two adjacent second candidate luminance values for generating the ith second contrast of the P second contrasts are the same as two pixel values corresponding to two adjacent reference luminance values for generating the ith third contrast of the P third contrasts, and the pixel value corresponding to the second candidate luminance value for generating the P second contrasts is larger than the pixel value corresponding to the second candidate luminance value for generating the N-1-P second contrasts.
Exemplary, assuming N is 6 and P is 4, then the N pixel values are 1, 2, 3, 4, 5, and 6 pixel values, respectively, and 2 The pixel value is greater than the 1 st pixel value, the 3 rd pixel value is greater than the 2 nd pixel value, … …, and the 6 th pixel value is greater than the 5 th pixel value. The second contrast set isWherein (1)>Represents the 1 st second contrast, … …, ->Representing 5 second contrasts.
The third contrast set isWherein (1)>Represents the 1 st third contrast, … …, ->Representing the 5 th third contrast. />
P second contrasts areP third contrasts corresponding to the P second contrasts are +.>Wherein (1)>And->Is generated based on the 3 rd pixel value and the 2 nd pixel value of the 6 pixel values and +.>Less than or equal to->And->Is generated based on the 4 th pixel value and the 3 rd pixel value and +.>Less than or equal to->And->And +.>And->Reference is made to the foregoing description, and no further description is given here. In this example, the pixel values (e.g., the 2 nd, 3 rd, 4 th, 5 th, and 6 th pixel values) corresponding to the second candidate luminance values for generating the P second contrasts are greater than the pixel values (e.g., the 1 st pixel value) corresponding to the second candidate luminance values for generating the N-1-P second contrasts.
In an implementation, the electronic device may have N-1 third contrasts in the third contrast set as the second contrast set. Each of the N-1 second contrasts in the second contrast set may be made smaller than the third contrast in the third contrast set corresponding to the second contrast to obtain the second contrast. A portion of the second contrast in the second contrast set may be further smaller than a portion of the third contrast to obtain the second contrast, and the specific implementation process may refer to other embodiments, which are not described herein.
S503, the electronic device determines N second brightness values according to the second contrast set, the first second brightness value and the second brightness threshold corresponding to the second illumination value.
It should be understood that the second luminance threshold value corresponding to the second luminance value is a preconfigured luminance threshold value, the second luminance threshold value being the largest second luminance value of the N second luminance values. In the case that the illuminance value is the second illuminance value, a display screen luminance value greater than a specific value may cause discomfort to the human eye, for example: in a darkroom environment with an ambient light intensity of 0.1Lux, a display screen brightness value greater than 60 nits may cause discomfort to the human eye, and in an environment with an ambient light intensity of 10Lux, a display screen brightness value greater than 150 nits may cause discomfort to the human eye. The present embodiment refers to this feature value as a second luminance threshold configured based on a second illuminance value that can be obtained by making the observer view a second candidate electro-optic transfer curve based on fig. 8And obtaining test data obtained by a picture which is displayed in the display screen by a plurality of pixel values in the image with a plurality of second candidate brightness values.
The first second luminance value is a starting luminance value of the second electro-optic curve, and the first second luminance value is a smallest second luminance value of the N second luminance values. The first second luminance value may be obtained by using the reference electro-optical curve, the reference illuminance value, and the second illuminance value, and other embodiments may be referred to for implementation of the electronic device to obtain the first second luminance value, which are not described herein.
It is further understood that the reference electro-optic conversion curve is constructed at a specific ambient light intensity, and a reference illuminance value corresponding to the reference electro-optic conversion curve may be obtained according to the specific ambient light intensity. For example: a certain reference electro-optical conversion curve is constructed by the test data obtained by the observer looking at the picture in the display screen when the observer is at a specific ambient light intensity (for example, 2 Lux), and then the reference illuminance value corresponding to the obtained reference electro-optical conversion curveIs 2Lux.
In an implementation, the process of determining N second luminance values by the electronic device includes:
firstly, obtaining a second candidate brightness value according to a first second brightness value and a first second contrast in a second contrast set, obtaining a third second candidate brightness value according to the second candidate brightness value and a second contrast in the second contrast set, and obtaining a j second candidate brightness value according to the j second candidate brightness value and a j second contrast in the second contrast set.
Next, N second luminance values are determined from the N second candidate luminance values and the second luminance threshold value corresponding to the second luminance value.
For example, please refer to fig. 9, fig. 9 is an exemplary diagram of N second luminance values provided in an embodiment of the present application. In FIG. 9, C2 * Representing N second candidate brightness values, D2 representing a second brightness threshold, and the electronic device obtaining N second candidate brightness values C2 * And a second luminance threshold D2, C2 may be set * Deleting the value larger than D2, and C2 * The remaining values of (2) are taken as N second luminance values C2. Wherein the largest second luminance value of the N second luminance values C2 is equal to the second luminance threshold D2 and corresponds to N2 pixel values of the N pixel values, and the luminance values other than the largest second luminance value of the C2 correspond to the pixel values other than the N2 pixel values (N-N2 pixel values) of the N pixel values.
S504, the electronic device determines a second electro-optic corresponding relation based on the N second brightness values and the N pixel values.
In implementation, after the electronic device obtains N second luminance values, please refer to fig. 9, straight line fitting may be performed on N2 pixel values and the largest second luminance value in C2, curve fitting may be performed on N-N2 pixel values and luminance values other than the largest second luminance value in C2, to obtain a second electro-optical correspondence.
According to the embodiment of the application, the second contrast set can be obtained based on the third contrast set, each third contrast in the third contrast set is the contrast of two adjacent reference brightness values in N reference brightness values of the reference electro-optic correspondence, each second contrast in the second contrast set is the contrast of two adjacent second candidate brightness values in N second candidate brightness values of the second candidate electro-optic correspondence, the curve part of the second electro-optic curve determined by the second electro-optic correspondence is a part of the second candidate electro-optic curve determined by the second candidate electro-optic correspondence, and P second contrasts in N-1 second contrasts in the second contrast set are smaller than or equal to P third contrasts in N-1 third contrasts, so that the curve trend of the curve part of the second electro-optic curve is the same as or different from that of the reference electro-optic curve determined based on the reference electro-optic correspondence;
further, according to the second contrast set, the first second luminance value and the second luminance threshold corresponding to the second luminance value, N second luminance values are determined, and based on the N second luminance values and the N pixel values, the second electro-optical correspondence is determined, so that the second electro-optical correspondence identical to or different from the curve trend of the reference electro-optical curve can be accurately constructed.
It should be understood that, in the process of constructing the second electro-optical correspondence, particularly when the electronic device executes S502, the internal implementation process of obtaining the second contrast set is different based on the third contrast set due to the difference in the number of P second contrasts in the second contrast set and the difference in the numerical value of P second contrasts.
The following embodiments describe various internal implementations of deriving the second contrast set based on the third contrast set.
In one implementation, P is equal to N-1 and N-1 second contrasts in the second contrast set are equal to N-1 third contrasts. In colloquial terms, N-1 second contrasts in the second contrast set equal to N-1 third contrasts may cause the second candidate electro-optic curve to have the same curve trend as the reference electro-optic curve. Illustratively, FIG. 10 is an exemplary diagram of a second candidate electro-optic curve and a reference electro-optic curve provided by embodiments of the present application. In the view of figure 10 of the drawings,representing a reference electro-optic curve>Representing a second candidate electro-optical curve, as can be seen from fig. 10 +.>And->The trend of the curves is the same. The electronic device gets the ++shown in fig. 10 based on the third contrast set >The implementation of the second contrast set of (c) may be: the third contrast set is taken as a second contrast set.
In another implementation, P is equal to N-1, and each of the N-1 second contrasts in the second contrast set is less than a third contrast in a third contrast set to which the second contrast corresponds. Colloquially, each of the N-1 second contrasts being smaller than the corresponding third contrast of the second contrast may cause the curve trend of the second candidate electro-optic curve to be quite different from the curve trend of the reference electro-optic curve. Illustratively, FIG. 11 is an exemplary diagram of another second candidate electro-optic curve and a reference electro-optic curve provided by embodiments of the present application. As can be seen in figure 11 of the drawings,and->Is quite different. The electronic device gets the ++shown in FIG. 11 based on the third contrast set>Is a second contrast set of (2)The implementation manner of the combination can be as follows: and determining the ith second contrast according to the ith third contrast in the N-1 third contrasts in the third contrast set to obtain a second contrast set, wherein the ith second contrast is smaller than the ith third contrast. In popular terms, after obtaining the third contrast set, the electronic device uses the contrast smaller than any third contrast in the third contrast set as the second contrast corresponding to any third contrast, so as to obtain N-1 second contrasts, and then the second contrast set can be obtained.
In another implementation, P is less than N-1 and P second contrasts in the second contrast set are less than P third contrasts. In colloquial terms, the P second contrasts in the second contrast set being less than the P third contrasts may cause the second candidate electro-optic curve to have a partially identical or partially different trend than the reference electro-optic curve. Illustratively, FIG. 12 is an exemplary diagram of another second candidate electro-optic curve and a reference electro-optic curve provided by embodiments of the present application. As can be seen from fig. 12, the second candidate electro-optic curve and the reference electro-optic curve each include two portions F2 and F3, wherein the trend of the curve of the portion F2 is the same and the trend of the curve of the portion F3 is different. The electronic device obtains the image shown in FIG. 12 based on the third contrast setThe implementation of the second contrast set of (c) may be:
first, a second contrast corresponding to the F3 portion is determined.
According to the embodiment of the application, the ith second contrast can be determined according to the ith third contrast in the P third contrasts in the third contrast set, so that the P second contrasts are obtained, and the ith second contrast is smaller than the ith third contrast. It should be understood that the P second contrasts are the second contrasts corresponding to the F3 portion. The implementation process of determining the ith second contrast according to the ith third contrast in the P third contrasts in the third contrast set is the same as the implementation process of determining the ith second contrast according to the ith third contrast in the N-1 third contrasts in the third contrast set, and is not repeated here.
And secondly, taking a third contrast corresponding to the F2 part in the third contrast set as a second contrast corresponding to the F2 part, and obtaining a second contrast set based on the second contrast corresponding to the F3 part and the second contrast corresponding to the F2 part.
The above embodiment describes the internal implementation procedure of S502, and the following embodiment describes the internal implementation procedure of S503.
It is to be understood that the first and second luminance values in S503 may be realized in the following manner (manner one and manner two).
Mode one
First, the electronic device determines a first relationship of a reference illuminance value and a maximum reference luminance value of N reference luminance values of the reference electro-optical conversion curve.
In an embodiment of the present application, the first relationship may be determined based on the following formula:
wherein Ra represents the first relationship thereof,representing the reference illuminance value,/>Representing the maximum reference luminance value.
Next, the electronic device determines a maximum second candidate luminance value based on the first relationship and the second luminance value.
In an embodiment of the present application, the maximum second candidate luminance value may be determined based on the following formula:
wherein C2 * max Represents the maximum second candidate brightness value, L2 represents the second illumination value, ra tableThe first relationship is shown.
The electronic device then determines a second relationship of the maximum second candidate luminance value and the maximum reference luminance value.
In an embodiment of the present application, the second relationship may be determined based on the following formula:
finally, the electronic device determines a first second luminance value based on a first one of the plurality of reference luminance values and the second relationship.
In the embodiment of the application, the first and second candidate luminance values may be determined based on the following formula, and the first and second candidate luminance values may be determined as the first and second luminance values.
In the embodiment of the present application, the first and second candidate luminance values may be determined based on the following formula:
wherein C2 * 1 Representing a first one of the second luminance values,representing a first one of the plurality of reference luminance values.
Mode two
The electronic device may determine the first and second candidate luminance values by the following formula:
the above embodiments describe the internal implementation process of the electronic device for constructing the second electro-optical correspondence with reference to fig. 7 to 12, and the following embodiments describe the internal implementation process of the electronic device for constructing the first electro-optical correspondence with reference to the drawings.
Fig. 13 is a schematic flowchart of a method 600 for constructing a first electro-optic correspondence according to an embodiment of the present application. The method 600 may be performed by an electronic device, a server, a processor or a chip in an electronic device, or a processor or a chip in a server, which is not limited in this embodiment. For ease of description, method 600 will be described in detail using an electronic device as an example.
S601, the electronic equipment obtains a second contrast set based on a second candidate electro-optic corresponding relation corresponding to the second electro-optic corresponding relation.
It should be understood that the method 600 is for describing in detail how the first electro-optic correspondence is constructed from the second electro-optic correspondence.
In some embodiments, the second electro-optic correspondence may be a second electro-optic correspondence that has been constructed in the method 500, and the electronic device may directly call the stored data of the constructed second electro-optic correspondence from the memory and call the second contrast set used when constructing the second electro-optic correspondence when executing S601.
In this embodiment of the present application, the second electro-optical correspondence may also be a second electro-optical correspondence constructed according to another method (other than the method 500), and when the electronic device executes S601, the electronic device first invokes the stored data of the constructed second electro-optical correspondence from the memory, then determines the second candidate electro-optical correspondence according to the second electro-optical correspondence, and finally obtains the second contrast set according to the second candidate electro-optical correspondence.
For example, please refer again to fig. 8, when executing S601, the electronic device firstly recalls the stored data B2 of the constructed second electro-optic correspondence from the memory, and secondly determines from B2 that Finally, according to->N second candidate luminance values C2 of (2) * Calculate 2 * And obtaining a second contrast set by contrast of two adjacent second candidate brightness values.
It is further understood that the second contrast set includes N-1 second contrasts, each second contrast being a contrast of two adjacent second candidate luminance values among N second candidate luminance values of the second candidate electro-optic correspondence, a curve portion of the second electro-optic curve determined by the second electro-optic correspondence being a portion of the second candidate electro-optic curve determined by the second candidate electro-optic correspondence. The second contrast set, the second candidate electro-optic correspondence, and the relationship between the second electro-optic curve and the second candidate electro-optic curve are set forth in other embodiments and are not described herein.
S602, the electronic device obtains a first contrast set based on the second contrast set.
It should be appreciated that each first contrast in the first contrast set is the contrast of two adjacent first candidate luminance values of the N first candidate luminance values of the first candidate electro-optic correspondence, the first contrast set comprising N-1 first contrasts. It should be noted that the first contrast set comprises the same number of first contrasts as the second contrast set.
It will also be appreciated that the first candidate electro-optic correspondence is used to represent a one-to-one correspondence between N pixel values and N first candidate luminance values at a first luminance value. The curve portion of the first electro-optic curve determined by the first electro-optic correspondence is a portion of the first candidate electro-optic curve determined by the first candidate electro-optic correspondence. In popular terms, the curve trend of the curve part of the first electro-optic curve is the same as the curve trend of the first candidate electro-optic curve, and the contrast of the curve part of the first electro-optic correspondence is a part of the first contrast set, so that the first electro-optic correspondence can be constructed through the determined first contrast set.
The relationship between the first electro-optic curve and the first candidate electro-optic curve may refer again to fig. 8, as shown in fig. 8, B2 may be considered as the first electro-optic curve,can be regarded as a first candidate electro-optical curve, the curve trend of the curve portion F1 of the first electro-optical correspondence B2 and the first candidate electro-optical curve +.>The trend of the curves is the same.
In this embodiment, P first contrasts in N-1 first contrasts in the first contrast set are smaller than P second contrasts in N-1 second contrasts, the P first contrasts are in one-to-one correspondence with the P second contrasts, two pixel values corresponding to two adjacent second candidate luminance values for generating an ith second contrast in the P second contrasts are the same as two pixel values corresponding to two adjacent first candidate luminance values for generating an ith first contrast in the P first contrasts, and a pixel value corresponding to a first candidate luminance value for generating the P first contrasts is larger than a pixel value corresponding to a first candidate luminance value for generating the N-1-P first contrasts.
Illustratively, assuming that N is 6 and p is 4, the N pixel values are 1, 2, 3, 4, 5, and 6 pixel values, respectively, and the 2 nd pixel value is greater than the 1 st pixel value, the 3 rd pixel value is greater than the 2 nd pixel value, … …, and the 6 th pixel value is greater than the 5 th pixel value. The second contrast set isWherein (1)>Represents the 1 st second contrast, … …, ->Representing 5 second contrasts.
The first contrast set isWherein (1)>Represents the 1 st first contrast, … …, ->Representing the 5 th third contrast.
P second contrasts areP first contrasts corresponding to P second contrasts are +.>Wherein (1)>And->Is generated based on the 3 rd pixel value and the 2 nd pixel value of the 6 pixel values and +.>Less than->And->Is generated based on the 4 th pixel value and the 3 rd pixel value and +.>Less than
And->And +.>And->Reference is made to the foregoing description, and no further description is given here. In this example, the pixel values (e.g., the 2 nd, 3 rd, 4 th, 5 th, and 6 th pixel values) corresponding to the first candidate luminance values for generating the P first contrasts are greater than the pixel values (e.g., the 1 st pixel value) corresponding to the first candidate luminance values for generating the N-1-P first contrasts.
In an implementation, the electronic device may make each of N-1 second contrasts in the first contrast set smaller than a second contrast in a second contrast set corresponding to the second contrast, so as to obtain the first contrast. The first contrast may be obtained by making a portion of the first contrast in the first contrast set smaller than a portion of the second contrast, and the specific implementation process may refer to other embodiments, which are not described herein.
S603, the electronic device determines N first brightness values according to the first contrast set, the first brightness value and the first brightness threshold corresponding to the first illumination value.
It should be understood that the first luminance threshold value corresponding to the first luminance value is a preconfigured luminance threshold value, the first luminance threshold value being the largest first luminance value of the N first luminance values. The configuration manner of the first luminance threshold may refer to the configuration manner of the second luminance threshold, which is not described herein.
The first luminance value is a starting luminance value of the first electro-optic curve, and the first luminance value is a smallest first luminance value of the N first luminance values. The first luminance value may be obtained from the reference electro-optic curve, the reference luminance value, and the first luminance value. The reference electro-optic curve and the reference illuminance value may be referred to the statements in other embodiments, and are not described herein.
In this embodiment of the present application, an implementation manner of obtaining the first luminance value by the electronic device may be: first, the electronic device determines a first relationship of a reference illuminance value and a maximum reference luminance value of N reference luminance values of the reference electro-optical conversion curve. Next, the electronic device determines a maximum first candidate luminance value based on the first relationship and the first luminance value. The electronic device then determines a third relationship of the maximum first candidate luminance value and the maximum reference luminance value. Finally, the electronic device determines a first luminance value based on a first one of the plurality of reference luminance values and a third relationship. The implementation manner may refer to the first implementation manner of the electronic device to obtain the first second luminance value in S503, which is not described herein.
In some embodiments, the implementation manner of the electronic device to obtain the first luminance value may refer to the second implementation manner of the electronic device to obtain the first second luminance value in S503, which is not described herein.
In an implementation, the process of determining N first luminance values by the electronic device includes:
determining N first candidate brightness values according to the first contrast set and the first brightness value; n first luminance values are determined from the N first candidate luminance values and a first luminance threshold value corresponding to the first luminance value.
It should be understood that the first candidate luminance value is a luminance value of the first candidate electro-optical correspondence, and the meaning of the first candidate electro-optical correspondence is already stated in other embodiments and is not described herein.
In this embodiment of the present application, according to the first contrast set and the first luminance value, an implementation manner of determining N first candidate luminance values may be:
illustratively, assuming N is 3, then 3-1=2 first contrasts are included in the first contrast set. When the method is implemented, the electronic equipment obtains a second first candidate brightness value according to the first brightness value and the first contrast in the first contrast set, obtains a third first candidate brightness value according to the second first candidate brightness value and the second first contrast in the first contrast set, and can obtain 3 first candidate brightness values, wherein the 3 first candidate brightness values are the first brightness value, the second first candidate brightness value and the third first candidate brightness value respectively.
In the embodiment of the application, N first luminance values are determined according to N first candidate luminance values and a first luminance threshold corresponding to the first luminance value.
For example, please refer to fig. 14, fig. 14 is an exemplary diagram of N first luminance values provided in an embodiment of the present application. In FIG. 14, C1 * Representing N first candidate brightness values, D1 representing a first brightness threshold, and the electronic device obtaining N first candidate brightness values C1 * And a first luminance threshold D1, C1 may be set * Deleting the value larger than D1, and C1 * The remaining values of (2) are taken as N first luminance values C1. Wherein the largest second luminance value of the N first luminance values C1 is equal to the first luminance threshold D1 and corresponds to N1 pixel values of the N pixel values, and the luminance values other than the largest first luminance value of C1 correspond to the pixel values other than the N1 pixel values (N-N1 pixel values) of the N pixel values.
S604, the electronic device determines a first electro-optic corresponding relation based on the N first brightness values and the N pixel values.
In implementation, after the electronic device obtains N first luminance values, please refer to fig. 14, straight line fitting may be performed on N1 pixel values and the largest first luminance value in C1, curve fitting may be performed on N-N1 pixel values and luminance values other than the largest first luminance value in C1, so as to obtain a first electro-optical correspondence.
It will be appreciated that the curve trend of the curve portion of the first electro-optic curve, which is typically determined by the constructed first electro-optic correspondence, and the second electro-optic curve, which is determined by the second electro-optic correspondence, is the same. Fig. 15 is an exemplary diagram of a generally constructed electro-optic correspondence provided in an embodiment of the present application. In fig. 15, the abscissa (value on the X-axis) represents N pixel values, the ordinate (value on the Y-axis) represents N luminance values of the display screen, and the first electro-optical curve B1 is used to represent a one-to-one correspondence between N pixel values and N first luminance values C1 at the first luminance value L1, one pixel value corresponding to one first luminance value, N1 pixel values among the N pixel values corresponding to the maximum luminance value among the N first luminance values C1, and N-N1 pixel values among the N pixel values corresponding to luminance values other than the maximum luminance value among the N first luminance values C1.
The second electro-optical curve B2 is configured to represent a one-to-one correspondence between N pixel values and N second luminance values C2 at the second luminance value L2, where one pixel value corresponds to one second luminance value, N1 pixel values in the N pixel values correspond to the maximum luminance value in the N second luminance values C2, and N-N1 pixel values in the N pixel values correspond to luminance values other than the maximum luminance value in the N second luminance values C2.
In fig. 15, the value of the second luminance value L2 is smaller than the value of the first luminance value L1, and the maximum second luminance value in C2 is smaller than the maximum first luminance value in C1. The number of N1 pixel values is equal to the number of N2 pixel values.
As can be seen from fig. 15, the curve trend of the curve portion corresponding to the N-N1 pixel values of the first electro-optic curve B1 is the same as that of the curve portion corresponding to the N-N1 pixel values of the second electro-optic curve B2, specifically because the contrast of the adjacent two first luminance values by calculating the N-N1 first luminance values corresponding to the N-N1 pixel values of the first electro-optic curve B1 is the same as that of the adjacent two second luminance values by calculating the N-N1 second luminance values corresponding to the N-N1 pixel values of the second electro-optic curve B2, and the contrast of the curve portion of the first electro-optic curve B1 and that of the curve portion of the second electro-optic curve B2 are the same colloquially.
Since the curve trend of the curve portion of the first electro-optical curve B1 and the curve portion of the second electro-optical curve B2 are the same, the number of the pixel values corresponding to the maximum first luminance value of the first electro-optical curve B1 and the number of the pixel values corresponding to the maximum second luminance value of the second electro-optical curve B2 are the same, and since the N1 pixel values are determined by B1 as the maximum first luminance value in C1 or the N1 pixel values are determined by B2 as the maximum second luminance value in C2, when an image is displayed in the display screen, the N1 pixel values of the image are made to exceed the exposure luminance range which should be applied when this image is captured, resulting in the occurrence of overexposure, the N1 pixel values may be overexposed in the case of the illuminance value L2 (dark environment), and the N1 pixel values corresponding to the maximum second luminance value may be overexposed in the case of the illuminance value L1 (bright environment), and the N1 pixel values corresponding to the maximum second luminance value may be overexposed in the environment.
In this embodiment, the first contrast set may be obtained based on the second contrast set, and since each second contrast in the second contrast set is a contrast of two adjacent second candidate luminance values in N second candidate luminance values of the second candidate electro-optic correspondence, a curve portion of the second electro-optic curve determined by the second electro-optic correspondence is a portion of the second candidate electro-optic curve determined by the second candidate electro-optic correspondence, each first contrast in the first contrast set is a contrast of two adjacent first candidate luminance values in N first candidate luminance values of the first candidate electro-optic correspondence, a curve portion of the first electro-optic curve determined by the first candidate electro-optic correspondence is a portion of the first candidate electro-optic curve determined by the first candidate electro-optic correspondence, and P first contrasts in the N-1 first contrasts in the first contrast set are smaller than P second contrasts in the second contrast set, so that the curve portion of the first curve and the curve portion of the second curve have different trends.
Further, since the pixel value corresponding to the first candidate luminance value for generating the P first contrasts is larger than the pixel value corresponding to the first candidate luminance value for generating the N-1-P first contrasts, the number of pixel values corresponding to the largest first luminance value among the N first luminance values of the determined first electro-optic correspondence is smaller than the number of pixel values corresponding to the largest second luminance value among the N second luminance values of the second electro-optic correspondence based on the N first luminance values and the N pixel values, so that the number of pixel values corresponding to the largest first luminance value that may be overexposed is smaller than the number of pixel values corresponding to the largest second luminance value that may be overexposed, and the exposure degree may be reduced when the plurality of first luminance values are determined by the determined first electro-optic correspondence.
It should be understood that, in the process of constructing the first electro-optical correspondence, particularly in executing S602, the internal implementation process of obtaining the first contrast set is different based on the second contrast set due to the different numbers of P first contrasts in the first contrast set and the different values of P first contrasts.
The following embodiments describe various internal implementations of deriving the first contrast set based on the second contrast set.
In one implementation, P is equal to N-1, and each of the N-1 first contrasts in the first contrast set is less than the second contrast in the second contrast set to which the first contrast corresponds. Colloquially, each of the N-1 first contrasts being less than the corresponding second contrast of the first contrast may cause the first candidate electro-optic curve to have a substantially different curve trend than the second candidate electro-optic curve. Illustratively, FIG. 16 is an exemplary diagram of a first candidate electro-optic curve and a second candidate electro-optic curve provided by embodiments of the present application. As can be seen from the view of figure 16,and->Is quite different. The electronic device gets the ++shown in fig. 16 based on the second contrast set>The implementation of the first contrast set of (c) may be:
the electronic device determines an ith first contrast in the P first contrasts according to the ith second contrast in the P second contrasts in the second contrast set based on a first formula to obtain a first contrast set:
wherein,represents the i first contrast, +.>Represents the ith second contrast, C2 * i+1 Representing the largest value of the two adjacent second candidate luminance values for generating the ith second contrast, C2 * i Representing the smallest value of the two adjacent second candidate luminance values for generating the ith second contrast, i being an integer greater than or equal to 1 and less than or equal to P.
According to the embodiment of the application, under the condition that P is equal to N-1, based on a first formula, according to the ith second contrast in the P second contrasts in the second contrast set, the ith first contrast in the P first contrasts is determined, and the determined ith first contrast can be smaller than the ith second contrast due to the first formula, so that the ith first contrast can be accurately determined, and the data of the obtained first contrast set is more accurate.
In another implementation, P is less than N-1 and P first contrasts in the first contrast set are less than P second contrasts. In colloquial terms, the P first contrasts in the first contrast set being less than the P second contrasts may cause the first candidate electro-optic curve to have a partially identical or partially different trend than the second candidate electro-optic curve. Fig. 17 is an exemplary diagram of another first candidate electro-optic curve and a second candidate electro-optic curve provided by embodiments of the present application. As can be seen from fig. 17, the first candidate electro-optical curve and the second candidate electro-optical curve each include two parts F4 and F5, wherein the trend of the curves of the part F4 is the same and the trend of the curves of the part F5 is different. The electronic device based on the second contrast set, resulted in the image shown in FIG. 17 The implementation of the first contrast set of (c) may be: first, a first contrast corresponding to the F5 portion is determined.
According to the embodiment of the application, the electronic device may determine, based on the second formula, according to an ith second contrast in the P second contrasts in the second contrast set, an ith first contrast in the P first contrasts to obtain the P first contrasts, where the ith first contrast is smaller than the ith second contrast:
with respect toC2 * i+1 And C2 * i The meaning of (c) has been stated in other embodiments and is not described in detail herein. It should be understood that the P first contrasts are the first contrasts corresponding to the F5 portion.
And secondly, taking the second contrast corresponding to the F4 part in the second contrast set as the first contrast corresponding to the F4 part, and obtaining a first contrast set based on the first contrast corresponding to the F5 part and the first contrast corresponding to the F4 part.
According to the embodiment of the application, the electronic device can obtain the first contrast set based on N-1-P second contrasts and P first contrasts in the second contrast set.
It should be understood that the second contrast corresponding to the F5 portion refers to P second contrasts, and that the second contrast set includes N-1 second contrasts, and then N-1-P second contrasts refer to the second contrasts corresponding to the F4 portion. Since the second candidate electro-optical curve of the F4 portion and the first candidate electro-optical curve have the same curve trend, the second contrast corresponding to the F4 portion and the first contrast corresponding to the F4 portion are the same, so that N-1-P second contrasts in the second contrast set can be used as N-1-P first contrasts in the first contrast set, and N-1 first contrasts can be obtained according to the N-1-P first contrasts (the first contrasts corresponding to the F4 portion) and the P first contrasts (the first contrasts corresponding to the F5 portion), so that the first contrast set can be obtained.
In the embodiment of the application, when P is smaller than N-1, the ith first contrast in the P first contrasts can be determined according to the ith second contrast in the P second contrasts in the second contrast set based on the second formula, and the determined ith first contrast can be smaller than the ith second contrast due to the second formula, so that the ith first contrast can be accurately determined, and the obtained data of the P first contrasts are more accurate;
moreover, since P is smaller than N-1, P first contrasts among N-1 first contrasts are smaller than P second contrasts among N-1 second contrasts, and thus N-1-P first contrasts among N-1 first contrasts are equal to P second contrasts among N-1 second contrasts, P second contrasts among N-1 second contrasts can be obtained based on N-1-P second contrasts among the second contrast sets, and thus a first contrast set can be accurately obtained based on N-1-P second contrasts and P first contrasts among the second contrast sets.
In some embodiments, the first formula and the second formula in the above embodiments may be replaced by the following formulas, which are not limited in this embodiment of the present application:
Or alternatively
The above embodiments describe various internal implementation procedures of S602, and the following embodiments describe internal implementation procedures of the electronic device determining N first candidate luminance values according to the first contrast set and the first luminance value when performing S603 to determine N first luminance values.
The electronic device determining N first candidate luminance values according to the first contrast set and the first luminance value includes:
based on a third formula, obtaining a second first candidate luminance value according to the first luminance value and the first contrast in the first contrast set:
wherein C1 * 2 Representing a second first candidate luminance value, C1 1 Representing a first one of the first luminance values,representing a first contrast.
Based on a fourth formula, according to the j second candidate brightness value and the j first contrast in the first contrast set, obtaining j+1 first candidate brightness values so as to obtain N first candidate brightness values:
wherein C1 * j+1 Represents the j+1th first candidate luminance value, C1 j Representing the j-th first candidate luminance value,and the j-th first contrast ratio is represented by j, which is an integer greater than or equal to 2 and less than or equal to N-1.
It should be understood that, among the N first candidate luminance values, the first candidate luminance value is the first luminance value, the second first candidate luminance value is obtained by substituting the first luminance value and the first contrast ratio into the formula three, the third first candidate luminance value is obtained by substituting the second first candidate luminance value and the second first contrast ratio into the formula four, and the fourth first candidate luminance value to the nth first candidate luminance value are obtained in the same manner as the third first candidate luminance value is obtained, so that the N first candidate luminance values can be obtained.
According to the embodiment of the application, the second first candidate brightness value can be obtained according to the first brightness value and the first contrast in the first contrast set based on the third formula, the (i+1) th first candidate brightness value can be obtained according to the (i) th second candidate brightness value and the (i) th first contrast in the first contrast set based on the fourth formula, and the (i+1) th first candidate brightness value is determined based on the (i) th second candidate brightness value and the (i) th first contrast, so that N first candidate brightness values can be accurately obtained.
In some embodiments, the third formula of the above embodiment may be replaced by the following formula, which is not limited in this embodiment of the present application:
or alternatively
In some embodiments, the fourth formula of the above embodiment may be replaced by the following formula, which is not limited in this embodiment of the present application:
or alternatively
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
The foregoing embodiments describe in detail the internal implementation procedure of the image display method 400 provided by the embodiments of the present application with reference to fig. 4 to fig. 6, the internal implementation procedure of the method 500 for constructing the second electro-optical correspondence provided by the embodiments of the present application with reference to fig. 7 to fig. 12, the internal implementation procedure of the method 600 for constructing the first electro-optical correspondence provided by the embodiments of the present application with reference to fig. 13 to fig. 17, and the electronic device provided by the embodiments of the present application is described in detail below with reference to the accompanying drawings.
Fig. 18 is an exemplary block diagram of an electronic device 700 provided by an embodiment of the present application. The electronic device 700 comprises a processing unit 71, the processing unit 71 being arranged to:
acquiring a first illuminance value of an environment through an ambient light sensor;
determining a plurality of first brightness values of the display screen according to a plurality of pixel values of the first image through a first electro-optical corresponding relation corresponding to the first illumination value, wherein the first electro-optical corresponding relation is used for representing a one-to-one corresponding relation between N pixel values and N first brightness values under the first illumination value, the plurality of pixel values belong to N pixel values, the plurality of first brightness values belong to N first brightness values, N1 pixel values in the N pixel values correspond to the largest first brightness value in the N first brightness values, the number of the N1 pixel values is smaller than the number of the N2 pixel values, and N is an integer larger than 1;
displaying a first image on a display screen through a plurality of first brightness values;
the N2 pixel values correspond to the largest second brightness value in the N second brightness values represented by the second electro-optical corresponding relation, the second electro-optical corresponding relation is used for representing the one-to-one corresponding relation between the N pixel values and the N second brightness values under the second illumination value, the second illumination value is smaller than the first illumination value, and the largest second brightness value is smaller than the largest first brightness value.
It should be understood that the processing unit 71 may be configured to perform each step performed by the electronic device in the method 400, and the detailed description may be referred to the related description above, which is not repeated.
In addition, the processing unit 71 may be further configured to perform each step performed by the electronic device in the method 500 or 600, and the detailed description may be referred to the related description above, which is not repeated.
It should be understood that the electronic device 700 herein is embodied in the form of functional units. The term "unit" herein may refer to an application specific integrated circuit (application specific integrated circuit, ASIC), an electronic circuit, a processor (e.g., a shared, dedicated, or group processor, etc.) and memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable components that support the described functionality.
In an embodiment of the present application, the electronic device in fig. 18 may also be a chip or a chip system, for example: system on chip (SoC).
Fig. 19 is a schematic structural diagram of an electronic device 800 provided in an embodiment of the present application. The electronic device 800 is configured to perform the respective steps and/or processes corresponding to the method embodiments described above.
The electronic device 800 comprises a processor 801, a transceiver 802 and a memory 803. Wherein the processor 801, the transceiver 802 and the memory 803 communicate with each other via an internal connection path, the processor 801 may implement the functions of the processing unit 71 in various possible implementations of the electronic device 700. The memory 803 is used for storing instructions, the processor 801 is used for executing the instructions stored in the memory 803, or the processor 801 may call these stored instructions to implement the functions of the processing unit 71 in the electronic device 700.
The memory 803 may optionally include read only memory and random access memory, and provide instructions and data to the processor. A portion of the memory may also include non-volatile random access memory. For example, the memory may also store information of the device type. The processor 801 may be configured to execute instructions stored in a memory and when the processor 801 executes instructions stored in the memory, the processor 801 is configured to perform the steps and/or processes of the method embodiments described above with respect to the electronic device.
The processor 801 is configured to perform the steps of:
acquiring a first illuminance value of an environment through an ambient light sensor;
determining a plurality of first brightness values of the display screen according to a plurality of pixel values of the first image through a first electro-optical corresponding relation corresponding to the first illumination value, wherein the first electro-optical corresponding relation is used for representing a one-to-one corresponding relation between N pixel values and N first brightness values under the first illumination value, the plurality of pixel values belong to N pixel values, the plurality of first brightness values belong to N first brightness values, N1 pixel values in the N pixel values correspond to the largest first brightness value in the N first brightness values, the number of the N1 pixel values is smaller than the number of the N2 pixel values, and N is an integer larger than 1;
Displaying a first image on a display screen through a plurality of first brightness values;
the N2 pixel values correspond to the largest second brightness value in the N second brightness values represented by the second electro-optical corresponding relation, the second electro-optical corresponding relation is used for representing the one-to-one corresponding relation between the N pixel values and the N second brightness values under the second illumination value, the second illumination value is smaller than the first illumination value, and the largest second brightness value is smaller than the largest first brightness value.
It should be understood that, the specific process of each device performing the corresponding steps in the above method is described in detail in the above method embodiment, and for brevity, will not be described herein again.
It should be appreciated that the processor 801 may be configured to perform the steps performed by the electronic device in the method 400, and the detailed description may be referred to the related description above, and will not be repeated.
In addition, the processor 801 may be further configured to perform the steps performed by the electronic device in the method 500 or 600, and the detailed description may be referred to the related description above, which is not repeated.
It should be appreciated that in embodiments of the present application, the processor of the apparatus described above may be a central processing unit (central processing unit, CPU), which may also be other general purpose processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software elements in the processor for execution. The software elements may be located in a random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor executes instructions in the memory to perform the steps of the method described above in conjunction with its hardware. To avoid repetition, a detailed description is not provided herein.
Embodiments of the present application provide a computer program product, which when executed on an electronic device, causes the electronic device to perform the technical solutions in the foregoing embodiments. The implementation principle and technical effects are similar to those of the related embodiments of the method, and are not repeated here.
An embodiment of the present application provides a readable storage medium, where the readable storage medium contains instructions, where the instructions, when executed on an electronic device, cause the electronic device to execute the technical solution of the foregoing embodiment. The implementation principle and technical effect are similar, and are not repeated here.
The embodiment of the application provides a chip for executing instructions, and when the chip runs, the technical scheme in the embodiment is executed. The implementation principle and technical effect are similar, and are not repeated here.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a high-density digital video disc (digital video disc, DVD)), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
It should be appreciated that reference throughout this specification to "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, various embodiments are not necessarily referring to the same embodiments throughout the specification. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present application.
It should also be understood that, in this application, "when …," "if," and "if" all refer to that the UE or the base station will make a corresponding process under some objective condition, and are not limited in time, nor do they require that the UE or the base station must have a judgment action when it is implemented, nor are they meant to have other limitations.
Those of ordinary skill in the art will appreciate that: the first, second, etc. numbers referred to in this application are merely for convenience of description and are not intended to limit the scope of the embodiments of the present application, but also to indicate the sequence.
Elements referred to in the singular are intended to be used in this application to mean "one or more" rather than "one and only one" unless specifically indicated. In this application, unless specifically stated otherwise, "at least one" is intended to mean "one or more" and "a plurality" is intended to mean "two or more".
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: there are three cases where a alone exists, where a may be singular or plural, and where B may be singular or plural, both a and B exist alone.
The term "at least one of … …" or "at least one of … …" herein means all or any combination of the listed items, e.g., "at least one of A, B and C," may mean: there are six cases where a alone, B alone, C alone, a and B together, B and C together, A, B and C together, where a may be singular or plural, B may be singular or plural, and C may be singular or plural.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system, apparatus and unit may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The same or similar parts between the various embodiments in this application may be referred to each other. In the various embodiments and the various implementation/implementation methods in the various embodiments in this application, if no special description and logic conflict exist, terms and/or descriptions between different embodiments and between the various implementation/implementation methods in the various embodiments may be consistent and may be mutually referred to, technical features in the different embodiments and the various implementation/implementation methods in the various embodiments may be combined to form new embodiments, implementations, implementation methods, or implementation methods according to their inherent logic relationships. The above-described embodiments of the present application are not intended to limit the scope of the present application.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application should be defined by the claims, and the above description is only a preferred embodiment of the technical solution of the present application, and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims (11)

1. A method of displaying an image, comprising:
acquiring a first illuminance value of an environment through an ambient light sensor;
determining a plurality of first brightness values of a display screen according to a plurality of pixel values of a first image through a first electro-optical corresponding relation corresponding to the first illumination value, wherein the first electro-optical corresponding relation is used for representing a one-to-one correspondence between N pixel values and N first brightness values under the first illumination value, the plurality of pixel values belong to the N pixel values, the plurality of first brightness values belong to the N first brightness values, N1 pixel values in the N pixel values correspond to the largest first brightness value in the N first brightness values, the number of the N1 pixel values is smaller than the number of the N2 pixel values, and N is an integer larger than 1;
displaying the first image on the display screen by the plurality of first brightness values;
the N2 pixel values correspond to the largest second luminance value of the N second luminance values represented by the second electro-optical correspondence, where the second electro-optical correspondence is used to represent a one-to-one correspondence between the N pixel values and the N second luminance values under a second luminance value, the second luminance value is smaller than the first luminance value, and the largest second luminance value is smaller than the largest first luminance value.
2. The display method according to claim 1, characterized in that the method further comprises:
obtaining a second contrast set based on a second candidate electro-optic corresponding relation corresponding to the second electro-optic corresponding relation, wherein the second contrast set comprises N-1 second contrasts, each second contrast is the contrast of two adjacent second candidate brightness values in N second candidate brightness values of the second candidate electro-optic corresponding relation, and a curve part of a second electro-optic curve determined by the second electro-optic corresponding relation is a part of the second candidate electro-optic curve determined by the second candidate electro-optic corresponding relation;
obtaining a first contrast set based on the second contrast set, wherein the first contrast set comprises N-1 first contrasts, each first contrast is the contrast of two adjacent first candidate brightness values in N first candidate brightness values of a first candidate electro-optic corresponding relation, the first candidate electro-optic corresponding relation is used for representing the one-to-one correspondence between N pixel values and the N first candidate brightness values under the first illumination value, the curve part of a first electro-optic curve determined through the first electro-optic corresponding relation is a part of a first candidate electro-optic curve determined through the first candidate electro-optic corresponding relation, P first contrasts in the N-1 first contrasts are smaller than P second contrasts in the N-1 second contrasts, the P first contrasts are in one-to-one correspondence with the P second contrasts, two adjacent pixel values corresponding to the i second brightness values in the P second contrasts are used for generating the two adjacent pixel values corresponding to the P first candidate brightness values, the P first contrast values corresponding to the P first pixel values corresponding to the P first brightness values in the P second contrast are used for generating the P first candidate brightness values which are larger than the P first contrast values corresponding to the P first candidate brightness values;
Determining the N first brightness values according to the first contrast set, a first brightness value and a first brightness threshold corresponding to the first illumination value, wherein the first brightness value is the minimum first brightness value in the N first brightness values, and the first brightness threshold is the maximum first brightness value;
the first electro-optic correspondence is determined based on the N first luminance values and the N pixel values.
3. The display method according to claim 2, wherein, in the case where P is equal to N-1, the obtaining a first contrast set based on the second contrast set includes:
determining, based on a first formula, the ith one of the P first contrasts from the ith one of the P second contrasts in the second contrast set to obtain the first contrast set:
wherein,representing said i-th first contrast, < >>Represents the ith second contrast, C2 * i+1 Representing the largest value of the two adjacent second candidate luminance values for generating the ith second contrast, C2 * i And representing the second candidate brightness value with the smallest value in the two adjacent second candidate brightness values for generating the ith second contrast, wherein i is an integer which is greater than or equal to 1 and less than or equal to P.
4. The display method according to claim 2, wherein, in the case where P is smaller than N-1, the obtaining a first contrast set based on the second contrast set includes:
determining, based on a second formula, an ith first contrast of the P first contrasts according to the ith second contrast of the P second contrasts in the second contrast set, to obtain the P first contrasts:
wherein,representing said i-th first contrast, < >>Represents the ith second contrast, C2 * i+1 Represents the second candidate luminance value with the largest value among the two adjacent second candidate luminance values for generating the ith second contrast, C2 * i Representing a second candidate luminance value having the smallest value among the two adjacent second candidate luminance values for generating the ith second contrast, i being an integer greater than 1 and less than or equal to P;
and obtaining the first contrast set based on N-1-P second contrasts in the second contrast set and the P first contrasts, wherein the N-1-P second contrasts are second contrasts except the P second contrasts in the second contrast set.
5. The display method according to any one of claims 2 to 4, wherein the determining the N first luminance values from the first contrast set, a first luminance value, and a first luminance threshold value corresponding to the first luminance value includes:
determining the N first candidate brightness values according to the first contrast set and the first brightness value;
and determining the N first brightness values according to the N first candidate brightness values and a first brightness threshold corresponding to the first illumination value.
6. The display method of claim 5, wherein determining the N first candidate luminance values from the first contrast set and the first luminance value comprises:
based on a third formula, obtaining a second first candidate brightness value according to the first brightness value and the first contrast in the first contrast set:
wherein C1 * 2 Representing the second first candidate luminance value, C1 1 Representing the first luminance value,representing the first contrast;
based on a fourth formula, according to the j-th first candidate brightness value and the j-th first contrast in the first contrast set, obtaining j+1th first candidate brightness value, so as to obtain the N first candidate brightness values:
Wherein C1 * j+1 Represents the j+1th first candidate luminance value, C1 j Representing the jth first candidate luminance value,and the j-th first contrast ratio is represented, and j is an integer which is more than or equal to 2 and less than or equal to N-1.
7. The display method according to any one of claims 1 to 6, characterized in that the method further comprises:
obtaining a third contrast set based on a reference electro-optic correspondence, wherein the reference electro-optic correspondence is used for representing a one-to-one correspondence between N pixel values and N reference brightness values under a reference illumination value, the third contrast set comprises N-1 third contrasts, and each third contrast is the contrast of two adjacent reference brightness values in the N reference brightness values;
based on the third contrast set, obtaining the second contrast set, wherein the P second contrasts in the N-1 second contrasts in the second contrast set are smaller than or equal to the P third contrasts in the N-1 third contrasts, the P third contrasts are in one-to-one correspondence with the P second contrasts, two pixel values corresponding to two adjacent second candidate brightness values for generating the ith second contrast in the P second contrasts are identical to two pixel values corresponding to two adjacent reference brightness values for generating the ith third contrast in the P third contrasts, and the pixel value corresponding to the second candidate brightness value for generating the P second contrasts is larger than the pixel value corresponding to the second candidate brightness value for generating the N-1-P second contrasts;
Determining the N second brightness values according to the second contrast set, a first second brightness value and a second brightness threshold corresponding to the second illumination value, wherein the first second brightness value is the minimum second brightness value in the N second brightness values, and the second brightness threshold is the maximum second brightness value;
the second electro-optic correspondence is determined based on the N second luminance values and the N pixel values.
8. The display method according to any one of claims 1 to 7, wherein the first electro-optical correspondence and the second electro-optical correspondence are preconfigured correspondences.
9. An electronic device, comprising:
one or more processors;
one or more memories;
the one or more memories store one or more computer programs comprising instructions that, when executed by the one or more processors, cause the electronic device to perform the method of any of claims 1-8.
10. A computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any one of claims 1 to 8.
11. A chip, the chip comprising:
a memory: for storing instructions;
a processor for invoking and executing the instructions from the memory to cause a communication device on which the chip system is installed to perform the method of any of claims 1-8.
CN202310742343.4A 2023-06-20 2023-06-20 Image display method, electronic device, readable storage medium and chip Pending CN117711300A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310742343.4A CN117711300A (en) 2023-06-20 2023-06-20 Image display method, electronic device, readable storage medium and chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310742343.4A CN117711300A (en) 2023-06-20 2023-06-20 Image display method, electronic device, readable storage medium and chip

Publications (1)

Publication Number Publication Date
CN117711300A true CN117711300A (en) 2024-03-15

Family

ID=90143046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310742343.4A Pending CN117711300A (en) 2023-06-20 2023-06-20 Image display method, electronic device, readable storage medium and chip

Country Status (1)

Country Link
CN (1) CN117711300A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006072866A1 (en) * 2005-01-05 2006-07-13 Koninklijke Philips Electronics N.V. Emissive display device
EP2028640A2 (en) * 2007-08-17 2009-02-25 Vestel Elektronik Sanayi ve Ticaret A.S. Auto adjusting backlight and pixel brightness on display panels
CN104700775A (en) * 2015-03-13 2015-06-10 西安诺瓦电子科技有限公司 Image display method and image display brightness regulating device
CN109040607A (en) * 2018-08-13 2018-12-18 Oppo广东移动通信有限公司 Image formation control method, device, electronic equipment and computer readable storage medium
US20190052908A1 (en) * 2015-12-21 2019-02-14 Koninklijke Philips N.V. Optimizing high dynamic range images for particular displays
KR20190027131A (en) * 2017-09-06 2019-03-14 고려대학교 산학협력단 Apparatus and method for display visibility enhancement
US20200294468A1 (en) * 2019-03-13 2020-09-17 Apple Inc. Electronic Devices With Ambient Light Sensor Systems
CN114612310A (en) * 2020-12-04 2022-06-10 深圳Tcl新技术有限公司 Image enhancement processing method and computer equipment
US11606498B1 (en) * 2020-09-22 2023-03-14 Apple Inc. Exposure of panoramas

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006072866A1 (en) * 2005-01-05 2006-07-13 Koninklijke Philips Electronics N.V. Emissive display device
EP2028640A2 (en) * 2007-08-17 2009-02-25 Vestel Elektronik Sanayi ve Ticaret A.S. Auto adjusting backlight and pixel brightness on display panels
CN104700775A (en) * 2015-03-13 2015-06-10 西安诺瓦电子科技有限公司 Image display method and image display brightness regulating device
US20190052908A1 (en) * 2015-12-21 2019-02-14 Koninklijke Philips N.V. Optimizing high dynamic range images for particular displays
KR20190027131A (en) * 2017-09-06 2019-03-14 고려대학교 산학협력단 Apparatus and method for display visibility enhancement
CN109040607A (en) * 2018-08-13 2018-12-18 Oppo广东移动通信有限公司 Image formation control method, device, electronic equipment and computer readable storage medium
US20200294468A1 (en) * 2019-03-13 2020-09-17 Apple Inc. Electronic Devices With Ambient Light Sensor Systems
US11606498B1 (en) * 2020-09-22 2023-03-14 Apple Inc. Exposure of panoramas
CN114612310A (en) * 2020-12-04 2022-06-10 深圳Tcl新技术有限公司 Image enhancement processing method and computer equipment

Similar Documents

Publication Publication Date Title
CN112150399B (en) Image enhancement method based on wide dynamic range and electronic equipment
CN113810600B (en) Terminal image processing method and device and terminal equipment
WO2021052111A1 (en) Image processing method and electronic device
CN113810601B (en) Terminal image processing method and device and terminal equipment
CN111510698A (en) Image processing method, device, storage medium and mobile terminal
CN113810603B (en) Point light source image detection method and electronic equipment
CN115601274B (en) Image processing method and device and electronic equipment
CN112929558B (en) Image processing method and electronic device
CN114466134A (en) Method and electronic device for generating HDR image
CN114463191A (en) Image processing method and electronic equipment
CN115412678B (en) Exposure processing method and device and electronic equipment
CN116668862B (en) Image processing method and electronic equipment
CN115631250B (en) Image processing method and electronic equipment
CN117711300A (en) Image display method, electronic device, readable storage medium and chip
CN115706869A (en) Terminal image processing method and device and terminal equipment
CN115760652B (en) Method for expanding dynamic range of image and electronic equipment
CN115705663B (en) Image processing method and electronic equipment
US20240236504A9 (en) Point light source image detection method and electronic device
CN117274109B (en) Image processing method, noise reduction model training method and electronic equipment
CN115460343B (en) Image processing method, device and storage medium
CN113421209B (en) Image processing method, system on chip, electronic device, and medium
CN116896626B (en) Method and device for detecting video motion blur degree
CN117133252B (en) Image processing method and electronic device
CN116668838B (en) Image processing method and electronic equipment
CN118175246A (en) Method for processing video, display device and storage 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