CN116168652A - Image display method, device, electronic equipment and computer readable storage medium - Google Patents

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

Info

Publication number
CN116168652A
CN116168652A CN202211678620.1A CN202211678620A CN116168652A CN 116168652 A CN116168652 A CN 116168652A CN 202211678620 A CN202211678620 A CN 202211678620A CN 116168652 A CN116168652 A CN 116168652A
Authority
CN
China
Prior art keywords
backlight
value
brightness
image
pixel point
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
CN202211678620.1A
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.)
Wuhan TCL Group Industrial Research Institute Co Ltd
Original Assignee
Wuhan TCL Group Industrial Research Institute 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 Wuhan TCL Group Industrial Research Institute Co Ltd filed Critical Wuhan TCL Group Industrial Research Institute Co Ltd
Priority to CN202211678620.1A priority Critical patent/CN116168652A/en
Publication of CN116168652A publication Critical patent/CN116168652A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/34Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
    • G09G3/3406Control of illumination source
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/22Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
    • G09G3/30Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
    • G09G3/32Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/34Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
    • G09G3/36Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source using liquid crystals
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/066Adjustment of display parameters for control of contrast

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Crystallography & Structural Chemistry (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Liquid Crystal Display Device Control (AREA)

Abstract

The embodiment of the application discloses an image display method, an image display device, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: dividing an image to be displayed into a plurality of partial image blocks according to the distribution condition of backlight areas of the panel to be displayed; for each backlight area, determining the backlight brightness value of the backlight area according to the gray value of the local image block corresponding to the backlight area; determining a brightness correction coefficient corresponding to each pixel point in the image to be displayed according to the backlight brightness value of the backlight area; and displaying the image to be displayed according to the backlight brightness value and the brightness correction coefficient. And determining backlight brightness values corresponding to the backlight areas through gray values corresponding to the local image blocks, so that different backlight areas correspond to different backlight brightness values, and compensating pixel brightness through the backlight brightness values, thereby improving the contrast ratio of each pixel point in the image to be displayed and improving the visual effect of the image.

Description

Image display method, device, electronic equipment and computer readable storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to an image display method, an image display device, electronic equipment and a computer readable storage medium.
Background
With the rapid development of computer technology, image processing technology has also been rapidly developed and applied.
The contrast of the image can improve the subjective feeling of the user, and the display effect of higher contrast becomes a trend of development.
In particular, in the field of image display in which backlight exists, how to improve the contrast of image display by using the backlight has been the subject of current research and attention.
Disclosure of Invention
The embodiment of the application provides an image display method, an image display device, electronic equipment and a computer readable storage medium, which can improve the contrast of image display and improve the visual effect of images.
In a first aspect, an embodiment of the present application provides an image display method, including:
dividing an image to be displayed into a plurality of partial image blocks according to the distribution condition of backlight areas of the panel to be displayed;
for each backlight area, determining a backlight brightness value of the backlight area according to the gray value of the local image block corresponding to the backlight area;
determining a brightness correction coefficient corresponding to each pixel point in the image to be displayed according to the backlight brightness value of the backlight area;
and displaying the image to be displayed according to the backlight brightness value and the brightness correction coefficient.
In a second aspect, embodiments of the present application further provide an image display apparatus, including:
the image dividing module is used for dividing the image to be displayed into a plurality of partial image blocks according to the distribution condition of the backlight area of the panel to be displayed;
the brightness determining module is used for determining a backlight brightness value of each backlight area according to the gray value of the local image block corresponding to the backlight area;
the coefficient determining module is used for determining a brightness correction coefficient corresponding to each pixel point in the image to be displayed according to the backlight brightness value of the backlight area;
and the image display module is used for displaying the image to be displayed according to the backlight brightness value and the brightness correction coefficient.
In a third aspect, an embodiment of the present application further provides an electronic device, where the electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps in the image display method described above when executing the computer program.
In a fourth aspect, embodiments of the present application further provide a computer readable storage medium, where a computer program is stored, where the computer program when executed by a processor implements the steps in the image display method described above.
According to the embodiment of the application, an image to be displayed is divided into a plurality of local image blocks according to the distribution condition of the backlight areas of the panel to be displayed, the backlight brightness value of the backlight areas is determined according to the gray values of the local image blocks corresponding to the backlight areas for each backlight area, the brightness correction coefficient corresponding to each pixel point in the image to be displayed is determined according to the backlight brightness value of the backlight areas, and the image to be displayed is displayed according to the backlight brightness value and the brightness correction coefficient. The method comprises the steps that a backlight area of a panel is used for blocking an image to be displayed, a plurality of local image blocks are obtained, each local image block can correspond to one backlight area respectively, when the backlight areas determine corresponding backlight brightness values according to gray values of the corresponding local image blocks, different backlight areas can correspond to different backlight brightness values respectively, and compared with uniform backlight in the related art, the method is beneficial to improving contrast ratio of each pixel point in the image to be displayed. In addition, the brightness correction coefficient corresponding to the pixel point in the image to be displayed is determined according to the backlight brightness value of the backlight area, and after the pixel point is corrected according to the brightness correction coefficient corresponding to the pixel point, the brightness of each pixel point can be adjusted based on the backlight brightness value of the backlight area, so that the contrast ratio of each pixel point in the image to be displayed is further improved. After the contrast between each pixel point in the image to be displayed is improved, the visual effect of the image is improved.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a scenario of an image display method provided in an embodiment of the present application;
fig. 2 is a schematic flow chart of an image display method according to an embodiment of the present application;
fig. 3 is a schematic view of a backlight extraction effect provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of comparison between the image adjustment provided in the embodiment of the present application;
fig. 5 is a schematic diagram of comparison of image display effects corresponding to whether to perform brightness compensation on an image under the condition that a backlight brightness value of a local image block is used as a backlight provided in the embodiment of the present application;
fig. 6 is a flowchart of an image area dimming method according to an embodiment of the present disclosure;
fig. 7 is a schematic structural view of an image display device provided in the present application;
fig. 8 is a schematic structural diagram of an image area dimming device according to an embodiment of the present application;
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
The embodiment of the application provides an image display method, an image display device, electronic equipment and a computer readable storage medium. Specifically, the electronic device includes a terminal or a server, where the terminal may be a device such as a television, a mobile phone, a camera, a computer, a tablet, etc., and the server may be an independent physical server, or may be a server cluster or a distributed system formed by multiple physical servers, or may be a cloud server that provides cloud services, a cloud database, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, a content delivery network (CDN, content Delivery Network), and basic cloud computing services such as a big data and an artificial intelligent platform, where the servers may be directly or indirectly connected through a wired or wireless communication manner.
In the embodiment of the present application, the image display method may be executed by the terminal device alone, or the image display method may be executed by the server alone, or the image display method may be executed by the terminal device and the server together, referring to fig. 1, taking the example that the terminal device executes the image display method alone, where a specific execution procedure of the image display method is as follows:
after the terminal device 10 obtains the image to be displayed, the image to be displayed is divided into a plurality of local image blocks according to the distribution condition of the backlight areas in the display panel of the terminal device 10, then, for each backlight area, the backlight brightness value of the backlight area is determined according to the gray value of the pixel point in the local image block corresponding to the backlight area, then, the brightness correction coefficient corresponding to each pixel point in the image to be displayed is determined according to the backlight brightness value of the backlight area, and then, the image to be displayed is displayed in the display panel of the terminal device 10 according to the backlight brightness value of the backlight area and the brightness correction coefficient of the pixel point.
In this embodiment of the present application, the panel to be displayed includes a backlight plate and a foreground plate, where the backlight plate is obtained by splicing a plurality of backlight areas and is used for providing backlight, and the foreground plate is used for displaying an image to be displayed and achieves a corresponding display effect under the backlight provided by the backlight plate.
According to the embodiment of the application, an image to be displayed is divided into a plurality of local image blocks according to the distribution condition of the backlight areas of the panel to be displayed, the backlight brightness value of the backlight areas is determined according to the gray values of the local image blocks corresponding to the backlight areas for each backlight area, the brightness correction coefficient corresponding to each pixel point in the image to be displayed is determined according to the backlight brightness value of the backlight areas, and the image to be displayed is displayed according to the backlight brightness value and the brightness correction coefficient. The method comprises the steps that a backlight area of a panel is used for blocking an image to be displayed, a plurality of local image blocks are obtained, each local image block can correspond to one backlight area respectively, when the backlight areas determine corresponding backlight brightness values according to gray values of the corresponding local image blocks, different backlight areas can correspond to different backlight brightness values respectively, and compared with uniform backlight in the related art, the method is beneficial to improving contrast ratio of each pixel point in the image to be displayed. In addition, the brightness correction coefficient corresponding to the pixel point in the image to be displayed is determined according to the backlight brightness value of the backlight area, and after the pixel point is corrected according to the brightness correction coefficient corresponding to the pixel point, the brightness of each pixel point can be adjusted based on the backlight brightness value of the backlight area, so that the contrast ratio of each pixel point in the image to be displayed is further improved. After the contrast between each pixel point in the image to be displayed is improved, the visual effect of the image is improved.
The following will describe in detail. It should be noted that the following description order of embodiments is not a limitation of the priority order of embodiments.
Referring to fig. 2, fig. 2 is a flowchart of an image display method according to an embodiment of the present application. The specific flow of the image display method can be as follows:
101. dividing the image to be displayed into a plurality of partial image blocks according to the distribution condition of the backlight area of the panel to be displayed.
In this embodiment of the present application, the panel to be displayed includes a backlight plate and a foreground plate, where the backlight plate is obtained by splicing multiple backlight areas and is used for providing backlight, and the foreground plate is used for displaying an image to be displayed and achieving a corresponding display effect under the backlight provided by the backlight plate.
The backlight plate is formed by splicing a plurality of backlight areas, so that each backlight area can improve the contrast of image display by displaying different backlights. In this embodiment, the contrast refers to a measurement of different brightness levels between the brightest white and the darkest black in a bright-dark region of an image, that is, the magnitude of gray contrast of an image. The larger the difference range represents the larger contrast, the smaller the difference range represents the smaller contrast, the better the contrast 120:1 can easily display vivid and rich colors, and when the contrast is as high as 300:1, the colors of each order can be supported.
In the implementation of the present application, the backlight area may be an area formed by a plurality of light emitting points, that is, a backlight in which each light emitting point in the area displays the same brightness value; the backlight panel may also be a region corresponding to a single light emitting point, that is, each light emitting point corresponds to a backlight region, where production and control costs of the backlight panel are relatively high in a case where a single light emitting point corresponds to a backlight region.
The image to be displayed is divided into a plurality of local image blocks through the backlight areas, so that the backlight corresponding to each backlight area is conveniently determined according to the gray value of the local image blocks, and backlight adjustment can be respectively realized by each backlight area, namely different backlight areas display different backlights, and a backlight display basis is provided for improving the contrast of the image to be displayed.
In this embodiment of the present application, before dividing the image to be displayed, in order to ensure that the resolution of the image to be displayed is consistent with the resolution of the panel, the image to be displayed may be resampled (including upsampling or downsampling, etc.) or the periphery of the image to be displayed may be complemented or cut, so that the resolution of the image to be displayed is consistent with the resolution of the panel, and it is convenient to implement one-to-one correspondence between the local image block and the backlight area.
102. And determining the backlight brightness value of each backlight area according to the gray value of the local image block corresponding to the backlight area.
In this embodiment of the present application, each backlight area determines different backlight brightness values, so that each backlight area may correspond to different backlight brightness values, and provide a backlight basis for improving the display contrast of the image to be displayed.
And determining a corresponding backlight brightness value according to the gray value of the corresponding local image block by each backlight area, so that the corresponding local image block can be considered by the backlight brightness value of each backlight area, and the improvement of the contrast of the image to be displayed during display is ensured.
In this embodiment of the present application, when an image displayed in a panel needs to be enlarged or reduced, local image blocks may be re-divided according to the enlarged or reduced image, and a backlight brightness value corresponding to each backlight area is determined based on the re-divided local image blocks, so that when the image is enlarged or reduced, a higher contrast is still provided, and a visual effect of the enlarged or reduced image when the image is displayed is improved.
In the related art, when an image is displayed on a display device such as an LCD or an LED, a uniform backlight is used, that is, the brightness of the backlight is uniform for all areas of the image, and in this way, there is a problem that the contrast of the image is reduced, for example, when a black area has a certain brightness due to the backlight and after the backlight transmits light, the contrast of the image is reduced. In the embodiment of the application, different backlights are respectively displayed through different backlight areas, so that the contrast of image display is improved, and the visual effect is improved.
In order to overcome the problem of contrast reduction caused by consistent backlight, in the related art, a mode of setting the backlight brightness as a gray value average value of a color image is also adopted, and on the basis of consistent backlight brightness, the brightness value of the backlight is controlled according to the gray value of the color image so as to improve the image display effect.
Therefore, for the problem that the brightness is darker when the brightness is set in the mean manner, the embodiment of the present application may comprehensively consider the backlight brightness value of the pixel point by combining the maximum value of the gray values on the basis of the mean value of the gray values of the pixel point, that is, optionally, in some embodiments of the present application, the step of "determining, for each backlight area, the backlight brightness value of the backlight area according to the gray value of the local image block corresponding to the backlight area" includes:
For each pixel point in the image to be displayed, determining a maximum gray value and an average gray value corresponding to the pixel point according to the gray value of the pixel point in each color channel;
for the local image block, determining a block backlight brightness value of the local image block according to a maximum gray value and an average gray value of each pixel point in the local image block;
and taking the block backlight brightness value of the local image block corresponding to the backlight area as the backlight brightness value of the backlight area for each backlight area.
In this embodiment of the present application, the image to be displayed includes a color image (RGB image), and correspondingly, a color channel of a pixel point in the image to be displayed includes a red channel R, a green channel G, and a blue channel B, where, for a pixel value of each pixel point, the pixel value is obtained by synthesizing gray values of three channels, so that, for each pixel point, one gray value is respectively provided in three channels.
Accordingly, in the embodiment of the present application, the maximum gray value of a pixel is the maximum value of gray values of the pixel in three channels, that is, the pixel is divided into three channelsThe maximum value of the Gray value of the channel is taken as the maximum Gray value of the pixel, for example, the maximum Gray value Gray of each pixel max The method can be calculated by the following formula, and is specifically as follows:
Gray max =Max(R,G,B)
wherein Gray max The maximum gray value of the pixel is represented, and R, G, B represents the gray value of the pixel in each color channel.
In the embodiment of the present application, the average Gray value of the pixel is the average of the Gray values of three channels of the pixel, that is, the average of the Gray values of the pixel in the three channels is taken as the average Gray value of the pixel, for example, the average Gray value Gray of each pixel Avg The method can be calculated by the following formula, and is specifically as follows:
Figure BDA0004018168330000071
wherein Gray Avg The average depth value of the pixel is indicated, and R, G, B is the gray scale value of the pixel in each color channel.
And each local image block obtains the backlight brightness value of the local image block by the maximum gray value and the average gray value of each pixel point in the local image block respectively.
After the block backlight brightness value of the local image block is used as the backlight brightness value of the corresponding backlight area, the backlight brightness value of the backlight area is obtained through calculation according to the gray value of the image to be displayed, so that each backlight area corresponds to different backlight brightness values respectively, and the backlight brightness value of each backlight area is influenced by the gray value of the pixel point in the corresponding local image block, thereby being beneficial to improving the contrast of image display.
In this embodiment of the present application, since the local image block includes a plurality of pixel points, and each pixel point corresponds to a maximum gray value and an average gray value, the local image block includes a maximum gray value and an average gray value of a plurality of pixel points, and therefore, for each local image block, a block backlight brightness value of the local image block may be calculated according to a distribution condition of each maximum gray value and a distribution condition of each average gray value in the local image block, that is, optionally, in some embodiments of the present application, the step of determining, for the local image block, a block backlight brightness value "of the local image block according to the maximum gray value and the average gray value of each pixel point in the local image block includes:
determining a binarization threshold according to the maximum gray value of each pixel point in the image to be displayed;
determining a cumulative histogram corresponding to the local image block according to the maximum gray value of each pixel point in the local image block aiming at the local image block;
and determining a block backlight brightness value of the local image block according to the binarization threshold value, the cumulative histogram and the maximum gray value and the average gray value of each pixel point in the local image block.
In the binarization processing of an image, the gray level of the image is substantially set to 0 or 255, that is, the gray level of a pixel greater than a certain critical gray level is set to the maximum gray level, and the gray level of a pixel smaller than this is set to the minimum gray level, so that the binarization of the image can be performed, and thus the brightness of the entire image can be obtained. In the implementation of the present application, the binarization threshold corresponding to the maximum gray value of each pixel point in the image to be displayed may be obtained by calculation according to the oxford method (OTSU), where the oxford method (OTSU) is an algorithm for determining the image binarization segmentation threshold, and is a preferred method for obtaining the image binarization threshold, so that the binarization threshold obtained by the oxford method may be used as the critical gray value of the whole image during the binarization processing, that is, the brightness condition of the whole image may be obtained more accurately according to the binarization threshold obtained by the oxford method.
In this embodiment of the present application, the cumulative histogram is established according to a distribution condition of a maximum gray value of each pixel point in the local image block, where in the cumulative histogram, an abscissa is a value of the maximum gray value in the local image block (and the values are ordered in an incremental manner); the ordinate reflects the ratio of the sum of the number of pixels corresponding to the current maximum gray value in the local image block and the number of pixels corresponding to all other maximum gray values smaller than the maximum gray value to the number of all pixels in the local coordinate system.
In the cumulative histogram, as the value of the maximum gray value increases, the value of the ordinate represents an increasing trend, that is, the connecting line formed by the ordinate corresponding to each maximum gray value in the cumulative histogram represents an increasing trend. In this embodiment of the present application, the cumulative histogram of the local image block may also be obtained by using a statistical histogram method, that is, the statistical histogram corresponding to the local image block is obtained according to the distribution condition of the maximum gray value of each pixel point in the local image block, and then the cumulative histogram is obtained according to the statistical histogram. The abscissa of the statistical histogram corresponds to each maximum gray value in the local image block, and the ordinate corresponds to the ratio of the number of pixels corresponding to each maximum gray value to the total number of pixels of the local image block.
In this embodiment of the present application, after obtaining a binarization threshold corresponding to a maximum gray value of each pixel point in an image to be displayed, a block backlight brightness value of a local image block may be determined according to the binarization threshold, an accumulated histogram, and a maximum gray value and an average gray value of pixel points of the local image block, that is, optionally, in some embodiments of the present application, the step of determining a block backlight brightness value of the local image block according to the binarization threshold, the accumulated histogram, and the maximum gray value and the average gray value of each pixel point in the local image block includes:
Determining a brightness pixel ratio corresponding to the local image block according to the binarization threshold, wherein the brightness pixel ratio is a ratio of the number of pixel points with the maximum gray value larger than the binarization threshold in the local image block to the number of all pixel points in the local image block;
determining a gray level value corresponding to the local image block according to the brightness pixel ratio corresponding to the local image block and the cumulative histogram;
and determining the block backlight brightness value of the local image block according to the gray level value corresponding to the local image block and the maximum gray level value and the average gray level value of each pixel point in the local image block.
The number of pixels belonging to the bright value in each local image block can be obtained according to the binarization threshold, that is, for each local image block, the maximum gray value greater than the binarization threshold in the local image block is taken as the bright value, and then the number of pixels corresponding to the maximum gray value greater than the binarization threshold is taken as the number of pixels belonging to the bright value. Correspondingly, for each local image block, the brightness pixel ratio is obtained according to the number of the bright pixel points in the local image block and the total number of the pixel points in the local image block.
In this embodiment of the present application, the gray level value corresponds to one value of the abscissa in the cumulative histogram, where the luminance pixel ratio corresponding to each local image block may be obtained by using a binarization threshold, and correspondingly, in this embodiment of the present application, for each local image block, the luminance pixel ratio corresponding to the local image block is taken as the ordinate of the cumulative histogram, and further, according to the connection line of the ordinate corresponding to each maximum gray level value in the cumulative histogram, the abscissa corresponding to the luminance pixel ratio is obtained, and the maximum gray level value corresponding to the abscissa is taken as the gray level value.
Wherein, for each local image block, after the gray level value of the local image block is obtained, the block backlight brightness value of the local image block can be calculated according to the gray level value and each maximum gray level value and average gray level value in the local image block.
When calculating the block backlight brightness value corresponding to the local image block, a target maximum gray value with the maximum value and a target average gray value corresponding to the average value of the average gray values of all pixels can be selected from all the maximum gray values of the local image block, and the backlight brightness value of the local image block is calculated according to the target maximum gray value with the maximum value and the target average gray value, that is, optionally, in some embodiments of the present application, the step of determining the block backlight brightness value of the local image block according to the gray level value corresponding to the local image block and the maximum gray value and the average gray value of each pixel in the local image block includes:
Selecting the maximum gray value with the maximum value from the maximum gray values corresponding to the local image blocks as a target maximum gray value;
calculating the average value of all average gray values in the local image block to obtain a target average gray value;
determining a first weight value of the target maximum gray value and a second weight value of the target average gray value according to the gray level value;
and determining a block backlight brightness value of the local image block according to the first weight value and the target maximum gray value and the second weight value and the target average gray value.
In the embodiment of the present application, the target maximum gray value corresponding to each local image block may be defined by
Figure BDA0004018168330000101
And (3) representing. Wherein Gray max Representing the maximum gray value of the pixel, for example>
Figure BDA0004018168330000111
Representing the maximum gray value of each pixel point in the local image block, respectively corresponding to +.>
Figure BDA0004018168330000112
The maximum gray value of the respective maximum gray values of the partial image block, i.e., the target maximum gray value, is represented as the maximum gray value of the median of the maximum gray values.
In the embodiment of the present application, the target average gray value corresponding to each local image block may be defined by
Figure BDA0004018168330000113
Representation, wherein Gray Avg Representing the average gray value of the pixel, +.>
Figure BDA0004018168330000114
Representing the average gray value of each pixel point in the local image block, respectively corresponding to +. >
Figure BDA0004018168330000115
Representing the average value of the individual average gray values in the local image block, i.e. the target average gray value.
After determining a target maximum gray value and a target average gray value with the largest median of each local image block, determining a first weight value of the target maximum gray value and a second weight value of the target average gray value according to the gray level value corresponding to the local image block, wherein in the embodiment of the application, the sum of the first weight value and the second weight value is 1.
In this embodiment of the present application, the first weight value Ratio for determining the target maximum gray value according to the gray level may be obtained by the following formula, which is specifically as follows:
Ratio=0.2+(G/510)
wherein G represents a gray level value corresponding to the image block, and Ratio is controlled between 0.2 and 0.7 by the above formula, wherein the formula is configured according to practical experience parameters, for example, the formula is based on a weight value obtained by the formula, and the best effect on image contrast adjustment is achieved.
Correspondingly, the second weight value of the target average gray value can be represented by 1-Ratio, wherein the backlight brightness value corresponding to the local image block is obtained through weight calculation of the first weight value, the second weight value, the target maximum gray value and the target average gray value. For example, the backlight brightness value L of the local image block calculated according to the first weight value, the second weight value, the target maximum gray value and the target average gray value may be obtained by the following formula:
Figure BDA0004018168330000116
Wherein, in the embodiment of the application, gray max Represents the maximum gray value of the pixel point,
Figure BDA0004018168330000117
representing the maximum gray value of each pixel point in the local image block, respectively corresponding to +.>
Figure BDA0004018168330000118
Representing the maximum gray value of each maximum gray value median of the local image block, namely a target maximum gray value, wherein Ratio represents a first weight value corresponding to the target maximum gray value; gray Avg Representing the average gray value of the pixel, +.>
Figure BDA0004018168330000121
Representing the average gray value of each pixel point in the local image block, respectively corresponding to +.>
Figure BDA0004018168330000122
The average value of each average gray value in the local image block, namely the target average gray value, and 1-Ratio represent the second weight value corresponding to the target average gray value.
Referring to fig. 3, fig. 3 is a schematic diagram of a backlight extraction effect provided in an embodiment of the present application, wherein an upper portion of the schematic diagram of the backlight extraction effect is an input schematic diagram after a color image is input, and a lower portion of the schematic diagram of the backlight extraction effect is a schematic diagram of a backlight obtained after the backlight extraction based on the input color image.
In this embodiment of the present application, by dividing an image to be displayed into a plurality of local image blocks, each local image block may determine a block backlight luminance value corresponding to the local image block according to a gray value of a plurality of pixel points in the local image block, so as to obtain a backlight luminance value corresponding to each backlight area.
In the embodiment of the application, the block backlight brightness value of the local image block is calculated based on the maximum gray value and the average gray value of the pixel points, so that the block backlight brightness value has certain stability, the problem of too strong light in a backlight diffusion range caused by too high brightness is reduced, and meanwhile, the problem of bright or dark brightness in a special scene (such as a sky) is avoided at the maximum value.
In this embodiment of the present application, the backlight luminance value of the backlight area is the luminance value of each light emitting point in the backlight area, and each light emitting point provides backlight for the foreground image based on the display of the corresponding luminance value.
103. And determining a brightness correction coefficient corresponding to each pixel point in the image to be displayed according to the backlight brightness value of the backlight area.
And when the pixel points are corrected according to the brightness correction coefficients, the brightness compensation of the pixel points according to the backlight brightness value of the backlight area can be realized, and the contrast ratio among the pixel points in the display panel is further improved.
In this embodiment of the present application, in order to improve the contrast of image display, the brightness value of the image to be displayed may be adjusted according to the backlight brightness value of the backlight area, and accordingly, in the adjusting process, a brightness correction coefficient of a pixel point in the image to be displayed may be determined according to the backlight brightness value of the backlight area, and the brightness of the pixel point may be adjusted based on the brightness correction coefficient, that is, optionally, in some embodiments of the present application, the step of determining, according to the backlight brightness value of the backlight area, a brightness correction coefficient corresponding to each pixel point in the image to be displayed includes:
Taking each backlight area as a pixel unit, carrying out Gaussian blur on backlight brightness values of the backlight areas to obtain a backlight brightness map, wherein each pixel point in the backlight brightness map corresponds to one backlight area;
according to the resolution of the image to be displayed, up-sampling the backlight brightness map to obtain an up-sampling backlight brightness map, wherein each brightness pixel point in the up-sampling backlight brightness map corresponds to each pixel point in the image to be displayed one by one;
performing inverse color processing on the backlight brightness value of each brightness pixel point in the up-sampling backlight brightness map to obtain an inverse color backlight brightness value corresponding to the brightness pixel point;
and determining a brightness correction coefficient corresponding to each pixel point in the image to be displayed according to the inverse color backlight brightness value of the brightness pixel point corresponding to the pixel point.
In this case, since the backlight luminance map is created in units of partial image blocks, each backlight luminance value in the backlight luminance map corresponds to one partial image block, and since each partial image block includes a plurality of pixels, the resolution of the backlight luminance map is smaller than that of the entire image (image to be displayed), and therefore, after the backlight luminance value in the backlight area is subjected to gaussian blur processing and up-sampling according to the image to be displayed, an up-sampled backlight luminance map consistent with that of the entire image (image to be displayed) can be obtained.
In this embodiment of the present application, the inverse backlight brightness value invl of the pixel point may be expressed by the following formula, which is specifically as follows:
invl=255-BlurUp(L)
wherein BlunUp represents the process of Gaussian blur and nearest up-sampling, L represents the block backlight brightness value corresponding to the local image block or the backlight brightness value corresponding to the backlight area, and the backlight brightness value of each pixel point in the image to be displayed is obtained after Gaussian blur and nearest up-sampling. Wherein the formula is configured according to actual empirical parameters. Wherein gaussian blurring and upsampling can better simulate the effect of backlight diffusion.
In this embodiment of the present application, the brightness correction coefficient γ may be expressed by the following formula, which is specifically as follows:
Figure BDA0004018168330000141
wherein invl represents the inverse color backlight brightness value of the pixel point after the inverse color processing. Wherein the formula is configured according to actual empirical parameters.
The brightness correction coefficient of the pixel point is further optimized through the inverse color processing of the backlight brightness value of the pixel point.
104. And displaying the image to be displayed according to the backlight brightness value and the brightness correction coefficient.
After the image to be displayed is displayed according to the backlight brightness value and the brightness correction coefficient obtained through calculation, the image to be displayed can have better contrast, and the display effect and the visual effect of the image are improved.
Accordingly, in the embodiments of the present application, the brightness of the pixel point may be adjusted according to the brightness correction coefficient, and then the display is performed based on the adjusted brightness, that is, optionally, in some embodiments of the present application, the step of displaying the image to be displayed according to the backlight brightness value and the brightness correction coefficient includes:
aiming at each pixel point in the image to be displayed, adjusting the brightness value of the pixel point according to the brightness correction coefficient of the pixel point to obtain an adjusted pixel brightness value;
and displaying the adjusted pixel brightness value of the pixel point in a foreground area of the panel to be displayed, and setting each backlight area as a backlight brightness value corresponding to the backlight area.
The image to be displayed on the panel has better contrast ratio by adjusting the brightness value of the pixel point and carrying out backlight control on the backlight area based on the brightness value of the backlight.
In the embodiment of the present application, when brightness adjustment is performed on an image to be displayed, the method may be implemented by converting the image to be displayed into a brightness spatial image and performing brightness adjustment on the brightness spatial image, that is, optionally, in some embodiments of the present application, the step of "adjusting, for each pixel point in the image to be displayed, the brightness value of the pixel point according to the brightness correction coefficient of the pixel point, to obtain an adjusted pixel brightness value" includes:
Converting the image to be displayed into a brightness space image, wherein the image to be displayed corresponds to pixel points of the brightness space image one by one, and each pixel point in the brightness space image corresponds to a brightness value;
correcting the brightness value of each pixel point in the brightness space image according to the brightness correction coefficient corresponding to the pixel point to obtain a corrected brightness value;
and taking the corrected brightness value of the pixel point in the brightness space image as the adjusted pixel brightness value of the corresponding pixel point in the image to be displayed.
In this embodiment, the image to be displayed includes a color image (RGB image), and correspondingly, the color channels of the pixel points in the image to be displayed include a red channel R, a green channel G, and a blue channel B, and the Luminance space image is a YUV image, where Y represents Luminance (luminence), also called gray value, and UV represents chromaticity (Chroma) and density (Chroma).
In this embodiment of the present application, the conversion from the image to be displayed to the luminance space image may be performed by referring to the following formula to obtain the luminance value Y of each pixel, which is specifically as follows:
Y=R*0.299-G*0.587+B*0.114
wherein R, G, B represents the gray value of the pixel in each color channel.
The adjustment of the brightness value of the pixel point according to the brightness correction coefficient can be realized by the following formula, which specifically comprises the following steps:
Figure BDA0004018168330000151
wherein Y represents the brightness value of the pixel before correction, Y 1 The brightness value of the pixel after correction is represented, and gamma represents the brightness correction coefficient of the pixel.
The brightness value of the pixel point in the image is conveniently and directly adjusted according to the brightness correction coefficient by converting the image into the brightness space image. Wherein, through gamma correction (according to gamma correction coefficient) to the image brightness, the brightness difference between the pixel points is improved, and the contrast of the image is improved.
And after the adjusted brightness correction image is reconverted into a color image, the color image with the adjusted brightness value can be obtained.
In the embodiment of the present application, the YUV brightness correction image may be implemented into an RGB color image by the following formula, which is specifically as follows:
Figure BDA0004018168330000161
Figure BDA0004018168330000162
Figure BDA0004018168330000163
wherein Y represents the brightness value of the pixel before correction, Y 1 The corrected luminance value of the pixel is represented, and R, G, B represents the gray scale value of the pixel in each color channel.
In the embodiment of the application, after the brightness of the pixel is compensated based on the backlight, the effect of backlight diffusion is combined while the contrast of the foreground picture is improved, so that the image display is more uniform.
Referring to fig. 4, fig. 4 is a schematic diagram of the image before and after adjustment, wherein the upper side of the schematic diagram is a color image before adjustment, and the lower side is an adjusted image after adjustment.
Referring to fig. 5, fig. 5 is a schematic diagram of comparison of image display effects corresponding to whether to perform brightness compensation on an image under the condition that a backlight brightness value of a local image block is used as a backlight, where the left side is a display effect diagram based on the backlight after performing brightness compensation on the image, and the right side is a display effect diagram based on the backlight after not performing brightness compensation on the image.
Compared with the scheme that the backlight brightness values of the whole backlight area are consistent, the scheme can reduce the backlight brightness of the partial area when the partial image block with the lower backlight brightness value appears, and achieves the effect of saving energy to a certain extent.
In this embodiment of the present application, an image to be displayed is divided into a plurality of local image blocks according to a distribution condition of a backlight area of a panel to be displayed, for each backlight area, a backlight luminance value of the backlight area is determined according to a gray value of the local image block corresponding to the backlight area, a luminance correction coefficient corresponding to each pixel point in the image to be displayed is determined according to the backlight luminance value of the backlight area, and the image to be displayed is displayed according to the backlight luminance value and the luminance correction coefficient. The method comprises the steps that a backlight area of a panel is used for blocking an image to be displayed, a plurality of local image blocks are obtained, each local image block can correspond to one backlight area respectively, when the backlight areas determine corresponding backlight brightness values according to gray values of the corresponding local image blocks, different backlight areas can correspond to different backlight brightness values respectively, and compared with uniform backlight in the related art, the method is beneficial to improving contrast ratio of each pixel point in the image to be displayed. In addition, the brightness correction coefficient corresponding to the pixel point in the image to be displayed is determined according to the backlight brightness value of the backlight area, and after the pixel point is corrected according to the brightness correction coefficient corresponding to the pixel point, the brightness of each pixel point can be adjusted based on the backlight brightness value of the backlight area, so that the contrast ratio of each pixel point in the image to be displayed is further improved. After the contrast between each pixel point in the image to be displayed is improved, the visual effect of the image is improved.
In the scheme, experiments are carried out on the vehicle-mounted screen in 260 partitions based on 720x1920 input, so that the display contrast of a display can be improved in effect, and the energy consumption problem caused by full-brightness backlight is improved to a certain extent.
Referring to fig. 6, fig. 6 is a flowchart of an image area dimming method according to an embodiment of the present application, where the image area dimming method specifically includes:
201. counting the maximum gray value and the average value of each pixel point in a color image (RGB image) to be processed;
202. obtaining a maximum gray level image corresponding to the color image according to the maximum gray level value of each pixel point, obtaining a mean gray level image corresponding to the color image according to the mean value of the gray level values of each pixel point, and calculating a threshold value of full-image binarization of the maximum gray level image by an Ojin method;
203. dividing the maximum gray level image into individual small areas according to the backlight area to obtain a plurality of local image blocks, and calculating the cumulative histogram of each local image block according to the maximum gray level value of each pixel point in each local image block;
204. binarization of each local image block is carried out according to a threshold value of full-image binarization of the maximum gray level image;
205. According to binarization of each local image block, obtaining the ratio of bright value pixels in each local image block to the total pixel points of each local image block, and obtaining the brightness pixel ratio;
206. obtaining a gray level value corresponding to each local image block according to the cumulative histogram of each local image block and the brightness pixel ratio corresponding to each local image block;
207. for each local image block, calculating a first weight value and a second weight value corresponding to the local image block according to the gray level value of the local image block, wherein the sum of the first weight value and the second weight value is 1;
208. for each local image block, obtaining a backlight brightness value of the local image block according to the sum of the product of the first weight value of the local image block and the maximum gray value of the median of the local image block and the product of the second weight value of the local image block and the final average value of all average gray values in the local image block;
209. taking the backlight brightness value of the local image block as the backlight brightness value of the corresponding backlight area;
210. carrying out Gaussian blur and nearest neighbor up-sampling on backlight brightness values of each local image block to the resolution of a color image to obtain an up-sampling backlight brightness map;
211. Performing inverse color processing on each pixel point in the up-sampling backlight brightness map to obtain an inverse color backlight brightness map;
212. obtaining a reference backlight brightness value of each pixel point in the color image according to the backlight brightness value of each pixel point in the inverse color backlight brightness map;
213. for each pixel point in the color image, obtaining a brightness correction coefficient (also called gamma correction coefficient) of the pixel point according to a reference backlight brightness value of the pixel point;
214. converting the color image into a YUV brightness image, and correcting the brightness value of each pixel point in the YUV brightness image according to the brightness correction coefficient of the pixel point to obtain a brightness correction image;
215. converting the brightness correction image back to a color image to obtain a dimmed color image;
216. and displaying the dimmed color image in a foreground region of the display panel, and displaying a corresponding backlight brightness value in a backlight region of the display panel.
For example, for a color image of 720 x 1924 (which may be obtained by filling 2 pixels in two passes of the image with an image of 720 x 1920), the color image may be divided into 10 x 26 partial image blocks. Correspondingly, the backlight brightness value corresponding to each local image block is a 10×26 resolution backlight brightness map, and after upsampling according to the color image, an upsampled backlight brightness map with 720×1924 resolution is obtained.
In this embodiment of the present application, the formula involved in the image area dimming method is consistent with the formula involved in the image display method, and in this embodiment of the present application, a description of related formulas is not repeated, and reference is made to related formulas in the image display method for understanding.
Among other advantages, embodiments of the present application are: 1. the backlight brightness extraction scheme based on the dynamic threshold value can be used for extracting the backlight control signal by combining the advantages of the maximum value and the average value of the image, so that the effect of over-brightness and over-darkness can not be generated. 2. The pixel compensation is carried out on the original image by relying on the extracted backlight signal, so that the contrast of the picture is improved while the information of the backlight signal is effectively considered. 3. The display contrast is higher after the regional dimming is adopted, and the consumption of energy sources is saved after the backlight control.
In order to facilitate better implementation of the image display method, the application also provides an image display device based on the image display method. Wherein the meaning of the third target word is the same as that in the image display method, and specific implementation details can be referred to the description in the embodiment of the method.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an image display device provided in the present application, where the image display device may include:
The image dividing module 301 is configured to divide an image to be displayed into a plurality of partial image blocks according to a distribution condition of a backlight area of the panel to be displayed;
a brightness determining module 302, configured to determine, for each backlight area, a backlight brightness value of the backlight area according to a gray value of a local image block corresponding to the backlight area;
a coefficient determining module 303, configured to determine a brightness correction coefficient corresponding to each pixel point in the image to be displayed according to the backlight brightness value of the backlight area;
and an image display module 304, configured to display the image to be displayed according to the backlight brightness value and the brightness correction coefficient.
Wherein the brightness determination module 302 includes:
the first determining unit is used for determining a maximum gray value and an average gray value corresponding to each pixel point in the image to be displayed according to the gray value of the pixel point in each color channel;
a second determining unit, configured to determine, for the local image block, a block backlight luminance value of the local image block according to a maximum gray value and an average gray value of each pixel point in the local image block;
and a third determining unit, configured to, for each backlight area, take, as a backlight luminance value of the backlight area, a block backlight luminance value of a partial image block corresponding to the backlight area.
Wherein the second determining unit includes:
the first determining subunit is used for determining a binarization threshold according to the maximum gray value of each pixel point in the image to be displayed;
the second determining subunit is used for determining a cumulative histogram corresponding to the local image block according to the maximum gray value of each pixel point in the local image block for the local image block;
and the third determining subunit is used for determining the block backlight brightness value of the local image block according to the binarization threshold value, the cumulative histogram and the maximum gray value and the average gray value of each pixel point in the local image block.
Wherein the third determining subunit is specifically configured to:
determining a brightness pixel ratio corresponding to the local image block according to the binarization threshold, wherein the brightness pixel ratio is a ratio of the number of pixel points with the maximum gray value larger than the binarization threshold in the local image block to the number of all pixel points in the local image block;
determining a gray level value corresponding to the local image block according to the brightness pixel ratio corresponding to the local image block and the cumulative histogram;
and determining the block backlight brightness value of the local image block according to the gray level value corresponding to the local image block and the maximum gray level value and the average gray level value of each pixel point in the local image block.
Wherein the third determining subunit is further specifically configured to:
selecting the maximum gray value with the maximum value from the maximum gray values corresponding to the local image blocks as a target maximum gray value;
calculating the average value of all average gray values in the local image block to obtain a target average gray value;
determining a first weight value of the target maximum gray value and a second weight value of the target average gray value according to the gray level value;
and determining a block backlight brightness value of the local image block according to the first weight value and the target maximum gray value and the second weight value and the target average gray value.
Wherein the coefficient determination module 303 comprises:
the fuzzy processing unit is used for carrying out Gaussian blur on the backlight brightness value of each backlight area by taking each backlight area as a pixel unit to obtain a backlight brightness map, wherein each pixel point in the backlight brightness map corresponds to one backlight area;
the sampling unit is used for up-sampling the backlight brightness map according to the resolution of the image to be displayed to obtain an up-sampled backlight brightness map, and each brightness pixel point in the up-sampled backlight brightness map corresponds to each pixel point in the image to be displayed one by one;
The inverse color processing unit is used for carrying out inverse color processing on the backlight brightness value of each brightness pixel point in the up-sampling backlight brightness map to obtain an inverse color backlight brightness value corresponding to the brightness pixel point;
and the coefficient determining unit is used for determining the brightness correction coefficient corresponding to each pixel point in the image to be displayed according to the inverse backlight brightness value of the brightness pixel point corresponding to the pixel point.
Wherein, the image display module 304 includes:
the adjusting unit is used for adjusting the brightness value of each pixel point in the image to be displayed according to the brightness correction coefficient of the pixel point to obtain an adjusted pixel brightness value;
and the display unit is used for displaying in the foreground area of the panel to be displayed according to the adjusted pixel brightness value of the pixel point, and setting each backlight area as the backlight brightness value corresponding to the backlight area.
Wherein the adjusting unit includes:
the conversion subunit is used for converting the image to be displayed into a brightness space image, the image to be displayed corresponds to the pixel points of the brightness space image one by one, and each pixel point in the brightness space image corresponds to one brightness value respectively;
The correction subunit is used for correcting the brightness value of each pixel point in the brightness space image according to the brightness correction coefficient corresponding to the pixel point to obtain a corrected brightness value;
and the brightness determination subunit is used for taking the corrected brightness value of the pixel point in the brightness space image as the adjusted pixel brightness value of the corresponding pixel point in the image to be displayed.
According to the embodiment of the application, an image to be displayed is firstly divided into a plurality of local image blocks by an image dividing module 301 according to the distribution condition of backlight areas of a panel to be displayed, then, a brightness determining module 302 determines a backlight brightness value of the backlight area according to the gray value of the local image block corresponding to the backlight area for each backlight area, a coefficient determining module 303 determines a brightness correction coefficient corresponding to each pixel point in the image to be displayed according to the backlight brightness value of the backlight area, and then, an image display module 304 displays the image to be displayed according to the backlight brightness value and the brightness correction coefficient.
According to the embodiment of the application, an image to be displayed is divided into a plurality of local image blocks according to the distribution condition of the backlight areas of the panel to be displayed, the backlight brightness value of the backlight areas is determined according to the gray values of the local image blocks corresponding to the backlight areas for each backlight area, the brightness correction coefficient corresponding to each pixel point in the image to be displayed is determined according to the backlight brightness value of the backlight areas, and the image to be displayed is displayed according to the backlight brightness value and the brightness correction coefficient. The method comprises the steps that a backlight area of a panel is used for blocking an image to be displayed, a plurality of local image blocks are obtained, each local image block can correspond to one backlight area respectively, when the backlight areas determine corresponding backlight brightness values according to gray values of the corresponding local image blocks, different backlight areas can correspond to different backlight brightness values respectively, and compared with uniform backlight in the related art, the method is beneficial to improving contrast ratio of each pixel point in the image to be displayed. In addition, the brightness correction coefficient corresponding to the pixel point in the image to be displayed is determined according to the backlight brightness value of the backlight area, and after the pixel point is corrected according to the brightness correction coefficient corresponding to the pixel point, the brightness of each pixel point can be adjusted based on the backlight brightness value of the backlight area, so that the contrast ratio of each pixel point in the image to be displayed is further improved. After the contrast between each pixel point in the image to be displayed is improved, the visual effect of the image is improved.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an image area dimming device according to an embodiment of the present application, where the image area device may include:
the image input module 311 is configured to receive an input of an image, and acquire a color image to be processed;
the backlight extraction module 312 is configured to divide the color image into a plurality of local image blocks according to a distribution condition of a backlight area of the panel to be displayed, obtain a backlight brightness value corresponding to each local image block, and use the backlight brightness value corresponding to the local image block as the backlight brightness value of the corresponding backlight area;
the backlight blurring module 313 is configured to blur backlight luminance values corresponding to the local image blocks with the local image blocks as a unit, so as to obtain a backlight luminance map;
a backlight up-sampling module 314, configured to up-sample the backlight luminance map according to the color image, to obtain an up-sampled backlight luminance map;
a correction coefficient determining module 315, configured to obtain a brightness correction coefficient of each pixel point in the backlight brightness map according to the backlight brightness value of the pixel point;
the image brightness correction module 316 is configured to compensate and adjust brightness values of respective pixels in the color image according to brightness correction coefficients corresponding to the pixels, so as to obtain an adjusted image;
The image display module 317 is configured to display the adjusted image, and takes light corresponding to the backlight brightness value of each backlight area extracted by the backlight extraction module 312 as backlight.
Before calculating the luminance correction coefficient of the pixel point by using the up-sampling backlight luminance map, the up-sampling backlight luminance map needs to be subjected to an inverse color processing, and the luminance correction coefficient of the pixel point is calculated based on the inverse color backlight luminance map after the inverse color processing.
The image is subjected to backlight extraction and brightness compensation according to the extracted backlight, so that the brightness compensation according to the backlight is realized, and the contrast of the image is improved.
In addition, the present application further provides an electronic device, as shown in fig. 9, which shows a schematic structural diagram of the electronic device according to the present application, specifically:
the electronic device may include one or more processing cores 'processors 401, one or more computer-readable storage media's memory 402, power supply 403, and input unit 404, among other components. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 9 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
The processor 401 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 402, and calling data stored in the memory 402. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, etc., and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by executing the software programs and modules stored in the memory 402. The memory 402 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the electronic device, etc. In addition, memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
The electronic device further comprises a power supply 403 for supplying power to the various components, preferably the power supply 403 may be logically connected to the processor 401 by a power management system, so that functions of managing charging, discharging, and power consumption are performed by the power management system. The power supply 403 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The electronic device may further comprise an input unit 404, which input unit 404 may be used for receiving input digital or character information and generating keyboard, mouse, joystick, optical or trackball signal inputs in connection with user settings and function control.
Although not shown, the electronic device may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processor 401 in the electronic device loads executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 executes the application programs stored in the memory 402, so as to implement the steps in any image display method provided in the present application.
According to the embodiment of the application, an image to be displayed is divided into a plurality of local image blocks according to the distribution condition of the backlight areas of the panel to be displayed, the backlight brightness value of the backlight areas is determined according to the gray values of the local image blocks corresponding to the backlight areas for each backlight area, the brightness correction coefficient corresponding to each pixel point in the image to be displayed is determined according to the backlight brightness value of the backlight areas, and the image to be displayed is displayed according to the backlight brightness value and the brightness correction coefficient. The method comprises the steps that a backlight area of a panel is used for blocking an image to be displayed, a plurality of local image blocks are obtained, each local image block can correspond to one backlight area respectively, when the backlight areas determine corresponding backlight brightness values according to gray values of the corresponding local image blocks, different backlight areas can correspond to different backlight brightness values respectively, and compared with uniform backlight in the related art, the method is beneficial to improving contrast ratio of each pixel point in the image to be displayed. In addition, the brightness correction coefficient corresponding to the pixel point in the image to be displayed is determined according to the backlight brightness value of the backlight area, and after the pixel point is corrected according to the brightness correction coefficient corresponding to the pixel point, the brightness of each pixel point can be adjusted based on the backlight brightness value of the backlight area, so that the contrast ratio of each pixel point in the image to be displayed is further improved. After the contrast between each pixel point in the image to be displayed is improved, the visual effect of the image is improved.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
For this reason, the present application provides a computer readable storage medium, as shown in fig. 8, and fig. 8 is a schematic structural diagram of the computer readable storage medium provided in the embodiment of the present application, specifically:
the computer readable storage medium has stored thereon a computer program 501, which computer program 501 when executed by a processor implements the steps of any of the image display methods provided herein.
Wherein the computer-readable storage medium may comprise: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Because the instructions stored in the computer readable storage medium can execute any of the steps in the target positioning provided in the present application, the beneficial effects that can be achieved by any of the image display methods provided in the present application can be achieved, and detailed descriptions of the foregoing embodiments are omitted herein.
The foregoing has outlined some of the more detailed description of the image display method, apparatus, electronic device and computer readable storage medium that are provided herein, wherein specific examples are presented to facilitate the understanding of the method and core concepts of the invention; meanwhile, as those skilled in the art will vary in the specific embodiments and application scope according to the ideas of the present invention, the present description should not be construed as limiting the present invention in summary.

Claims (11)

1. An image display method, comprising:
dividing an image to be displayed into a plurality of partial image blocks according to the distribution condition of backlight areas of the panel to be displayed;
for each backlight area, determining a backlight brightness value of the backlight area according to the gray value of the local image block corresponding to the backlight area;
determining a brightness correction coefficient corresponding to each pixel point in the image to be displayed according to the backlight brightness value of the backlight area;
and displaying the image to be displayed according to the backlight brightness value and the brightness correction coefficient.
2. The method according to claim 1, wherein for each backlight region, determining a backlight brightness value of the backlight region according to a gray value of a local image block corresponding to the backlight region comprises:
For each pixel point in the image to be displayed, determining a maximum gray value and an average gray value corresponding to the pixel point according to the gray value of the pixel point in each color channel;
for the local image block, determining a block backlight brightness value of the local image block according to a maximum gray value and an average gray value of each pixel point in the local image block;
and taking the block backlight brightness value of the local image block corresponding to the backlight area as the backlight brightness value of the backlight area for each backlight area.
3. The method according to claim 2, wherein the determining, for the local image block, a block backlight luminance value of the local image block according to a maximum gray value and an average gray value of each pixel point in the local image block includes:
determining a binarization threshold according to the maximum gray value of each pixel point in the image to be displayed;
determining a cumulative histogram corresponding to the local image block according to the maximum gray value of each pixel point in the local image block aiming at the local image block;
and determining a block backlight brightness value of the local image block according to the binarization threshold value, the cumulative histogram and the maximum gray value and the average gray value of each pixel point in the local image block.
4. A method according to claim 3, wherein said determining a block backlight luminance value of said local image block based on said binarization threshold, said cumulative histogram, and a maximum gray level value and an average gray level value for each pixel point in said local image block comprises:
determining a brightness pixel ratio corresponding to the local image block according to the binarization threshold, wherein the brightness pixel ratio is a ratio of the number of pixel points with the maximum gray value larger than the binarization threshold in the local image block to the number of all pixel points in the local image block;
determining a gray level value corresponding to the local image block according to the brightness pixel ratio corresponding to the local image block and the cumulative histogram;
and determining the block backlight brightness value of the local image block according to the gray level value corresponding to the local image block and the maximum gray level value and the average gray level value of each pixel point in the local image block.
5. The method according to claim 4, wherein determining the block backlight luminance value of the local image block according to the gray level value corresponding to the local image block and the maximum gray level value and the average gray level value of each pixel point in the local image block comprises:
Selecting the maximum gray value with the maximum value from the maximum gray values corresponding to the local image blocks as a target maximum gray value;
calculating the average value of all average gray values in the local image block to obtain a target average gray value;
determining a first weight value of the target maximum gray value and a second weight value of the target average gray value according to the gray level value;
and determining a block backlight brightness value of the local image block according to the first weight value and the target maximum gray value and the second weight value and the target average gray value.
6. The method according to claim 1, wherein the determining a luminance correction coefficient corresponding to each pixel in the image to be displayed according to the backlight luminance value of the backlight area includes:
taking each backlight area as a pixel unit, carrying out Gaussian blur on backlight brightness values of the backlight areas to obtain a backlight brightness map, wherein each pixel point in the backlight brightness map corresponds to one backlight area;
according to the resolution of the image to be displayed, up-sampling the backlight brightness map to obtain an up-sampling backlight brightness map, wherein each brightness pixel point in the up-sampling backlight brightness map corresponds to each pixel point in the image to be displayed one by one;
Performing inverse color processing on the backlight brightness value of each brightness pixel point in the up-sampling backlight brightness map to obtain an inverse color backlight brightness value corresponding to the brightness pixel point;
and determining a brightness correction coefficient corresponding to each pixel point in the image to be displayed according to the inverse color backlight brightness value of the brightness pixel point corresponding to the pixel point.
7. The method of claim 1, wherein displaying the image to be displayed according to the backlight luminance value and the luminance correction coefficient comprises:
aiming at each pixel point in the image to be displayed, adjusting the brightness value of the pixel point according to the brightness correction coefficient of the pixel point to obtain an adjusted pixel brightness value;
and displaying the adjusted pixel brightness value of the pixel point in a foreground area of the panel to be displayed, and setting each backlight area as a backlight brightness value corresponding to the backlight area.
8. The method according to claim 7, wherein for each pixel in the image to be displayed, adjusting the brightness value of the pixel according to the brightness correction coefficient of the pixel to obtain an adjusted pixel brightness value comprises:
Converting the image to be displayed into a brightness space image, wherein the image to be displayed corresponds to pixel points of the brightness space image one by one, and each pixel point in the brightness space image corresponds to a brightness value;
correcting the brightness value of each pixel point in the brightness space image according to the brightness correction coefficient corresponding to the pixel point to obtain a corrected brightness value;
and taking the corrected brightness value of the pixel point in the brightness space image as the adjusted pixel brightness value of the corresponding pixel point in the image to be displayed.
9. An image display device, comprising:
the image dividing module is used for dividing the image to be displayed into a plurality of partial image blocks according to the distribution condition of the backlight area of the panel to be displayed;
the brightness determining module is used for determining a backlight brightness value of each backlight area according to the gray value of the local image block corresponding to the backlight area;
the coefficient determining module is used for determining a brightness correction coefficient corresponding to each pixel point in the image to be displayed according to the backlight brightness value of the backlight area;
and the image display module is used for displaying the image to be displayed according to the backlight brightness value and the brightness correction coefficient.
10. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the image display method according to any one of claims 1-8 when the computer program is executed.
11. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the image display method according to any of claims 1-8.
CN202211678620.1A 2022-12-26 2022-12-26 Image display method, device, electronic equipment and computer readable storage medium Pending CN116168652A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211678620.1A CN116168652A (en) 2022-12-26 2022-12-26 Image display method, device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211678620.1A CN116168652A (en) 2022-12-26 2022-12-26 Image display method, device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN116168652A true CN116168652A (en) 2023-05-26

Family

ID=86410496

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211678620.1A Pending CN116168652A (en) 2022-12-26 2022-12-26 Image display method, device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN116168652A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116884359A (en) * 2023-09-06 2023-10-13 深圳市明亚顺科技有限公司 Adaptive dimming method, device, equipment and storage medium based on picture content
CN117316117A (en) * 2023-10-12 2023-12-29 广州昶视电子科技股份有限公司 Display panel backlight partition control system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080266236A1 (en) * 2007-04-26 2008-10-30 Vastview Technology Inc. Driving method of liquid crystal display device having dynamic backlight control unit
US20090278790A1 (en) * 2008-05-12 2009-11-12 Yong-Seok Choi Display device and brightness controlling method therefor
JP2013015864A (en) * 2012-10-01 2013-01-24 Nlt Technologies Ltd Driving method for backlight of liquid crystal display, device therefor and liquid crystal display
CN105047140A (en) * 2015-07-06 2015-11-11 西安交通大学 Self-adapting dynamic backlight control system and method based on image content
CN105118474A (en) * 2015-10-16 2015-12-02 青岛海信电器股份有限公司 LCD brightness control method and device as well as LCD equipment
CN107895566A (en) * 2017-12-11 2018-04-10 天津大学 It is a kind of that two-step method is compensated based on the liquid crystal pixel of S curve and logarithmic curve
WO2018132987A1 (en) * 2017-01-18 2018-07-26 华为技术有限公司 Luminance adjusting method and terminal
CN109887468A (en) * 2019-04-02 2019-06-14 合肥工业大学 A kind of liquid crystal display dynamic light adjustment method based on image local feature

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080266236A1 (en) * 2007-04-26 2008-10-30 Vastview Technology Inc. Driving method of liquid crystal display device having dynamic backlight control unit
US20090278790A1 (en) * 2008-05-12 2009-11-12 Yong-Seok Choi Display device and brightness controlling method therefor
JP2013015864A (en) * 2012-10-01 2013-01-24 Nlt Technologies Ltd Driving method for backlight of liquid crystal display, device therefor and liquid crystal display
CN105047140A (en) * 2015-07-06 2015-11-11 西安交通大学 Self-adapting dynamic backlight control system and method based on image content
CN105118474A (en) * 2015-10-16 2015-12-02 青岛海信电器股份有限公司 LCD brightness control method and device as well as LCD equipment
WO2018132987A1 (en) * 2017-01-18 2018-07-26 华为技术有限公司 Luminance adjusting method and terminal
CN107895566A (en) * 2017-12-11 2018-04-10 天津大学 It is a kind of that two-step method is compensated based on the liquid crystal pixel of S curve and logarithmic curve
CN109887468A (en) * 2019-04-02 2019-06-14 合肥工业大学 A kind of liquid crystal display dynamic light adjustment method based on image local feature

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116884359A (en) * 2023-09-06 2023-10-13 深圳市明亚顺科技有限公司 Adaptive dimming method, device, equipment and storage medium based on picture content
CN117316117A (en) * 2023-10-12 2023-12-29 广州昶视电子科技股份有限公司 Display panel backlight partition control system
CN117316117B (en) * 2023-10-12 2024-04-16 广州昶视电子科技股份有限公司 Display panel backlight partition control system

Similar Documents

Publication Publication Date Title
CN116168652A (en) Image display method, device, electronic equipment and computer readable storage medium
WO2017143635A1 (en) Method and system for reducing power consumption of display panel
RU2472234C2 (en) Apparatus for controlling liquid crystal display, liquid crystal display, method of controlling liquid crystal display, programme and data medium for programme
RU2471214C2 (en) Apparatus for controlling liquid crystal display, liquid crystal display, method of controlling liquid crystal display, program and data medium
JP6615917B2 (en) Real-time video enhancement method, terminal, and non-transitory computer-readable storage medium
CN107103886B (en) A kind of dynamic backlight control display methods and device
US20110194766A1 (en) Image processing device, image processing method and program
CN103778900B (en) A kind of image processing method and system
KR20080037298A (en) Apparatus and method for improving a flicker for images
CN110992898B (en) Multi-partition backlight control method and equipment
CN108364271B (en) Method and device for improving image contrast
CN107068042B (en) Image processing method
CN113299245A (en) Method and device for adjusting local backlight of display equipment, display equipment and storage medium
CN109191394A (en) A kind of method, apparatus of image enhancement, readable storage medium storing program for executing and computer equipment
CN116453470B (en) Image display method, device, electronic equipment and computer readable storage medium
CN115223509A (en) Backlight control method, backlight control device, display equipment and computer readable storage medium
CN116382540A (en) Display method and device for electronic paper, electronic equipment and storage medium
CN112598582A (en) Image correction and correction data generation method, device and system and display method
CN108564923B (en) High dynamic contrast image display method and device based on partition backlight
CN108564633B (en) Gray scale image compression method and device and computer equipment
CN109272928A (en) Image display method and apparatus
US20200219441A1 (en) Image processing method and image processing system
CN117133245A (en) Data processing method, device, computer equipment and computer readable storage medium
CN111372020B (en) Image display method, terminal and storage medium for enhancing contrast
TW200913730A (en) Method and apparatus for processing image and electronic device using the same

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