WO2019101005A1 - Pixel compensation method and apparatus, and terminal device - Google Patents

Pixel compensation method and apparatus, and terminal device Download PDF

Info

Publication number
WO2019101005A1
WO2019101005A1 PCT/CN2018/115836 CN2018115836W WO2019101005A1 WO 2019101005 A1 WO2019101005 A1 WO 2019101005A1 CN 2018115836 W CN2018115836 W CN 2018115836W WO 2019101005 A1 WO2019101005 A1 WO 2019101005A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
pixel
backlight
brightness value
pixel points
Prior art date
Application number
PCT/CN2018/115836
Other languages
French (fr)
Chinese (zh)
Inventor
张涛
巫红英
李昌禄
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2019101005A1 publication Critical patent/WO2019101005A1/en

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
    • 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

Definitions

  • the present application relates to the field of display pixel compensation technology, and more particularly, to a pixel compensation method, apparatus and terminal device.
  • the backlight module of the display can be divided into several regions, and then the brightness of each region of the backlight module is adjusted according to the distribution of the image content, and pixel compensation is performed on the pixel values of the image, thereby ensuring the display effect. At the same time improve the dynamic range of the display of the display.
  • the backlight is smoothed according to the brightness of the backlight area, and then the area after the backlight is smoothed is pixel-compensated to ensure the display effect.
  • the same filtering template is used for low-pass filtering of the entire backlight region, and then pixel compensation is performed. Since the light diffusion of the backlight module in different regions is different, the same low-pass filtering template is used for filtering. Processing, can not simulate the diffusion of the backlight very well, will lead to poor display performance of the final display.
  • the application provides a pixel compensation method, device and terminal device to improve display effects.
  • a pixel compensation method includes: acquiring a first backlight image of an image to be processed, where pixels in the first backlight image are in one-to-one correspondence with a backlight unit in a backlight array, the backlight The array is configured to provide a backlight for displaying the image to be processed; and dividing a pixel of the first backlight image according to a position attribute of the pixel to obtain a plurality of regions of the first backlight image; The images of the regions are respectively filtered and amplified to obtain a second backlight image having the same resolution as the image to be processed, wherein, when filtering the images of the plurality of regions, the plurality of regions The images of the at least two regions are applied with different spatial filtering; the image to be processed is pixel compensated according to the brightness value of the second backlight image.
  • the backlight array described above includes a plurality of backlight units, and the backlight array includes the same number of backlight units as the number of pixel points in the first backlight image.
  • filtering processing is performed by using different types of spatial filtering for images of at least two of the plurality of regions, and the backlight diffusion can be better simulated compared with the filtering method using the unified filtering template, so that the pixels are better
  • the compensated image can achieve a better display effect when displayed.
  • the pixel points of the first backlight image are divided according to a position attribute of the pixel point to obtain multiple regions of the first backlight image.
  • the method includes: dividing the pixel points having the same position attribute into the same area, wherein the position attribute is the same including the same number of adjacent pixel points or the same distance from the center position of the first backlight image.
  • the same spatial filtering can be used for the pixels with the same positional property, and the pixels with different positions are differently filtered, which can better simulate the light diffusion phenomenon at different positions. Thereby, the effect of the display can be improved.
  • the same location attribute may also mean that the number of adjacent pixel points is within a preset range.
  • a pixel point whose number of adjacent pixel points is less than or equal to 5 may belong to the same location attribute, and adjacent pixel points.
  • a pixel with a number greater than 5 can be considered to belong to another location attribute.
  • the pixel points of the first backlight image are divided according to a position attribute of a pixel point to obtain multiple regions of the first backlight image.
  • the method includes: dividing a pixel point position having 8 adjacent pixel points into a first area; dividing a pixel point position having 5 adjacent pixel points into a second area; and selecting a pixel point having 3 adjacent pixel points The position is divided into the third area.
  • the performing pixel compensation on the image to be processed according to the brightness value of the second backlight image comprises: obtaining an arbitrary from the image to be processed a first brightness value of a pixel; obtaining, from the second backlight image, a second brightness value of a pixel corresponding to the position of the arbitrary one of the pixels; acquiring a maximum brightness value, where the maximum brightness value is Determining, according to the maximum brightness value and the second brightness value, a compensation coefficient of the arbitrary one pixel point; The compensation coefficient compensates a first brightness value of the arbitrary one of the pixel points to obtain a target brightness value of the arbitrary one of the pixel points.
  • the backlight diffusion phenomenon can be better simulated, so that when the pixel to be processed is subjected to pixel compensation, the true brightness according to the backlight can be obtained.
  • the value of the pixel to be processed is pixel compensated, so that a better pixel compensation effect is obtained.
  • the first brightness value of the any one of the pixel points is compensated according to the compensation coefficient, to obtain a target brightness of the any one of the pixel points And a value comprising: determining a product of the first brightness value and the compensation coefficient as a target brightness value of the arbitrary one of the pixel points.
  • the compensation coefficient is obtained according to the following formula:
  • K log 2 (BL max /BL) 1.0/ ⁇
  • K is the compensation coefficient
  • BL max is the maximum brightness value
  • BL is the second brightness value
  • is a preset gamma coefficient
  • is generally 2.2.
  • BL max can make the compensation coefficient K not excessively large by taking the maximum luminance value, thereby avoiding pixel overflow when pixel compensation is performed.
  • the acquiring the first brightness value of any one of the pixels to be processed includes: The maximum component value of the three component values of any one of the pixel points is determined as the first brightness value; or the first brightness value is calculated according to the three component values of the arbitrary one of the pixel points.
  • a pixel compensation apparatus comprising means for performing the method of the first aspect or various implementations thereof.
  • a pixel compensation apparatus comprising: a memory for storing a program; a processor, configured to execute the program stored by the memory, when the program is executed, the processor uses The method of the first aspect or its various implementations is performed.
  • a terminal device comprising the pixel compensation device and the display in the second aspect, wherein the display is configured to display the pixel compensation device to perform pixel compensation on the image to be processed After the image.
  • a terminal device in a fifth aspect, includes: a memory for storing a program; a processor, configured to execute the program stored by the memory, when the program is executed, the processor is configured to execute The method of the first aspect or various implementations thereof.
  • a computer readable medium storing program code for device execution, the program code comprising instructions for performing the method of the first aspect or various implementations thereof.
  • FIG. 1 is a schematic flowchart of a pixel compensation method according to an embodiment of the present application.
  • FIG. 2 is a schematic view of a backlight array
  • FIG. 3 is a schematic view of a first backlight image
  • FIG. 4 is a schematic view of a plurality of regions of a first backlight image
  • Figure 5 is a schematic illustration of a plurality of regions of a first backlit image
  • Figure 6 is a schematic illustration of a plurality of regions of a first backlit image
  • FIG. 7 is a schematic flowchart of a pixel compensation method according to an embodiment of the present application.
  • Figure 8 is a schematic diagram of a filter template
  • Figure 9 is a schematic diagram of a pixel compensation curve
  • FIG. 10 is a schematic block diagram of a pixel compensation apparatus according to an embodiment of the present application.
  • FIG. 11 is a schematic block diagram of a terminal device according to an embodiment of the present application.
  • the dynamic range of an image is generally the ratio of the darkest brightness to the brightest brightness. The larger the ratio, the larger the dynamic range, the more layers the image can display, and the better the display.
  • the range of brightness in nature is wide. From the night scene under the stars (10 -3 cd/m 2 ) to the brightness of the sun itself (10 5 cd/m 2 ), there are about 8 orders of magnitude of brightness.
  • the human eye has its own adjustment mechanism. You can capture 5 orders of magnitude brightness range from nature. However, current displays generally only exhibit dynamic range of 2 to 3 orders of magnitude, and cannot reflect the real information of natural scenes viewed by the human eye.
  • the display can be closer to the dynamic range in the natural scene, thereby better reflecting the real information of the natural scene.
  • Area backlight dimming technology can generally be adopted.
  • the technology generally includes two parts: backlight brightness extraction and pixel compensation.
  • the backlight brightness extraction refers to dividing the backlight module into a plurality of partitions (the shape of the partition may be a rectangular area), and then dynamically extracting characteristic parameters capable of characterizing the brightness information of the partition according to image content corresponding to each partition, and then according to the parameter Determine the brightness of the backlight unit of each partition.
  • the brightness of the pixel should be adjusted to a certain extent, so that the image color before and after the adjustment does not appear large deviation, and the display effect is ensured.
  • it is necessary to simulate the diffusion mode of the backlight thereby obtaining the brightness value corresponding to each pixel of the liquid crystal display (LCD) panel, and then performing pixel compensation according to the brightness value of each pixel point. Therefore, how to simulate Backlight diffusion, how to perform pixel compensation, to ensure display effect is a problem to be solved.
  • FIG. 1 is a schematic flowchart of a pixel compensation method according to an embodiment of the present application.
  • the method shown in FIG. 1 can be performed by a device capable of displaying video, such as a liquid crystal display device, a smart terminal, a tablet computer, a desktop computer, or the like.
  • the method shown in FIG. 1 includes steps 101 to 104, and step 101 to step 104 are described in detail below with reference to specific examples.
  • the first backlight image is a two-dimensional matrix composed of luminance values of a backlight array of a display device for displaying the image to be processed, and a pixel point and a backlight array in the first backlight image (the backlight array is used for
  • the backlight units in the backlight for displaying the image to be processed are one-to-one correspondence, and the luminance value of each pixel is used to indicate the brightness of the corresponding backlight unit in the backlight array.
  • the backlight array described above includes the same number of backlight units as the number of pixel points in the first backlight image.
  • the backlight array of the display device is composed of a plurality of backlight units, and the brightness of each backlight unit can be separately adjusted (the brightness of each backlight unit can be adjusted through the control unit of the display), and the area where each backlight unit is located can be called A partition for the backlight array.
  • the backlight array of the display is composed of M ⁇ N (M and N are integers greater than or equal to 1) backlight units, then the entire area of the backlight array is composed of M ⁇ N partitions, correspondingly, the first backlight
  • the image includes M x N pixels, each pixel corresponding to a partition in the backlight matrix.
  • the entire area of the backlight array is composed of 6 ⁇ 10 partitions, and each partition is provided with a backlight unit.
  • the first backlight image is as shown in FIG. 3 , and the first backlight image comprises 6 ⁇ 10 pixel points, and each pixel point corresponds to one partition in the backlight array in FIG. 2 .
  • pixels having the same position attribute may be divided into the same area, that is, pixels divided into the same area have the same
  • the location attribute thus having some similar features, can be processed using the same filter template in subsequent filtering processes.
  • the pixel of the first backlight image is divided into regions according to the position attribute of the pixel to obtain a plurality of regions of the first backlight image, including: dividing pixel points with the same position attribute Go to the same area.
  • the same position attribute may include the same number of adjacent pixels or the same distance from the center position of the second backlight image.
  • the positional attributes of the pixels may be considered to be the same.
  • dividing a pixel point of the first backlight image according to a position attribute of the pixel point to obtain a plurality of regions of the first backlight image including: having 8 adjacent pixel points The pixel point position is divided into the first area; the pixel point position having 5 adjacent pixel points is divided into the second area; and the pixel point position having 3 adjacent pixel points is divided into the third area.
  • the number of adjacent pixel points of each pixel point is 8, and the number of adjacent pixel points of each pixel point in the second area is 5,
  • the number of adjacent pixels of each pixel in the three regions is three.
  • the positional attributes of the pixels may also be considered to be the same.
  • a pixel point whose distance from the center position of the first backlight image is smaller than the first distance may be divided into one area, and a pixel point whose distance from the center position of the first backlight image is larger than the first distance may be divided into another area.
  • a pixel point having a distance greater than two pixel points from a center position of the first backlight image is divided into the first area, and a distance from a center position of the first backlight image is less than or equal to two pixel points.
  • the pixels are divided into the second area.
  • the pixel points in the first region are mainly pixel points that are relatively close to the center position
  • the pixel points in the second region are mainly pixel points that are relatively far from the center position.
  • the distance of each pixel point from the center position of the first backlight image refers to the horizontal distance or vertical distance of the edge of the pixel point from the center position point.
  • the same location attribute may also mean that the number of adjacent pixel points is within a preset range.
  • the number of adjacent pixel points is within a preset range.
  • pixels of the number of adjacent pixel points less than or equal to 5 may be considered to belong to the same type.
  • the position attribute, a pixel whose number of adjacent pixels is greater than 5, can be considered to belong to another position attribute.
  • a pixel point having a number of adjacent pixel points greater than 5 is divided into a first area (the number of adjacent pixel points of each pixel point in the first area is 8), and adjacent A pixel point whose number of pixels is less than or equal to 5 is divided into the second region (the number of adjacent pixel points of the pixel in the second region is 5 or 3).
  • the pixels at the edge of the backlit image have the same positional property, while the pixels within the backlit image have the same positional property.
  • the pixel at the edge of the first backlight image may be divided into the first region, and the remaining pixel dots may be divided into the second region.
  • the same area division result can be obtained by using different division manners.
  • the division result shown in FIG. 6 may be obtained by dividing the area according to whether it is at the edge, or may be according to the number of adjacent pixel points. Obtained by dividing within the preset range.
  • the same spatial filtering can be applied to the pixels with the same position attribute, which can improve the filtering effect.
  • images of at least two of the plurality of regions are applied with different spatial filtering.
  • applying different spatial filtering to the images of the at least two regions may mean that different filtering templates (specifically, low-pass filtering templates) may be used when filtering the images of the at least two regions, and different filtering templates are used.
  • the filter coefficients can be different.
  • filtering processing is performed by using different types of spatial filtering for images of at least two of the plurality of regions, which can better simulate backlight diffusion and achieve pixel compensation compared with filtering using a unified filtering template.
  • the latter image can achieve a better display effect when displayed.
  • pixel compensation of the image to be processed in the present application refers to compensating or adjusting the luminance value of each pixel in the image to be processed.
  • each pixel in the image to be processed has a corresponding position in the second backlight image, indicating the backlight brightness value of the image to be processed at the above position.
  • the pixel of the second backlight image may be compensated according to the pixel corresponding to the position of the image to be processed.
  • performing pixel compensation on the image to be processed according to the brightness value of the second backlight image specifically: acquiring a first brightness value of any one pixel point from the image to be processed; and from the second backlight image Obtaining a second brightness value of a pixel corresponding to the position of the arbitrary one of the pixels; acquiring a maximum brightness value; determining a compensation coefficient of any one of the pixel points according to the maximum brightness value and the second brightness value; The first luminance value of the pixel is compensated to obtain a target luminance value of the pixel.
  • the maximum brightness value described above refers to the upper limit value of the brightness of the second backlight image or the upper limit value of the brightness that the backlight unit can display.
  • the backlight diffusion phenomenon can be better simulated, so that when the pixel to be processed is subjected to pixel compensation, the true brightness according to the backlight can be obtained.
  • the value of the pixel to be processed is pixel compensated, so that a better pixel compensation effect is obtained.
  • the compensation coefficient and the first brightness value of the arbitrary one of the pixel points may be specifically
  • the product of the product is the target luminance value of the arbitrary one of the pixels.
  • the coefficient, ⁇ can be an empirical value determined experimentally, and ⁇ can generally be taken as 2.2.
  • BL max can make the compensation coefficient K not excessively large by taking the maximum luminance value, thereby avoiding pixel overflow when pixel compensation is performed.
  • the maximum component value of the three component values of the arbitrary one of the pixel points may be determined as the first brightness.
  • the value, or the first brightness value is calculated from the three component values of the arbitrary one of the pixel points.
  • the first luminance value can be quickly determined, and a certain computational complexity can be reduced.
  • the first brightness value is calculated by three component values, a more accurate brightness value can be obtained, which is convenient for subsequent pixel compensation.
  • FIG. 7 is a schematic flowchart of a pixel compensation method according to an embodiment of the present application.
  • the method shown in FIG. 7 can be performed by a liquid crystal display device, a smart terminal, a tablet computer, a desktop computer, or the like that can display video.
  • the method shown in Figure 7 specifically includes the following steps:
  • the backlight array of the display may include a plurality of backlight units, and the brightness value of each backlight unit may be dynamically adjusted according to the image content corresponding to the backlight unit, so that the dynamic range of the display is increased.
  • the brightness values of all the backlight units in the backlight array after the backlight adjustment may constitute a first backlight image, and the brightness value of each pixel in the first backlight image corresponds to the brightness of each backlight unit in the backlight array.
  • the size of the first backlight image is related to the number of backlight units included in the backlight array. If the backlight array includes M ⁇ N backlight units, the luminance values of the pixels of the first backlight image also form an M ⁇ N size.
  • the matrix, the luminance value of each pixel in the first backlight image BL init can be specifically expressed by the formula (1).
  • each pixel point in the first backlight image corresponds to one backlight unit in the backlight array, and the brightness value of each pixel point is used to indicate the brightness of the corresponding backlight unit.
  • the first backlight image BL init is composed of a total of M ⁇ N pixels.
  • the number of adjacent pixels of different pixels may be different, for the pixel at the edge of the first backlight image.
  • the number of adjacent pixels is smaller than the number of adjacent pixels located in the pixel inside the first backlight image, that is, there are different regions in the first backlight image, and in some regions
  • the number of adjacent pixels of the pixel is small, and the number of adjacent pixels in some areas is relatively large, so that in the process of light diffusion, light diffusion and mixing in different regions are different.
  • the pixels of the first backlight image may be divided according to the position of each pixel in the first backlight image, thereby obtaining different regions.
  • the first backlight image may be divided into three regions, wherein adjacent to each pixel in the first region The number of pixels is three, the number of adjacent pixels of each pixel in the second region is five, and the number of adjacent pixels for each pixel in the third region is eight.
  • the first filter template, the second filter template, and the third filter template shown in FIG. 8 may be used to respectively pair the first backlight.
  • the first area, the second area, and the third area in the image are mixed.
  • the processing can be performed using equation (2) to obtain the processed luminance value of each pixel in the first region.
  • the light mixing process can be performed using Equation (3) to obtain the luminance value of each pixel in the second region after the light mixing process.
  • the light mixing process can be performed using Equation (4) to obtain the luminance value of each pixel in the third region after the light mixing process.
  • a, b, c, and d are coefficients of the first filter template, the second filter template, and the third filter template, respectively.
  • a is located at the center of the diffusion template, indicating the coefficient of light energy remaining after the diffusion of the light diffusion center
  • b, c, and d are distributed around the diffusion template, respectively indicating the coefficient of diffusion of the light diffusion center to the surrounding.
  • a linear interpolation method may be employed, and further, the mixed backlight image may be expanded by bilinear interpolation.
  • extended backlight image light may be mixed every time the light mixing backlit images expanded to twice its original, e.g., a light mixing matrix BL mixed before expansion of size M ⁇ N, the extended light mixing matrix BL
  • the size of expand is 2M x 2N. It should be understood that any of the interpolation methods may be used to expand the backlit image after the light mixing.
  • step 206 is performed. If the backlight between the regions in the BL expand reaches the preset effect, then step 206 is performed. If the smoothing effect is not achieved, the above steps 203 and 204 can be continued until a smooth smoothness is achieved between the regions of the BL expand . The effect, that is, there is no obvious block boundary between the various areas of BL expand .
  • BL expand when expanding BL expand , if the size of the image to be processed is 160 ⁇ 160 and the size of BL expand is 64 ⁇ 64, then BL expand can be expanded twice and then interpolated (specifically, Bilinear interpolation method) obtains the target backlight image BL final of the same size as the image to be processed.
  • pixel compensation can be performed in a logarithmic manner using equation (5).
  • Y i,j is the pixel brightness before the pixel point (i,j) in the image to be processed is compensated
  • Y′ i,j is compensated for the pixel point (i,j) in the image to be processed.
  • pixel luminance BL 'max is the maximum target backlight BL final image of an object takes the maximum value here is to avoid overflow during pixel pixel compensation
  • BL' i, j is the target backlight BL final image corresponding to the to be
  • K i,j is the brightness compensation coefficient of the pixel
  • is the gamma coefficient
  • is generally taken as 2.2.
  • the UV component In order to make the image without color distortion after the area is dimmed, it is necessary to compensate the UV component with the same Y component, and the UV component can also be compensated according to the formula (6).
  • the curve for pixel compensation based on the above formula (5) and formula (6) is shown by the logarithmic curve in FIG. 9.
  • the degree of pixel compensation gradually decreases.
  • the increase in Y out is gradually reduced. That is to say, for low-brightness pixels, since the degree of backlight is reduced more, in order to effectively compensate for the decrease in display brightness caused by the decrease in backlight brightness, a large degree of compensation for low-brightness pixels is required to ensure full backlighting.
  • the display effect is basically the same when it is high; for high-brightness pixels, since the backlight brightness is less than that when the backlight is fully lit, it is only necessary to make a small degree of compensation to ensure the display effect when the backlight is fully lit. be consistent. Therefore, pixel overflow distortion due to excessive pixel compensation can be effectively avoided when pixel compensation is performed in the present application.
  • the main purpose of pixel compensation is to ensure that the color of the image is not distorted after adjusting the brightness of the backlight.
  • the image after performing pixel compensation, in order to further improve the contrast of the image, the image may be subjected to contrast stretching after pixel compensation of the image.
  • the subjective effect of the image after backlight brightness adjustment and pixel compensation is that the darker the image is, the brighter the bright part is. Therefore, the pixel compensated image can be divided into low brightness according to the brightness. Segment, intermediate luminance segment and high luminance segment, for the low luminance segment and the high luminance segment, respectively, exponential transformation can be used, and the low luminance segment is subjected to grayscale compression, and for the high luminance segment, grayscale expansion is performed, and the intermediate luminance is performed.
  • the segment is linearly transformed, and the specific transformation formula can be as shown in (7).
  • Y′ i,j is the pixel-compensated brightness
  • Y′′ i,j is the pixel brightness after the contrast stretching
  • H 1 and H 2 are the pixel-compensated image total pixels 10 respectively.
  • the pixel brightness value corresponding to % and 90% is also the segmentation point of the brightness conversion curve. Since the brightness of the low brightness segment is compressed and darkened, and the brightness of the high brightness segment is brightened due to expansion, the difference between the brightness and the darkness of the image is more obvious. , which effectively improves the image contrast.
  • the UV component can be subjected to the same processing using Equation (8).
  • Y 'i, j is the brightness of the pixel compensation
  • Y "i, j is the pixel brightness contrast stretching
  • K i, j is the pixel luminance compensation coefficient
  • U' i, j and V 'i, j is a U component and a V component after pixel compensation
  • U′′ i, j and V′′ i, j are U components and V components after contrast stretching.
  • the pixel compensation method of the embodiment of the present application is described in detail with reference to FIG. 1 to FIG. 9 .
  • the pixel compensation device and the terminal device of the embodiment of the present application are described in detail below with reference to FIG. 10 and FIG. 11 .
  • the pixel compensation device and the terminal device shown in FIG. 11 are capable of performing the pixel compensation method of the embodiment of the present application, and the steps of the pixel compensation method of the embodiment of the present application can be implemented.
  • the pixel compensation of the embodiment of the present application is described below. The repeated description is appropriately omitted in the device and the terminal device.
  • FIG. 10 is a schematic block diagram of a pixel compensation apparatus according to an embodiment of the present application.
  • the pixel compensation device 300 shown in FIG. 10 is capable of performing the pixel compensation method of the embodiment of the present application.
  • the pixel compensation device 300 specifically includes:
  • the acquiring module 301 is configured to acquire a first backlight image of the image to be processed, where the pixel points in the first backlight image are in one-to-one correspondence with the backlight unit in the backlight array, and the backlight array is configured to display the image to be processed Providing backlighting;
  • the processing module 302 is configured to divide, according to a position attribute of the pixel point, a pixel point of the first backlight image to obtain a plurality of regions of the first backlight image;
  • the processing module 302 is further configured to separately filter and enlarge the images of the plurality of regions to obtain a second backlight image having the same resolution as the image to be processed, where the images of the plurality of regions are performed When filtering, images of at least two of the plurality of regions are applied with different spatial filtering;
  • the pixel compensation module 303 is configured to perform pixel compensation on the image to be processed according to the brightness value of the second backlight image.
  • filtering processing is performed by using different types of spatial filtering for images of at least two of the plurality of regions, and the backlight diffusion can be better simulated compared with the filtering method using the unified filtering template, so that the pixels are better
  • the compensated image can achieve a better display effect when displayed.
  • processing module 302 is specifically configured to:
  • a pixel point position having 3 adjacent pixel points is divided into a third area.
  • the pixel compensation module 303 is specifically configured to:
  • the maximum brightness value is a brightness upper limit value of the second backlight image or a brightness upper limit value that the backlight unit can display;
  • the pixel compensation module 303 is specifically configured to:
  • the product of the first brightness value and the compensation coefficient is determined as the target brightness value of the arbitrary one of the pixel points.
  • the compensation coefficient is obtained according to the following formula:
  • K is the compensation coefficient
  • BL max is the maximum brightness value
  • BL is the second brightness value
  • is a preset gamma coefficient
  • the acquiring module 301 is specifically configured to:
  • the first brightness value is calculated based on three component values of any one of the pixel points.
  • FIG. 11 is a schematic block diagram of a terminal device according to an embodiment of the present application.
  • the terminal device 400 shown in FIG. 11 includes a pixel compensation device 401 and a display 402.
  • the pixel compensation device 401 herein may be the pixel compensation device 300 shown in FIG. 10, and the pixel compensation device 401 in the terminal device can perform the embodiment of the present application.
  • the pixel compensation method performs pixel compensation on the image to be processed, and the display 402 can display the image after the pixel compensation device 401 performs pixel compensation.
  • the present application also provides a pixel compensation apparatus, the pixel compensation apparatus comprising: a memory for storing a program; a processor, configured to execute the program stored by the memory, when the program is executed, the processor uses The pixel compensation method of the embodiment of the present application is executed.
  • the present application also provides a terminal device, the terminal device comprising: a memory for storing a program; a processor, configured to execute the program stored by the memory, when the program is executed, the processor is configured to execute The pixel compensation method of the embodiment of the present application.
  • the application further provides a computer readable medium storing program code for execution by a device, the program code comprising instructions for performing a pixel compensation method of an embodiment of the present application.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product.
  • the technical solution of the present application which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program code. .

Abstract

A pixel compensation method and apparatus, and a terminal device. The method comprises: acquiring a first backlight image of an image to be processed, wherein pixel points in the first backlight image correspond to backlight units in a backlight array on a one-to-one basis, and the backlight array is used for providing a backlight for displaying the image to be processed; according to a position attribute of the pixel points, dividing the pixel points in the first backlight image so as to obtain multiple areas of the first backlight image; filtering and enlarging images of the multiple areas respectively so as to obtain a second backlight image that has the same resolution as the image to be processed, wherein when the images of the multiple areas are filtered, different spatial filtering is applied to the images of at least two areas among from the multiple areas; and carrying out, according to a brightness value of the second backlight image, pixel compensation on the image to be processed.

Description

像素补偿方法、装置和终端设备Pixel compensation method, device and terminal device
本申请要求于2017年11月21日提交中国专利局、申请号为201711166453.1、申请名称为“像素补偿方法、装置和终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. JP-A No. No. No. No. No. No. No. No. No. No. No. No. No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No in.
技术领域Technical field
本申请涉及显示器像素补偿技术领域,并且更具体地,涉及一种像素补偿方法、装置和终端设备。The present application relates to the field of display pixel compensation technology, and more particularly, to a pixel compensation method, apparatus and terminal device.
背景技术Background technique
为了提高显示器的动态范围,通常可以将显示器的背光模组分成若干个区域,然后根据图像内容的分布情况调整背光模组各个区域的亮度,并对图像像素值进行像素补偿,从而在保证显示效果的同时提高显示器的显示的动态范围。In order to improve the dynamic range of the display, the backlight module of the display can be divided into several regions, and then the brightness of each region of the backlight module is adjusted according to the distribution of the image content, and pixel compensation is performed on the pixel values of the image, thereby ensuring the display effect. At the same time improve the dynamic range of the display of the display.
传统方案在对图像进行像素补偿时是根据背光区域的亮度进行背光平滑处理,然后再对背光平滑处理之后的区域进行像素补偿,以保证显示效果。具体地,在背光平滑处理时对整个背光区域采用同样的滤波模板进行低通滤波,然后再进行像素补偿,由于背光模组在不同区域的光扩散情况不同,采用相同的低通滤波模板进行滤波处理,不能很好的模拟背光的扩散情况,会导致最终显示器的显示效果不佳。In the conventional scheme, when the image is pixel-compensated, the backlight is smoothed according to the brightness of the backlight area, and then the area after the backlight is smoothed is pixel-compensated to ensure the display effect. Specifically, in the backlight smoothing process, the same filtering template is used for low-pass filtering of the entire backlight region, and then pixel compensation is performed. Since the light diffusion of the backlight module in different regions is different, the same low-pass filtering template is used for filtering. Processing, can not simulate the diffusion of the backlight very well, will lead to poor display performance of the final display.
发明内容Summary of the invention
本申请提供一种像素补偿方法、装置和终端设备,以提高显示效果。The application provides a pixel compensation method, device and terminal device to improve display effects.
第一方面,提供了一种像素补偿方法,该方法包括:获取待处理图像的第一背光图像,所述第一背光图像中的像素点与背光阵列中的背光单元一一对应,所述背光阵列用于为显示所述待处理图像提供背光;根据像素点的位置属性,对所述第一背光图像的像素点进行划分,以得到所述第一背光图像的多个区域;对所述多个区域的图像分别进行滤波和放大,以得到与所述待处理图像的分辨率相同的第二背光图像,其中,在对所述多个区域的图像进行滤波时,所述多个区域中的至少两个区域的图像被应用不同的空间滤波;根据所述第二背光图像的亮度值对所述待处理图像进行像素补偿。In a first aspect, a pixel compensation method is provided. The method includes: acquiring a first backlight image of an image to be processed, where pixels in the first backlight image are in one-to-one correspondence with a backlight unit in a backlight array, the backlight The array is configured to provide a backlight for displaying the image to be processed; and dividing a pixel of the first backlight image according to a position attribute of the pixel to obtain a plurality of regions of the first backlight image; The images of the regions are respectively filtered and amplified to obtain a second backlight image having the same resolution as the image to be processed, wherein, when filtering the images of the plurality of regions, the plurality of regions The images of the at least two regions are applied with different spatial filtering; the image to be processed is pixel compensated according to the brightness value of the second backlight image.
上述背光阵列包含多个背光单元,背光阵列包含的背光单元的数目与第一背光图像中的像素点的数目相同。The backlight array described above includes a plurality of backlight units, and the backlight array includes the same number of backlight units as the number of pixel points in the first backlight image.
本申请中,通过针对多个区域中的至少两个区域的图像分别采用不同类型的空间滤波进行滤波处理,与采用统一滤波模板进行滤波的方式相比,能够更好的模拟背光扩散,使得像素补偿后的图像在显示时能够取得较好的显示效果。In the present application, filtering processing is performed by using different types of spatial filtering for images of at least two of the plurality of regions, and the backlight diffusion can be better simulated compared with the filtering method using the unified filtering template, so that the pixels are better The compensated image can achieve a better display effect when displayed.
结合第一方面,在第一方面的某些实现方式中,根据所述像素点的位置属性,对所述第一背光图像的像素点进行划分,以得到所述第一背光图像的多个区域,包括:将位置属 性相同的像素点划分到同一区域中,其中,所述位置属性相同包括相邻像素点的数目相同或者与所述第一背光图像的中心位置距离相同。With reference to the first aspect, in some implementations of the first aspect, the pixel points of the first backlight image are divided according to a position attribute of the pixel point to obtain multiple regions of the first backlight image. The method includes: dividing the pixel points having the same position attribute into the same area, wherein the position attribute is the same including the same number of adjacent pixel points or the same distance from the center position of the first backlight image.
通过将位置属性相同的像素点划分到同一区域中,能够对位置属性相同的像素点采用相同的空间滤波,位置不同的像素点采用不同的滤波,可以较好的模拟不同位置的光扩散现象,从而能够提高显示的效果。By dividing the pixels with the same position attribute into the same area, the same spatial filtering can be used for the pixels with the same positional property, and the pixels with different positions are differently filtered, which can better simulate the light diffusion phenomenon at different positions. Thereby, the effect of the display can be improved.
可选地,位置属性相同还可以是指相邻像素点的数目在预设范围内,例如,相邻像素点的数目小于或者等于5的像素点可以属于同一种位置属性,相邻像素点的数目大于5的像素点可以认为属于另一种位置属性。Optionally, the same location attribute may also mean that the number of adjacent pixel points is within a preset range. For example, a pixel point whose number of adjacent pixel points is less than or equal to 5 may belong to the same location attribute, and adjacent pixel points. A pixel with a number greater than 5 can be considered to belong to another location attribute.
结合第一方面,在第一方面的某些实现方式中,所述根据像素点的位置属性,对所述第一背光图像的像素点进行划分,以得到所述第一背光图像的多个区域,包括:将具有8个相邻像素点的像素点位置划分到第一区域;将具有5个相邻像素点的像素点位置划分到第二区域;将具有3个相邻像素点的像素点位置划分到第三区域。With reference to the first aspect, in some implementations of the first aspect, the pixel points of the first backlight image are divided according to a position attribute of a pixel point to obtain multiple regions of the first backlight image. The method includes: dividing a pixel point position having 8 adjacent pixel points into a first area; dividing a pixel point position having 5 adjacent pixel points into a second area; and selecting a pixel point having 3 adjacent pixel points The position is divided into the third area.
结合第一方面,在第一方面的某些实现方式中,所述根据所述第二背光图像的亮度值对所述待处理图像进行像素补偿,包括:从所述待处理图像中,获取任意一个像素点的第一亮度值;从所述第二背光图像中,获取与所述任意一个像素点相对应位置的像素点的第二亮度值;获取最大亮度值,所述最大亮度值为所述第二背光图像的亮度上限值或者所述背光单元所能显示的亮度上限值;根据所述最大亮度值以及所述第二亮度值,确定所述任意一个像素点的补偿系数;根据所述补偿系数,对所述任意一个像素点的第一亮度值进行补偿,以得到所述任意一个像素点的目标亮度值。In conjunction with the first aspect, in some implementations of the first aspect, the performing pixel compensation on the image to be processed according to the brightness value of the second backlight image comprises: obtaining an arbitrary from the image to be processed a first brightness value of a pixel; obtaining, from the second backlight image, a second brightness value of a pixel corresponding to the position of the arbitrary one of the pixels; acquiring a maximum brightness value, where the maximum brightness value is Determining, according to the maximum brightness value and the second brightness value, a compensation coefficient of the arbitrary one pixel point; The compensation coefficient compensates a first brightness value of the arbitrary one of the pixel points to obtain a target brightness value of the arbitrary one of the pixel points.
由于在获取第二背光图像的过程中,针对不同的区域采用了不同的空间滤波,能够更好的模拟背光扩散现象,这样,在后续对待处理图像进行像素补偿时,能够在根据背光真实的亮度值对待处理像素点进行像素补偿,从而取得较好的像素补偿效果。Since different spatial filtering is adopted for different regions in the process of acquiring the second backlight image, the backlight diffusion phenomenon can be better simulated, so that when the pixel to be processed is subjected to pixel compensation, the true brightness according to the backlight can be obtained. The value of the pixel to be processed is pixel compensated, so that a better pixel compensation effect is obtained.
结合第一方面,在第一方面的某些实现方式中,所述根据所述补偿系数,对所述任意一个像素点的第一亮度值进行补偿,以得到所述任意一个像素点的目标亮度值,包括:将所述第一亮度值与所述补偿系数的乘积确定为所述任意一个像素点的目标亮度值。With reference to the first aspect, in some implementations of the first aspect, the first brightness value of the any one of the pixel points is compensated according to the compensation coefficient, to obtain a target brightness of the any one of the pixel points And a value comprising: determining a product of the first brightness value and the compensation coefficient as a target brightness value of the arbitrary one of the pixel points.
结合第一方面,在第一方面的某些实现方式中,所述补偿系数根据如下公式获得:In conjunction with the first aspect, in some implementations of the first aspect, the compensation coefficient is obtained according to the following formula:
K=log 2(BL max/BL) 1.0/γ K=log 2 (BL max /BL) 1.0/γ
其中,K为所述补偿系数,BL max为所述最大亮度值,BL为所述第二亮度值,γ为预设的伽马系数,γ一般可以取2.2。 Where K is the compensation coefficient, BL max is the maximum brightness value, BL is the second brightness value, γ is a preset gamma coefficient, and γ is generally 2.2.
由于人眼的对图像信号的处理类似于近似对数算法的处理环节,因此,在对像素进行补偿的过程中通过取对数,能够有效的提高图像的对比度。另外,在上述公式中,BL max通过取最大亮度值,能够使得补偿系数K不至于过大,从而避免在进行像素补偿时发生像素溢出。 Since the processing of the image signal by the human eye is similar to the processing of the approximate logarithmic algorithm, the contrast of the image can be effectively improved by taking the logarithm in the process of compensating the pixel. In addition, in the above formula, BL max can make the compensation coefficient K not excessively large by taking the maximum luminance value, thereby avoiding pixel overflow when pixel compensation is performed.
结合第一方面,在第一方面的某些实现方式中,所述待处理图像格式为RGB时,所述获取所述待处理图像中的任意一个像素点的第一亮度值,包括:将所述任意一个像素点的三个分量值中的最大分量值确定为所述第一亮度值;或者,根据所述任意一个像素点的三个分量值,计算所述第一亮度值。With reference to the first aspect, in some implementations of the first aspect, when the image format to be processed is RGB, the acquiring the first brightness value of any one of the pixels to be processed includes: The maximum component value of the three component values of any one of the pixel points is determined as the first brightness value; or the first brightness value is calculated according to the three component values of the arbitrary one of the pixel points.
可选地,在根据任意一个像素点的三个分量值来计算第一亮度值时,可以具体根据公式:Y=((R*299)+(G*587)+(B*114))/1000来计算,其中,Y表示第一亮度值,R、G和B 分别表示待处理像素点的三个分量值。Optionally, when calculating the first brightness value according to three component values of any one pixel point, it may be specifically according to the formula: Y=((R*299)+(G*587)+(B*114))/ Calculated by 1000, where Y represents the first luminance value, and R, G, and B represent the three component values of the pixel to be processed, respectively.
第二方面,提供了一种像素补偿装置,所述像素补偿装置包括用于执行所述第一方面或其各种实现方式中的方法的模块。In a second aspect, a pixel compensation apparatus is provided, the pixel compensation apparatus comprising means for performing the method of the first aspect or various implementations thereof.
第三方面,提供一种像素补偿装置,所述像素补偿装置包括:存储器,用于存储程序;处理器,用于执行所述存储器存储的程序,当所述程序被执行时,所述处理器用于执行所述第一方面或其各种实现方式中的方法。In a third aspect, a pixel compensation apparatus is provided, the pixel compensation apparatus comprising: a memory for storing a program; a processor, configured to execute the program stored by the memory, when the program is executed, the processor uses The method of the first aspect or its various implementations is performed.
第四方面,提供一种终端设备,所述终端设备包括所述第二方面中的像素补偿装置以及显示器,其中,所述显示器用于显示所述像素补偿装置对所述待处理图像进行像素补偿后的图像。According to a fourth aspect, a terminal device is provided, the terminal device comprising the pixel compensation device and the display in the second aspect, wherein the display is configured to display the pixel compensation device to perform pixel compensation on the image to be processed After the image.
第五方面,提供一种终端设备,所述终端设备包括:存储器,用于存储程序;处理器,用于执行所述存储器存储的程序,当所述程序被执行时,所述处理器用于执行所述第一方面或其各种实现方式中的方法。In a fifth aspect, a terminal device is provided, the terminal device includes: a memory for storing a program; a processor, configured to execute the program stored by the memory, when the program is executed, the processor is configured to execute The method of the first aspect or various implementations thereof.
第六方面,提供一种计算机可读介质,所述计算机可读介质存储用于设备执行的程序代码,所述程序代码包括用于执行第一方面或其各种实现方式中的方法的指令。In a sixth aspect, a computer readable medium storing program code for device execution, the program code comprising instructions for performing the method of the first aspect or various implementations thereof.
附图说明DRAWINGS
图1是本申请实施例的像素补偿方法的示意性流程图;1 is a schematic flowchart of a pixel compensation method according to an embodiment of the present application;
图2是背光阵列的示意图;2 is a schematic view of a backlight array;
图3是第一背光图像的示意图;3 is a schematic view of a first backlight image;
图4是第一背光图像的多个区域的示意图;4 is a schematic view of a plurality of regions of a first backlight image;
图5是第一背光图像的多个区域的示意图;Figure 5 is a schematic illustration of a plurality of regions of a first backlit image;
图6是第一背光图像的多个区域的示意图;Figure 6 is a schematic illustration of a plurality of regions of a first backlit image;
图7是本申请实施例的像素补偿方法的示意性流程图;FIG. 7 is a schematic flowchart of a pixel compensation method according to an embodiment of the present application; FIG.
图8是滤波模板的示意图;Figure 8 is a schematic diagram of a filter template;
图9是像素补偿曲线的示意图;Figure 9 is a schematic diagram of a pixel compensation curve;
图10是本申请实施例的像素补偿装置的示意性框图;FIG. 10 is a schematic block diagram of a pixel compensation apparatus according to an embodiment of the present application; FIG.
图11是本申请实施例的终端设备的示意性框图。FIG. 11 is a schematic block diagram of a terminal device according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图,对本申请中的技术方案进行描述。The technical solutions in the present application will be described below with reference to the accompanying drawings.
图像的动态范围一般为最暗亮度与最亮亮度的比值,比值越大动态范围越大,图像能显示的层次就越多,显示的效果也越好。The dynamic range of an image is generally the ratio of the darkest brightness to the brightest brightness. The larger the ratio, the larger the dynamic range, the more layers the image can display, and the better the display.
自然界的亮度范围较广,从星空下的夜景(10 -3cd/m 2)到太阳本身亮度(10 5cd/m 2)大约有8个数量级的亮度范围,人眼由于其自身调节机制,可以从自然界捕捉到5个数量级的亮度范围。但是目前的显示器普遍只能呈现出2~3个数量级的动态范围,不能够反映出人眼所观看到的自然场景的真实信息。 The range of brightness in nature is wide. From the night scene under the stars (10 -3 cd/m 2 ) to the brightness of the sun itself (10 5 cd/m 2 ), there are about 8 orders of magnitude of brightness. The human eye has its own adjustment mechanism. You can capture 5 orders of magnitude brightness range from nature. However, current displays generally only exhibit dynamic range of 2 to 3 orders of magnitude, and cannot reflect the real information of natural scenes viewed by the human eye.
为了提高显示器的动态范围,使得显示器能够更接近自然场景中的动态范围,从而更好地反映自然场景的真实信息。一般可以采取区域背光调光技术,该技术一般包括两大部分:背光亮度提取和像素补偿。In order to improve the dynamic range of the display, the display can be closer to the dynamic range in the natural scene, thereby better reflecting the real information of the natural scene. Area backlight dimming technology can generally be adopted. The technology generally includes two parts: backlight brightness extraction and pixel compensation.
其中,背光亮度提取是指将背光模组分成若干个分区(分区的形状可以是矩形区域),然后根据各个分区对应的图像内容来动态提取能够表征该分区亮度信息的特征参数,然后根据该参数确定各个分区的背光单元的亮度。The backlight brightness extraction refers to dividing the backlight module into a plurality of partitions (the shape of the partition may be a rectangular area), and then dynamically extracting characteristic parameters capable of characterizing the brightness information of the partition according to image content corresponding to each partition, and then according to the parameter Determine the brightness of the backlight unit of each partition.
在确定了背光模组各个分区的亮度之后,应当对像素的亮度进行一定的调整,使得调整前后的图像颜色不出现大的偏差,保证显示效果。获取背光亮度后,需要模拟背光的扩散方式,进而获得液晶显示器(liquid crystal display,LCD)面板的每个像素点对应的亮度值,再根据每个像素点的亮度值进行像素补偿因此,如何模拟背光扩散,如何进行像素补偿,保证显示效果是一个需要解决的问题。After determining the brightness of each partition of the backlight module, the brightness of the pixel should be adjusted to a certain extent, so that the image color before and after the adjustment does not appear large deviation, and the display effect is ensured. After obtaining the brightness of the backlight, it is necessary to simulate the diffusion mode of the backlight, thereby obtaining the brightness value corresponding to each pixel of the liquid crystal display (LCD) panel, and then performing pixel compensation according to the brightness value of each pixel point. Therefore, how to simulate Backlight diffusion, how to perform pixel compensation, to ensure display effect is a problem to be solved.
下面结合图1对本申请实施例的像素补偿方法进行详细的介绍。The pixel compensation method of the embodiment of the present application is described in detail below with reference to FIG. 1 .
图1是本申请实施例的像素补偿方法的示意性流程图。图1所示的方法可以由液晶显示设备、智能终端、平板电脑、台式电脑等等能够显示视频的设备来执行。图1所示的方法包括步骤101至步骤104,下面结合具体实例对步骤101至步骤104进行详细的介绍。FIG. 1 is a schematic flowchart of a pixel compensation method according to an embodiment of the present application. The method shown in FIG. 1 can be performed by a device capable of displaying video, such as a liquid crystal display device, a smart terminal, a tablet computer, a desktop computer, or the like. The method shown in FIG. 1 includes steps 101 to 104, and step 101 to step 104 are described in detail below with reference to specific examples.
101、获取待处理图像的第一背光图像。101. Acquire a first backlight image of an image to be processed.
其中,上述第一背光图像是用于显示该待处理图像的显示设备的背光阵列的亮度值组成的二维矩阵,并且,该第一背光图像中的像素点与背光阵列(该背光阵列用于为显示待处理图像提供背光)中的背光单元是一一对应的,每个像素点的亮度值用于表示背光阵列中对应的背光单元的亮度。另外,上述背光阵列包含的背光单元的数目与第一背光图像中的像素点的数目相同。The first backlight image is a two-dimensional matrix composed of luminance values of a backlight array of a display device for displaying the image to be processed, and a pixel point and a backlight array in the first backlight image (the backlight array is used for The backlight units in the backlight for displaying the image to be processed are one-to-one correspondence, and the luminance value of each pixel is used to indicate the brightness of the corresponding backlight unit in the backlight array. In addition, the backlight array described above includes the same number of backlight units as the number of pixel points in the first backlight image.
应理解,显示设备的背光阵列由多个背光单元组成,每个背光单元的亮度可以单独调节(可以通过显示器的控制单元来调节每个背光单元的亮度),每个背光单元所在的区域可以称为背光阵列的一个分区。It should be understood that the backlight array of the display device is composed of a plurality of backlight units, and the brightness of each backlight unit can be separately adjusted (the brightness of each backlight unit can be adjusted through the control unit of the display), and the area where each backlight unit is located can be called A partition for the backlight array.
例如,显示器的背光阵列由M×N(M和N均为大于或者等于1的整数)个背光单元组成,那么,该背光阵列的整个区域由M×N个分区组成,相应的,第一背光图像就包括M×N个像素点,每个像素点对应背光矩阵中的一个分区。For example, the backlight array of the display is composed of M×N (M and N are integers greater than or equal to 1) backlight units, then the entire area of the backlight array is composed of M×N partitions, correspondingly, the first backlight The image includes M x N pixels, each pixel corresponding to a partition in the backlight matrix.
如图2所示,背光阵列的整个区域由6×10个分区组成,每个分区设置有一个背光单元。相应的,第一背光图像如图3所示,该第一背光图像包含6×10个像素点组成,每个像素点对应图2中的背光阵列中的一个分区。As shown in FIG. 2, the entire area of the backlight array is composed of 6 × 10 partitions, and each partition is provided with a backlight unit. Correspondingly, the first backlight image is as shown in FIG. 3 , and the first backlight image comprises 6×10 pixel points, and each pixel point corresponds to one partition in the backlight array in FIG. 2 .
102、根据像素点的位置属性,对第一背光图像的像素点进行划分,以得到该第一背光图像的多个区域。102. Divide a pixel of the first backlight image according to a position attribute of the pixel to obtain a plurality of regions of the first backlight image.
在对第一背光图像的像素点进行划分时,可以将位置属性(或者称为位置类型)相同的像素点划分到同一个区域中,也就是说,划分到同一区域中的像素点具有相同的位置属性,因而具有某些相似的特征,在后续进行滤波处理时可以采用相同的滤波模板进行处理。When dividing a pixel of the first backlight image, pixels having the same position attribute (or position type) may be divided into the same area, that is, pixels divided into the same area have the same The location attribute, thus having some similar features, can be processed using the same filter template in subsequent filtering processes.
可选地,作为一个实施例,根据像素点的位置属性,对第一背光图像的像素点进行区域划分,以得到该第一背光图像的多个区域,包括:将位置属性相同的像素点划分到相同的区域中。Optionally, as an embodiment, the pixel of the first backlight image is divided into regions according to the position attribute of the pixel to obtain a plurality of regions of the first backlight image, including: dividing pixel points with the same position attribute Go to the same area.
上述位置属性相同可以包括相邻像素点的数目相同或者与第二背光图像的中心位置距离相同。The same position attribute may include the same number of adjacent pixels or the same distance from the center position of the second backlight image.
具体地,在第一背光图像中,如果某些像素点的相邻像素点的数目相同,那么可以认为这些像素点的位置属性相同。Specifically, in the first backlight image, if the number of adjacent pixel points of some pixels is the same, the positional attributes of the pixels may be considered to be the same.
可选地,作为一个实施例,根据像素点的位置属性,对第一背光图像的像素点进行划分,以得到该第一背光图像的多个区域,包括:将具有8个相邻像素点的像素点位置划分到第一区域;将具有5个相邻像素点的像素点位置划分到第二区域;将具有3个相邻像素点的像素点位置划分到第三区域。Optionally, as an embodiment, dividing a pixel point of the first backlight image according to a position attribute of the pixel point to obtain a plurality of regions of the first backlight image, including: having 8 adjacent pixel points The pixel point position is divided into the first area; the pixel point position having 5 adjacent pixel points is divided into the second area; and the pixel point position having 3 adjacent pixel points is divided into the third area.
例如,如图4所示,在第一区域中,每个像素点的相邻像素点的数目为8个,第二区域中的每个像素点的相邻像素点的数目为5个,第三区域中的每个像素点的相邻像素点的数目为3个。For example, as shown in FIG. 4, in the first area, the number of adjacent pixel points of each pixel point is 8, and the number of adjacent pixel points of each pixel point in the second area is 5, The number of adjacent pixels of each pixel in the three regions is three.
可选地,在第一背光图像中,如果某些像素点与第一背光图像中心位置的距离相等,那么也可以认为这些像素点的位置属性相同。Optionally, in the first backlight image, if some pixels are equal in distance from the center position of the first backlight image, the positional attributes of the pixels may also be considered to be the same.
具体地,可以将离第一背光图像中心位置的距离小于第一距离的像素点划分到一个区域,而将离第一背光图像中心位置的距离大于第一距离的像素点划分到另一个区域。Specifically, a pixel point whose distance from the center position of the first backlight image is smaller than the first distance may be divided into one area, and a pixel point whose distance from the center position of the first backlight image is larger than the first distance may be divided into another area.
例如,如图5所示,将离第一背光图像中心位置的距离大于两个像素点的像素点划分到第一区域中,将离第一背光图像中心位置的距离小于或者等于两个像素点的像素点划分到第二区域中。在图5中,第一区域中的像素点主要是离中心位置的距离比较近的像素点,而第二区域中的像素点主要是离中心位置的距离比较远的像素点。应理解,每个像素点离第一背光图像中心位置的距离是指该像素点的边缘离中心位置点的水平距离或者竖直距离。For example, as shown in FIG. 5, a pixel point having a distance greater than two pixel points from a center position of the first backlight image is divided into the first area, and a distance from a center position of the first backlight image is less than or equal to two pixel points. The pixels are divided into the second area. In FIG. 5, the pixel points in the first region are mainly pixel points that are relatively close to the center position, and the pixel points in the second region are mainly pixel points that are relatively far from the center position. It should be understood that the distance of each pixel point from the center position of the first backlight image refers to the horizontal distance or vertical distance of the edge of the pixel point from the center position point.
可选地,位置属性相同还可以是指相邻像素点的数目在预设范围内,例如,在第一背光图像中,相邻像素点的数目小于或者等于5的像素点可以认为属于同一种位置属性,相邻像素点的数目大于5的像素点可以认为属于另一种位置属性。Optionally, the same location attribute may also mean that the number of adjacent pixel points is within a preset range. For example, in the first backlight image, pixels of the number of adjacent pixel points less than or equal to 5 may be considered to belong to the same type. The position attribute, a pixel whose number of adjacent pixels is greater than 5, can be considered to belong to another position attribute.
例如,如图6所示,将相邻像素点的数目大于5的像素点划分到第一区域中(第一区域中的每个像素点的相邻像素点的数目为8),将相邻像素点的数目小于或者等于5的像素点划分到第二区域中(第二区域中的像素点的相邻像素点的数目为5个或者3个)。For example, as shown in FIG. 6, a pixel point having a number of adjacent pixel points greater than 5 is divided into a first area (the number of adjacent pixel points of each pixel point in the first area is 8), and adjacent A pixel point whose number of pixels is less than or equal to 5 is divided into the second region (the number of adjacent pixel points of the pixel in the second region is 5 or 3).
可选地,还可以认为处于背光图像边缘的像素点具有相同的位置属性,而处于背光图像内部的像素点具有相同的位置属性。同样如图6所示,可以将第一背光图像中处于最边缘的像素点划分到第一区域,而将剩余的像素点划分到第二区域。Alternatively, it is also considered that the pixels at the edge of the backlit image have the same positional property, while the pixels within the backlit image have the same positional property. As also shown in FIG. 6, the pixel at the edge of the first backlight image may be divided into the first region, and the remaining pixel dots may be divided into the second region.
应理解,采用不同的划分方式可以得到相同的区域划分结果,例如,图6所示的划分结果可以是按照是否处于边缘来划分区域的方式得到的,也可以是按照相邻像素点的数目是否在预设范围内进行划分而得到的。It should be understood that the same area division result can be obtained by using different division manners. For example, the division result shown in FIG. 6 may be obtained by dividing the area according to whether it is at the edge, or may be according to the number of adjacent pixel points. Obtained by dividing within the preset range.
通过将位置属性相同的像素点划分到同一区域中,能够对位置属性相同的像素点采用相同的空间滤波,能够提高滤波的效果。By dividing the pixels with the same position attribute into the same area, the same spatial filtering can be applied to the pixels with the same position attribute, which can improve the filtering effect.
103、对多个区域的图像分别进行滤波和放大,以得到与待处理图像的分辨率相同的第二背光图像。103. Filter and amplify the images of the multiple regions to obtain a second backlight image with the same resolution as the image to be processed.
其中,在对多个区域的图像进行滤波时,多个区域中的至少两个区域的图像被应用不同的空间滤波。Wherein, when filtering images of a plurality of regions, images of at least two of the plurality of regions are applied with different spatial filtering.
另外,至少两个区域的图像被应用不同的空间滤波可以是指在对至少两个区域的图像进行滤波处理时可以采用不同的滤波模板(具体可以是低通滤波模板),不同的滤波模板的滤波系数可以不同。In addition, applying different spatial filtering to the images of the at least two regions may mean that different filtering templates (specifically, low-pass filtering templates) may be used when filtering the images of the at least two regions, and different filtering templates are used. The filter coefficients can be different.
104、根据所述第二背光图像的亮度值对待处理图像进行像素补偿。104. Perform pixel compensation on the image to be processed according to the brightness value of the second backlight image.
本申请中,通过针对多个区域中的至少两个区域的图像采用不同类型的空间滤波进行滤波处理,与采用统一滤波模板进行滤波的方式相比,能够更好的模拟背光扩散,使得像素补偿后的图像在显示时能够取得较好的显示效果。In the present application, filtering processing is performed by using different types of spatial filtering for images of at least two of the plurality of regions, which can better simulate backlight diffusion and achieve pixel compensation compared with filtering using a unified filtering template. The latter image can achieve a better display effect when displayed.
应理解,在本申请中对待处理图像进行像素补偿是指对待处理图像中的每个像素点的亮度值进行补偿或者调整。It should be understood that pixel compensation of the image to be processed in the present application refers to compensating or adjusting the luminance value of each pixel in the image to be processed.
由于第二背光图像与待处理图像的图像分辨率相同,因此,待处理图像中的每个像素点在第二背光图像中均存在一个对应位置,表示待处理图像在上述位置的背光亮度值,可以根据第二背光图像的像素值待处理图像对应位置的像素进行补偿。Since the second backlight image has the same image resolution as the image to be processed, each pixel in the image to be processed has a corresponding position in the second backlight image, indicating the backlight brightness value of the image to be processed at the above position. The pixel of the second backlight image may be compensated according to the pixel corresponding to the position of the image to be processed.
可选地,作为一个实施例,根据第二背光图像的亮度值对待处理图像进行像素补偿,具体包括:从待处理图像中,获取任意一个像素点的第一亮度值;从第二背光图像中,获取与该任意一个像素点对应位置的像素点的第二亮度值;获取最大亮度值;根据最大亮度值以及第二亮度值,确定任意一个像素点的补偿系数;根据补偿系数,对任意一个像素点的第一亮度值进行补偿,以得到该像素点的目标亮度值。Optionally, as an embodiment, performing pixel compensation on the image to be processed according to the brightness value of the second backlight image, specifically: acquiring a first brightness value of any one pixel point from the image to be processed; and from the second backlight image Obtaining a second brightness value of a pixel corresponding to the position of the arbitrary one of the pixels; acquiring a maximum brightness value; determining a compensation coefficient of any one of the pixel points according to the maximum brightness value and the second brightness value; The first luminance value of the pixel is compensated to obtain a target luminance value of the pixel.
上述最大亮度值是指第二背光图像的亮度上限值或者背光单元所能显示的亮度上限值。The maximum brightness value described above refers to the upper limit value of the brightness of the second backlight image or the upper limit value of the brightness that the backlight unit can display.
由于在获取第二背光图像的过程中,针对不同的区域采用了不同的空间滤波,能够更好的模拟背光扩散现象,这样,在后续对待处理图像进行像素补偿时,能够在根据背光真实的亮度值对待处理像素点进行像素补偿,从而取得较好的像素补偿效果。Since different spatial filtering is adopted for different regions in the process of acquiring the second backlight image, the backlight diffusion phenomenon can be better simulated, so that when the pixel to be processed is subjected to pixel compensation, the true brightness according to the backlight can be obtained. The value of the pixel to be processed is pixel compensated, so that a better pixel compensation effect is obtained.
可选地,在根据补偿系数对任意一个像素点的第一亮度值进行补偿时,以得到任意一个像素点的目标亮度值时,具体可以将补偿系数与该任意一个像素点的第一亮度值的乘积作为该任意一个像素点的目标亮度值。Optionally, when the first brightness value of any one of the pixel points is compensated according to the compensation coefficient, to obtain the target brightness value of any one of the pixel points, the compensation coefficient and the first brightness value of the arbitrary one of the pixel points may be specifically The product of the product is the target luminance value of the arbitrary one of the pixels.
上述补偿系数可以通过公式K=log 2(BL max/BL) 1.0/γ来计算,其中,K为补偿系数,BL max为最大亮度值,BL为第二亮度值,γ为预设的伽马系数,γ可以是通过实验确定的经验值,γ一般可以取2.2。 The above compensation coefficient can be calculated by the formula K=log 2 (BL max /BL) 1.0/γ , where K is the compensation coefficient, BL max is the maximum brightness value, BL is the second brightness value, and γ is the preset gamma. The coefficient, γ, can be an empirical value determined experimentally, and γ can generally be taken as 2.2.
由于人眼的对图像信号的处理类似于近似对数算法的处理环节,因此,在对像素进行补偿的过程中通过取对数,能够有效的提高图像的对比度。进而获得更好的像素补偿效果。另外,在上述公式中,BL max通过取最大亮度值,能够使得补偿系数K不至于过大,从而避免在进行像素补偿时发生像素溢出。 Since the processing of the image signal by the human eye is similar to the processing of the approximate logarithmic algorithm, the contrast of the image can be effectively improved by taking the logarithm in the process of compensating the pixel. In turn, a better pixel compensation effect is obtained. In addition, in the above formula, BL max can make the compensation coefficient K not excessively large by taking the maximum luminance value, thereby avoiding pixel overflow when pixel compensation is performed.
另外,在确定任意一个像素点的第一亮度值时,如果待处理图像的图像格式为RGB时,那么,可以将该任意一个像素点的三个分量值中的最大分量值确定为第一亮度值,或者,根据该任意一个像素点的三个分量值来计算第一亮度值。In addition, when determining the first brightness value of any one of the pixel points, if the image format of the image to be processed is RGB, then the maximum component value of the three component values of the arbitrary one of the pixel points may be determined as the first brightness. The value, or the first brightness value is calculated from the three component values of the arbitrary one of the pixel points.
在根据待处理像素点的三个分量值来计算第一亮度值时,可以根据公式Y=((R*299)+(G*587)+(B*114))/1000来计算,其中,Y表示第一亮度值,R、G和B分别表示待处理像素点的三个分量值。When the first brightness value is calculated according to the three component values of the pixel to be processed, it can be calculated according to the formula Y=((R*299)+(G*587)+(B*114))/1000, where Y represents the first luminance value, and R, G, and B represent the three component values of the pixel to be processed, respectively.
通过直接将三个分量中的最大分量值确定为第一亮度值,能够快速确定第一亮度值,能够减少一定的计算复杂度。而通过三个分量值来计算第一亮度值时,能够得到更准确的亮度值,便于后续进行更好的进行像素补偿。By directly determining the maximum component value among the three components as the first luminance value, the first luminance value can be quickly determined, and a certain computational complexity can be reduced. When the first brightness value is calculated by three component values, a more accurate brightness value can be obtained, which is convenient for subsequent pixel compensation.
下面结合具体的例子,更加详细的描述本申请实施例,应理解,图7所示的实施例是为了帮助本领域的技术人员理解本申请实施例,而并非要将本申请实施例限定到图7的方 法所示的具体数值和具体场景。本领域的技术人员可以根据图7所示的实施例进行各种等价的修改或者变化,这些修改或者变化也落入本申请实施例的范围内。The embodiments of the present application are described in more detail below with reference to specific examples. It should be understood that the embodiment shown in FIG. 7 is to help those skilled in the art understand the embodiments of the present application, and is not intended to limit the embodiments of the present application to the drawings. The specific values and specific scenarios shown in the method of 7. A person skilled in the art can make various equivalent modifications or changes according to the embodiment shown in FIG. 7, and these modifications or variations are also within the scope of the embodiments of the present application.
图7是本申请实施例的像素补偿方法的示意性流程图。图7所示的方法可以由液晶显示设备、智能终端、平板电脑、台式电脑等等能够显示视频的设备来执行。图7所示的方法具体包含以下步骤:FIG. 7 is a schematic flowchart of a pixel compensation method according to an embodiment of the present application. The method shown in FIG. 7 can be performed by a liquid crystal display device, a smart terminal, a tablet computer, a desktop computer, or the like that can display video. The method shown in Figure 7 specifically includes the following steps:
201、确定第一背光图像。201. Determine a first backlight image.
显示器的背光阵列中会包含多个背光单元,每个背光单元的亮度值可以根据该背光单元对应的图像内容进行动态调整,使得显示器的动态范围增大。背光调整之后背光阵列中的全部背光单元的亮度值可以组成一个第一背光图像,该第一背光图像中的每一个像素点的亮度值对应于背光阵列中的每一个背光单元的亮度。The backlight array of the display may include a plurality of backlight units, and the brightness value of each backlight unit may be dynamically adjusted according to the image content corresponding to the backlight unit, so that the dynamic range of the display is increased. The brightness values of all the backlight units in the backlight array after the backlight adjustment may constitute a first backlight image, and the brightness value of each pixel in the first backlight image corresponds to the brightness of each backlight unit in the backlight array.
第一背光图像的大小与背光阵列中包含的背光单元的个数有关,假设背光阵列中包含M×N个背光单元,那么,第一背光图像的像素点的亮度值也组成一个M×N大小的矩阵,第一背光图像BL init中各个像素点的亮度值具体可以采用公式(1)表示。 The size of the first backlight image is related to the number of backlight units included in the backlight array. If the backlight array includes M×N backlight units, the luminance values of the pixels of the first backlight image also form an M×N size. The matrix, the luminance value of each pixel in the first backlight image BL init can be specifically expressed by the formula (1).
Figure PCTCN2018115836-appb-000001
Figure PCTCN2018115836-appb-000001
202、对第一背光图像的像素点进行划分。202. Divide pixel points of the first backlight image.
应理解,第一背光图像中的每个像素点对应背光阵列中的一个背光单元,每个像素点的亮度值用于表示对应的背光单元的亮度。It should be understood that each pixel point in the first backlight image corresponds to one backlight unit in the backlight array, and the brightness value of each pixel point is used to indicate the brightness of the corresponding backlight unit.
上述第一背光图像BL init一共有M×N个像素点组成,对于该第一背光图像来说,不同的像素点的相邻像素点的数目可能不同,对于处于第一背光图像边缘的像素点来说,其相邻像素点的数目要小于位于位于第一背光图像内部的像素点的相邻像素点的个数,也就是说,在第一背光图像中存在着不同的区域,有些区域中的像素点的相邻像素点的的数量较少,有些区域的相邻像素点的数量比较多,这样在光扩散的过程中,不同区域的光线扩散和混合情况也就不同。 The first backlight image BL init is composed of a total of M×N pixels. For the first backlight image, the number of adjacent pixels of different pixels may be different, for the pixel at the edge of the first backlight image. In other words, the number of adjacent pixels is smaller than the number of adjacent pixels located in the pixel inside the first backlight image, that is, there are different regions in the first backlight image, and in some regions The number of adjacent pixels of the pixel is small, and the number of adjacent pixels in some areas is relatively large, so that in the process of light diffusion, light diffusion and mixing in different regions are different.
因此,为了更好的模拟不同不同类型区域的背光扩散现象,可以根据第一背光图像中各个像素点的位置,对第一背光图像的像素点进行划分,从而得到不同的区域。Therefore, in order to better simulate the backlight diffusion phenomenon of different types of regions, the pixels of the first backlight image may be divided according to the position of each pixel in the first backlight image, thereby obtaining different regions.
如图4所示,对于一个由6×10个像素点组成的第一背光图像来说,可以将第一背光图像划分成三个区域,其中,第一区域中的每个像素点的相邻像素点的数目为3个,第二区域中的每个像素点的相邻像素点的数目为5个,第三区域中的每个像素点的相邻像素点的数目为8个。As shown in FIG. 4, for a first backlight image composed of 6×10 pixels, the first backlight image may be divided into three regions, wherein adjacent to each pixel in the first region The number of pixels is three, the number of adjacent pixels of each pixel in the second region is five, and the number of adjacent pixels for each pixel in the third region is eight.
203、采用不同的滤波模板分别对第一背光图像的不同区域进行混光,得到混光后的背光图像BL mixed203. Differently filtering different regions of the first backlight image by using different filtering templates to obtain a mixed backlight image BL mixed .
当步骤202中得到的第一背光图像被划分成如图4所示的三个区域时,可以采用图8所示的第一滤波模板、第二滤波模板和第三滤波模板分别对第一背光图像中的第一区域、第二区域和第三区域进行混光。When the first backlight image obtained in step 202 is divided into three regions as shown in FIG. 4, the first filter template, the second filter template, and the third filter template shown in FIG. 8 may be used to respectively pair the first backlight. The first area, the second area, and the third area in the image are mixed.
具体而言,对于第一区域,可以采用公式(2)进行处理,以得到第一区域中的每个 像素点在处理后的亮度值。Specifically, for the first region, the processing can be performed using equation (2) to obtain the processed luminance value of each pixel in the first region.
Figure PCTCN2018115836-appb-000002
Figure PCTCN2018115836-appb-000002
对于第二区域,可以采用公式(3)进行混光处理,从而得到第二区域中的每个像素点在混光处理后的亮度值。For the second region, the light mixing process can be performed using Equation (3) to obtain the luminance value of each pixel in the second region after the light mixing process.
Figure PCTCN2018115836-appb-000003
Figure PCTCN2018115836-appb-000003
对于第三区域,可以采用公式(4)进行混光处理,从而得到第三区域中的每个像素点在混光处理后的亮度值。For the third region, the light mixing process can be performed using Equation (4) to obtain the luminance value of each pixel in the third region after the light mixing process.
Figure PCTCN2018115836-appb-000004
Figure PCTCN2018115836-appb-000004
在上述公式(2)至公式(4)中,a,b,c,d分别是第一滤波模板、第二滤波模板以及第三滤波模板的系数。其中,a位于扩散模板的中心位置,表示光扩散中心扩散后剩余的光能量的系数,b,c,d分布在扩散模板的四周,分别表示光扩散中心对四周的扩散能力的系数。假定光在传播过程中的能量守恒,那么,第一滤波模板的系数满足a+b+c+d=1,第二滤波模板的系数满足a+2b+c+2d=1,第三滤波模板的系数满足a+2b+2c+4d=1。In the above formulas (2) to (4), a, b, c, and d are coefficients of the first filter template, the second filter template, and the third filter template, respectively. Where a is located at the center of the diffusion template, indicating the coefficient of light energy remaining after the diffusion of the light diffusion center, and b, c, and d are distributed around the diffusion template, respectively indicating the coefficient of diffusion of the light diffusion center to the surrounding. Assuming that the energy of the light is conserved during propagation, the coefficient of the first filtering template satisfies a+b+c+d=1, and the coefficient of the second filtering template satisfies a+2b+c+2d=1, the third filtering template The coefficient satisfies a+2b+2c+4d=1.
上述a,b,c,d的具体数值可以经过大量实验得到,不同滤波器模板的系数如下:The specific values of a, b, c, and d above can be obtained through a large number of experiments. The coefficients of different filter templates are as follows:
第一类滤波模板:a=0.4,b=0.2,c=0.2,d=0.2The first type of filtering template: a = 0.4, b = 0.2, c = 0.2, d = 0.2
第二类滤波模板:a=0.38,b=0.15,c=0.12,d=0.1The second type of filtering template: a=0.38, b=0.15, c=0.12, d=0.1
第三类滤波模板:a=0.38,b=0.112,c=0.02,d=0.06The third type of filtering template: a=0.38, b=0.112, c=0.02, d=0.06
204、对混光后的背光图像BL mixed进行扩展,得到扩展后的背光图像BL expand204. Expanding the mixed backlight image BL to obtain an extended backlight image BL expand .
在扩展混光后的背光图像时,可以采用线性插值的方法,进一步地,可以采用双线性插值法对混光后的背光图像进行扩展。在扩展混光后的背光图像时可以每次将混光后的背光图像扩大为原来的两倍,例如,扩展前的混光矩阵BL mixed的大小为M×N,扩展后的混光矩阵BL expand的大小为2M×2N。应理解,这里还可以采用任意一种插值方法对混光后的背光图像进行扩展。 In the case of extending the backlit image after the light mixing, a linear interpolation method may be employed, and further, the mixed backlight image may be expanded by bilinear interpolation. When extended backlight image light may be mixed every time the light mixing backlit images expanded to twice its original, e.g., a light mixing matrix BL mixed before expansion of size M × N, the extended light mixing matrix BL The size of expand is 2M x 2N. It should be understood that any of the interpolation methods may be used to expand the backlit image after the light mixing.
205、确定扩展后的背光图像BL expand的各个区域之间的背光平滑是否达到预设效果。 205. Determine whether the backlight smoothing between the respective regions of the extended backlight image BL expand reaches a preset effect.
如果BL expand中各个区域之间的背光平滑达到预设效果,那么执行步骤206,如果没有达到平滑效果那么可以继续执行上述步骤203和步骤204,直至BL expand的各个区域之间达到了良好的平滑效果,也就是BL expand的各个区域之间没有明显的块边界。 If the backlight between the regions in the BL expand reaches the preset effect, then step 206 is performed. If the smoothing effect is not achieved, the above steps 203 and 204 can be continued until a smooth smoothness is achieved between the regions of the BL expand . The effect, that is, there is no obvious block boundary between the various areas of BL expand .
206、将扩展后的背光图像再扩大至待处理图像的尺寸,得到最终用于像素补偿的目标背光图像BL final206. Expand the extended backlight image to the size of the image to be processed to obtain a target backlight image BL final that is finally used for pixel compensation.
应理解,在扩大BL expand时,如果待处理图像的尺寸为160×160,BL expand的尺寸为64×64,那么,可以先将BL expand扩大两倍,然后再通过插值的方法(具体可以采用双线性插值法)得到与待处理图像尺寸相同的目标背光图像BL finalIt should be understood that when expanding BL expand , if the size of the image to be processed is 160×160 and the size of BL expand is 64×64, then BL expand can be expanded twice and then interpolated (specifically, Bilinear interpolation method) obtains the target backlight image BL final of the same size as the image to be processed.
207、将待处理图像由RGB格式转换到YUV格式。207. Convert the image to be processed from RGB format to YUV format.
208、根据目标背光图像BL final对待处理图像进行像素补偿。 208. Perform pixel compensation on the image to be processed according to the target backlight image BL final .
具体地,可以采用公式(5)以取对数的方式进行像素补偿。Specifically, pixel compensation can be performed in a logarithmic manner using equation (5).
Figure PCTCN2018115836-appb-000005
Figure PCTCN2018115836-appb-000005
在公式(5)中,Y i,j为待处理图像中的像素点(i,j)补偿前的像素亮度,Y′ i,j为待处理图像中的像素点(i,j)补偿后的像素亮度,BL′ max为目标背光图像BL final的最大值,这里取最大值的目的是为了避免在进行像素补偿时发生像素溢出,BL′ i,j为目标背光图像BL final中对应于待处理图像中的像素点(i,j)的背光亮度,K i,j为像素的亮度补偿系数,γ为伽马系数,γ一般取2.2。 In formula (5), Y i,j is the pixel brightness before the pixel point (i,j) in the image to be processed is compensated, and Y′ i,j is compensated for the pixel point (i,j) in the image to be processed. pixel luminance, BL 'max is the maximum target backlight BL final image of an object takes the maximum value here is to avoid overflow during pixel pixel compensation, BL' i, j is the target backlight BL final image corresponding to the to be The backlight brightness of the pixel (i, j) in the image is processed, K i,j is the brightness compensation coefficient of the pixel, γ is the gamma coefficient, and γ is generally taken as 2.2.
为了使得区域调光后图像不出现色彩失真,需要对UV分量做与Y分量相同的补偿,具体可以根据公式(6)对UV分量也进行补偿。In order to make the image without color distortion after the area is dimmed, it is necessary to compensate the UV component with the same Y component, and the UV component can also be compensated according to the formula (6).
Figure PCTCN2018115836-appb-000006
Figure PCTCN2018115836-appb-000006
基于上述公式(5)和公式(6)进行像素补偿的曲线如图9中的对数曲线所示,在图9中,随着原始像素亮度值Y in的增大,像素补偿的程度逐渐减弱(Y out的增加幅度逐渐减小)。也就是说,对于低亮度像素,由于其背光程度降低的较多,为有效补偿背光亮度降低所导致的显示亮度的降低,要对低亮度像素做出较大程度的补偿才能保证与背光全亮时的显示效果基本保持一致;而对于高亮度像素,由于其背光亮度相对于背光全亮时降低的较少,因此只需要做较小程度的补偿就能保证与背光全亮时的显示效果基本保持一致。因此,在本申请中进行像素补偿时能够有效的避免由于像素补偿程度过大而导致的像素溢出失真。 The curve for pixel compensation based on the above formula (5) and formula (6) is shown by the logarithmic curve in FIG. 9. In FIG. 9, as the original pixel luminance value Y in increases, the degree of pixel compensation gradually decreases. (The increase in Y out is gradually reduced). That is to say, for low-brightness pixels, since the degree of backlight is reduced more, in order to effectively compensate for the decrease in display brightness caused by the decrease in backlight brightness, a large degree of compensation for low-brightness pixels is required to ensure full backlighting. The display effect is basically the same when it is high; for high-brightness pixels, since the backlight brightness is less than that when the backlight is fully lit, it is only necessary to make a small degree of compensation to ensure the display effect when the backlight is fully lit. be consistent. Therefore, pixel overflow distortion due to excessive pixel compensation can be effectively avoided when pixel compensation is performed in the present application.
209、将像素补偿后的待处理图像由YUV格式转换为RGB格式,则得到像素补偿后的图像。209. Converting the pixel-compensated image to be processed from the YUV format to the RGB format, and obtaining the pixel-compensated image.
像素补偿的主要目的是对背光亮度进行调整之后,保证图像的颜色不失真。The main purpose of pixel compensation is to ensure that the color of the image is not distorted after adjusting the brightness of the backlight.
可选地,在进行像素补偿之后,为了进一步提高图像的对比度,在对图像进行像素补偿之后,可以对图像进行对比度拉伸。由于在进行背光亮度调整和像素补偿之后的图像给人带来的一个主观效果就是图像中暗的地方越暗,亮的部分越亮,因此,可以根据亮度将像素补偿后的图像分为低亮度段、中间亮度段和高亮度段,对于低亮度段和高亮度段可以分别采用指数变换,并对低亮度段是进行灰度压缩,对高亮度段是进行的是灰度扩展,对中间亮度段是进行线性变换,具体变换公式可以如(7)所示。Optionally, after performing pixel compensation, in order to further improve the contrast of the image, the image may be subjected to contrast stretching after pixel compensation of the image. The subjective effect of the image after backlight brightness adjustment and pixel compensation is that the darker the image is, the brighter the bright part is. Therefore, the pixel compensated image can be divided into low brightness according to the brightness. Segment, intermediate luminance segment and high luminance segment, for the low luminance segment and the high luminance segment, respectively, exponential transformation can be used, and the low luminance segment is subjected to grayscale compression, and for the high luminance segment, grayscale expansion is performed, and the intermediate luminance is performed. The segment is linearly transformed, and the specific transformation formula can be as shown in (7).
Figure PCTCN2018115836-appb-000007
Figure PCTCN2018115836-appb-000007
在公式(7)式中,Y′ i,j是像素补偿后的亮度,Y″ i,j是进行对比度拉伸后的像素亮度,H 1和H 2分别是包含像素补偿后图像总像素10%和90%对应的像素亮度值,也是亮度变换曲线的分段点。由于低亮度段亮度被压缩而变暗,而高亮度段亮度由于扩展而变亮,使得图像的亮暗的区别更加明显,从而有效提高了图像对比度。 In the formula (7), Y′ i,j is the pixel-compensated brightness, Y′′ i,j is the pixel brightness after the contrast stretching, and H 1 and H 2 are the pixel-compensated image total pixels 10 respectively. The pixel brightness value corresponding to % and 90% is also the segmentation point of the brightness conversion curve. Since the brightness of the low brightness segment is compressed and darkened, and the brightness of the high brightness segment is brightened due to expansion, the difference between the brightness and the darkness of the image is more obvious. , which effectively improves the image contrast.
为保证色彩不失真,同样需要对UV分量做与Y分量相同倍数的变换,具体地,可以采用公式(8)对UV分量进行相同的处理。In order to ensure that the color is not distorted, it is also necessary to perform the same multiple conversion of the UV component as the Y component. Specifically, the UV component can be subjected to the same processing using Equation (8).
Figure PCTCN2018115836-appb-000008
Figure PCTCN2018115836-appb-000008
其中,Y′ i,j是像素补偿后的亮度,Y″ i,j是进行对比度拉伸后的像素亮度,K i,j为像素的亮度补偿系数,U′ i,j和V′ i,j是像素补偿后的U分量和V分量,U″ i,j和V″ i,j是进行对比度拉伸后的U分量和V分量。 Wherein, Y 'i, j is the brightness of the pixel compensation, Y "i, j is the pixel brightness contrast stretching, K i, j is the pixel luminance compensation coefficient, U' i, j and V 'i, j is a U component and a V component after pixel compensation, and U′′ i, j and V′′ i, j are U components and V components after contrast stretching.
上文结合图1至图9对本申请实施例的像素补偿方法进行了详细的介绍,下面结合图10和图11对本申请实施例的像素补偿装置和终端设备进行详细的介绍,应理解,图10和图11所示的像素补偿装置和终端设备能够执行本申请实施例的像素补偿方法,能够实现本申请实施例的像素补偿方法的各个步骤,为了简洁,下面在描述本申请实施例的像素补偿装置和终端设备时适当省略重复的描述。The pixel compensation method of the embodiment of the present application is described in detail with reference to FIG. 1 to FIG. 9 . The pixel compensation device and the terminal device of the embodiment of the present application are described in detail below with reference to FIG. 10 and FIG. 11 . The pixel compensation device and the terminal device shown in FIG. 11 are capable of performing the pixel compensation method of the embodiment of the present application, and the steps of the pixel compensation method of the embodiment of the present application can be implemented. For the sake of brevity, the pixel compensation of the embodiment of the present application is described below. The repeated description is appropriately omitted in the device and the terminal device.
图10是本申请实施例的像素补偿装置的示意性框图。图10所示的像素补偿装置300能够执行本申请实施例的像素补偿方法,像素补偿装置300具体包括:FIG. 10 is a schematic block diagram of a pixel compensation apparatus according to an embodiment of the present application. The pixel compensation device 300 shown in FIG. 10 is capable of performing the pixel compensation method of the embodiment of the present application. The pixel compensation device 300 specifically includes:
获取模块301,用于获取待处理图像的第一背光图像,所述第一背光图像中的像素点与背光阵列中的背光单元一一对应,所述背光阵列用于为显示所述待处理图像提供背光;The acquiring module 301 is configured to acquire a first backlight image of the image to be processed, where the pixel points in the first backlight image are in one-to-one correspondence with the backlight unit in the backlight array, and the backlight array is configured to display the image to be processed Providing backlighting;
处理模块302,用于根据像素点的位置属性,对所述第一背光图像的像素点进行划分,以得到所述第一背光图像的多个区域;The processing module 302 is configured to divide, according to a position attribute of the pixel point, a pixel point of the first backlight image to obtain a plurality of regions of the first backlight image;
处理模块302还用于对所述多个区域的图像分别进行滤波和放大,以得到与所述待处理图像的分辨率相同的第二背光图像,其中,在对所述多个区域的图像进行滤波时,所述多个区域中的至少两个区域的图像被应用不同的空间滤波;The processing module 302 is further configured to separately filter and enlarge the images of the plurality of regions to obtain a second backlight image having the same resolution as the image to be processed, where the images of the plurality of regions are performed When filtering, images of at least two of the plurality of regions are applied with different spatial filtering;
像素补偿模块303,用于根据所述第二背光图像的亮度值对所述待处理图像进行像素补偿。The pixel compensation module 303 is configured to perform pixel compensation on the image to be processed according to the brightness value of the second backlight image.
本申请中,通过针对多个区域中的至少两个区域的图像分别采用不同类型的空间滤波进行滤波处理,与采用统一滤波模板进行滤波的方式相比,能够更好的模拟背光扩散,使得像素补偿后的图像在显示时能够取得较好的显示效果。In the present application, filtering processing is performed by using different types of spatial filtering for images of at least two of the plurality of regions, and the backlight diffusion can be better simulated compared with the filtering method using the unified filtering template, so that the pixels are better The compensated image can achieve a better display effect when displayed.
可选地,作为一个实施例,所述处理模块302具体用于:Optionally, as an embodiment, the processing module 302 is specifically configured to:
将具有8个相邻像素点的像素点位置划分到第一区域;Dividing a pixel point position having 8 adjacent pixel points into the first area;
将具有5个相邻像素点的像素点位置划分到第二区域;Dividing a pixel point position having 5 adjacent pixel points into a second area;
将具有3个相邻像素点的像素点位置划分到第三区域。A pixel point position having 3 adjacent pixel points is divided into a third area.
可选地,作为一个实施例,所述像素补偿模块303具体用于:Optionally, as an embodiment, the pixel compensation module 303 is specifically configured to:
从所述待处理图像中,获取任意一个像素点的第一亮度值;Obtaining, from the image to be processed, a first brightness value of any one of the pixel points;
从所述第二背光图像中,获取与所述任意一个像素点相对应位置的像素点的第二亮度值;Obtaining, from the second backlight image, a second brightness value of a pixel point corresponding to the position of the arbitrary one of the pixels;
获取最大亮度值,所述最大亮度值为所述第二背光图像的亮度上限值或者所述背光单元所能显示的亮度上限值;Obtaining a maximum brightness value, where the maximum brightness value is a brightness upper limit value of the second backlight image or a brightness upper limit value that the backlight unit can display;
根据所述最大亮度值以及所述第二亮度值,确定所述任意一个像素点的补偿系数;Determining a compensation coefficient of the arbitrary one of the pixel points according to the maximum brightness value and the second brightness value;
根据所述补偿系数,对所述任意一个像素点的第一亮度值进行补偿,以得到所述任意一个像素点的目标亮度值。And compensating, according to the compensation coefficient, a first brightness value of the arbitrary one of the pixel points to obtain a target brightness value of the arbitrary one of the pixel points.
可选地,作为一个实施例,所述像素补偿模块303具体用于:Optionally, as an embodiment, the pixel compensation module 303 is specifically configured to:
将所述第一亮度值与所述补偿系数的乘积确定为所述任意一个像素点的目标亮度值。The product of the first brightness value and the compensation coefficient is determined as the target brightness value of the arbitrary one of the pixel points.
可选地,作为一个实施例,所述补偿系数根据如下公式获得:Optionally, as an embodiment, the compensation coefficient is obtained according to the following formula:
K=log 2(BL max/BL) 1.0/γ          (9) K=log 2 (BL max /BL) 1.0/γ (9)
其中,K为所述补偿系数,BL max为所述最大亮度值,BL为所述第二亮度值,γ为预设的伽马系数。 Where K is the compensation coefficient, BL max is the maximum brightness value, BL is the second brightness value, and γ is a preset gamma coefficient.
可选地,作为一个实施例,所述待处理图像格式为RGB时,所述获取模块301具体用于:Optionally, as an embodiment, when the image format to be processed is RGB, the acquiring module 301 is specifically configured to:
将所述任意一个像素点的三个分量值中的最大分量值确定为所述第一亮度值;Determining a maximum component value of the three component values of any one of the pixel points as the first brightness value;
或者,or,
根据所述任意一个像素点的三个分量值,计算所述第一亮度值。The first brightness value is calculated based on three component values of any one of the pixel points.
图11是本申请实施例的终端设备的示意性框图。图11所示的终端设备400包括像素补偿装置401和显示器402,这里的像素补偿装置401可以是图10中所示的像素补偿装置300,终端设备中的像素补偿装置401能够执行本申请实施例的像素补偿方法对待处理图像进行像素补偿,显示器402可以对像素补偿装置401进行像素补偿之后的图像进行显示。FIG. 11 is a schematic block diagram of a terminal device according to an embodiment of the present application. The terminal device 400 shown in FIG. 11 includes a pixel compensation device 401 and a display 402. The pixel compensation device 401 herein may be the pixel compensation device 300 shown in FIG. 10, and the pixel compensation device 401 in the terminal device can perform the embodiment of the present application. The pixel compensation method performs pixel compensation on the image to be processed, and the display 402 can display the image after the pixel compensation device 401 performs pixel compensation.
本申请还提供了一种像素补偿装置,所述像素补偿装置包括:存储器,用于存储程序;处理器,用于执行所述存储器存储的程序,当所述程序被执行时,所述处理器用于执行本申请实施例的像素补偿方法。The present application also provides a pixel compensation apparatus, the pixel compensation apparatus comprising: a memory for storing a program; a processor, configured to execute the program stored by the memory, when the program is executed, the processor uses The pixel compensation method of the embodiment of the present application is executed.
本申请还提供了一种终端设备,所述终端设备包括:存储器,用于存储程序;处理器,用于执行所述存储器存储的程序,当所述程序被执行时,所述处理器用于执行本申请实施例的像素补偿方法。The present application also provides a terminal device, the terminal device comprising: a memory for storing a program; a processor, configured to execute the program stored by the memory, when the program is executed, the processor is configured to execute The pixel compensation method of the embodiment of the present application.
本申请还提供一种计算机可读介质,所述计算机可读介质存储用于设备执行的程序代码,所述程序代码包括用于执行本申请实施例的像素补偿方法的指令。The application further provides a computer readable medium storing program code for execution by a device, the program code comprising instructions for performing a pixel compensation method of an embodiment of the present application.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the technical solution of the present application, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program code. .
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The foregoing is only a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application. It should be covered by the scope of protection of this application. Therefore, the scope of protection of the present application should be determined by the scope of the claims.

Claims (13)

  1. 一种像素补偿方法,其特征在于,包括:A pixel compensation method, comprising:
    获取待处理图像的第一背光图像,所述第一背光图像中的像素点与背光阵列中的背光单元一一对应,所述背光阵列用于为显示所述待处理图像提供背光;Acquiring a first backlight image of the image to be processed, the pixel points in the first backlight image are in one-to-one correspondence with the backlight unit in the backlight array, and the backlight array is configured to provide backlight for displaying the image to be processed;
    根据像素点的位置属性,对所述第一背光图像的像素点进行划分,以得到所述第一背光图像的多个区域;Dividing pixel points of the first backlight image according to a position attribute of a pixel to obtain a plurality of regions of the first backlight image;
    对所述多个区域的图像分别进行滤波和放大,以得到与所述待处理图像的分辨率相同的第二背光图像,其中,在对所述多个区域的图像进行滤波时,所述多个区域中的至少两个区域的图像被应用不同的空间滤波;Filtering and amplifying the images of the plurality of regions to obtain a second backlight image having the same resolution as the image to be processed, wherein when filtering the images of the plurality of regions, the plurality of regions Images of at least two of the regions are applied with different spatial filtering;
    根据所述第二背光图像的亮度值对所述待处理图像进行像素补偿。And performing pixel compensation on the image to be processed according to the brightness value of the second backlight image.
  2. 如权利要求1所述的方法,其特征在于,所述根据像素点的位置属性,对所述第一背光图像的像素点进行划分,以得到所述第一背光图像的多个区域,包括:The method according to claim 1, wherein the dividing the pixel points of the first backlight image to obtain the plurality of regions of the first backlight image according to the position attribute of the pixel point comprises:
    将具有8个相邻像素点的像素点位置划分到第一区域;Dividing a pixel point position having 8 adjacent pixel points into the first area;
    将具有5个相邻像素点的像素点位置划分到第二区域;Dividing a pixel point position having 5 adjacent pixel points into a second area;
    将具有3个相邻像素点的像素点位置划分到第三区域。A pixel point position having 3 adjacent pixel points is divided into a third area.
  3. 如权利要求1或2所述的方法,其特征在于,所述根据所述第二背光图像的亮度值对所述待处理图像进行像素补偿,包括:The method according to claim 1 or 2, wherein the pixel compensation of the image to be processed according to the brightness value of the second backlight image comprises:
    从所述待处理图像中,获取任意一个像素点的第一亮度值;Obtaining, from the image to be processed, a first brightness value of any one of the pixel points;
    从所述第二背光图像中,获取与所述任意一个像素点相对应位置的像素点的第二亮度值;Obtaining, from the second backlight image, a second brightness value of a pixel point corresponding to the position of the arbitrary one of the pixels;
    获取最大亮度值,所述最大亮度值为所述第二背光图像的亮度上限值或者所述背光单元所能显示的亮度上限值;Obtaining a maximum brightness value, where the maximum brightness value is a brightness upper limit value of the second backlight image or a brightness upper limit value that the backlight unit can display;
    根据所述最大亮度值以及所述第二亮度值,确定所述任意一个像素点的补偿系数;Determining a compensation coefficient of the arbitrary one of the pixel points according to the maximum brightness value and the second brightness value;
    根据所述补偿系数,对所述任意一个像素点的第一亮度值进行补偿,以得到所述任意一个像素点的目标亮度值。And compensating, according to the compensation coefficient, a first brightness value of the arbitrary one of the pixel points to obtain a target brightness value of the arbitrary one of the pixel points.
  4. 如权利要求3所述的方法,其特征在于,所述根据所述补偿系数,对所述任意一个像素点的第一亮度值进行补偿,以得到所述任意一个像素点的目标亮度值,包括:The method according to claim 3, wherein the first brightness value of the arbitrary one of the pixel points is compensated according to the compensation coefficient to obtain a target brightness value of the arbitrary one of the pixel points, including :
    将所述第一亮度值与所述补偿系数的乘积确定为所述任意一个像素点的目标亮度值。The product of the first brightness value and the compensation coefficient is determined as the target brightness value of the arbitrary one of the pixel points.
  5. 权利要求3或4所述的方法,其特征在于,所述补偿系数根据如下公式获得:The method of claim 3 or 4, wherein the compensation coefficient is obtained according to the following formula:
    K=log 2(BL max/BL) 1.0/γ K=log 2 (BL max /BL) 1.0/γ
    其中,K为所述补偿系数,BL max为所述最大亮度值,BL为所述第二亮度值,γ为预设的伽马系数。 Where K is the compensation coefficient, BL max is the maximum brightness value, BL is the second brightness value, and γ is a preset gamma coefficient.
  6. 如权利要求3-5中任一项所述的方法,其特征在于,所述待处理图像的图像格式为RGB时,所述获取所述待处理图像中的任意一个像素点的第一亮度值,包括:The method according to any one of claims 3-5, wherein when the image format of the image to be processed is RGB, the acquiring the first brightness value of any one of the pixels to be processed ,include:
    将所述任意一个像素点的三个分量值中的最大分量值确定为所述第一亮度值;Determining a maximum component value of the three component values of any one of the pixel points as the first brightness value;
    或者,or,
    根据所述任意一个像素点的三个分量值,计算所述第一亮度值。The first brightness value is calculated based on three component values of any one of the pixel points.
  7. 一种像素补偿装置,其特征在于,包括:A pixel compensation device, comprising:
    获取模块,用于获取待处理图像的第一背光图像,所述第一背光图像中的像素点与背光阵列中的背光单元一一对应,所述背光阵列用于为显示所述待处理图像提供背光;An acquiring module, configured to acquire a first backlight image of the image to be processed, where the pixel points in the first backlight image are in one-to-one correspondence with the backlight unit in the backlight array, and the backlight array is configured to provide the image to be processed Backlight
    处理模块,用于根据像素点的位置属性,对所述第一背光图像的像素点进行划分,以得到所述第一背光图像的多个区域;a processing module, configured to divide a pixel of the first backlight image according to a position attribute of a pixel to obtain a plurality of regions of the first backlight image;
    所述处理模块还用于对所述多个区域的图像分别进行滤波和放大,以得到与所述待处理图像的分辨率相同的第二背光图像,其中,在对所述多个区域的图像进行滤波时,所述多个区域中的至少两个区域的图像被应用不同的空间滤波;The processing module is further configured to separately filter and enlarge images of the plurality of regions to obtain a second backlight image having the same resolution as the image to be processed, wherein the images in the plurality of regions are When filtering is performed, images of at least two of the plurality of regions are applied with different spatial filtering;
    像素补偿模块,用于根据所述第二背光图像的亮度值对所述待处理图像进行像素补偿。a pixel compensation module, configured to perform pixel compensation on the image to be processed according to the brightness value of the second backlight image.
  8. 如权利要求7所述的装置,其特征在于,所述处理模块具体用于:The device according to claim 7, wherein the processing module is specifically configured to:
    将具有8个相邻像素点的像素点位置划分到第一区域;Dividing a pixel point position having 8 adjacent pixel points into the first area;
    将具有5个相邻像素点的像素点位置划分到第二区域;Dividing a pixel point position having 5 adjacent pixel points into a second area;
    将具有3个相邻像素点的像素点位置划分到第三区域。A pixel point position having 3 adjacent pixel points is divided into a third area.
  9. 如权利要求7或8所述的装置,其特征在于,所述像素补偿模块具体用于:The device according to claim 7 or 8, wherein the pixel compensation module is specifically configured to:
    从所述待处理图像中,获取任意一个像素点的第一亮度值;Obtaining, from the image to be processed, a first brightness value of any one of the pixel points;
    从所述第二背光图像中,获取与所述任意一个像素点相对应位置的像素点的第二亮度值;Obtaining, from the second backlight image, a second brightness value of a pixel point corresponding to the position of the arbitrary one of the pixels;
    获取最大亮度值,所述最大亮度值为所述第二背光图像的亮度上限值或者所述背光单元所能显示的亮度上限值;Obtaining a maximum brightness value, where the maximum brightness value is a brightness upper limit value of the second backlight image or a brightness upper limit value that the backlight unit can display;
    根据所述最大亮度值以及所述第二亮度值,确定所述任意一个像素点的补偿系数;Determining a compensation coefficient of the arbitrary one of the pixel points according to the maximum brightness value and the second brightness value;
    根据所述补偿系数,对所述任意一个像素点的第一亮度值进行补偿,以得到所述任意一个像素点的目标亮度值。And compensating, according to the compensation coefficient, a first brightness value of the arbitrary one of the pixel points to obtain a target brightness value of the arbitrary one of the pixel points.
  10. 如权利要求9所述的装置,其特征在于,所述像素补偿模块具体用于:The device according to claim 9, wherein the pixel compensation module is specifically configured to:
    将所述第一亮度值与所述补偿系数的乘积确定为所述任意一个像素点的目标亮度值。The product of the first brightness value and the compensation coefficient is determined as the target brightness value of the arbitrary one of the pixel points.
  11. 权利要求9或10所述的装置,其特征在于,所述补偿系数根据如下公式获得:The device according to claim 9 or 10, characterized in that the compensation coefficient is obtained according to the following formula:
    K=log 2(BL max/BL) 1.0/γ K=log 2 (BL max /BL) 1.0/γ
    其中,K为所述补偿系数,BL max为所述最大亮度值,BL为所述第二亮度值,γ为预设的伽马系数。 Where K is the compensation coefficient, BL max is the maximum brightness value, BL is the second brightness value, and γ is a preset gamma coefficient.
  12. 如权利要求9-11中任一项所述的装置,其特征在于,所述待处理图像格式为RGB时,所述获取模块具体用于:The device according to any one of claims 9-11, wherein the acquisition module is specifically configured to:
    将所述任意一个像素点的三个分量值中的最大分量值确定为所述第一亮度值;Determining a maximum component value of the three component values of any one of the pixel points as the first brightness value;
    或者,or,
    根据所述任意一个像素点的三个分量值,计算所述第一亮度值。The first brightness value is calculated based on three component values of any one of the pixel points.
  13. 一种终端设备,其特征在于,所述终端设备包括如权利要求7-12中任一项所述的像素补偿装置以及显示器,其中,所述显示器用于显示所述像素补偿装置对所述待处理图像进行像素补偿后的图像。A terminal device, comprising: the pixel compensation device according to any one of claims 7 to 12, and a display, wherein the display is configured to display the pixel compensation device to the Process the image for pixel compensated images.
PCT/CN2018/115836 2017-11-21 2018-11-16 Pixel compensation method and apparatus, and terminal device WO2019101005A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711166453.1 2017-11-21
CN201711166453.1A CN109817170B (en) 2017-11-21 2017-11-21 Pixel compensation method and device and terminal equipment

Publications (1)

Publication Number Publication Date
WO2019101005A1 true WO2019101005A1 (en) 2019-05-31

Family

ID=66600396

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/115836 WO2019101005A1 (en) 2017-11-21 2018-11-16 Pixel compensation method and apparatus, and terminal device

Country Status (2)

Country Link
CN (1) CN109817170B (en)
WO (1) WO2019101005A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI712025B (en) * 2019-12-25 2020-12-01 友達光電股份有限公司 Driving method for pixel circuit
CN112348759A (en) * 2020-11-25 2021-02-09 Oppo广东移动通信有限公司 Image display method and apparatus, terminal and readable storage medium
CN112508820A (en) * 2020-12-18 2021-03-16 维沃移动通信有限公司 Image processing method and device and electronic equipment
CN113781968A (en) * 2021-09-08 2021-12-10 深圳创维-Rgb电子有限公司 Backlight adjusting method, device, equipment and storage medium
CN114333710A (en) * 2021-12-29 2022-04-12 青岛信芯微电子科技股份有限公司 Image compensation method, device, display equipment, chip and medium
WO2023133770A1 (en) * 2022-01-13 2023-07-20 硅谷数模(苏州)半导体股份有限公司 Image display method, image display apparatus, and display system
CN114420061B (en) * 2022-01-27 2023-05-23 深圳Tcl数字技术有限公司 Screen brightness adjusting method and device, storage medium and display device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3512535B2 (en) * 1995-05-19 2004-03-29 株式会社アドバンテスト Panel image quality inspection apparatus and image quality correction method thereof
CN102045493A (en) * 2009-10-21 2011-05-04 华晶科技股份有限公司 Noise suppression method for digital image
CN102103840A (en) * 2009-12-18 2011-06-22 乐金显示有限公司 Driving method for local dimming of liquid crystal display device and apparatus using the same
CN104934015A (en) * 2014-03-21 2015-09-23 纬创资通股份有限公司 display compensation method and display compensation system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100189178B1 (en) * 1995-05-19 1999-06-01 오우라 히로시 Lcd panel test apparatus having means for correcting data difference among test apparatus
CN100461247C (en) * 2006-12-11 2009-02-11 友达光电股份有限公司 Method for controlling brightness of image subarea
KR101588901B1 (en) * 2009-11-24 2016-02-12 엘지디스플레이 주식회사 Liquid crystal display and local dimming control method of thereof
KR101319352B1 (en) * 2009-12-11 2013-10-16 엘지디스플레이 주식회사 Method for driving local dimming of liquid crystal display device and apparatus thereof
CN104112433B (en) * 2013-04-22 2016-06-29 华为技术有限公司 A kind of image compensation method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3512535B2 (en) * 1995-05-19 2004-03-29 株式会社アドバンテスト Panel image quality inspection apparatus and image quality correction method thereof
CN102045493A (en) * 2009-10-21 2011-05-04 华晶科技股份有限公司 Noise suppression method for digital image
CN102103840A (en) * 2009-12-18 2011-06-22 乐金显示有限公司 Driving method for local dimming of liquid crystal display device and apparatus using the same
CN104934015A (en) * 2014-03-21 2015-09-23 纬创资通股份有限公司 display compensation method and display compensation system

Also Published As

Publication number Publication date
CN109817170B (en) 2020-09-29
CN109817170A (en) 2019-05-28

Similar Documents

Publication Publication Date Title
WO2019101005A1 (en) Pixel compensation method and apparatus, and terminal device
US11392197B2 (en) Image rendering method, device, system, storage medium, image display method and computer device
US8538147B2 (en) Methods and appartuses for restoring color and enhancing electronic images
US9064313B2 (en) Adaptive tone map to a region of interest to yield a low dynamic range image
JP2015141333A (en) Image processing apparatus, image processing method, display device, display device control method, and program
WO2017084255A1 (en) Real-time video enhancement method, terminal, and nonvolatile computer readable storage medium
CN107077830B (en) Screen brightness adjusting method suitable for unmanned aerial vehicle control end and unmanned aerial vehicle control end
WO2019179512A1 (en) Display method, display device, and display
WO2012015020A1 (en) Method and device for image enhancement
KR20190027131A (en) Apparatus and method for display visibility enhancement
CN112449169A (en) Method and apparatus for tone mapping
KR20160068627A (en) Image processing device, image processing method and display device
CN105654424B (en) Adjustment ratio display methods, display system, display device and the terminal of image
CN116168652A (en) Image display method, device, electronic equipment and computer readable storage medium
US20200160492A1 (en) Image Adjustment Method and Device, Image Display Method and Device, Non-Transitory Storage Medium
US10868969B1 (en) Method and apparatus for accelerated tonemapping and display
EP3993383A1 (en) Method and device for adjusting image quality, and readable storage medium
EP3796253B1 (en) Compressing dynamic range in images using darkness gamma transfer function
CN116453470B (en) Image display method, device, electronic equipment and computer readable storage medium
US11017510B1 (en) Digital image dynamic range processing apparatus and method
CN114463207B (en) Tone mapping method based on global dynamic range compression and local brightness estimation
CN110874816B (en) Image processing method, device, mobile terminal and storage medium
KR102303666B1 (en) Method of image processing, image processor performing the method and display device having the image processor
Barladian et al. An effective tone mapping operator for high dynamic range images
WO2023185706A1 (en) Image processing method, image processing apparatus and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18880709

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18880709

Country of ref document: EP

Kind code of ref document: A1