CN113971918A - Method for obtaining compensation gray scale value, image display method, device and medium - Google Patents

Method for obtaining compensation gray scale value, image display method, device and medium Download PDF

Info

Publication number
CN113971918A
CN113971918A CN202111250133.0A CN202111250133A CN113971918A CN 113971918 A CN113971918 A CN 113971918A CN 202111250133 A CN202111250133 A CN 202111250133A CN 113971918 A CN113971918 A CN 113971918A
Authority
CN
China
Prior art keywords
pixel
target
value
load value
display panel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111250133.0A
Other languages
Chinese (zh)
Other versions
CN113971918B (en
Inventor
张华罡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chipone Technology Beijing Co Ltd
Original Assignee
Chipone Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chipone Technology Beijing Co Ltd filed Critical Chipone Technology Beijing Co Ltd
Priority to CN202111250133.0A priority Critical patent/CN113971918B/en
Publication of CN113971918A publication Critical patent/CN113971918A/en
Application granted granted Critical
Publication of CN113971918B publication Critical patent/CN113971918B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/2007Display of intermediate tones
    • G09G3/2074Display of intermediate tones using sub-pixels
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/02Improving the quality of display appearance
    • G09G2320/0271Adjustment of the gradation levels within the range of the gradation scale, e.g. by redistribution or clipping
    • G09G2320/0276Adjustment of the gradation levels within the range of the gradation scale, e.g. by redistribution or clipping for the purpose of adaptation to the characteristics of a display device, i.e. gamma correction

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The embodiment of the application provides a method for obtaining a compensation gray-scale value, an image display method, a device and a medium, which are applied to equipment with a display panel, and comprise the following steps: acquiring original image data to be displayed by a display panel; calculating a region load value of a target region according to a scanning pulse characteristic parameter value for adjusting the brightness of the display panel and a pixel value of a pixel point of the target region, wherein the target region corresponds to one or more lines of the display panel; and obtaining a target compensation gray-scale value corresponding to the target area in the original image data by looking up a table at least according to the area load value, so that the problem of inaccurate compensation of the display panel caused by using pulse width modulation can be solved, and the display quality of the display panel is improved.

Description

Method for obtaining compensation gray scale value, image display method, device and medium
Technical Field
The embodiment of the application relates to the field of image display, in particular to a method for obtaining a compensation gray-scale value, an image display method, an image display device and a medium.
Background
In the related art, the voltage variation of the display panel integrated circuit causes the brightness unevenness and color shift of the panel, and in order to solve the above problems, the gray scale is compensated according to the panel load value, so as to achieve the purpose of improving the display picture quality. However, in the process of brightness control, Pulse Width Modulation (PWM) affects gray scale compensation, which results in inaccurate gray scale compensation.
Therefore, how to simultaneously ensure the display quality of the display panel in the process of controlling the brightness is an urgent problem to be solved.
Disclosure of Invention
The embodiment of the application provides a method for obtaining a compensation gray-scale value, an image display method, an image display device and a medium, and at least the problem of inaccurate compensation of a display panel caused by using pulse width modulation can be solved through some embodiments of the application, so that the display quality of the display panel is ensured simultaneously in the process of brightness control.
In a first aspect, an embodiment of the present application provides a method for obtaining a compensated gray scale value, which is applied to a device having a display panel, and includes: acquiring original image data to be displayed by the display panel; calculating a region load value of a target region according to a scanning pulse characteristic parameter value for adjusting the brightness of the display panel and a pixel value of a pixel point of the target region, wherein the target region corresponds to one or more lines of the display panel; and obtaining a target compensation gray-scale value corresponding to the target area in the original image data by table lookup at least according to the area load value.
Therefore, the embodiment of the application obtains the target compensation gray-scale value by respectively calculating the area load values of the target area, and is different from the method for integrally calculating the load value of the display panel in the related art, so that the problem of inaccurate compensation of the display panel caused by the influence of brightness control can be solved, the compensation gray-scale value in the process of brightness change of the pixel point can be accurately calculated in the process of brightness control, and the display quality of the display panel is improved.
With reference to the first aspect, in an implementation manner, the calculating a region load value of a target region according to a scan pulse characteristic parameter value for adjusting the brightness of the display panel and a pixel value of a pixel point of the target region includes: and obtaining the area load value of the target area according to the initial area load value of the target area and the scanning pulse characteristic parameter value, wherein the initial area load value is determined by the pixel value of each pixel point in the target area.
Therefore, according to the embodiment of the application, the area load value is calculated through the initial area load value and the scanning pulse characteristic parameter value, and different area load values of the display panel can be calculated under the condition that the brightness is controlled by using different scanning pulse characteristic parameter values, so that the target compensation gray-scale value is accurately obtained, and the original image data to be displayed of the display panel is accurately compensated.
With reference to the first aspect, in an embodiment, the scan pulse characteristic parameter value includes: the number of scanning pulses included in a single frame and the duty ratio of each scanning pulse included in the single frame; the obtaining the area load value of the target area according to the initial area load value of the target area and the characteristic parameter value of the scanning pulse includes: according to the duty ratio and the number, obtaining the total light-emitting times of any pixel point of the target area in the display time corresponding to one frame of picture, and obtaining the total light-emitting times of each target area on the display panel in one frame; and obtaining the area load value according to the total light-emitting times and the initial area load value of the target area.
Therefore, in the embodiment of the present application, the number of times of lighting each target region is different in consideration of the operation condition of the scan pulse, so that the difference of the number of times of lighting each target region is represented by counting the total number of times of lighting each target region on the display panel, and thus the lighting condition of each target region can be determined under the influence of the brightness control, so that a more accurate area load value can be calculated, and the display quality of the display panel can be improved.
With reference to the first aspect, in one embodiment, the target area corresponds to an ith row of the display panel, and the display panel is further configured to display other rows of data except the ith row; the obtaining the area load value according to the total light emitting times and the initial area load value of the target area includes: acquiring the ith initial area load value of the ith row and the total light emitting times of the ith row, calculating the product of the ith initial load value and the total light emitting times of the ith row, and repeating the process to obtain products respectively corresponding to other rows; calculating the sum of the products; and calculating the ratio of the sum to the sum of the total light-emitting times of all the rows on the display panel to obtain the area load value of the ith row.
Therefore, the embodiment of the application calculates and obtains the regional load values of each row by counting the obtained light emitting times, and can solve the problem of inaccurate compensation of the display panel caused by the influence of brightness control, so that the compensation gray-scale value in the process of brightness change of a pixel point can be accurately calculated in the process of brightness control, and the display quality of the display panel is improved.
With reference to the first aspect, in an implementation manner, the target area corresponds to a kth row of the display panel, where a value of K is greater than or equal to 1 and less than or equal to N, N is a longitudinal resolution of the display panel, and the number of the scanning pulses is multiple; the obtaining of the total light emitting times of any pixel point of the target area in the display time corresponding to one frame of picture according to the duty ratio and the number includes: confirming the number of times of lighting of the K-th line in the process of scanning the display panel by any pulse according to the duty ratio to obtain the lighting number of times corresponding to any pulse; and counting the lighting times respectively corresponding to all the scanning pulses to obtain the total lighting times of the Kth line in the frame of picture display time.
With reference to the first aspect, in an implementation manner, the initial area load value is positively correlated to a gray level of a sub-pixel of each pixel point in the target area.
With reference to the first aspect, in one implementation, the resolution of the display panel is M × N, and the target region corresponds to one row; if the target area is located in an odd-numbered line of the N lines, the calculation formula of the initial area load value of the target area is a line load calculation formula, wherein the line load calculation formula is represented by the gray value of the sub-pixel of each pixel point of the odd-numbered line; or when the target region is located in an even row of the N rows, the initial region load value of the target region is obtained by an average of the initial load values of the adjacent rows to the target region, wherein the initial load value of each adjacent row is obtained by calculation according to a row load calculation formula, and the row load calculation formula is characterized by the gray value of the sub-pixel of each pixel point of the odd row.
Therefore, in the embodiment of the application, under the condition that the hardware space of the electronic device is insufficient, the initial load value of the even-numbered line is obtained according to the average of the target area of the odd-numbered line, so that the hardware space of the electronic device can be saved, the compensation speed is increased, and the display quality is improved.
With reference to the first aspect, in an implementation manner, the target area corresponds to a kth line of the display panel, where a value of K is greater than or equal to 1 and less than or equal to N, where N is a longitudinal resolution of the display panel, and the line load value calculation formula is as follows:
Figure BDA0003322345870000041
wherein, loadingKDenotes an initial region load value, R _ data, of the K-th lineiRepresenting the gray level of the red sub-pixel of the ith pixel of the Kth row, r representing the weight of the red sub-pixel, G _ dataiRepresenting the gray level of the green sub-pixel of the ith pixel of the Kth row, g representing the weight of the green sub-pixel, B _ dataiThe gray scale value of the blue sub-pixel of the ith pixel of the Kth line is represented, b represents the weight of the blue pixel, M represents the number of horizontal pixel points arranged on each line of the line, and L represents the number of vertical pixels corresponding to one line, namely L is equal to 1.
With reference to the first aspect, in an implementation manner, the kth target region is any one of all target regions, the target region includes L lines, the number of pixel points of the target region is M × L, and an initial region load value calculation formula is as follows:
Figure BDA0003322345870000042
wherein, loadingkDenotes an initial region load value, R _ data, of the Kth target regioniIs shown asThe gray-scale value of the red sub-pixel of the ith pixel of the K area, r represents the weight of the red sub-pixel, G _ dataiRepresenting the gray level of the green sub-pixel of the ith pixel of the Kth target region, g representing the weight of the green sub-pixel, and B _ dataiThe gray-scale value of a blue sub-pixel of the ith pixel of the Kth target area is represented, b represents the weight of the blue pixel, M represents the number of horizontal pixel points arranged on each line of the target area, and L represents the number of vertical pixels corresponding to the Kth target area.
Therefore, in the embodiment of the application, under the condition that the hardware space of the electronic device is insufficient, the number of rows corresponding to the target area is increased, the calculation amount of the electronic device can be reduced, and the compensation speed is increased.
With reference to the first aspect, in one embodiment, the area load value is obtained by area load calculation:
Figure BDA0003322345870000051
wherein real loading represents the area load valuekRepresenting the initial zone load value, E, of said K-th rowkIndicating the number of times of light emission of the K-th row.
With reference to the first aspect, in one implementation, the area load value is obtained by an area load calculation formula:
Figure BDA0003322345870000052
wherein real loading represents the area load valuekRepresenting an initial zone load value, E, of the Kth target zonekAnd R represents the number of times of light emission of the Kth target region, and the number of target regions.
In a second aspect, an embodiment of the present application provides an image display method, including: reading the target compensation gray-scale values of the respective lines obtained in any one of the first aspect and the embodiments thereof; obtaining the pixel value of each pixel point according to the target compensation gray-scale value; and providing the pixel value of each pixel point for a display panel to display.
In a third aspect, an embodiment of the present application provides an apparatus for obtaining a compensated gray scale value, which is applied to a device having a display panel, and includes: a data acquisition module configured to acquire original image data to be displayed by the display panel; a load value calculation module configured to calculate a region load value of a target region according to a scan pulse characteristic parameter value for adjusting brightness of the display panel and a pixel value of a pixel point of the target region, wherein the target region corresponds to one or more lines of the display panel; and the gray-scale value acquisition module is configured to obtain a target compensation gray-scale value corresponding to the target area in the original image data through table lookup at least according to the area load value.
With reference to the third aspect, in an embodiment, the load value calculation module is further configured to: and obtaining the area load value of the target area according to the initial area load value of the target area and the scanning pulse characteristic parameter value, wherein the initial area load value is determined by the pixel value of each pixel point in the target area.
With reference to the third aspect, in one embodiment, the scan pulse characteristic parameter value includes: the number of scanning pulses included in a single frame and the duty ratio of each scanning pulse included in the single frame; the load value calculation module is further configured to: according to the duty ratio and the number, obtaining the total light-emitting times of any pixel point of the target area in the display time corresponding to one frame of picture, and obtaining the total light-emitting times of each target area on the display panel in one frame; and obtaining the area load value according to the total light-emitting times and the initial area load value of the target area.
With reference to the third aspect, in one embodiment, the target area corresponds to an ith row of the display panel, and the display panel is further configured to display other rows of data except the ith row; the load value calculation module is further configured to: acquiring the ith initial area load value of the ith row and the total light emitting times of the ith row, calculating the product of the ith initial load value and the total light emitting times of the ith row, and repeating the process to obtain products respectively corresponding to other rows; calculating the sum of the products; and calculating the ratio of the sum to the sum of the total light-emitting times of all the rows on the display panel to obtain the area load value of the ith row.
With reference to the third aspect, in an embodiment, the target area corresponds to a kth row of the display panel, where K is greater than or equal to 1 and less than or equal to N, N is a longitudinal resolution of the display panel, and the number of the scan pulses is multiple; the load value calculation module is further configured to: confirming the number of times of lighting of the K-th line in the process of scanning the display panel by any pulse according to the duty ratio to obtain the lighting number of times corresponding to any pulse; and counting the lighting times respectively corresponding to all the scanning pulses to obtain the total lighting times of the Kth line in the frame of picture display time.
With reference to the third aspect, in an embodiment, the initial regional load value is positively correlated to the gray scale value of the sub-pixel of each pixel point in the target region.
With reference to the third aspect, in one embodiment, the resolution of the display panel is M × N, and the target region corresponds to one row; if the target area is located in an odd-numbered line of the N lines, the calculation formula of the initial area load value of the target area is a line load calculation formula, wherein the line load calculation formula is represented by the gray value of the sub-pixel of each pixel point of the odd-numbered line; or when the target region is located in an even row of the N rows, the initial region load value of the target region is obtained by an average of the initial load values of the adjacent rows to the target region, wherein the initial load value of each adjacent row is obtained by calculation according to a row load calculation formula, and the row load calculation formula is characterized by the gray value of the sub-pixel of each pixel point of the odd row.
With reference to the third aspect, in an embodiment, the target area corresponds to a kth line of the display panel, where K is greater than or equal to 1 and less than or equal to N, and N is a longitudinal resolution of the display panel, and the line load value calculation formula is as follows:
Figure BDA0003322345870000071
wherein, loadingKDenotes an initial region load value, R _ data, of the K-th lineiRepresenting the gray level of the red sub-pixel of the ith pixel of the Kth row, r representing the weight of the red sub-pixel, G _ dataiRepresenting the gray level of the green sub-pixel of the ith pixel of the Kth row, g representing the weight of the green sub-pixel, B _ dataiThe gray scale value of the blue sub-pixel of the ith pixel of the Kth line is represented, b represents the weight of the blue pixel, M represents the number of horizontal pixel points arranged on each line of the line, and L represents the number of vertical pixels corresponding to one line, namely L is equal to 1.
With reference to the third aspect, in an embodiment, the kth target region is any one of all target regions, the target region includes L lines, the number of pixel points of the target region is M × L, and the initial region load value calculation formula is as follows:
Figure BDA0003322345870000081
wherein, loadingkDenotes an initial region load value, R _ data, of the Kth target regioniRepresenting the gray level of the red sub-pixel of the ith pixel of the Kth region, r representing the weight of the red sub-pixel, G _ dataiRepresenting the gray level of the green sub-pixel of the ith pixel of the Kth target region, g representing the weight of the green sub-pixel, and B _ dataiThe gray-scale value of a blue sub-pixel of the ith pixel of the Kth target area is represented, b represents the weight of the blue pixel, M represents the number of horizontal pixel points arranged on each line of the target area, and L represents the number of vertical pixels corresponding to the Kth target area.
With reference to the third aspect, in one embodiment, the area load value is obtained by area load calculation:
Figure BDA0003322345870000082
wherein real loading represents the area load valuekRepresenting the initial zone load value, E, of said K-th rowkIndicating the number of times of light emission of the K-th row.
With reference to the third aspect, in one embodiment, the area load value is obtained by an area load calculation formula:
Figure BDA0003322345870000083
wherein real loading represents the area load valuekRepresenting an initial zone load value, E, of the Kth target zonekAnd R represents the number of times of light emission of the Kth target region, and the number of target regions.
In a fourth aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory, a display panel and a bus; the processor is connected to the memory through the bus, the memory stores computer readable instructions, and when the computer readable instructions are executed by the processor, the processor is configured to obtain a target compensation gray scale value according to the method of any one of the first aspect and the embodiments thereof, and the display panel is configured to display an image based on the target compensation gray scale value.
In a fifth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program implements the method according to the first aspect and the embodiments thereof when executed.
Drawings
Fig. 1 is a flowchart illustrating an image display method according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a method for obtaining a compensated gray scale value according to an embodiment of the present disclosure;
FIG. 3 is a flow chart illustrating gray level compensation in the related art according to an embodiment of the present application;
fig. 4 illustrates display states of a display panel at different times according to an embodiment of the present application;
FIG. 5 is a display panel display interface according to an embodiment of the present disclosure;
FIG. 6 is a diagram illustrating another display panel display interface according to an embodiment of the present disclosure;
FIG. 7 is a block diagram illustrating an apparatus for obtaining compensated gray scale values according to an embodiment of the present disclosure;
fig. 8 is a schematic composition diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as presented in the figures, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
In some embodiments of the present application, in order to improve the problem in the background art, the processor calculates and obtains an area load value according to a scan pulse characteristic parameter value and a pixel value of a pixel point in a target area, and obtains a target compensation gray scale value by looking up a table according to the area load value. For example, the processor is configured to: the method comprises the steps of obtaining original image data to be displayed by a display panel, calculating an area load value of a target area according to a scanning pulse characteristic parameter value used for adjusting the brightness of the display panel and a pixel value of a pixel point of the target area, and obtaining a target compensation gray-scale value corresponding to the target area in the original image data through table lookup at least according to the area load value.
For example, in some embodiments of the present application, the processor calculates an initial area load value of each target area according to pixel values of pixel points, then calculates an area load value according to the number of times of light emission of each target area and the initial area load value, then corresponds the area load value to a gray scale value in a table lookup manner, obtains a target compensation gray scale value, obtains a pixel value of each pixel point according to the target compensation gray scale value, and displays the pixel value of each pixel point by the display panel, so that the display quality of the display panel can be ensured simultaneously in the process of controlling the brightness.
The method steps in the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 1 provides an image display method in some embodiments of the present application, and the method shown in fig. 1 includes three steps of S110 obtaining a target compensation gray scale value, S120 obtaining a pixel value of each pixel point, and S130 displaying the pixel value. Specifically, in the process of S110, the processor first obtains original image data 101 to be displayed on the display panel and a scan pulse characteristic parameter value 102 for adjusting the brightness of the display panel, then calculates an initial area load value of each target area, calculates an area load value according to the initial area load value and the number of times of light emission of the target area, finally obtains a target compensation gray-scale value according to the area load value, and after obtaining the target compensation gray-scale value, S120 is performed to obtain a pixel value of each pixel, and S130 is performed by the display panel to display the pixel value, thereby implementing compensation and display of the original image data 101.
Note that the target area corresponds to one or more lines of the display panel. As an embodiment of the present application, the target area may be one line of the display panel. As another embodiment of the present application, the target area may be a plurality of rows of the display panel.
Different from the embodiment of the present application, in the related art, the PWM affects the gray scale compensation during the brightness control process, so that the gray scale compensation is inaccurate.
At least to solve the above problems, some embodiments of the present application provide a method for calculating an area load value of a target area and performing gray scale compensation according to the area load value. For example: the processor obtains original image data to be displayed by the display panel, calculates an area load value of a target area according to a scanning pulse characteristic parameter value used for adjusting the brightness of the display panel and a pixel value of a pixel point of the target area, wherein the target area corresponds to one line or multiple lines of the display panel, and obtains a target compensation gray-scale value corresponding to the target area in the original image data through table lookup at least according to the area load value, so that the display quality of the display panel is ensured.
In the following, a method for obtaining a compensated gray scale value applied to a processor in the embodiment of the present application will be described.
As shown in fig. 2, a method of obtaining a compensation gray scale value includes: s210, acquiring original image data to be displayed by a display panel; s220, calculating a region load value of the target region according to the scanning pulse characteristic parameter value for adjusting the brightness of the display panel and the pixel value of the pixel point of the target region; and S230, obtaining a target compensation gray-scale value corresponding to the target area in the original image data through table lookup at least according to the area load value.
In one embodiment of the present application, S220 includes: and obtaining the area load value of the target area according to the initial area load value and the scanning pulse characteristic parameter value of the target area, wherein the initial area load value is determined by the pixel value of each pixel point in the target area.
That is to say, first, an initial region load value of the target region needs to be determined according to the pixel value of each pixel point in the target region, and then the initial region load value and the scanning pulse characteristic parameter value in the process of controlling the brightness are calculated to obtain the region load value of the target region.
As a specific embodiment of the present application, the resolution of the display panel is M × N, the display panel is divided into N rows according to the resolution, and if the target region is located in an odd row of the N rows, the calculation formula of the initial region load value of the target region is a row load calculation formula, where the row load calculation formula is characterized by the gray value of the sub-pixel of each pixel point of the odd row where the target region is located.
Specifically, the target area corresponds to the W-th row of the display panel, the W-th row is any odd-numbered row in the display panel, and the value of K is greater than or equal to 1 and less than or equal to K and less than or equal to N, so that the row load value calculation formula is as follows:
Figure BDA0003322345870000121
wherein, loadingWDenotes the area load value, R _ data, of the W-th lineiRepresenting the gray level of the red sub-pixel of the ith pixel of the W-th row, r representing the weight of the red sub-pixel, G _ dataiRepresenting the gray level of the green sub-pixel of the ith pixel of the W-th row, g representing the weight of the green sub-pixel, B _ dataiThe gray scale value of the blue sub-pixel of the ith pixel of the W-th row is represented, b represents the weight of the blue pixel, M represents the number of horizontal pixels arranged on each row of the W-th row, and L represents the number of vertical pixels corresponding to one row, namely L is equal to 1.
It should be noted that the weight of the red sub-pixel, the weight of the green sub-pixel, and the weight of the blue sub-pixel may be adjusted according to actual requirements. As a specific example of the present application, the weight of the red sub-pixel may be 0.3, the weight of the green sub-pixel may be 0.3, and the weight of the blue sub-pixel may be 0.4. As another specific example of the present application, the weight of the red sub-pixel may be 0.5, the weight of the green sub-pixel may be 0.3, and the weight of the blue sub-pixel may be 0.2. The embodiments of the present application are not limited thereto.
As another specific embodiment of the present application, when the target region is located in an even-numbered row of the N rows, the initial region load value of the target region is obtained by an average of the initial load values of adjacent rows of the target region, where the initial load value of each adjacent row is obtained by calculation according to the row load value calculation formula, and the row load calculation formula is characterized by the gray value of the sub-pixel of each pixel point of the odd-numbered row where the target region is located.
For example: the target area is located at the fourth row among the N rows, and then, two odd rows adjacent to the fourth row are the third row and the fifth row, and the initial load value of the third row is 176 and the initial load value of the fifth row is 141 as calculated using the above-described row load calculation formula, and then the average of the row load value of the third row and the row load value of the fifth row is 158.5, rounded to obtain the initial area load value of the fourth row 159.
As another specific embodiment of the present application, the target area is any one of N rows, that is, the target area corresponds to the kth row of the display panel, where K is greater than or equal to 1 and less than or equal to N, N is the longitudinal resolution of the display panel, and the row load value calculation formula is as follows:
Figure BDA0003322345870000131
wherein, loadingKDenotes an initial region load value, R _ data, of the K-th lineiRepresenting the gray level of the red sub-pixel of the ith pixel of the Kth row, r representing the weight of the red sub-pixel, G _ dataiRepresenting the gray level of the green sub-pixel of the ith pixel of the Kth row, g representing the weight of the green sub-pixel, B _ dataiThe gray scale value of the blue sub-pixel of the ith pixel of the Kth line is represented, b represents the weight of the blue pixel, M represents the number of horizontal pixels arranged on each line of the line, and L represents the number of vertical pixels corresponding to one line, namely L is equal to 1.
That is, in the case where the target area is one line, the initial area load value of the target area is calculated using the above line load value calculation formula.
For example: the resolution of the display panel is 5 × 5, and then the target area is the first row, the second row, the third row, the fourth row and the fifth row, and the initial area load value of the target area calculated according to the load value calculation formula is: first row 205, second row 194, third row 182, fourth row 176, and fifth row 163.
As another embodiment of the present application, the target area is L lines (i.e., the target area is a plurality of lines), the kth target area is any one of all the target areas, the number of the pixels in the target area is M × L, and the initial area load value calculation formula is as follows:
Figure BDA0003322345870000132
wherein, loadingkDenotes an initial region load value, R _ data, of the Kth target regioniRepresenting the gray-scale value of the red sub-pixel of the ith pixel of the Kth region, r representing the weight of the red sub-pixel, G _ dataiRepresenting the gray level of the green sub-pixel of the ith pixel of the Kth target region, g representing the weight of the green sub-pixel, B _ dataiThe gray-scale value of the blue sub-pixel of the ith pixel of the Kth target region is represented, b represents the weight of the blue pixel, M represents the number of horizontal pixel points arranged on each line of the target region, and L represents the number of vertical pixels corresponding to the Kth target region.
That is, when the target area is L lines, in calculating the initial area load value of the target area, the gray-scale values of the sub-pixels corresponding to all the pixels in the target area need to be added, multiplied by the respective weight coefficients, and then divided by the number of all the pixels in the target area (i.e., divided by the product of the number of horizontal resolutions and the number of lines included in the target area).
For example: the target area is 10 lines, and the number of the pixel points in each line is 30, so that when calculating the initial area load value, the gray scale values of the sub-pixels corresponding to 300 pixel points in the target area need to be added, multiplied by the respective weight coefficients, and then divided by the number of all the pixel points in the target area (i.e. 300).
In one embodiment of the present application, the scan pulse characteristic parameter values include: the number of scanning pulses included in a single frame and the duty ratio of each scanning pulse included in a single frame. S220 comprises: and obtaining the total light-emitting times of any pixel point of the target area in the display time corresponding to one frame of picture according to the duty ratio and the number of the scanning pulses, obtaining the total light-emitting times of each target area on the display panel in one frame, and obtaining the area load value according to the total light-emitting times and the initial area load value of the target area.
That is, in the process of performing brightness control on the display panel, at least one scan pulse with a fixed duty ratio is required to be used for scanning, so as to implement brightness control, and therefore, in the process of compensating original image data, the processor firstly reads the number of scan pulses and the duty ratio of the scan pulses, then counts the total number of light-emitting times of each target area within the display time of one frame, and finally calculates the total number of light-emitting times of each target area and the initial area load value corresponding to each target area to obtain the area load value.
As a specific embodiment of the present application, the target area corresponds to a kth row of the display panel, where K is greater than or equal to 1 and less than or equal to N, N is a longitudinal resolution of the display panel, and the number of scan pulses is multiple. S220 comprises: and confirming the lighted times of the K-th line in the scanning process of the display panel by any pulse according to the duty ratio to obtain the lighted times corresponding to any pulse. And counting the lighting times respectively corresponding to all the scanning pulses to obtain the total lighting times of the Kth line in the display time of the frame.
That is, when the target area is the K-th line (where the K-th line is a target line currently being calculated, and the remaining lines are reference lines except the K-th line in the display panel), and the number of scanning pulses is plural, the number of lines corresponding to the duty ratio is used as the number of times that the K-th line is lit during scanning of the display panel by any pulse. The total number of lines of the duty ratio corresponding to the pulse scanning is the total number of light emission times of the Kth line in one frame of picture display time. Then, when the reference row emits light simultaneously with the K-th row, the number of times of lighting of the reference row is increased by one, and the number of times of lighting of each reference row is counted to obtain the total number of times of lighting of each reference row.
For example: if the vertical resolution of the display panel is 100, that is, N is 100, and the number of light emission times of the 15 th line (that is, the target line) is currently calculated, then the 1 st to 14 th lines and the 16 th to 100 th lines are all reference lines, the number of scanning pulses is two, the duty ratio of each scanning pulse is 20%, that is, the number of lines corresponding to the duty ratio of each scanning pulse is 20 lines. When the 15 th row is lighted up 20 times during the scanning of the display panel by any pulse, and the total number of light-emitting times of the 15 th row is 40 because of the existence of two scanning pulses, the method for counting the number of light-emitting times of the reference row is that, when the reference row and the target row are lighted up simultaneously during the scanning of any pulse, the number of lighted-up times of the reference row is added by one, so that the total number of light-emitting times of each row in the display time of one frame of picture is obtained.
As a specific embodiment of the present application, the target area corresponds to a kth row of the display panel, where K is greater than or equal to 1 and less than or equal to N, N is a longitudinal resolution of the display panel, and the number of scan pulses is one. S220 comprises: and confirming the lighted situation of the K-th line in the scanning process of the display panel by the scanning pulse according to the duty ratio, and confirming the lighted situation of the reference line according to the lighted situation of the K-th line, wherein the lighted situation comprises the lighted times, and the reference line is the other lines except the K-th line in the display panel.
That is, when the number of scanning pulses is one, the number of lines corresponding to the duty ratio is set as the number of times of lighting of the K-th line, and then when the reference line emits light simultaneously with the K-th line, the number of times of lighting of the reference line is increased by one.
For example: the vertical resolution of the display panel is 100, that is, N is 100, and the number of light emission times of the 15 th line (target line) is currently being calculated, then the 1 st to 14 th lines and the 16 th to 100 th lines are all reference lines, and the duty ratio corresponding to more scanning pulses is 20%, so the number of lines corresponding to the scanning pulses is 20 lines. Therefore, the K-th row is lit up 20 times, and the remaining reference rows are lit up simultaneously with the K-th row.
It should be noted that the number of scan pulses and the duty ratio of each scan pulse in the present application are parameters used by the processor in reading the brightness control process. As a specific example of the present application, the number of the scan pulses may be 1, and the duty ratio of the scan pulses may be 30% or 50%. As another specific embodiment of the present application, the number of the scan pulses may be multiple, the sum of the duty ratios of the scan pulses may be less than 50% of the display panel (for example, the duty ratios of the two scan pulses are both 20%), and the sum of the duty ratios of the scan pulses may also be greater than 50% of the display panel (for example, the duty ratios of the two scan pulses are both 40%).
In one embodiment of the present application, in the case that the target area is one row (i.e., the target area corresponds to the ith row of the display panel), the display panel is further used for displaying other rows of data except the ith row. S220 comprises: and acquiring the ith initial area load value of the ith row and the total lighting frequency of the ith row, calculating the product of the ith initial load value and the total lighting frequency of the ith row, and repeating the process to obtain products respectively corresponding to other rows. And then calculating the sum of the products, and calculating the ratio of the sum of the products and the total lighting times of all the rows on the display panel to obtain the area load value of the ith row.
That is, in the case where the target area is one row, first, the ith initial area load value and the total number of times of light emission of the ith row are obtained by calculation according to the method in the above-described embodiment. Then, the ith initial area load value is multiplied by the total number of times of light emission of the ith row, the (i + 1) th initial area load value is multiplied by the total number of times of light emission of the (i + 1) th row, and the (i + 2) th initial area load value is multiplied by the total number of times of light emission of the (i + 2) th row until products corresponding to the rows are obtained. Finally, the sum of all the products is calculated, and then the sum of all the products is divided by the sum of the total lighting times of each row to obtain the area load value of the ith row.
In the case where the target area is one line, the influence on the target line decreases as the distance from the target line for which the load value is being calculated increases, and the influence on the target line does not occur when the distance exceeds the number of lines corresponding to the duty ratio of the scanning pulse.
As a specific embodiment of the present application, the area load value is obtained by area load calculation:
Figure BDA0003322345870000171
wherein real loading represents an area load valueiIndicates the initial zone load value of the ith row, EiIndicating the number of light emissions of the ith row.
For example: in the case where the target area is one line, first, the loading is calculated and obtained according to the method in the above embodimentiAnd EiThen, loading of each rowiAnd EiMultiplying to obtain products corresponding to each row, calculating the sum of all products, and dividing the sum of all products by all EiAnd adding the sum to obtain the area load value of the ith row.
In one embodiment of the present application, in the case where the target area is a plurality of rows (i.e., the target area corresponds to a plurality of rows of the display panel). S220 comprises: and acquiring the initial area load value of the K target area and the total light emitting times of the K area, calculating the product of the initial load value of the K area and the total light emitting times of the K area, and repeating the process to obtain products corresponding to other areas respectively. And then calculating the sum of the products, and calculating the ratio of the sum of the total light emitting times of all target areas on the display panel to obtain the area load value of the K area.
That is, in the case where the target region is a plurality of lines, first, the initial region load value of the K-th target region and the total number of times of light emission of the K-th target region are obtained are calculated according to the method in the above-described embodiment. Then, the initial zone load value of the K target zone is multiplied by the total light emitting times of the K target zone, the initial zone load value of the K +1 target zone is multiplied by the total light emitting times of the K +1 target zone, and the initial zone load value of the K +2 target zone is multiplied by the total light emitting times of the K +2 target zone until the products corresponding to the target zones are obtained. And finally, calculating the sum of all the products, and dividing the sum of all the products by the sum of the total light emitting times of each target area to obtain the area load value of the Kth target area.
As a specific embodiment of the present application, the area load value is obtained by area load calculation:
Figure BDA0003322345870000172
wherein real loading represents an area load valueiIndicates the initial zone load value of the ith row, EiIndicating the number of light emissions of the ith row.
For example: in the case where the target area is one line, first, the loading is calculated and obtained according to the method in the above embodimentiAnd EiThen, loading of each rowiAnd EiMultiplying to obtain products corresponding to each row, calculating the sum of all products, and dividing the sum of all products by all EiAnd adding the sum to obtain the area load value of the ith row.
It should be noted that, when the duty ratio of the scan pulse is 100%, the above method for obtaining the compensation gray-scale value can still be used instead of the calculation method in the related art.
Therefore, the embodiment of the present application obtains the target compensation gray-scale value by respectively calculating the area load values of the target areas, which is different from the method for integrally calculating the load value of the display panel in the related art, and the area load values obtained by calculation in the embodiment of the present application can be changed correspondingly according to the position of the target area, so that the problem of inaccurate compensation of the display panel due to the influence of brightness control can be solved, and thus, the compensation gray-scale value in the process of brightness change of the pixel point can be accurately calculated in the process of brightness control, and the display quality of the display panel can be improved.
The above describes an implementation flow of a method for obtaining a compensated gray scale value in an embodiment of the present application, and a specific embodiment in the embodiment of the present application will be described below.
In the related art, the display panel brightness unevenness or color shift caused by the voltage drop IR-drop of the display panel integrated circuit may be compensated by adjusting the original image data according to different panel load values and different brightness settings using an Interference Rejection Combining (IRC) algorithm.
As shown in fig. 3, in the process of compensating the display panel by using the IRC algorithm in the related art, first, S320 is performed according to the original image data to calculate the panel load value, then S310 is performed to perform table lookup operation according to the panel load value obtained by the luminance setting and calculation of the original image data, and finally, the compensation gray scale is output and the original image data is compensated according to the compensation gray scale.
However, in the related art, in the process of obtaining the compensation gray scale by using the IRC algorithm, the compensation gray scale is obtained by calculating the entire display panel in the process of calculating the panel load value, and when the display panel performs the brightness control, since the PWM is required to perform the brightness control, the display panel only displays a part of the image at a certain moment, and the other parts do not emit light, for example: as shown in fig. 4, in the brightness control process, the brightness control is performed by using the PWM according to the different changes of the display panel at the time T1, the time T2 and the time T3, so that the point a is lighted at the time T1, the PWM continues to scan down to the time T2, the point a is still lighted, and the PWM continues to scan down to the time T3, and the point a is not lighted. Therefore, if the panel load value is calculated using the method in the related art, a compensation error is caused, and the phenomena of color unevenness and color shift are generated.
Therefore, in order to solve the above problem, the embodiment of the present application proposes a method for obtaining a compensation gray-scale value, that is, the method in the present application is used to replace the process of calculating the panel load value at S320 in fig. 3, that is, the area load value obtained by the calculation of the method in the present application is used to replace the panel load value in the related art.
Specifically, in the method for obtaining the compensation gray-scale value in the embodiment of the present application, weighting calculation is performed on different target areas on the display panel according to different PWM operation manners (for example, a duty ratio is 50%), so as to generate different area load values corresponding to the target areas (for example, an area load value when the first row emits light is 149, and an area load value when the second row emits light is 161).
As a specific embodiment of the present application, when the target area is a row, in the embodiment of the present application, a process of obtaining the compensation gray scale value is as follows:
firstly, after obtaining original image data to be displayed by a display panel, dividing the display panel into 1920 lines according to the resolution (1080 × 1920) of the display panel, where each line is a target area, and respectively calculating an initial area load value of each line according to a line load calculation formula, where the line load calculation formula is as follows:
Figure BDA0003322345870000191
wherein, loadingKDenotes an initial region load value, R _ data, of the K-th lineiRepresenting the gray level of the red sub-pixel of the ith pixel of the Kth row, r representing the weight of the red sub-pixel, G _ dataiRepresenting the gray level of the green sub-pixel of the ith pixel of the Kth row, g representing the weight of the green sub-pixel, B _ dataiThe gray scale value of the blue sub-pixel of the ith pixel of the Kth line is represented, b represents the weight of the blue pixel, M represents the number of horizontal pixels arranged in each line (i.e. 1080), and L represents the corresponding number of vertical pixels in each line, i.e. L is equal to 1.
Calculating initial area load values of all rows according to the row load value calculation formula, taking the first row as an example:
Figure BDA0003322345870000201
since the first row is not lit, the gray scale value of the red sub-pixel, the gray scale value of the green sub-pixel, and the gray scale value of the blue sub-pixel are all 255, and since the gray scale values of each pixel in the first row are the same, 255 × 1080 represents the sum of the gray scale values of all the red sub-pixels in the first row.
Thus, initial areal load values of 255, 255, 255 … … 205, 194, 182, 176, 163, 169, 141, 137 … … 255, 255, 255 for all rows are calculated.
Then, the characteristic parameters of the scanning pulses used in the brightness control process are read, including the number of the scanning pulses and the duty ratio of each scanning pulse.
When the number of the scan pulses is 1 and the duty ratio is 50%, the number of rows corresponding to the PWM duty ratio is 1920 × 50% to 960, that is, the scan pulses move downward one row each time during the scanning process, and the pixels of 960 rows are turned on each time. When the scan pulse scans downwards, the number of light emission times of each row is recorded, as shown in fig. 5, the display panel 410 includes an unlit area 420 and an unlit area 430, in the process of calculating the load value of the point a, the number of light emission times of the point a is the number of rows corresponding to the PWM duty ratio, that is, 960 times, and the number of light emission times of the remaining rows of the display panel 410, excluding the row where the point a is located, is obtained according to the number of times that the respective rows of the remaining rows and the row where the point a is located are simultaneously lit.
Substituting the number of times of light emission of each row in the display panel into an area load calculation formula to obtain an area load value, taking the area load calculation formula of the point A as an example:
Figure BDA0003322345870000202
wherein real loading of A represents the area load value of the line where the point A is positioned, and the loadingkDenotes the initial zone load value of the K-th line, EkIndicating the number of light emissions of the K-th row.
For another example: the number of light emission times of the point a is 4, and the corresponding initial area load value is 163, then the number of light emission times of the remaining lines is 3, 2, 1, and 0, respectively, and the initial load values of the remaining lines are 255, 255, 255 … … 205, 194, 182, 176, 163, 169, 141, 137 … … 255 5, 255, and 255. The zone load at point a is then:
Figure BDA0003322345870000211
when the number of the scan pulses is 2 and the duty ratio is 20%, the number of rows corresponding to each PWM duty ratio is 1920 × 20% to 384, that is, in the process of scanning by the scan pulses, the two scan pulses move downward one row at a time, and the pixels of 768 (i.e., 384 × 2) rows are lit each time. When the scan pulse scans downwards, the number of light emissions of each row is recorded, as shown in fig. 6, the display panel 610 includes an unlit area 620, an unlit area 630 and an unlit area 640, in the process of calculating the load value of the B point, the number of light emissions of the B point is the number of rows corresponding to all scan pulses, that is, 768 times, and the number of light emissions corresponding to the remaining rows in the display panel 610 except the row where the B point is located is obtained according to the number of times that the rows in the remaining rows are simultaneously lit with the row where the B point is located, that is, no matter which scan pulse lights the remaining rows, the number of light emissions of the remaining rows is increased by one as long as the remaining rows and the row where the B point is located are simultaneously lit.
Substituting the number of times of light emission of each row in the display panel into an area load calculation formula to obtain an area load value, taking the area load calculation formula of the point B as an example:
Figure BDA0003322345870000212
wherein, real loading of B represents the area load value of the line where the B point is positioned, and the loadingkDenotes the initial zone load value of the K-th line, EkAnd K represents any line corresponding to the longitudinal resolution of the display panel.
And finally, after the regional load values of each row are obtained according to the method, performing table lookup operation according to the regional load values of each row and the brightness setting of the display panel to obtain the target compensation gray-scale value corresponding to each row. And compensating each row in the display panel by using the target compensation gray-scale value to obtain the original image data after compensation, and displaying the original image data by the display panel.
As a specific embodiment of the present application, when the target area is multiple rows, in the embodiment of the present application, a process of obtaining the compensation gray scale value is as follows:
firstly, after original image data to be displayed by a display panel is obtained, the display panel is divided into 1920 lines according to the resolution (1080 × 1920) of the display panel, and every 10 lines in the 1920 lines are used as a target area, that is, the target area comprises a plurality of lines. Respectively calculating the initial region load value of each target region according to a line load calculation formula, wherein the line load calculation formula is as follows:
Figure BDA0003322345870000221
wherein, loadingkDenotes an initial region load value, R _ data, of the Kth target regioniRepresenting the gray level of the red sub-pixel of the ith pixel of the Kth region, r representing the weight of the red sub-pixel, G _ dataiRepresenting the gray level of the green sub-pixel of the ith pixel of the Kth target region, g representing the weight of the green sub-pixel, and B _ dataiThe gray-scale value of a blue sub-pixel of the ith pixel of the Kth target area is represented, b represents the weight of the blue pixel, M represents the number of horizontal pixel points arranged on each line of the target area, and L represents the number of vertical pixels corresponding to the Kth target area.
It should be noted that the kth target region is any one of all target regions, the target region includes L lines, and the number of pixels in the target region is M × L. L may be adjusted according to actual requirements, and may be 10 rows or 20 rows, which is not limited in this embodiment of the application.
That is, when calculating the initial region load value of the target region including a plurality of rows, the gray scale values of the sub-pixels corresponding to each pixel point in the plurality of rows need to be added, and then divided by the total number of the pixel points in the target region, i.e., M × L.
Thus, initial area load values corresponding to the respective target areas are obtained.
Then, the characteristic parameters of the scanning pulses used in the brightness control process are read, including the number of the scanning pulses and the duty ratio of each scanning pulse.
Taking the number of scan pulses as 1 and the duty ratio as 50% as an example, the number of rows corresponding to the PWM duty ratio is 1920 × 50% to 960, that is, the scan pulses move down one target region at a time (for example, move down 10 rows at a time) during the scanning process.
When the scan pulse scans downwards, the number of times of light emission of each target area is recorded, the number of times of light emission corresponding to the target area being calculated is the number of lines corresponding to the duty ratio, and the number of times of light emission of the reference area of the display panel other than the target area being calculated is obtained according to the number of times that the reference area and the target area being calculated are simultaneously lighted, for example: when the initial region load value of the C region is calculated, the D region, the E region, and the like other than the C region are all reference regions. For another example: when the initial region load value of the D region is calculated, the C region, the E region, and the like other than the D region are all reference regions.
Substituting the number of times of light emission of each target area in the display panel into an area load calculation formula to obtain an area load value, taking the area load calculation formula of the C area as an example:
Figure BDA0003322345870000231
wherein, real loading represents the area load value of the C areakDenotes an initial area load value, E, of the Kth target areakThe number of times of light emission of the Kth target region is indicated, and R indicates the number of target regions.
It should be noted that K denotes any one of the target regions, and R is M/L, that is, the number R of target regions is equal to the value M of the vertical resolution of the display panel divided by the number L of lines included in each target region. For example: the value M of the vertical resolution is 1920, the number of lines L included in each target area is 10, and the number R of target areas is 192. For another example, the value M of the vertical resolution is 1920, the number L of lines included in each target region is 18, and since there is a remainder, the number R of target regions is 106+1 — 107, where the number of lines included in the 107 th target region is the remainder.
Finally, after the area load value of each area is obtained according to the method, table look-up operation is carried out according to the area load value of each area and the brightness setting of the display panel, and the target compensation gray-scale value corresponding to each area is obtained. And compensating each area in the display panel by using the target compensation gray-scale value, obtaining the original image data after compensation, and displaying the original image data by the display panel.
While a specific embodiment of obtaining the compensation gray scale value has been described above, a device for obtaining the compensation gray scale value will be described below.
As shown in fig. 7, an apparatus 700 for obtaining a compensated gray scale value includes: a data acquisition module 710, a load value calculation module 720, and a gray level value acquisition module 730.
In some embodiments of the present application, an apparatus 700 for obtaining a compensated gray scale value is provided, which is applied to a device having a display panel, and includes:
and a data acquisition module 710 configured to acquire original image data to be displayed by the display panel.
And a load value calculating module 720 configured to calculate a region load value of the target region according to the scan pulse characteristic parameter value for adjusting the brightness of the display panel and the pixel value of the pixel point of the target region, wherein the target region corresponds to one or more lines of the display panel.
The gray-scale value obtaining module 730 is configured to obtain a target compensation gray-scale value corresponding to the target area in the original image data by looking up a table according to at least the area load value.
In some embodiments of the present application, the load value calculation module 720 is further configured to: and obtaining the area load value of the target area according to the initial area load value and the scanning pulse characteristic parameter value of the target area, wherein the initial area load value is determined by the pixel value of each pixel point in the target area.
In some embodiments of the present application, the scan pulse characteristic parameter values comprise: the number of scanning pulses included in a single frame and the duty ratio of each scanning pulse included in the single frame; the load value calculation module 720 is further configured to: according to the duty ratio and the number, the total light-emitting times of any pixel point of the target area in the display time corresponding to one frame of picture are obtained, and the total light-emitting times of each target area on the display panel in one frame are obtained; and obtaining an area load value according to the total light-emitting times and the initial area load value of the target area.
In some embodiments of the present application, the target area corresponds to an ith row of the display panel, and the display panel is further configured to display a plurality of rows of data other than the ith row; the load value calculation module 720 is further configured to: acquiring the ith initial area load value of the ith row and the total light emitting times of the ith row, calculating the product of the ith initial load value and the total light emitting times of the ith row, and repeating the process to obtain products respectively corresponding to other rows; calculating the sum of the products; and calculating the ratio of the sum to the sum of the total light emitting times of all the rows on the display panel to obtain the area load value of the ith row.
In some embodiments of the present application, the target region corresponds to a kth row of the display panel, where K is greater than or equal to 1 and less than or equal to N, N is a longitudinal resolution of the display panel, and the number of scan pulses is multiple; the load value calculation module 720 is further configured to: confirming the number of times of lighting of the K-th line in the process of scanning the display panel by any pulse according to the duty ratio to obtain the lighting number of times corresponding to any pulse; and counting the lighting times respectively corresponding to all the scanning pulses to obtain the total lighting times of the Kth line in the display time of the frame.
In some embodiments of the present application, the initial region load value is positively correlated to the gray-level value of the sub-pixel of each pixel point in the target region.
In some embodiments of the present application, the resolution of the display panel is M × N, and the target area corresponds to one row; if the target area is located in an odd row of the N rows, the calculation formula of the initial area load value of the target area is a line load calculation formula, wherein the line load calculation formula is represented by the gray value of the sub-pixel of each pixel point of the odd row; or when the target area is located in an even row of the N rows, the initial area load value of the target area is obtained by an average of the initial load values of the adjacent rows of the target area, wherein the initial load value of each adjacent row is calculated according to a row load calculation formula, and the row load calculation formula is characterized by the gray value of the sub-pixel of each pixel point of the odd row.
In some embodiments of the present application, the target region corresponds to a kth line of the display panel, where K is greater than or equal to 1 and less than or equal to N, N is a longitudinal resolution of the display panel, and a line load value calculation formula is as follows:
Figure BDA0003322345870000251
wherein, loadingKDenotes an initial region load value, R _ data, of the K-th lineiRepresenting the gray level of the red sub-pixel of the ith pixel of the Kth row, r representing the weight of the red sub-pixel, G _ dataiRepresenting the gray level of the green sub-pixel of the ith pixel of the Kth row, g representing the weight of the green sub-pixel, B _ dataiThe gray scale value of the blue sub-pixel of the ith pixel of the Kth line is represented, b represents the weight of the blue pixel, M represents the number of horizontal pixels arranged on each line of the line, and L represents the number of vertical pixels corresponding to one line, namely L is equal to 1.
In some embodiments of the present application, the kth target region is any one of all target regions, the target region includes L lines, the number of pixel points of the target region is M × L, and the initial region load value calculation formula is as follows:
Figure BDA0003322345870000261
wherein, loadingkDenotes an initial region load value, R _ data, of the Kth target regioniRepresenting the gray-scale value of the red sub-pixel of the ith pixel of the Kth region, r representing the weight of the red sub-pixel, G _ dataiRepresenting ith pixel of Kth target areaThe gray level of the green sub-pixel, g represents the weight of the green sub-pixel, B _ dataiThe gray-scale value of the blue sub-pixel of the ith pixel of the Kth target region is represented, b represents the weight of the blue pixel, M represents the number of horizontal pixel points arranged on each line of the target region, and L represents the number of vertical pixels corresponding to the Kth target region.
In some embodiments of the present application, the zone load value is obtained by a zone load calculation:
Figure BDA0003322345870000262
wherein real loading represents an area load valuekDenotes the initial zone load value of the K-th line, EkIndicating the number of light emissions of the K-th row.
In some embodiments of the present application, the zone load value is obtained by a zone load calculation formula:
Figure BDA0003322345870000263
wherein real loading represents an area load valuekDenotes an initial area load value, E, of the Kth target areakThe number of times of light emission of the Kth target region is indicated, and R indicates the number of target regions.
In the embodiment of the present application, the module shown in fig. 7 can implement each process in the method embodiments of fig. 1 to 6. The operations and/or functions of the respective modules in fig. 7 are respectively for implementing the corresponding flows in the method embodiments in fig. 1 to 6. Reference may be made specifically to the description of the above method embodiments, and a detailed description is appropriately omitted herein to avoid redundancy.
As shown in fig. 8, an embodiment of the present application provides an electronic device 800, including: a processor 810, a memory 820 and a bus 830, wherein the processor is connected to the memory through the bus, and the memory stores computer readable instructions, which when executed by the processor, are used for implementing the method according to any one of the above embodiments, and the detailed description can be referred to the description of the above embodiments of the method, and is omitted here to avoid repetition.
Wherein the bus is used for realizing direct connection communication of the components. The processor in the embodiment of the present application may be an integrated circuit chip having signal processing capability. The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The Memory may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Read Only Memory (EPROM), an electrically Erasable Read Only Memory (EEPROM), and the like. The memory stores computer readable instructions that, when executed by the processor, perform the methods described in the embodiments above.
It will be appreciated that the configuration shown in fig. 8 is merely illustrative and may include more or fewer components than shown in fig. 8 or have a different configuration than shown in fig. 8. The components shown in fig. 8 may be implemented in hardware, software, or a combination thereof.
Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed, the method in any of the above-mentioned all embodiments is implemented, in particular, refer to the description in the above-mentioned method embodiments, and in order to avoid repetition, detailed description is appropriately omitted here.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (15)

1. A method for obtaining a compensated gray-scale value, applied to a device having a display panel, the method comprising:
acquiring original image data to be displayed by the display panel;
calculating a region load value of a target region according to a scanning pulse characteristic parameter value for adjusting the brightness of the display panel and a pixel value of a pixel point of the target region, wherein the target region corresponds to one or more lines of the display panel;
and obtaining a target compensation gray-scale value corresponding to the target area in the original image data by table lookup at least according to the area load value.
2. The method of claim 1, wherein calculating the area load value of the target area according to the scan pulse characteristic parameter value for adjusting the brightness of the display panel and the pixel value of the pixel point of the target area comprises:
and obtaining the area load value of the target area according to the initial area load value of the target area and the scanning pulse characteristic parameter value, wherein the initial area load value is determined by the pixel value of each pixel point in the target area.
3. The method of claim 2, wherein the scan pulse characteristic parameter values comprise: the number of scanning pulses included in a single frame and the duty ratio of each scanning pulse included in the single frame;
the obtaining the area load value of the target area according to the initial area load value of the target area and the characteristic parameter value of the scanning pulse includes:
according to the duty ratio and the number, obtaining the total light-emitting times of any pixel point of the target area in the display time corresponding to one frame of picture, and obtaining the total light-emitting times of each target area on the display panel in one frame;
and obtaining the area load value according to the total light-emitting times and the initial area load value of the target area.
4. The method of claim 3, wherein the target area corresponds to an ith row of the display panel, the display panel being further configured to display a plurality of rows of data other than the ith row;
the obtaining the area load value according to the total light emitting times and the initial area load value of the target area includes:
acquiring the ith initial area load value of the ith row and the total light emitting times of the ith row, calculating the product of the ith initial area load value and the total light emitting times of the ith row, and repeating the process to obtain products respectively corresponding to other rows;
calculating the sum of the products;
and calculating the ratio of the sum of the products to the sum of the total light-emitting times of all the rows on the display panel to obtain the area load value of the ith row.
5. The method according to claim 3, wherein the target area corresponds to a K-th row of the display panel, wherein K is greater than or equal to 1 and less than or equal to N, N is a longitudinal resolution of the display panel, and the number of the scanning pulses is multiple;
the obtaining of the total light emitting times of any pixel point of the target area in the display time corresponding to one frame of picture according to the duty ratio and the number includes:
confirming the number of times of lighting of the K-th line in the process of scanning the display panel by any pulse according to the duty ratio to obtain the lighting number of times corresponding to any pulse;
and counting the lighting times respectively corresponding to all the scanning pulses to obtain the total lighting times of the Kth line in the frame of picture display time.
6. The method according to any one of claims 1 to 5, wherein the initial regional load value is positively correlated with the gray-level value of the sub-pixels of each pixel in the target region.
7. The method of claim 2, wherein the display panel has a resolution of M x N, and the target area corresponds to a row;
wherein the content of the first and second substances,
if the target area is located in an odd-numbered line of the N lines, a calculation formula of an initial area load value of the target area is a line load calculation formula, wherein the line load calculation formula is represented by gray values of sub-pixels of all pixel points of the odd-numbered line;
alternatively, the first and second electrodes may be,
and when the target area is located in an even row of the N rows, obtaining the initial area load value of the target area by the mean value of the initial load values of the adjacent rows of the target area, wherein the initial load value of each adjacent row is obtained by calculation according to a row load calculation formula, and the row load calculation formula is characterized by the gray value of the sub-pixel of each pixel point of the odd row.
8. The method according to claim 7, wherein the target region corresponds to a K-th row of the display panel, where K is greater than or equal to 1 and less than or equal to N, N is a longitudinal resolution of the display panel, and a row load value calculation formula is as follows:
Figure FDA0003322345860000031
wherein, loadingKDenotes an initial region load value, R _ data, of the K-th lineiRepresenting the gray level of the red sub-pixel of the ith pixel of the Kth row, r representing the weight of the red sub-pixel, G _ dataiRepresenting the gray level of the green sub-pixel of the ith pixel of the Kth row, g representing the weight of the green sub-pixel, B _ dataiThe gray scale value of the blue sub-pixel of the ith pixel of the Kth line is represented, b represents the weight of the blue sub-pixel, M represents the number of horizontal pixel points arranged on each line of the line, and L represents the number of vertical pixels corresponding to one line, namely L is equal to 1.
9. The method of claim 6, wherein the Kth target region is any one of all target regions, the target region comprises a plurality of rows, the number of the pixel points of the target region is M x L, and the initial region load value calculation formula is as follows:
Figure FDA0003322345860000032
wherein, loadingkDenotes an initial region load value, R _ data, of the Kth target regioniRepresenting the gray level of the red sub-pixel of the ith pixel of the Kth region, r representing the weight of the red sub-pixel, G _ dataiRepresenting the gray level of the green sub-pixel of the ith pixel of the Kth target region, g representing the weight of the green sub-pixel, and B _ dataiRepresenting blue sub-pixels of ith pixel of Kth target areaThe gray-scale value b represents the weight of the blue sub-pixel, M represents the number of horizontal pixel points arranged on each row of the target region, L represents the number of vertical pixels corresponding to the kth target region, and L is an integer greater than 1 and less than M.
10. The method of claim 8, wherein the zone load value is obtained by a zone load calculation formula:
Figure FDA0003322345860000041
wherein real loading represents the area load valuekRepresenting the initial zone load value, E, of said K-th rowkIndicating the number of times of light emission of the K-th row.
11. The method of claim 9, wherein the zone load value is obtained by a zone load calculation formula:
Figure FDA0003322345860000042
wherein real loading represents the area load valuekRepresenting an initial zone load value, E, of the Kth target zonekAnd R represents the number of times of light emission of the Kth target region, and the number of target regions.
12. An image display method, characterized in that the image display method comprises:
reading the target compensated gray scale values for the rows obtained as claimed in any one of claims 1 to 11;
obtaining the pixel value of each pixel point according to the target compensation gray-scale value;
and providing the pixel value of each pixel point for a display panel to display.
13. An apparatus for obtaining a compensated gray scale value, applied to a device having a display panel, comprising:
a data acquisition module configured to acquire original image data to be displayed by the display panel;
a load value calculation module configured to calculate a region load value of a target region according to a scan pulse characteristic parameter value for adjusting brightness of the display panel and a pixel value of a pixel point of the target region, wherein the target region corresponds to one or more lines of the display panel;
and the gray-scale value acquisition module is configured to obtain a target compensation gray-scale value corresponding to the target area in the original image data through table lookup at least according to the area load value.
14. An electronic device, comprising: a processor, a memory, a display panel and a bus;
the processor is connected to the memory through the bus, the memory stores computer readable instructions for implementing the method of any one of claims 1-11 to obtain a target compensated gray scale value when the computer readable instructions are executed by the processor, and the display panel is configured to display an image based on the target compensated gray scale value.
15. A computer-readable storage medium, having stored thereon a computer program which, when executed, implements the method of any one of claims 1-11.
CN202111250133.0A 2021-10-26 2021-10-26 Method for obtaining compensation gray scale value, image display method, device and medium Active CN113971918B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111250133.0A CN113971918B (en) 2021-10-26 2021-10-26 Method for obtaining compensation gray scale value, image display method, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111250133.0A CN113971918B (en) 2021-10-26 2021-10-26 Method for obtaining compensation gray scale value, image display method, device and medium

Publications (2)

Publication Number Publication Date
CN113971918A true CN113971918A (en) 2022-01-25
CN113971918B CN113971918B (en) 2024-01-30

Family

ID=79588451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111250133.0A Active CN113971918B (en) 2021-10-26 2021-10-26 Method for obtaining compensation gray scale value, image display method, device and medium

Country Status (1)

Country Link
CN (1) CN113971918B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116823675A (en) * 2023-08-28 2023-09-29 禹创半导体(深圳)有限公司 OLED panel global voltage drop compensation method, device, equipment and storage medium
CN116939255A (en) * 2023-09-15 2023-10-24 苏州华兴源创科技股份有限公司 Video image display method, device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100103202A1 (en) * 2008-10-29 2010-04-29 Young-Jun Seo Method of Driving a Light Source, Light Source Apparatus for Performance the Method and Display Apparatus Having the Light Source Apparatus
CN102714007A (en) * 2009-12-14 2012-10-03 松下电器产业株式会社 Plasma display device and method for driving plasma display panel
US20200234655A1 (en) * 2019-11-29 2020-07-23 Shanghai Tianma AM-OLED Co., Ltd. Display device, control method and apparatus thereof
CN111627390A (en) * 2019-02-27 2020-09-04 联咏科技股份有限公司 Driving circuit, display device and driving method thereof
CN112951161A (en) * 2021-02-24 2021-06-11 厦门天马微电子有限公司 Display panel driving method and display device
CN113129847A (en) * 2021-04-13 2021-07-16 Tcl华星光电技术有限公司 Backlight brightness control method and device and display equipment
CN113299237A (en) * 2021-06-09 2021-08-24 北京集创北方科技股份有限公司 Display panel control method and device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100103202A1 (en) * 2008-10-29 2010-04-29 Young-Jun Seo Method of Driving a Light Source, Light Source Apparatus for Performance the Method and Display Apparatus Having the Light Source Apparatus
CN102714007A (en) * 2009-12-14 2012-10-03 松下电器产业株式会社 Plasma display device and method for driving plasma display panel
CN111627390A (en) * 2019-02-27 2020-09-04 联咏科技股份有限公司 Driving circuit, display device and driving method thereof
US20200234655A1 (en) * 2019-11-29 2020-07-23 Shanghai Tianma AM-OLED Co., Ltd. Display device, control method and apparatus thereof
CN112951161A (en) * 2021-02-24 2021-06-11 厦门天马微电子有限公司 Display panel driving method and display device
CN113129847A (en) * 2021-04-13 2021-07-16 Tcl华星光电技术有限公司 Backlight brightness control method and device and display equipment
CN113299237A (en) * 2021-06-09 2021-08-24 北京集创北方科技股份有限公司 Display panel control method and device, electronic equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116823675A (en) * 2023-08-28 2023-09-29 禹创半导体(深圳)有限公司 OLED panel global voltage drop compensation method, device, equipment and storage medium
CN116823675B (en) * 2023-08-28 2023-12-08 禹创半导体(深圳)有限公司 OLED panel global voltage drop compensation method, device, equipment and storage medium
CN116939255A (en) * 2023-09-15 2023-10-24 苏州华兴源创科技股份有限公司 Video image display method, device and storage medium
CN116939255B (en) * 2023-09-15 2023-12-01 苏州华兴源创科技股份有限公司 Video image display method, device and storage medium

Also Published As

Publication number Publication date
CN113971918B (en) 2024-01-30

Similar Documents

Publication Publication Date Title
JP4222340B2 (en) Image display device and brightness correction method in image display device
US8456492B2 (en) Display device, driving method and computer program for display device
JP5213554B2 (en) Display device and driving method thereof
CN113971918B (en) Method for obtaining compensation gray scale value, image display method, device and medium
JP4450012B2 (en) Display correction circuit for organic EL panel
KR101469025B1 (en) Method and system of generating gamma data of display device
CN112562585A (en) Brightness compensation method and device of display panel
US20130241946A1 (en) Data rendering method, data rendering device, and display including the data rendering device
JP2007034251A (en) Display apparatus and display method
CN111754946B (en) Image quality optimization method, display device and computer readable storage medium
JPWO2013035635A1 (en) Image display device and image display method
JP2012042611A (en) Image display device and control method thereof
CN102667581B (en) Image processing device and image display device
CN108257557B (en) Pixel brightness value compensation method
US20180166002A1 (en) Display device and method for driving display device
US7295174B2 (en) Display unit
CN113920917A (en) Display panel compensation method and compensation device
KR100888577B1 (en) Method of processing error diffusion in a display device
US7239308B2 (en) Image display apparatus
JP4888695B2 (en) Display device and display method
KR20140054749A (en) Apparatus and method for generating of luminance correction data
CN117116205A (en) Display panel detection method, display panel correction method and display device
CN110599943A (en) Display panel pixel compensation method and compensation device and display panel
CN113709437B (en) Display device, display control method, and recording medium
CN112689867B (en) Display driving device and display driving method

Legal Events

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