[go: up one dir, main page]

CN112164007A - Image display method and apparatus, terminal and readable storage medium - Google Patents

Image display method and apparatus, terminal and readable storage medium Download PDF

Info

Publication number
CN112164007A
CN112164007A CN202011050848.7A CN202011050848A CN112164007A CN 112164007 A CN112164007 A CN 112164007A CN 202011050848 A CN202011050848 A CN 202011050848A CN 112164007 A CN112164007 A CN 112164007A
Authority
CN
China
Prior art keywords
brightness
image
hdr image
processing
hdr
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.)
Granted
Application number
CN202011050848.7A
Other languages
Chinese (zh)
Other versions
CN112164007B (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202011050848.7A priority Critical patent/CN112164007B/en
Publication of CN112164007A publication Critical patent/CN112164007A/en
Application granted granted Critical
Publication of CN112164007B publication Critical patent/CN112164007B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4007Scaling of whole images or parts thereof, e.g. expanding or contracting based on interpolation, e.g. bilinear interpolation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20172Image enhancement details
    • G06T2207/20208High dynamic range [HDR] image processing

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Liquid Crystal Display Device Control (AREA)

Abstract

本申请提供了一种图像显示方法。图像显示方法包括判断待处理图像是否为HDR图像;若是,对所述HDR图像的高亮区域进行第一亮度处理,以提高所述高亮区域的亮度;及显示处理后的所述HDR图像。本申请实施方式的图像显示方法通过识别HDR图像并对其高亮区域进行第一亮度处理,以提高所述高亮区域的亮度,从而使得高亮区域和显示画面中高亮区域之外的部分的亮度差增大,实现了高亮区域的突出显示,有利于提升HDR图像的显示效果。本申请还提供一种图像显示装置、终端和非易失性计算机可读存储介质。

Figure 202011050848

The present application provides an image display method. The image display method includes judging whether an image to be processed is an HDR image; if so, performing first brightness processing on a highlighted area of the HDR image to increase the brightness of the highlighted area; and displaying the processed HDR image. The image display method of the embodiment of the present application improves the brightness of the highlighted area by recognizing the HDR image and performing the first brightness processing on the highlighted area thereof, so that the highlight area and the part other than the highlighted area in the display screen are different from each other. The brightness difference is increased, and the highlight of the highlight area is realized, which is beneficial to improve the display effect of the HDR image. The present application also provides an image display device, a terminal, and a non-volatile computer-readable storage medium.

Figure 202011050848

Description

Image display method and apparatus, terminal and readable storage medium
Technical Field
The present application relates to the field of image technologies, and in particular, to an image display method, an image display apparatus, a terminal, and a non-volatile computer-readable storage medium.
Background
Compared with common images, images with High Dynamic Range (HDR) can provide more Dynamic Range and image details, and according to Low-Dynamic Range (LDR) images with different exposure times, LDR images with optimal details corresponding to each exposure time are used to synthesize a final HDR image, so that visual effects in a real environment can be better reflected. However, the current display device does not distinguish between the HDR image and the non-HDR image, so that the advantage of high dynamic range of the HDR image cannot be exerted, and the display effect is poor.
Disclosure of Invention
Embodiments of the present application provide an image display method, an image display apparatus, a terminal, and a non-volatile computer-readable storage medium.
The image display method comprises the steps of judging whether an image to be processed is an HDR image; if so, performing first brightness processing on a highlight area of the HDR image to improve the brightness of the highlight area; and displaying the HDR image after processing.
The image display device of the embodiment of the application comprises a judging module, a processing module and a display module. The judging module is used for judging whether the image to be processed is an HDR image; the processing module is used for performing first brightness processing on a highlight area of the HDR image when the image to be processed is the HDR image; and the display module is used for displaying the HDR image after processing.
The terminal comprises a display and a processor, wherein the processor is used for judging whether an image to be processed is an HDR image or not and carrying out first brightness processing on a highlight area of the HDR image when the image to be processed is the HDR image; the display is used for displaying the HDR image after processing.
A non-transitory computer-readable storage medium containing a computer program that, when executed by one or more processors, causes the processors to perform an image display method. The image display method comprises the steps of judging whether an image to be processed is an HDR image; if so, performing first brightness processing on a highlight area of the HDR image to improve the brightness of the highlight area; and displaying the HDR image after processing.
The image display method, the image display device, the terminal and the non-volatile computer readable storage medium of the embodiment of the application improve the brightness of the highlight area by identifying the HDR image and performing the first brightness processing on the highlight area, so that the brightness difference between the highlight area and the part outside the highlight area in the display picture is increased, the highlight display of the highlight area is realized, and the display effect of the HDR image is improved.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart diagram of an image display method according to some embodiments of the present application;
FIG. 2 is a block diagram of an image display device according to some embodiments of the present application;
FIG. 3 is a schematic plan view of a terminal according to some embodiments of the present application;
FIG. 4 is a schematic plan view from another perspective of a terminal according to some embodiments of the present application;
FIG. 5 is a schematic flow chart diagram of an image display method according to some embodiments of the present application;
FIG. 6 is a schematic flow chart diagram of an image display method according to some embodiments of the present application;
FIG. 7 is a schematic flow chart diagram of an image display method according to some embodiments of the present application;
FIG. 8 is a schematic flow chart diagram of an image display method according to some embodiments of the present application; and
FIG. 9 is a schematic diagram of a connection between a processor and a computer-readable storage medium according to some embodiments of the present application.
Detailed Description
Embodiments of the present application will be further described below with reference to the accompanying drawings. The same or similar reference numbers in the drawings identify the same or similar elements or elements having the same or similar functionality throughout. In addition, the embodiments of the present application described below in conjunction with the accompanying drawings are exemplary and are only for the purpose of explaining the embodiments of the present application, and are not to be construed as limiting the present application.
Referring to fig. 1, an image display method according to an embodiment of the present application includes the following steps:
011: judging whether the image to be processed is an HDR image;
012: if so, performing first brightness processing on a highlight area of the HDR image to improve the brightness of the highlight area; and
013: and displaying the processed HDR image.
Referring to fig. 2, the image display apparatus 10 according to the embodiment of the present disclosure includes a determining module 11, a processing module 12, and a display module 13. The judging module 11, the processing module 12 and the display module 13 are respectively used for executing the step 011, the step 012 and the step 013. Namely, the judging module 11 is configured to judge whether the image to be processed is an HDR image; the processing module 12 is configured to, when the image to be processed is an HDR image, perform first luminance processing on a highlight area of the HDR image to improve luminance of the highlight area; the display module 13 is configured to display the processed HDR image.
Referring to fig. 3 and 4, in some embodiments, the terminal 100 further includes a display 30 and a processor 20. The processor is used for judging whether the image to be processed is an HDR image or not and carrying out first brightness processing on a highlight area of the HDR image when the image to be processed is the HDR image; the display 30 is used to display the processed HDR image. That is, step 011 and step 012 can be implemented by processor 20, and step 013 can be implemented by display 30.
Specifically, the terminal 100 includes a housing 40, a processor 20, and a display 30. The terminal 100 may be a mobile phone, a tablet computer, a display device, a notebook computer, a teller machine, a gate, a smart watch, a head-up display device, a game console, etc. As shown in fig. 3, the embodiment of the present application is described by taking the terminal 100 as an example, and it is understood that the specific form of the terminal 100 is not limited to a mobile phone. The housing 40 may also be used to mount functional modules of the terminal 100, such as a display device (i.e., the display 30), an imaging device, a power supply device, and a communication device, so that the housing 40 provides protection for the functional modules against dust, falling, water, and the like.
The image to be processed may be captured by the camera 50 of the terminal 100, or may be downloaded from the internet by the user, which is not limited herein.
After acquiring the image to be processed, the processor 20 first determines whether the image to be processed is an HDR image; the method can be specifically judged by the following steps: acquiring image parameters of an image to be processed; for example, the image parameter information of the image, such as the size of the image, the format of the image, the type of the image, etc., is generally generated at the same time when the image is generated by the camera 50, thereby facilitating the processor 20 to quickly acquire the information of the image. The processor 20 then determines whether the image to be processed is an HDR image according to the image parameters. For example, the processor 20 determines whether the image to be processed is an HDR image according to the type information of the image; or, the image format of the HDR image is different from the format of the normal image, and is generally HDR or tif, and the processor 20 may determine whether the image to be processed is the HDR image by recognizing the format of the image to be processed.
When determining that the image to be processed is an HDR image, the processor 20 first identifies a highlight region in the HDR image, where the highlight region is a region in which highlight pixels in the HDR image are distributed in a concentrated manner, and the highlight pixels are pixels greater than or equal to a predetermined pixel value, for example, the predetermined pixel value may be 220, 225, 230, 236, 240, 244, 250, 255, and the like, and when identifying the highlight region in the HDR image, the processor 20 may first identify a highlight pixel in the HDR image according to whether the pixel value of the pixel is greater than the predetermined pixel value, and then determine the highlight region according to the distribution of the highlight pixel. The highlight area can only consist of highlight pixels, and when the highlight area only consists of the highlight pixels, the pixel values of the pixels of the highlight area are all larger than the preset pixel value, so that the accuracy of determining the highlight area is ensured; or the highlight area may also be composed of a part of highlight pixels and a part of medium-low-brightness pixels (pixels with pixel values smaller than a predetermined pixel value), where a ratio of the highlight pixels in the highlight area is greater than a preset ratio, which may be 60%, 70%, 75%, 80%, 85, 90%, 95%, 99%, and so on, that is, the processor 20 uses a part where a ratio of the highlight pixels reaches the preset ratio as the highlight area, so as to ensure integrity of the highlight area, and prevent that the highlight area is too large in number and even a single pixel is also used as one highlight area, which results in too scattered distribution of the highlight area after the first brightness processing, and affects a display effect of the HDR image.
Then, the processor 20 performs a first brightness processing on the highlight area, where the first brightness processing specifically may be that the pixel value of the pixel corresponding to the highlight area is amplified, so as to increase the brightness of the pixel in the highlight area by changing the pixel value, of course, according to the selection of the predetermined pixel value, the brightness gain for increasing the brightness of the pixel in the highlight area by changing the pixel value is also different, and the smaller the selection of the predetermined pixel value is, the larger the difference between the predetermined pixel value and the maximum pixel value 255 is, the larger the brightness gain is; the larger the predetermined pixel value is selected, the smaller its difference from the maximum pixel value 255, the smaller the luminance gain.
The brightness of the highlight area after the first brightness processing is improved, so that the brightness difference between the highlight area and the part outside the highlight area in the display picture is increased, the highlight display of the highlight area is realized, the display 30 displays according to the processed HDR image, and the HDR image has a better display effect.
The image display method, the image display device 10 and the terminal 100 of the embodiment of the application perform the first brightness processing on the highlight region by identifying the HDR image and determining the highlight region, so as to improve the brightness of the highlight region, thereby increasing the brightness difference between the highlight region and the part outside the highlight region in the display screen, realizing the highlight display of the highlight region, and being beneficial to improving the display effect of the HDR image.
Referring to fig. 5, in some embodiments, step 012 includes the following steps:
0121: increasing the backlight brightness according to a predetermined ratio, wherein the backlight brightness is the brightness of a backlight light source of the terminal 100;
0122: and performing second brightness processing on the middle and low brightness regions outside the high brightness region in the HDR image so as to keep the brightness of the middle and low brightness regions before and after the backlight brightness is improved consistent.
Referring again to fig. 2, in certain embodiments, the processing module 12 is further configured to perform steps 0121 and 0122. That is, the processing module 12 is further configured to increase the backlight brightness according to a predetermined ratio, where the backlight brightness is the brightness of the backlight light source of the terminal 100; and performing second brightness processing on the middle and low brightness regions outside the high brightness region in the HDR image so as to keep the brightness of the middle and low brightness regions before and after the backlight brightness is improved consistent.
Referring again to fig. 3, in some embodiments, the processor 20 is further configured to increase the backlight brightness according to a predetermined ratio, where the backlight brightness is the brightness of the backlight light source of the terminal 100; and performing second brightness processing on the middle and low brightness regions outside the high brightness region in the HDR image so as to keep the brightness of the middle and low brightness regions before and after the backlight brightness is improved consistent. That is, steps 0121 and 0122 may be implemented by the processor 20.
Specifically, the display luminance of the display 30 is related to the backlight luminance in addition to the pixel value, and the larger the pixel value is, the larger the display luminance is, and the larger the backlight luminance is, the larger the display luminance is. To further increase the brightness of the highlight region, the processor 20 may increase the backlight brightness according to a predetermined ratio, for example, the display 30 includes a backlight panel including a backlight source and a driving circuit, and the processor 20 may control a driving current input to the driving circuit to increase the brightness of the backlight source, thereby increasing the backlight brightness of the display 30. The backlight brightness can be improved in two ways:
mode 1: increasing the driving current input to the driving circuit according to a predetermined step length, increasing the backlight brightness with the increase of the driving current, setting a brightness detector in the terminal 100, calculating to obtain the target backlight brightness according to the current backlight brightness and a predetermined ratio, wherein the predetermined ratio is a ratio value determined according to the current display brightness and the maximum display brightness, stopping increasing the driving current when detecting that the backlight brightness reaches the target backlight brightness, and gradually increasing the backlight brightness to make the increase of the backlight brightness smoother;
mode 2: the terminal 100 further includes a memory 60, the memory 60 is a mapping relationship table between the target backlight brightness and the driving current, the processor 20 is connected to the memory 60, the processor 20 can calculate the target backlight brightness according to the current backlight brightness and the predetermined ratio, and then query the mapping relationship table to obtain the target driving current corresponding to the target backlight brightness, so that the backlight light source is driven according to the target driving current to make the backlight brightness reach the target backlight brightness, and the backlight brightness can be quickly improved.
If the current backlight brightness is larger, the backlight brightness boosted according to the predetermined ratio may exceed the maximum backlight brightness, and at this time, when the backlight brightness is boosted according to the method 1, since the brightness detected by the brightness detector cannot reach the target backlight brightness, the processor 20 will increase the driving current all the time, thereby causing the backlight panel to be burned out; at this time, when the backlight brightness is increased according to the method 2, since the driving current corresponding to the target backlight brightness does not exist in the mapping relationship table, the processor 20 cannot achieve the increase of the backlight brightness. Therefore, when determining the target backlight brightness, it is first determined whether the target backlight brightness is greater than the maximum backlight brightness. When the target backlight brightness is larger than the maximum backlight brightness, the maximum backlight brightness is taken as the target backlight brightness, and the preset proportion is calculated according to the current backlight brightness and the target backlight brightness, so that the situation that the backlight panel is burnt out or the backlight brightness cannot be improved is prevented.
After the backlight brightness is increased to the target backlight brightness, the overall brightness of the HDR image is increased, and in order to achieve the effect of only increasing the brightness of the highlight region and highlighting the highlight region, the processor 20 may perform a second brightness processing on the middle-low brightness region outside the highlight region in the HDR image, so that the brightness of the middle-low brightness region before the backlight brightness is increased and the brightness of the middle-low brightness region after the second brightness processing are kept consistent, where the consistency refers to that the brightness of the middle-low brightness region before the backlight brightness is increased and the brightness of the middle-low brightness region after the second brightness processing are equal; or the difference value of the brightness of the middle and low brightness areas before the brightness of the backlight is increased and after the second brightness processing is less than the preset difference value. For example, the processor 20 reduces the brightness of the middle and low brightness regions at the target backlight brightness to the brightness before the backlight brightness is raised. The second brightness processing performed by the processor 20 on the middle and low brightness regions outside the high brightness region in the HDR image may be, for example, performing reduction processing on pixel values of pixels in the middle and low brightness regions according to a scaling factor, where the processor 20 first calculates a backlight brightness difference value before backlight brightness is increased and after backlight brightness is increased, then obtains a scaling factor corresponding to the pixel value of the pixel according to the backlight brightness difference value based on a preset lookup table, and reduces the pixel value of the pixel in the middle and low brightness regions by the scaling factor, where the scaling factor is smaller than 1, and the scaling factor may be for each pixel, that is, each pixel has a corresponding scaling factor, so as to implement accurate second brightness processing on each pixel; the scaling factor may also be for the medium and low brightness regions, that is, the medium and low brightness regions correspond to one scaling factor, and the scaling factor may be a scaling factor corresponding to a pixel with a maximum pixel value in the medium and low brightness regions, or the scaling factor may also be a scaling factor corresponding to an average value of pixel values in the medium and low brightness regions, so that the scaling factor corresponding to each pixel does not need to be calculated, and the calculation amount is reduced. The larger the brightness difference value is, the smaller the scaling factor is, and the smaller the brightness difference value is, the larger the scaling factor is. Therefore, the brightness of the highlight area is further improved, meanwhile, the brightness of the middle and low brightness areas is guaranteed to be unchanged, the effect of highlighting the highlight area is improved, the display effect of the middle and low brightness areas is not affected, and the display effect of the HDR image is good.
Referring to fig. 6, in some embodiments, step 0122 further includes the following steps:
0123: amplifying the pixel value of the pixel in the highlight area; and
0124: the pixel values of the pixels of the HDR image are subjected to reduction processing.
Referring again to fig. 2, in certain embodiments, the processing module 12 is further configured to perform steps 0123 and 0124. That is, the processing module 12 is further configured to perform an amplification process on the pixel values of the pixels in the highlight area; and performing reduction processing on pixel values of pixels of the HDR image.
Referring again to fig. 3, in some embodiments, the processor 20 is further configured to perform an amplification process on the pixel values of the pixels in the highlight region; and performing reduction processing on pixel values of pixels of the HDR image. That is, steps 0123 and 0124 may be implemented by the processor 20.
Specifically, when performing the second luminance processing on the middle and low luminance regions, the pixel value of the pixel in the high luminance region may be enlarged first, and then the entire HDR image may be reduced, so that the pixel value of the pixel in the high luminance region is substantially unchanged, the pixel value of the pixel in the middle and low luminance regions is reduced, and the luminance of the pixel in the middle and low luminance regions is reduced, so as to maintain the display luminance substantially consistent with the display luminance before the display luminance is increased. For example, the pixel values of the pixels in the highlight region may be enlarged by a scaling factor (e.g. 0.5), and then the pixel values of the entire HDR image may be reduced by the scaling factor, where the pixel values of the pixels in the highlight region are unchanged and the pixel values of the pixels in the mid-low brightness region are reduced by half.
Referring to fig. 7, in certain embodiments, step 0123 comprises:
0129: calculating the backlight brightness difference value before and after the backlight brightness is improved;
0125: based on a preset lookup table, obtaining a scaling coefficient corresponding to a preset pixel value according to the backlight brightness difference value;
0126: and carrying out linear amplification processing on the pixel values of the pixels of the highlight area according to the scaling coefficient.
Step 0124 comprises:
0127: the pixel values of the pixels of the HDR image are subjected to a reduction process according to the scaling coefficient.
Referring again to fig. 2, in certain embodiments, the processing module 12 is further configured to perform steps 0129, 0125, 0126, and 0127. That is, the processing module 12 is further configured to calculate a backlight brightness difference between the backlight brightness before being increased and the backlight brightness after being increased; based on a preset lookup table, obtaining a scaling coefficient corresponding to a preset pixel value according to the backlight brightness difference value; carrying out linear amplification processing on the pixel values of the pixels in the highlight area according to the scaling coefficient; the pixel values of the pixels of the HDR image are subjected to a reduction process according to the scaling coefficient.
Referring again to fig. 3, in some embodiments, the processor 20 is further configured to calculate a backlight brightness difference between the backlight brightness before and after the backlight brightness is increased; based on a preset lookup table, obtaining a scaling coefficient corresponding to a preset pixel value according to the backlight brightness difference value; carrying out linear amplification processing on the pixel values of the pixels in the highlight area according to the scaling coefficient; the pixel values of the pixels of the HDR image are subjected to a reduction process according to the scaling coefficient. That is, steps 0129, 0125, step 0126, and step 0127 may be implemented by the processor 20.
Specifically, when the processor 20 performs the amplification processing on the pixels in the highlight area, the backlight luminance difference value before the backlight luminance is increased and after the backlight luminance is increased is calculated, then the scaling factor corresponding to the predetermined pixel value is obtained according to the backlight luminance difference value based on the preset lookup table, the preset lookup table stores the mapping relationship among the predetermined pixel value, the backlight luminance difference value and the scaling factor, and the other one can be determined according to any two of the predetermined pixel value, for example, the scaling factor is determined according to the predetermined pixel value and the backlight luminance difference value, and the predetermined pixel value is determined according to the backlight luminance difference value and the scaling factor. The predetermined pixel value is a value for distinguishing between the high-luminance pixel and the low-luminance pixel, and may be, for example, 220, 225, 230, 236, 240, 244, 250, 255, and the like, and the predetermined pixel value is 240 in the present embodiment. When the pixel value of the pixel is larger than or equal to 240, the pixel is a highlight pixel; when the pixel value is less than 240, the pixel is a low-brightness pixel.
In one example, the scaling factor determined according to the predetermined pixel value (240) and the backlight brightness difference value is B, and after the pixel with the predetermined pixel value is scaled by the scaling factor, the display brightness of the pixel is reduced to the display brightness before the backlight brightness is increased.
When the processor 20 performs linear enlargement processing on the pixel value of the pixel of the highlight area according to the scaling factor, the larger the pixel value is, the brighter the pixel is, the correspondingly settable larger the enlargement factor is, so as to improve the highlight effect of the highlight area. The processor 20 may determine that the predetermined pixel value 240 corresponds to an enlargement coefficient of 1 and the maximum pixel value 255 corresponds to a reduction coefficient of 1/B, determine a linear enlargement function Y of a and B in aX + B according to two sets of values (240, 1) and (255, 1/B), where X is a pixel value and Y is an enlargement coefficient, and then determine an enlargement coefficient corresponding to each pixel in the highlight region according to the linear enlargement function to perform the linear enlargement processing on the pixel values of the pixels of the highlight region. The enlarged pixel values are not used for displaying, but the subsequent processor 20 facilitates performing a reduction process on pixels of the entire HDR image according to a scaling factor, the reduction process is to multiply the pixel value of each pixel of the HDR image by the scaling factor, specifically, since each pixel includes pixel values of three channels of red, green and blue (i.e., R, G, B), when performing the enlargement process and the reduction process, the pixel value of each channel is enlarged and reduced, for example, when reducing the pixel value, a focusing matrix with a diagonal line having a value of B is set, and then (R, G, B) is multiplied by the focusing matrix to obtain the reduced pixel value, thereby ensuring that only the display brightness of the pixel is changed, and the color information of the pixel is not changed.
Referring to fig. 8, in some embodiments, step 012 further includes the following steps:
0128: and performing second brightness processing on a display area outside the HDR image in the current display interface so as to enable the brightness of the display area outside the HDR image before the backlight brightness is increased and after the second brightness processing to be consistent.
Referring again to fig. 2, in certain embodiments, the processing module 12 is further configured to perform step 0128. That is, the processing module 12 is further configured to perform the second brightness processing on the display area outside the HDR image in the current display interface, so that the brightness of the display area outside the HDR image before the backlight brightness is increased and after the second brightness processing is performed is kept consistent.
Referring again to fig. 3, in some embodiments, the processor 20 is further configured to perform a second brightness processing on a portion of the current display interface outside the HDR image, so that brightness of a display area outside the HDR image before the backlight brightness is increased and after the second brightness processing is performed is consistent. That is, step 0128 may be implemented by processor 20.
Specifically, when the HDR image is displayed, only a part of the current display interface may be occupied, and at this time, the display interface may also display a system interface, or other non-HDR images, and in order to further improve the highlighting effect of the highlight region, when performing the second luminance processing, in addition to performing the second luminance processing on the middle and low luminance regions other than the highlight region in the HDR image, the second luminance processing is also performed on the display regions other than the HDR image in the display interface, so as to ensure that only the highlight region of the HDR is luminance-improved on the entire display interface, and improve the highlighting effect of the highlight region. And the display areas except the highlight areas of the HDR images in the display interface are subjected to second brightness processing, so that the problem of screen flashing caused by the fact that the display brightness is switched between the display brightness after being promoted and the display brightness before being promoted corresponding to the HDR images when the album is checked in a sliding mode can be prevented when the display interface simultaneously displays the HDR images and other non-HDR images is checked in the sliding mode, and the display effect when the images are checked in the sliding mode is improved.
Referring to fig. 9, a non-volatile computer readable storage medium 300 storing a computer program 302 according to an embodiment of the present disclosure, when the computer program 302 is executed by one or more processors 200, the processor 200 may execute the image display method according to any of the embodiments.
For example, referring to fig. 1, the computer program 302, when executed by the one or more processors 200, causes the processors 200 to perform the steps of:
011: judging whether the image to be processed is an HDR image;
012: if so, performing first brightness processing on a highlight area of the HDR image to improve the brightness of the highlight area; and
013: and displaying the processed HDR image.
For another example, referring to fig. 5, when the computer program 302 is executed by the one or more processors 200, the processors 200 may further perform the steps of:
0121: increasing the backlight brightness according to a preset proportion;
0122: and performing second brightness processing on the middle and low brightness regions outside the high brightness region in the HDR image so as to keep the brightness of the middle and low brightness regions before and after the backlight brightness is improved consistent.
For another example, referring to fig. 8, when the computer program 302 is executed by the one or more processors 200, the processors 200 may further perform the steps of:
0128: and performing second brightness processing on a display area outside the HDR image in the current display interface so as to enable the brightness of the display area outside the HDR image before the backlight brightness is increased and after the second brightness processing to be consistent.
In the description herein, reference to the description of the terms "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example" or "some examples" or the like means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more program modules for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes additional implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
Although embodiments of the present application have been shown and described above, it is to be understood that the above embodiments are exemplary and not to be construed as limiting the present application, and that changes, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (12)

1. An image display method, comprising:
judging whether the image to be processed is an HDR image;
if so, performing first brightness processing on a highlight area of the HDR image to improve the brightness of the highlight area;
displaying the HDR image after processing.
2. The image display method according to claim 1, wherein the determining whether the image to be processed is an HDR image comprises:
acquiring image parameters of an image to be processed;
and judging whether the image to be processed is an HDR image according to the image parameters.
3. The image display method according to claim 1, wherein said performing the first luminance processing on the highlight region of the HDR image comprises:
increasing the backlight brightness according to a preset proportion, wherein the backlight brightness is the brightness of a backlight light source of the terminal;
and performing second brightness processing on middle and low brightness regions outside the high brightness region in the HDR image so as to enable the brightness of the middle and low brightness regions before and after the backlight brightness is improved to be consistent.
4. The image display method according to claim 3, wherein said performing the first luminance processing on the highlight region of the HDR image, further comprises:
and performing second brightness processing on a display area outside the HDR image in the current display interface so as to keep the brightness of the display area outside the HDR image consistent before and after the backlight brightness is improved.
5. The image display method according to claim 3, wherein the predetermined scale is a scale value determined according to a current display luminance and a maximum display luminance.
6. The image display method according to claim 3, wherein said performing the second luminance processing on the middle and low luminance regions other than the high luminance region in the HDR image comprises:
amplifying the pixel values of the pixels in the highlight area;
and performing reduction processing on pixel values of pixels of the HDR image.
7. The image display method according to claim 6, wherein the enlarging process of the pixel value of the pixel of the highlight region includes:
calculating the backlight brightness difference value before and after the backlight brightness is improved;
based on a preset lookup table, obtaining a scaling coefficient corresponding to a preset pixel value according to the backlight brightness difference value;
carrying out linear amplification processing on the pixel values of the pixels of the highlight area according to the scaling coefficient;
the reducing processing of the pixel values of the pixels of the HDR image includes:
and carrying out reduction processing on pixel values of pixels of the HDR image according to the scaling coefficient.
8. The image display method according to claim 7, wherein a pixel value of a pixel of the highlight region is larger than the predetermined pixel value.
9. The image display method according to claim 7, wherein said performing the second luminance processing on the middle and low luminance regions other than the high luminance region in the HDR image comprises:
and carrying out reduction processing on the pixel values of the pixels of the medium and low brightness regions according to the scaling coefficient.
10. An image display apparatus, comprising:
the judging module is used for judging whether the image to be processed is an HDR image;
the processing module is used for performing first brightness processing on a highlight area of the HDR image to improve the brightness of the highlight area when the image to be processed is the HDR image; and
and the display module is used for displaying the HDR image after the first brightness processing.
11. A terminal, comprising a processor and a display, wherein the processor is configured to determine whether an image to be processed is an HDR image, and perform a first luminance process on a highlight area of the HDR image when the image to be processed is the HDR image; the display is used for displaying the HDR image after the first brightness processing.
12. A non-transitory computer-readable storage medium containing a computer program which, when executed by a processor, causes the processor to perform the image display method of any one of claims 1 to 9.
CN202011050848.7A 2020-09-29 2020-09-29 Image display method and device, terminal and readable storage medium Active CN112164007B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011050848.7A CN112164007B (en) 2020-09-29 2020-09-29 Image display method and device, terminal and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011050848.7A CN112164007B (en) 2020-09-29 2020-09-29 Image display method and device, terminal and readable storage medium

Publications (2)

Publication Number Publication Date
CN112164007A true CN112164007A (en) 2021-01-01
CN112164007B CN112164007B (en) 2024-06-11

Family

ID=73860734

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011050848.7A Active CN112164007B (en) 2020-09-29 2020-09-29 Image display method and device, terminal and readable storage medium

Country Status (1)

Country Link
CN (1) CN112164007B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112348759A (en) * 2020-11-25 2021-02-09 Oppo广东移动通信有限公司 Image display method and apparatus, terminal and readable storage medium
CN115631109A (en) * 2022-10-28 2023-01-20 维沃移动通信有限公司 Image processing method, image processing device and electronic equipment
CN116095503A (en) * 2022-06-15 2023-05-09 荣耀终端有限公司 Terminal device and method for creating/displaying HDR image
CN117711350A (en) * 2023-08-23 2024-03-15 荣耀终端有限公司 Display control method and electronic equipment
CN118338120A (en) * 2023-01-11 2024-07-12 荣耀终端有限公司 Image preview method and terminal device
WO2024179058A1 (en) * 2023-02-27 2024-09-06 荣耀终端有限公司 Image processing method and electronic device
WO2025044350A1 (en) * 2023-08-29 2025-03-06 华为技术有限公司 Image display method and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009135358A1 (en) * 2008-05-08 2009-11-12 Hong Kong Applied Science And Technology Research Institute Co., Ltd. Method and apparatus for enhancing the dynamic range of an image
CN104205204A (en) * 2012-03-22 2014-12-10 富士胶片株式会社 Image display device and method
CN106210921A (en) * 2016-08-12 2016-12-07 深圳创维-Rgb电子有限公司 A kind of image effect method for improving and device thereof
CN108074220A (en) * 2017-12-11 2018-05-25 上海顺久电子科技有限公司 A kind of processing method of image, device and television set
CN108182912A (en) * 2018-02-07 2018-06-19 深圳创维-Rgb电子有限公司 Adjust method, apparatus, equipment and the storage medium of backlight illumination
CN109716427A (en) * 2017-01-18 2019-05-03 华为技术有限公司 A kind of brightness adjusting method and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009135358A1 (en) * 2008-05-08 2009-11-12 Hong Kong Applied Science And Technology Research Institute Co., Ltd. Method and apparatus for enhancing the dynamic range of an image
CN104205204A (en) * 2012-03-22 2014-12-10 富士胶片株式会社 Image display device and method
CN106210921A (en) * 2016-08-12 2016-12-07 深圳创维-Rgb电子有限公司 A kind of image effect method for improving and device thereof
CN109716427A (en) * 2017-01-18 2019-05-03 华为技术有限公司 A kind of brightness adjusting method and terminal
CN108074220A (en) * 2017-12-11 2018-05-25 上海顺久电子科技有限公司 A kind of processing method of image, device and television set
CN108182912A (en) * 2018-02-07 2018-06-19 深圳创维-Rgb电子有限公司 Adjust method, apparatus, equipment and the storage medium of backlight illumination

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112348759A (en) * 2020-11-25 2021-02-09 Oppo广东移动通信有限公司 Image display method and apparatus, terminal and readable storage medium
CN112348759B (en) * 2020-11-25 2024-12-24 Oppo广东移动通信有限公司 Image display method and device, terminal and readable storage medium
CN118590766A (en) * 2022-06-15 2024-09-03 荣耀终端有限公司 Terminal device and method for creating/displaying HDR image
CN117241145A (en) * 2022-06-15 2023-12-15 荣耀终端有限公司 Terminal devices and methods of creating/displaying HDR images
CN116095503A (en) * 2022-06-15 2023-05-09 荣耀终端有限公司 Terminal device and method for creating/displaying HDR image
CN118590766B (en) * 2022-06-15 2025-12-05 荣耀终端股份有限公司 Terminal devices and methods for creating/displaying HDR images
CN117241145B (en) * 2022-06-15 2025-12-30 荣耀终端股份有限公司 Terminal devices and methods for displaying images
CN115631109A (en) * 2022-10-28 2023-01-20 维沃移动通信有限公司 Image processing method, image processing device and electronic equipment
CN118338120A (en) * 2023-01-11 2024-07-12 荣耀终端有限公司 Image preview method and terminal device
WO2024179058A1 (en) * 2023-02-27 2024-09-06 荣耀终端有限公司 Image processing method and electronic device
CN117711350A (en) * 2023-08-23 2024-03-15 荣耀终端有限公司 Display control method and electronic equipment
CN117711350B (en) * 2023-08-23 2025-01-10 荣耀终端有限公司 Display control method and electronic equipment
WO2025044350A1 (en) * 2023-08-29 2025-03-06 华为技术有限公司 Image display method and electronic device

Also Published As

Publication number Publication date
CN112164007B (en) 2024-06-11

Similar Documents

Publication Publication Date Title
CN112164007A (en) Image display method and apparatus, terminal and readable storage medium
US11563897B2 (en) Image processing method and apparatus which determines an image processing mode based on status information of the terminal device and photographing scene information
US11418702B2 (en) Method and device for displaying shooting interface, and terminal
CN107426470B (en) Camera module and electronic device
CN107888840B (en) High dynamic range image acquisition method and device
EP3694203A1 (en) Method and device for obtaining exposure compensation value of high-dynamic-range image
US8331721B2 (en) Automatic image correction providing multiple user-selectable options
US8538147B2 (en) Methods and appartuses for restoring color and enhancing electronic images
CN107249109B (en) Image sensor, camera module and electronic device
EP3079010A1 (en) Photographing method for dual-camera device and dual-camera device
CN107426471B (en) Camera module and electronic device
KR20050018256A (en) Method for displaying an image of wall painting effect in portable terminal
JP2022027436A (en) Image processing method and device, terminal, and storage medium
WO2019101005A1 (en) Pixel compensation method and apparatus, and terminal device
CN112437237B (en) Shooting method and device
WO2024251062A1 (en) Gain map generation method and apparatus, electronic device and medium
CN112365550A (en) Display calibration method and device, terminal, calibration system and storage medium
CN108198189B (en) Picture definition obtaining method and device, storage medium and electronic equipment
CN112348759B (en) Image display method and device, terminal and readable storage medium
CN110493515B (en) Method, device, storage medium and electronic device for enabling high dynamic range shooting mode
CN108337448B (en) High dynamic range image acquisition method and device, terminal equipment and storage medium
CN111784604A (en) Image processing method, device, equipment and computer readable storage medium
US20150358524A1 (en) Imaging apparatus and storage medium, and exposure amount control method
CN112884774A (en) Processing method, electronic device, and storage medium
US11902693B2 (en) Image processing device and image processing method

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
GR01 Patent grant
GR01 Patent grant