The present application is a U.S. National Phase Entry of International Application No. PCT/CN2020/136234 having an international filing date of Dec. 14, 2020, the content of which is incorporated into this application by reference.
The present application relates to the field of display technologies, in particular to a gamma correction method and an apparatus, an electronic device and a readable storage medium.
With the development of the diversification of Active Matrix/Organic Light Emitting Diode (AMOLED) modules, an architecture of a same module with a variety of pixel arrangements in the screen display region appears, such as a current popular under-screen camera, that is, an ordinary AMOLED module is above the normal display region of the screen. Through the panel design, the region above the normal display region of the screen is subjected to a transparency treatment and changed to be arranged with half of the pixel points of the normal display region of the screen for display. The camera of the mobile phone is hidden here to achieve a full screen in the true sense.
Based on the existence of two different pixel arrangement designs on a same module, due to the pixel density, the low-density pixel region (L area) cannot achieve the effect of the high-density region in luminance and chrominance after gamma correction is carried out only for the high-density pixel region (H area). Therefore, it is needed to tune the H+L new display module in H area and L area with a gamma correction device. On the one hand, the tuning of two different regions requires the addition of a gamma correction device, and the addition of the device will greatly increase the production cost of the panel factory; on the other hand, the simultaneous displaying in H area and L area requires the display module to have a chip for configuring and adjusting high pixel and low pixel gamma registers, the development of the new chip is difficult, and has a long time period and it takes long time to pass verification.
An implementation of the present application provides a gamma correction method and apparatus, an electronic device and a readable storage medium.
An implementation of the present application provides a gamma correction method for a display panel. The display panel includes a first display area and a second display area, a pixel density of the first display area is less than a pixel density of the second display area. The gamma correction method includes: controlling the first display area to display a test picture; performing gamma correction on the first display area to obtain first gamma correction data; controlling the second display area to display the test picture according to the first gamma correction data; acquiring a current display luminance corresponding to the test picture displayed by the second display area; determining a remapping parameter of the second display area based on a grayscale luminance corresponding to the current display luminance displayed in the second display area and a preset pixel grayscale, when the current display luminance is the same as a display luminance corresponding to the preset pixel grayscale displayed in the first display area; compensating the first gamma correction data according to the remapping parameter to obtain second gamma correction data; and controlling the second display area to display according to the second gamma correction data.
In some implementations, determining the remapping parameter of the second display area based on the grayscale luminance corresponding to the current display luminance displayed in the second display area and the preset pixel grayscale, includes: determining a target pixel grayscale corresponding to the grayscale luminance of the current display luminance displayed in the second display area; determining the remapping parameter according to a ratio of the target pixel grayscale and the preset pixel grayscale.
In some implementations, the target pixel grayscale corresponding to the grayscale luminance of the current display luminance displayed in the second display area is calculated by the following conditional formula:
Herein, LvH-spec is the grayscale luminance of the current display luminance displayed in the second display area, Lvi is a grayscale luminance corresponding to the preset pixel grayscale displayed in the first display area, i is a value of the preset pixel grayscale, GrayH-spec is the target pixel grayscale corresponding to the grayscale luminance of the current display luminance displayed in the second display area, and Gamma is a gamma correction parameter value.
In some implementations, compensating the first gamma correction data according to the remapping parameter to obtain the second gamma correction data includes: compensating a pixel grayscale of the first gamma correction data according to the remapping parameter to obtain the second gamma correction data.
In some implementations, controlling the second display area to display according to the second gamma correction data includes: controlling the second display area to display according to the second gamma correction data based on a mura compensation algorithm.
In some implementations, performing the gamma correction on the first display area to obtain the first gamma correction data includes: tuning a plurality of pixel grayscale binding points from a highest pixel grayscale to a lowest pixel grayscale in the first display area respectively to obtain a plurality of grayscale luminances respectively corresponding to the plurality of pixel grayscale binding points; combining the plurality of pixel grayscale binding points and the grayscale luminances respectively corresponding to the plurality of pixel grayscale binding points to obtain the first gamma correction data.
In some implementations, the method further includes: controlling the first display area to display according to the first gamma correction data based on a mura compensation algorithm.
An implementation of the present application provides a gamma correction apparatus for a display panel, wherein the gamma correction apparatus is electrically connected with a collection apparatus, the display panel includes a first display area and a second display area, a pixel density of the first display area is less than a pixel density of the second display area. The gamma correction apparatus includes: a first control module, a first adjustment module, a second control module, an acquisition module, a determination module, a compensation module, and a second adjusting module. The first control module is configured to control the first display area to display a test picture. The first adjustment module is configured to perform gamma correction on the first display area to obtain first gamma correction data. The second control module is configured to control the second display area to display the test picture according to the first gamma correction data. The acquisition module is configured to acquire a current display luminance which corresponds to the test picture displayed by the second display area and is collected by the collection apparatus. The determination module is configured to determine a remapping parameter of the second display area based on a grayscale luminance corresponding to the current display luminance displayed in the second display area and a preset pixel grayscale, when the current display luminance is the same as a display luminance corresponding to the preset pixel grayscale displayed in the first display area. The compensation module is configured to compensate the first gamma correction data according to the remapping parameter to obtain second gamma correction data. The second adjusting module is configured to control the second display area to display according to the second gamma correction data.
An implementation of the present application also provides an electronic device. The electronic device includes a processor and a memory storing a computer program, when the computer program is executed by the processor, the gamma correction method of any of the above implementations is implemented.
An implementation of the present application also provides a non-volatile computer-readable storage medium for a computer program. The gamma correction method of any of the above implementations is implemented when the computer program is executed by one or more processors.
Through the gamma correction method and apparatus, electronic device, and readable storage medium according to the present application, the first gamma correction data is compensated according to the remapping parameter to obtain the second gamma correction data, the gamma correction of different display regions in a display panel is realized, and the gamma characteristics of different regions are adjusted to a consistent state without the addition of a device and a new chip.
Additional aspects and advantages of implementations of the present application will be set forth partially in the following description, partially become apparent from the following description, or are understood by implementing the present application.
The above and/or additional aspects and advantages of the present application will become apparent and readily understood from following description of the implementations in conjunction with the accompanying drawings.
Implementations of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, in which identical or similar reference numerals denote identical or similar elements or elements having identical or similar functions throughout. The implementations described below with reference to the accompanying drawings are exemplary and are intended only to explain the implementations of the present application, but are not to be understood to limit the implementations of the present application.
Referring together to
Based on the existence of two different pixel arrangement designs on a same module, due to the pixel density problem, the low-density pixel region (L area) cannot achieve the effect of the high-density region in luminance and chrominance after gamma correction is carried out only for the high-density pixel region (H area). Therefore, it is needed to tune the same H+L new display module in H area and L area with a gamma correction device. On the one hand, the tuning of two different regions requires the addition of a gamma correction device, and the addition of the device will greatly increase the production cost of the panel factory; on the other hand, the simultaneous displaying in H area and L area requires the display module to have a chip for configuring and adjusting high pixel and low pixel gamma registers, the development of the new chip is difficult, and has a long time period, and it takes long time to pass the verification.
Therefore, a gamma correction method for a display panel provided by the present application realizes gamma correction of different display regions in the display panel by compensating the first gamma correction data according to the remapping parameter to obtain the second gamma correction data, and can adjust gamma characteristics of different regions to a consistent state without the addition of a device and a new chip.
As will be understood, referring to
Referring to
In S11, a first display area is controlled to display a test picture.
In S12, gamma correction is performed on the first display area to obtain first gamma correction data.
In S13, a second display area is controlled to display the test picture according to the first gamma correction data.
In S14, a current display luminance corresponding to the test picture displayed by the second display area is acquired.
In S15, a remapping parameter of the second display area is determined based on a grayscale luminance corresponding to the current display luminance displayed in the second display area and a preset pixel grayscale, when the current display luminance is the same as a display luminance corresponding to the preset pixel grayscale displayed in the first display area.
In S16, the first gamma correction data is compensated according to the remapping parameter to obtain second gamma correction data.
In S17, the second display area is controlled to display according to the second gamma correction data.
The first display area 21 refers to a low-density pixel area (L area), and may be provided in an upper middle area of the display panel 20 (as shown in
The first display area (L area) is controlled to display a test picture. The test picture may be a pixel picture with a consistent color, such as a white picture, a red picture, a yellow picture, etc. The embodiments of the present application are explained by taking the test picture as the white picture as an example.
Gamma correction is performed on the first display area (L area) to obtain gamma correction data, that is, which is a process of adjusting the input voltage of L area to enable the luminance of L area to be at different pixel grayscales. After the gamma correction of L area is completed, the luminance and chrominance of L area meet a target specification. Specifically, referring to
The second display area is controlled to display the test picture according to the first gamma correction data, that is, an input voltage value corresponding to a preset pixel grayscale in the first gamma correction data is used to drive the second display area to display the test picture, and then the above-mentioned small probe gamma device is still used to collect the display luminance.
When a current display luminance corresponding to the test picture displayed in the second display area is acquired, the second display area uses the same first gamma correction data as the first display area, and a corresponding remapping parameter when the gamma correction parameter corresponding to the first display area is applied to the second display area may be determined according to the first gamma correction data, so that the second display area may compensate the gamma correction data using the remapping parameter to obtain the second gamma correction data. Thus, the second display area is controlled to achieve the same luminance and chrominance effect as the first display area with the same pixel grayscale.
Specifically, the second display area is controlled to display the test picture according to the first gamma correction data, that is, the input voltage of the display panel may be adjusted to control the second display area to display a target test picture corresponding to a preset pixel grayscale. For example, the preset pixel grayscale is grayscale binding points, such as the first grayscale, the second grayscale, the fifth grayscale, the tenth grayscale, the 20th grayscale, the 25th grayscale, the 30th grayscale, the 40th grayscale, the 50th grayscale and the 100th grayscale, and the like, and the target test picture is a display picture of the second display area, which corresponds to the preset pixel grayscale of the first display area. Then, the current display luminance corresponding to the target test picture of the second display area is obtained according to the target test picture. Herein, data of the current display luminance refers to a corresponding input voltage value U when luminance of H area is adjusted to luminance consistent with the current display luminance of L area.
The gamma correction method of the present application realizes gamma correction of different display regions in the display panel by compensating the first gamma correction data according to the remapping parameter to obtain the second gamma correction data, and can adjust the gamma characteristics of different regions to a consistent state without the addition of a device and a new chip.
Referring to
In S121, a plurality of pixel grayscale binding points from the highest pixel grayscale to the lowest pixel grayscale in the first display area are tuned respectively to obtain a plurality of grayscale luminances respectively corresponding to the plurality of pixel grayscale binding points.
In S122, the plurality of pixel grayscale binding points and the grayscale luminances respectively corresponding to the plurality of pixel grayscale binding points are combined to obtain the first gamma correction data.
Specifically, a plurality of pixel grayscale binding points from the highest pixel grayscale to the lowest pixel grayscale in the first display area (L area) are respectively tuned, that is, for example, if the highest pixel grayscale is the 255th grayscale and the lowest pixel grayscale is the 0th grayscale, there are a total of 256 grayscales, and the plurality of pixel grayscale binding points may be a plurality of grayscales taken from the 256 grayscales arbitrarily, for example, the plurality of pixel grayscale binding points may be five grayscales taken from the 256 grayscales, which are the 50th grayscale, the 100th grayscale, the 150th grayscale, the 200th grayscale and the 250th grayscale respectively. When the pixel grayscales displayed on a white picture of the first display area are the 50th grayscale, the 100th grayscale, the 150th grayscale, the 200th grayscale and the 250th grayscale respectively, the drive voltage values for driving the first display area to display are correspondingly tuned, and the corresponding five drive voltage values obtained are the grayscale luminances. The first gamma correction data is obtained by combining the five pixel grayscales with the corresponding five grayscale luminances, that is, the final first gamma correction data includes pixel grayscale values and corresponding grayscale luminances.
In some embodiments, the gamma correction method further includes: controlling the first display area to display according to the first gamma correction data based on a mura compensation algorithm.
Specifically, the principle of the mura compensation algorithm (Demura) is to brighten darker areas, or darken brighter areas, or eliminate areas with color deviation in a picture. The input grayscale refers to an original pixel grayscale of the image input to the first display area by the user, that is, a pixel grayscale of the image before gamma correction of the display region. The input grayscale is processed according to the mura compensation algorithm (Demura), that is, the original pixel grayscale is processed using the mura compensation algorithm to obtain the pixel grayscale after gamma correction in the first display area.
Herein, a calculation formula of the mura compensation algorithm (demura) is:
Gray-out=Gray-in*Gain+Offset
In the above formula, Gray-out represents an output grayscale (or referred to as a pixel grayscale), Gray-in represents an input grayscale, Gain represents a gain value, and Offset represents a compensation value.
Referring to
In S151, a target pixel grayscale corresponding to the grayscale luminance of the current display luminance displayed in the second display area is determined.
In S152, the remapping parameter is determined according to a ratio of the target pixel grayscale and the preset pixel grayscale.
It may be understood that since the arrangement modes of the sub-pixels in L area and H area are both GGRB (as shown in
First, using the gamma correction method of the present application, a target pixel grayscale corresponding to a current display luminance of H area may be determined according to the following formula:
Herein, LvH-spec is a grayscale luminance of a current display luminance displayed in the second display area (H area), Lvi is a grayscale luminance corresponding to a preset pixel grayscale displayed in the first display area (L area), i is a value of the preset pixel grayscale, GrayH-spec is a target pixel grayscale corresponding to the grayscale luminance of the current display luminance displayed in H area, and Gamma is a gamma correction parameter value, that is, gamma correction index. The gamma correction parameter value may be 1.8, 2.0, 2.2, 2.4 and 2.6. Different gamma correction parameter values represent different values of luminance adjustment. Since Gamma 2.2 has been the current standard for Windows and Apple, and displays with Gamma 2.2 may produce almost optimal color, this level provides the best balance for true color, and is used as a standard for graphics and video professionals, therefore, the present application is illustrated by taking a case where the gamma correction parameter value Gamma is 2.2 as an example.
Specifically, taking the current luminance value of H area at a preset pixel grayscale of 255 as an example, a gray scale at which the current display luminance specification of H area is located is first determined according to the following formula:
Herein, LvH-spec is a grayscale luminance of a current display luminance displayed in the second display area (H area), Lv255 is a grayscale luminance corresponding to a preset pixel grayscale displayed in the first display area (L area) when the preset pixel grayscale is 255, GrayH-spec is a target pixel grayscale corresponding to the grayscale luminance of the current display luminance displayed in H area, and Gamma is a gamma correction parameter value, that is, gamma correction index. The gamma correction parameter value may be 1.8, 2.0, 2.2, 2.4 and 2.6. Different gamma correction parameter values represent different values of luminance adjustment. Since Gamma 2.2 has been the current standard for Windows and Apple, and displays with Gamma 2.2 may produce almost optimal color, this level provides the best balance for true color, and is used as a standard for graphics and video professionals, therefore, the present application is illustrated by taking a case where the gamma correction parameter value Gamma is 2.2 as an example.
Then, a value of the remapping parameter Remap may be calculated according to the following conditional formula:
Remap=GrayH-spec/255
Assuming that the 239th grayscale of H area is the current display luminance data at this time, the remapping parameter Remap is 239/255. In the post-processing flow of demura, a gain value (Gain) of a position in the H area is defined as remap*Gain. In this case, the display grayscale Gray-out output after gamma correction of H area may be expressed as the following formula:
Gray-out=Gray-in*Remap*Gain+Offset
In addition, a display grayscale Gray-out output after gamma correction of L area may be expressed as the following formula:
Gray-out=Gray-in*Gain+Offset
In the above formulas, Gray-out represents an output grayscale, Gray-in represents an input grayscale, Gain represents a gain value, and Offset represents a compensation value.
It may be understood that the mura compensation algorithm (demura) is to brighten areas which it considers darker, or darken brighter areas which it considers brighter, or eliminate areas which it considers having color deviation. The ultimate goal is to make different areas in the display panel have roughly the same color, which requires a smooth demura algorithm to eliminate Mura boundaries.
Then, a remapping parameter (remap) of the second display area (H area) is determined based on the current display luminance and the preset pixel grayscale, and the remapping parameter (remap) may be a ratio of a grayscale value corresponding to the current display luminance value and a grayscale value corresponding to the current luminance value. For example, when the input voltage value is U, the luminance value of the first display area (L area) is the luminance value L1 that meets the target specification, and due to the larger pixel density of H area, the current display luminance value of the second display area (H area) will be larger than the luminance value L1, which is assumed to be the luminance value L2, for example, the grayscale corresponding to the luminance value L2 is the 255th grayscale, in this case, the luminance value L1 is used as the current display luminance value of the second display area (H area), and the corresponding grayscale value obtained according to the gamma characteristic curve is the 239th grayscale, and the remapping parameter remap equal to 239/255 is obtained.
After that, the pixel grayscale of the first gamma correction data is compensated according to the remapping parameter to obtain the second gamma correction data. It may be understood that, as shown in
L area and H area compensated by the remapping parameter and mura compensation algorithm can meet gamma 2.2 curve (as shown in
In the present application, the remapping parameter remap of the second display area is determined according to the current display luminance data, the first gamma correction data obtained after gamma correction of L area is compensated according to the remapping parameter remap to obtain the second gamma correction data, and then the second display area is controlled to display according to the second gamma correction data based on the mura compensation algorithm. Finally, both L area and H area of the display panel can meet the gamma 2.2 curve, so that the current display luminance and chrominance of the whole display panel are consistent with the target specification requirements.
In order to realize the above embodiments, referring to
In an embodiment of the present application, referring to
In an embodiment of the present application, referring to
In an embodiment of the present application, referring to
The gamma correction apparatus 10 of the present application realizes gamma correction of different display regions in the display panel by compensating the first gamma correction data according to the remapping parameter to obtain the second gamma correction data, and can adjust the gamma characteristics of different regions to a consistent state without the addition of a device and a new chip.
Referring to
In an embodiment of the present application, the processor 31 is further configured to: tune a plurality of pixel grayscale binding points from the highest pixel grayscale to the lowest pixel grayscale in the first display area respectively to obtain a plurality of grayscale luminances respectively corresponding to the plurality of pixel grayscale binding points; combining the plurality of pixel grayscale binding points and the grayscale luminances respectively corresponding to the plurality of pixel grayscale binding points to obtain the first gamma correction data.
In an embodiment of the present application, the processor 31 is further configured to control the first display area to display according to the first gamma correction data based on a mura compensation algorithm.
In an embodiment of the present application, referring to
The computer program 41, when executed by one or more processors 42, implements the acts of the gamma correction method of any of the above implementations.
For example, the program, when executed by the processor 42, implements the following acts of the gamma correction method.
In S11, the first display area is controlled to display a test picture.
In S12, gamma correction is performed on the first display area to obtain first gamma correction data.
In S13, a second display area is controlled to display the test picture according to the first gamma correction data.
In S14, a current display luminance corresponding to the test picture displayed by the second display area is acquired.
In S15, a remapping parameter of the second display area is determined based on a grayscale luminance corresponding to the current display luminance displayed in the second display area and a preset pixel grayscale, when the current display luminance is the same as a display luminance corresponding to the preset pixel grayscale displayed in the first display area.
In S16, the first gamma correction data is compensated according to the remapping parameter to obtain second gamma correction data.
In S17, the second display area is controlled to display according to the second gamma correction data.
The computer-readable storage medium 40 may be disposed within the processor 42 or a data source reader. In this case, the processor 42 or the data source reader can communicate with a cloud server to retrieve the corresponding computer program 41.
It may be understood that the computer program 41 includes a computer program code. The computer program code may be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include any entity or apparatus capable of carrying computer program code, recording medium, an USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a Read-Only Memory (ROM), a Random Access Memory (RAM), a software distribution medium, etc.
By realizing gamma correction of different pixel regions in a novel display panel (AMOLED), the gamma correction method and apparatus, electronic device, and readable storage medium according to the present application can adjust the gamma characteristics of different regions of the novel display panel to a consistent state without the addition of a gamma correction device and a new chip, and the luminance and chrominance of the panel meet the target specification and the mass production performance is high.
The gamma correction method and apparatus, electronic device, and readable storage medium according to the present application realizes gamma correction of different display regions in the display panel by compensating the first gamma correction data according to the remapping parameter to obtain the second gamma correction data, and can adjust the gamma characteristics of different regions to a consistent state without the addition of a device and a new chip.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2020/136234 | 12/14/2020 | WO |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2022/126337 | 6/23/2022 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
8624942 | Jeon | Jan 2014 | B2 |
20150145894 | Kim et al. | May 2015 | A1 |
20160180765 | Hwang et al. | Jun 2016 | A1 |
20180204529 | Chen | Jul 2018 | A1 |
20190130844 | Yang et al. | May 2019 | A1 |
20210134242 | Hei | May 2021 | A1 |
20210343258 | Kim | Nov 2021 | A1 |
20220139336 | Jeon | May 2022 | A1 |
20220366832 | Bae | Nov 2022 | A1 |
Number | Date | Country |
---|---|---|
104505010 | Apr 2015 | CN |
106023916 | Oct 2016 | CN |
106782307 | May 2017 | CN |
107665666 | Feb 2018 | CN |
111968572 | Nov 2020 | CN |
Entry |
---|
International Search Report for PCT/CN2020/136234 dated Jul. 26, 2021. |
Number | Date | Country | |
---|---|---|---|
20240112616 A1 | Apr 2024 | US |