CN114333670B - Gamma correction method and device, electronic equipment and storage medium - Google Patents

Gamma correction method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114333670B
CN114333670B CN202111510139.7A CN202111510139A CN114333670B CN 114333670 B CN114333670 B CN 114333670B CN 202111510139 A CN202111510139 A CN 202111510139A CN 114333670 B CN114333670 B CN 114333670B
Authority
CN
China
Prior art keywords
value
values
register values
register
adjustment
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.)
Active
Application number
CN202111510139.7A
Other languages
Chinese (zh)
Other versions
CN114333670A (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.)
Beijing Mgga Technology Co ltd
Original Assignee
Beijing Mgga Technology 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 Beijing Mgga Technology Co ltd filed Critical Beijing Mgga Technology Co ltd
Priority to CN202111510139.7A priority Critical patent/CN114333670B/en
Publication of CN114333670A publication Critical patent/CN114333670A/en
Priority to PCT/CN2022/133701 priority patent/WO2023103774A1/en
Application granted granted Critical
Publication of CN114333670B publication Critical patent/CN114333670B/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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The embodiment of the invention provides a gamma correction method and system, control equipment and a storage medium. The gamma correction method comprises the following steps: the acquisition step: acquiring actual brightness values of the current binding points, which correspond to the register values of the preset number one by one; the preset number is more than or equal to 2; determining: according to the obtained actual brightness value and the ideal brightness value of the current binding point, selecting and determining two register values from a preset number of register values as adjustment register values; an adjustment step: determining a new register value according to the determined two adjustment register values; the method comprises the following steps: when the new register value of the current binding point does not meet the requirement of gamma correction, the acquisition step is carried out again, and in the acquisition step, the actual brightness value of the current binding point, which corresponds to the new register value and the two adjustment register values one by one, is acquired. The gamma correction method is convenient to use, high in adjustment speed and high in adjustment precision.

Description

Gamma correction method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of display panel detection, and more particularly, to a gamma correction method and apparatus, an electronic device, and a storage medium.
Background
The light-emitting brightness of the display device is in a linear relation with the input gray value (or called value), and human eyes have gamma characteristics. The gamma characteristic refers to: the human eyes are sensitive to the brightness change in the low-brightness environment, and are insensitive to the brightness change in the high-brightness environment, and the gray level recognized by the human eyes is in an exponential relation of 1/gamma with the brightness of the display device. In order to ensure that the human eye can obtain a uniform brightness feeling at a uniform display gray level, gamma correction is required to be performed on the original display data in advance. Through correction, the linear relation of human eye brightness feeling relative to the input gray value can be obtained.
The principle of gamma correction is to correct a gamma curve by selecting a plurality of gray scale values as binding points, and the shape of the gamma curve can be controlled by the corrected binding points. The whole adjustment time of the current gamma correction technology is long, and the correction precision is not high, which is a problem to be solved in the prior art.
Disclosure of Invention
The present invention has been made in view of the above-described problems. The invention provides a gamma correction method and system, a control device and a storage medium.
According to an aspect of the present invention, there is provided a gamma correction method including: the acquisition step: acquiring actual brightness values of the current binding points, which correspond to the register values of the preset number one by one; the preset number is more than or equal to 2; determining: according to the obtained actual brightness value and the ideal brightness value of the current binding point, selecting and determining two register values from a preset number of register values as adjustment register values; an adjustment step: determining a new register value according to the determined two adjustment register values; the method comprises the following steps: when the new register value of the current binding point does not meet the requirement of gamma correction, the acquisition step is carried out again, and in the acquisition step, the actual brightness value of the current binding point, which corresponds to the new register value and the two adjustment register values one by one, is acquired.
Illustratively, in the determining step: when the ideal brightness value is positioned between any two actual brightness values, determining two register values corresponding to the actual brightness values nearest to the two sides of the ideal brightness value as two adjustment register values; and/or when the ideal brightness value is the minimum value, determining two register values corresponding to two actual brightness values closest to the ideal brightness value as two adjustment register values; and/or when the ideal brightness value is the maximum value, determining two register values corresponding to two actual brightness values closest to the ideal brightness value as two adjustment register values.
Illustratively, in the adjusting step: when the ideal brightness value is positioned between the actual brightness values corresponding to the two adjustment register values, a new register value determined according to the two adjustment register values is positioned between the two adjustment register values; and/or when the ideal brightness value is greater than the actual brightness value corresponding to the two adjustment register values, determining a new register value according to the two adjustment register values to be greater than the two adjustment register values; and/or when the ideal brightness value is smaller than the actual brightness value corresponding to the two adjustment register values, determining a new register value according to the two adjustment register values to be smaller than the two adjustment register values.
Illustratively, in the adjusting step: when the ideal brightness value is located between the actual brightness values corresponding to the two adjustment register values, calculating a new register value according to the two adjustment register values and a first preset formula, wherein the first preset formula is as follows: g3 = (g1+g2)/2; and/or when the ideal brightness value is greater than the actual brightness value corresponding to the two adjustment register values, calculating a new register value according to the two adjustment register values and a second preset formula, wherein the second preset formula is as follows: g3 = |g1-g2|; and/or when the ideal brightness value is smaller than the actual brightness value corresponding to the two adjustment register values, calculating a new register value according to the two adjustment register values and a third preset formula, wherein the third preset formula is as follows: g3 =g1+g2; wherein G1 and G2 are two adjustment register values and G3 is a new register value.
Illustratively, the acquiring step includes: and acquiring two actual brightness values of the current binding point, which correspond to the register values with the preset number of 2 one by one.
Illustratively, the difference between the two preset register values is greater than a preset threshold value.
Illustratively, the entering step further comprises: entering a repeating step when the current binding point meets the requirement of gamma correction; repeating the steps of: the next binding point is subjected to an acquisition step until all binding points meet the requirement of gamma correction; the preset register values for all binding points are the same.
Illustratively, prior to the determining step, the method further comprises: obtaining a minimum actual brightness value and a maximum actual brightness value respectively corresponding to a minimum register value and a maximum register value of a current display panel; calculating constant coefficients of an ideal gamma correction curve according to the minimum register value, the maximum register value, the preset gamma value and a gamma correction curve formula to obtain an ideal gamma curve; and calculating ideal brightness values of the current binding point, which are in one-to-one correspondence with the preset number of register values, according to the calculated ideal gamma curve.
According to another aspect of the present invention, there is provided a gamma correction apparatus including: the acquisition module is used for acquiring actual brightness values of the current binding points, which correspond to the register values of the preset number one by one; the preset number is more than or equal to 2; the determining module is used for selecting and determining two register values from the preset number of register values to serve as adjustment register values according to the obtained actual brightness values and the ideal brightness values of the current binding points; the adjusting module is used for determining a new register value according to the determined two adjusting register values; the access module is used for triggering the acquisition module to work when the new register value of the current binding point does not meet the requirement of gamma correction, and is used for acquiring the actual brightness value of the current binding point, which corresponds to the new register value and the two adjustment register values one by one, in the acquisition module.
According to another aspect of the present invention, there is provided an electronic device comprising a processor and a memory, wherein the memory stores computer program instructions for performing the gamma correction method described above when the computer program instructions are executed by the processor.
According to another aspect of the present invention, there is provided a storage medium having stored thereon program instructions for performing the above gamma correction method when run.
According to the gamma correction method and device, the electronic equipment and the storage medium, for each binding point, the new register value can be automatically adjusted and determined only according to the preset register values of the preset quantity until the new register value meets the gamma correction requirement, and the quantity of the preset register values can be at least 2. The gamma correction method is convenient to use, high in adjustment speed and high in adjustment precision.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent from the following more particular description of embodiments of the present invention, as illustrated in the accompanying drawings. The accompanying drawings are included to provide a further understanding of embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, and not constitute a limitation to the invention. In the drawings, like reference numerals generally refer to like parts or steps.
FIG. 1 shows a schematic flow chart of a gamma correction method according to one embodiment of the invention;
FIG. 2a shows a schematic diagram of determining new register values according to one embodiment of the invention;
FIG. 2b illustrates a schematic diagram of determining new register values according to one embodiment of the invention;
FIG. 2c illustrates a schematic diagram of determining new register values according to one embodiment of the invention;
FIG. 3 shows a schematic block diagram of a gamma correction device according to one embodiment of the present invention; and
fig. 4 shows a schematic block diagram of an electronic device according to an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, exemplary embodiments according to the present invention will be described in detail with reference to the accompanying drawings. It should be apparent that the described embodiments are only some embodiments of the present invention and not all embodiments of the present invention, and it should be understood that the present invention is not limited by the example embodiments described herein. Based on the embodiments of the invention described in the present application, all other embodiments that a person skilled in the art would have without inventive effort shall fall within the scope of the invention.
In order to at least partially solve the above-mentioned problems, an embodiment of the present invention provides a gamma correction method. According to the method, gamma correction can be rapidly and accurately realized.
The gamma correction for the display panel under test may be achieved by a gamma correction system associated with the display panel under test. By way of example and not limitation, the gamma correction system may include a power supply, an image signal generator (PG), an illuminometer, an upper computer, and the like. For example, the power supply may supply power to the display panel under test. The PG can output a register value of each of several binding points required for gamma correction to the display panel to be measured. The illuminometer can measure the actual brightness value actually displayed on the display panel to be measured and send the actual brightness value to the upper computer. The upper computer can compare the ideal brightness value with the actual brightness value which is actually measured, and adjust the register value output by the PG according to the comparison result. The above process is repeated until the actual brightness value actually measured approaches the ideal brightness value within the preset range. In the above manner, all binding points are corrected in turn. Writing the corrected register values of the binding points into a control chip of the display panel to be tested, wherein the control chip can perform gamma correction on the display panel to be tested according to the corrected register values of the binding points.
A gamma correction method according to an embodiment of the present invention is described below with reference to fig. 1. Fig. 1 shows a schematic flow chart of a gamma correction method 100 according to one embodiment of the invention.
As shown in fig. 1, the gamma correction method 100 includes an acquisition step S110, a determination step S120, an adjustment step S130, and a proceeding step S140.
In the step S110, acquiring actual brightness values of the current binding point, which correspond to the preset number of register values one by one; the preset number is greater than or equal to 2.
In the field of display panels, each register value is generally referred to as a gray-scale value for convenience of description. For example, the register value is an 8-bit binary number, which may represent a gray scale value from 0 to 255. For example, the register value is 11111111, and the corresponding gray-scale value is 255.
In the present embodiment, the preset number is preferably equal to 2. This is by way of example only and not limitation, and the preset number may be any other suitable value. Even if more than 2 register values are initially set, it is still necessary to write the register values one by one and light up the screen one by one, consistent with the above strategy of calculating new register values by deduction of 2 register values, with no substantial improvement in efficiency. Therefore, ensuring the minimum requirement of 2 register values can achieve gamma correction with higher efficiency.
After the image signal generator outputs each preset register value of the current binding point to the current display panel, an actual brightness value corresponding to each register value can be acquired through the illuminometer. The setting manner of the register value and the collecting manner of the brightness value have been described above, and will not be described herein. The preset number of register values may correspond to the preset number of actual luminance values.
In the determining step S120, two register values are selected and determined as adjustment register values from the preset number of register values according to the obtained actual brightness value and the ideal brightness value of the current binding point.
Each binding point corresponds to its own ideal luminance value I0. The host computer may calculate the ideal brightness value I0 of the current binding point according to the ideal gamma curve, or the user may input the ideal brightness value I0 of the current binding point to the host computer.
Two adjustment register values may be selected among the preset number of register values based on a difference between the preset number of actual luminance values and the ideal luminance value, which were previously acquired. For example, if the preset number of actual luminance values are on the same side of the ideal luminance value, for example, all are larger than the ideal luminance value or all are smaller than the ideal luminance value, two register values corresponding to two actual luminance values closest to the ideal luminance value may be selected as the adjustment register values. Further, for example, if the ideal luminance value is between any two actual luminance values among the preset number of actual luminance values, two register values corresponding to the actual luminance values closest to both sides of the ideal luminance value may be selected as the two adjustment register values. However, the above embodiments are merely examples and are not limiting of the present invention. Other register values may also be selected as adjustment register values in the present invention.
In an adjustment step S130, a new register value is determined from the determined two adjustment register values.
The new register value may be determined based on a magnitude relation between the ideal luminance value and two actual luminance values corresponding to the two adjustment register values. By way of example and not limitation, the new register value may be determined by: the relative magnitude relation between the new register value and the two adjustment register values and the relative magnitude relation between the ideal brightness value and the two actual brightness values corresponding to the two adjustment register values are kept consistent.
When the step S140 is entered, the current binding point enters the obtaining step again when the new register value does not meet the requirement of gamma correction, and in the obtaining step, the actual brightness value of the current binding point corresponding to the new register value and the two adjustment register values one by one is obtained.
Illustratively, it may be determined whether the new register value of the current binding point meets the gamma correction requirement according to one of the following ways:
(1) Acquiring an actual brightness value corresponding to the new register value, judging whether the difference between the actual brightness value corresponding to the new register value and the ideal brightness value is within the brightness value error range, and if so, determining that the new register value of the current binding point meets the gamma correction requirement;
(2) Calculating a theoretical register value corresponding to the ideal brightness value based on the ideal brightness value and the ideal gamma curve, judging whether the difference between the new register value and the theoretical register value corresponding to the ideal brightness value is within a register value error range, and if so, determining that the new register value of the current binding point meets the gamma correction requirement;
(3) And calculating an actual gamma value based on the new register value and the ideal gamma curve, judging whether the difference between the actual gamma value and the target gamma value is within the gamma value error range, and if so, determining that the new register value of the current binding point meets the requirement of gamma correction.
Any one of the above-described luminance value error range, register value error range, and gamma value error range may be a preset range, and the size thereof may be set to any suitable size.
Steps S110-S140 may be performed in a loop until the new register value of the current binding point meets the gamma correction requirement. When the new register value meets the requirement of gamma correction, the new register value can be written into the display panel to be tested as the result of gamma correction.
According to the gamma correction method of the embodiment of the invention, for each binding point, the new register value can be automatically adjusted and determined only according to the preset register values of the preset number until the new register value meets the gamma correction requirement, and the number of the preset register values can be 2 at least. The gamma correction method is convenient to use, high in adjustment speed and high in adjustment precision.
According to an embodiment of the present invention, in the determining step S120: when the ideal brightness value is positioned between any two actual brightness values, determining two register values corresponding to the actual brightness values nearest to the two sides of the ideal brightness value as two adjustment register values; and/or when the ideal brightness value is the minimum value, determining two register values corresponding to two actual brightness values closest to the ideal brightness value as two adjustment register values; and/or when the ideal brightness value is the maximum value, determining two register values corresponding to two actual brightness values closest to the ideal brightness value as two adjustment register values.
When the ideal brightness value is located between any two actual brightness values, two register values corresponding to the actual brightness values closest to the two sides of the ideal brightness value are determined to be two adjustment register values, so that the two register values corresponding to the actual brightness values relatively closest to the two sides of the ideal brightness value can be conveniently obtained, and the brightness value corresponding to the new register value determined based on the two register values can be as close to the ideal brightness value as possible. When the ideal luminance value is the maximum value (i.e., greater than all the actual luminance values acquired in the acquiring step S110) or the minimum value (i.e., less than all the actual luminance values acquired in the acquiring step S110), two register values corresponding to the two actual luminance values closest to the ideal luminance value are determined as two adjustment register values, which facilitates determining a new register value based on the two register values corresponding to the two actual luminance values closest to the ideal luminance value, and further enables the luminance value corresponding to the determined new register value to be as close as possible to the ideal luminance value.
According to an embodiment of the present invention, in the adjustment step S130: when the ideal brightness value is positioned between the actual brightness values corresponding to the two adjustment register values, a new register value determined according to the two adjustment register values is positioned between the two adjustment register values; and/or when the ideal brightness value is greater than the actual brightness value corresponding to the two adjustment register values, determining a new register value according to the two adjustment register values to be greater than the two adjustment register values; and/or when the ideal brightness value is smaller than the actual brightness value corresponding to the two adjustment register values, determining a new register value according to the two adjustment register values to be smaller than the two adjustment register values.
As described above, the new register value may be determined by: the relative magnitude relation between the new register value and the two adjustment register values and the relative magnitude relation between the ideal brightness value and the two actual brightness values corresponding to the two adjustment register values are kept consistent.
By the setting mode of the new register value, the brightness value corresponding to the new register value can be enabled to approach to an ideal brightness value as soon as possible.
According to an embodiment of the present invention, in the adjustment step S130: when the ideal brightness value is located between the actual brightness values corresponding to the two adjustment register values, calculating a new register value according to the two adjustment register values and a first preset formula, wherein the first preset formula is as follows: g3 = (g1+g2)/2; and/or when the ideal brightness value is greater than the actual brightness value corresponding to the two adjustment register values, calculating a new register value according to the two adjustment register values and a second preset formula, wherein the second preset formula is as follows: g3 = |g1-g2|; and/or when the ideal brightness value is smaller than the actual brightness value corresponding to the two adjustment register values, calculating a new register value according to the two adjustment register values and a third preset formula, wherein the third preset formula is as follows: g3 =g1+g2; wherein G1 and G2 are two adjustment register values and G3 is a new register value.
The first, second, and third predetermined formulas herein are merely examples and are not limiting of the present invention, and the new register values of the present invention are not limited to this manner of calculation.
An exemplary overall flow of the gamma correction method is described below in conjunction with fig. 2a-2c to aid in understanding the manner in which the new register values are calculated in the above-described embodiments.
Step S1: the upper computer obtains the ideal brightness value I0 of the current binding point through calculation according to the ideal gamma curve, or the user inputs the ideal brightness value I0 of the current binding point to the upper computer.
Step S2: the upper computer outputs two initial register values G1 and G2 (G1 > G2) of the current binding point to the current display panel via the image signal generator, and G1 may be a register value obtained after gamma correction of the same type of display panel as the current display panel, or may be a register value without gamma correction. The difference between G2 and G1 is greater than a preset threshold. Referring to FIGS. 2a-2c, G1 and G2 are shown.
Step S3: the illuminometer collects actual brightness values I1 and I2 of the current display panel under two initial register values G1 and G2, and sends the actual brightness values I1 and I2 to the upper computer, the upper computer can respectively compare the actual brightness values I1 and I2 with an ideal brightness value I0 (namely, the 3 brightness values are compared), and the comparison result can be divided into the following three situations:
case 1): if one of the luminance values I1 and I2 is greater than I0 and one of the luminance values is less than I0, i.e., I0 is between I1 and I2, the register value output from the image signal generator may be adjusted to G3 by the host computer such that g3= (g1+g2)/2 (formula 1).
Case 1) reference may be made to fig. 2a, which shows a schematic diagram of determining new register values according to one embodiment of the invention. In fig. 2a, the positions of the 1 st to 5 th register values are marked by (1), (2), (3), (4), (5), wherein the 1 st to 2 nd register values are the initial register values and the 3 rd to 5 th register values are in turn the new register values determined during the next round of cycles. The 3 rd register value is a new register value determined using formula (1) based on G1 and G2.
Case 2): if both I1 and I2 are greater than I0, i.e., I0 is the minimum value, the register value output from the image signal generator is adjusted to G3 by the host computer such that g3= |g1-g2| (formula 2).
Case 2) reference may be made to fig. 2b, which shows a schematic diagram of determining new register values according to one embodiment of the invention. In fig. 2b, the positions of the 1 st to 5 th register values are marked by (1), (2), (3), (4), (5), wherein the 1 st to 2 nd register values are the initial register values and the 3 rd to 5 th register values are the new register values determined during each round of the loop, respectively. The 3 rd register value is a new register value determined using formula (2) based on G1 and G2.
Case 3): if both I1 and I2 are smaller than I0, i.e., I0 is the maximum value, the register value output from the image signal generator is adjusted to G3 by the host computer such that g3=g1+g2 (formula 3).
Case 3) reference may be made to fig. 2c, which illustrates a schematic diagram of determining new register values according to one embodiment of the invention. In fig. 2c, the positions of the 1 st to 5 th register values are marked by (1), (2), (3), (4), (5), wherein the 1 st to 2 nd register values are the initial register values and the 3 rd to 5 th register values are the new register values determined during each round of the loop, respectively. The 3 rd register value is a new register value determined using formula (3) based on G1 and G2.
Step S4: the illuminometer collects the actual brightness value I3 under the register value G3 and sends the actual brightness value I3 to the upper computer, and the upper computer compares the I1, the I2 and the I3 with the I0 (namely, compares the 4 brightness values).
The comparison result in step S4 may be divided into the following three cases:
case 1): if I0 is located between any two luminance values of I1, I2 and I3, the register value output by the image signal generator is adjusted to be G4 by the upper computer, so that g4=half of the sum of the register values corresponding to the two endpoint luminance values in the nearest range (corresponding to formula 1). The nearest range is the range formed by the two luminance values that most recently surround I0.
For example, as shown in fig. 2a, I0 is between I3 and I1, and g4= (g1+g3)/2 is calculated according to formula 1, which corresponds to discarding I2 that is not in the range of I3 and I1. For another example, as shown in fig. 2b, if I0 is between I3 and I2, g4= (g2+g3)/2 is calculated according to formula 1, which corresponds to discarding I1 that is not in the range of I3 and I2. As another example, as shown in fig. 2c, I0 is between I3 and I2, and g4= (g2+g3)/2 is calculated according to formula 1, which corresponds to discarding I1 that is not in the range of I3 and I2.
Case 2): if I0 is smaller than the minimum value of I1, I2 and I3, i.e. I0 is the minimum value, the upper computer adjusts the register value output by the image signal generator to be G4, so that g4=the absolute value of the difference between the register values corresponding to the two luminance values nearest to I0 (corresponding to formula 2). For example, if I0 is the minimum and I1 is the maximum, this corresponds to discarding I1 farthest from I0, and g4= -I (G3-G2).
Case 3): if I0 is greater than the maximum value of I1, I2 and I3, i.e., I0 is the maximum value, the register value output by the image signal generator is adjusted to be G4 by the upper computer, so that the register values corresponding to the two luminance values closest to I0 are summed (corresponding to formula 3). For example, if I0 is the maximum value and I1 is the minimum value, and I1 which is the farthest distance from I0 is discarded, g4=g2+g3.
The principle in this step S4 is: if I0 is the maximum value or the minimum value in the 4 brightness values, discarding one brightness value farthest from I0; if I0 is within the range of any two of the remaining 3 luminance values among the 4 luminance values, discarding the remaining one luminance value, and calculating a new register value G4 (specifically, the above calculation method) of the next time by discarding the register values corresponding to the remaining 2 luminance values.
Step S5: the actual brightness value I4 when the register value is G4 is acquired by the illuminometer and is sent to the upper computer, and the upper computer compares I4 with the remaining two brightness values I1, I2 and I3 adopted in the process of calculating G4 and I0. In step S5, the compared brightness values are: the remaining 2 luminance values I0, I4 and step S4, namely, the total of 4 luminance values, are compared, and the comparison and judgment process is similar to step S4. In practice, step S5 corresponds to the repetition of step S4, wherein I4 is identical to I3 in step S4, and "the remaining two luminance values of I1, I2, and I3 employed in calculating G4" are identical to I1 and I2 in step S4.
This is further described below in connection with fig. 2a-2 c: as shown in fig. 2a, I2 farthest from I0 is discarded in step S4, and the sizes of I1, I4, I3, I0 are determined in step S5, I0 is between I3 and I4, and I1 needs to be discarded at this time, since I0 is between I3 and I4, g5= (g3+g4)/2 can be calculated; as shown in fig. 2b, I1 is discarded in step S4, and the sizes of I2, I4, I3, I0 are determined in step S5, I0 is located between I2 and I4, and I3 needs to be discarded at this time, and g5= (g2+g4)/2 can be calculated because I0 is located between I2 and I4; as shown in fig. 2c, I1 is discarded in step S4, and the sizes of I2, I4, I3, I0 are determined in step S5, I0 is located between I2 and I4, and I3 needs to be discarded at this time, and g5= (g2+g4)/2 can be calculated because I0 is located between I2 and I4.
Step S6: and repeatedly executing the steps of determining the new register value until the final new register value meets the requirement of gamma correction. In the above description, in and Gn correspond to the n-2 th repetition of step S4.
It should be noted that, in the above steps S3 to S6, each step is not strictly performed in order, and there may be a case where a certain step is performed a plurality of times in succession to jump to the next step. For example, for step S4, while G3 is shown in FIGS. 2a-2c as being on the other side of G0 relative to G1 and/or G2, i.e., G0 is always located between some two of G1, G2, and G3 (i.e., case 1 in step S4)), this is also merely an example. In practice, it is also possible that the first calculated G3 is on the same side of G0 as both G1 and G2 (i.e. case 2) or 3 in step S4), so that it may be necessary to iterate step S5 several times before it appears that the new register value is on the other side of G0 with respect to at least one of the two adjustment register values (i.e. case 1) in step S4).
According to an embodiment of the present invention, the acquiring step includes: and acquiring two actual brightness values of the current binding point, which correspond to the register values with the preset number of 2 one by one.
The register values are initially set to 2 so that the adjustment register value at the current cycle can be determined directly. This scheme is relatively faster than setting the initial register value to more than 2. As described above, even when more than 2 register values are initially set, it is still necessary to write the register values one by one and light up the screen one by one, in agreement with the above-described strategy of calculating new register values by deduction of 2 register values, there is little improvement in efficiency. Therefore, ensuring the minimum requirement of 2 register values can achieve gamma correction with higher efficiency.
According to an embodiment of the invention, the difference between the two preset register values is greater than a preset threshold value. The preset threshold may be any suitable value, which may be set as desired, and the present invention is not limited thereto.
According to an embodiment of the present invention, the entering step S140 may further include: entering a repeating step when the current binding point meets the requirement of gamma correction; repeating the steps of: the next binding point is subjected to an acquisition step until all binding points meet the requirement of gamma correction; the preset register values for all binding points are the same. The acquiring step S110 may include: and acquiring at least two actual brightness values corresponding to the register values in a one-to-one mode, wherein the register values correspond to the preset number of the actual brightness values, for each binding point in all binding points.
The preset register values of all binding points are set to be the same, so that the process of measuring the actual brightness value can be reduced, and only the first binding point is measured, and the later binding points only need to directly and automatically adjust by using the actual brightness value. The register values of all binding points are conveniently and uniformly set and managed, the operation amount of a user can be reduced, and the gamma correction efficiency is improved.
An exemplary embodiment of calculating ideal luminance values corresponding to respective binding points is described below.
According to an embodiment of the present invention, before the determining step, the method 100 may further include: obtaining a minimum actual brightness value and a maximum actual brightness value respectively corresponding to a minimum register value and a maximum register value of a current display panel; calculating constant coefficients of an ideal gamma correction curve according to the minimum register value, the maximum register value, the preset gamma value and a gamma correction curve formula to obtain an ideal gamma curve; and calculating ideal brightness values of the current binding point, which are in one-to-one correspondence with the preset number of register values, according to the calculated ideal gamma curve.
The ideal gamma correction curve can be expressed by the following formula:
I=C·X γ
wherein X is a register value corresponding to each binding point; gamma is a target gamma value; i is the brightness value corresponding to each binding point; c is a constant coefficient representing the mapping coefficient of register values to brightness values for each binding point in the gamma correction process.
The ideal value of the target gamma value gamma is also a known constant.
First, a minimum luminance value corresponding to a panel minimum register value and a maximum luminance value corresponding to a panel maximum register value of a current display panel are determined, and a constant coefficient C value is obtained based thereon. In addition, the target gamma value γ is generally specified by the system, and there is a strict constraint on the deviation of the target gamma value γ in the gamma correction process. The actual gamma value after correction is generally required to fall within the range of [ gamma-delta gamma, gamma + delta gamma ], where delta gamma is also specified by the system and is a small amount relative to gamma to ensure the accuracy of gamma correction. The above describes an embodiment of determining whether the current binding point meets the requirement of gamma correction based on the gamma value error, and will not be described herein.
For any of several binding points of the current display panel, there is a corresponding register value (set to X) and the desired luminance value I0 that is desired to be output. The gamma correction process is to indirectly adjust the output brightness value by adjusting the value of the register value G corresponding to the binding point (for an 8-bit register, the register value is an integer value changing between 0 and 255), and continuously approach the ideal brightness value I0 until the gamma correction requirement is met, and the register value adjustment of the binding point can be finished.
According to another aspect of the present invention, a gamma correction device is provided. Fig. 3 shows a schematic block diagram of a gamma correction device 300 according to one embodiment of the invention.
As shown in fig. 3, the gamma correction device 300 according to an embodiment of the present invention includes an acquisition module 310, a determination module 320, an adjustment module 330, and an entry module 340. The various modules may perform the various steps/functions of the gamma correction method described above in connection with fig. 1-2c, respectively. Only the main functions of the respective components of the gamma correction device 300 will be described below, and the details already described above will be omitted.
The obtaining module 310 is configured to obtain an actual brightness value of the current binding point, which corresponds to the register values of the preset number one by one; the preset number is greater than or equal to 2.
The determining module 320 is configured to select and determine two register values from a preset number of register values as adjustment register values according to the obtained actual brightness value and the ideal brightness value of the current binding point.
The adjustment module 330 is configured to determine a new register value according to the determined two adjustment register values.
The entering module 340 is configured to trigger the obtaining module 310 to work when the new register value of the current binding point does not meet the requirement of gamma correction, and in the obtaining module 310, is configured to obtain an actual brightness value of the current binding point, which corresponds to the new register value and the two adjustment register values one to one.
Fig. 4 shows a schematic block diagram of an electronic device 400 according to an embodiment of the invention. The electronic device 400 includes a storage (i.e., memory) 410 and a processor 420.
The storage device 410 stores computer program instructions for implementing the respective steps in the gamma correction method 100 according to an embodiment of the present invention.
The processor 420 is configured to execute computer program instructions stored in the storage device 410 to perform the corresponding steps of the gamma correction method 100 according to an embodiment of the present invention.
Furthermore, according to still another aspect of the present invention, there is also provided a storage medium having stored thereon program instructions which, when executed by a computer or a processor, cause the computer or the processor to perform the respective steps of the above-mentioned gamma correction method 100 of the embodiment of the present invention. The storage medium may include, for example, a storage component of a tablet computer, a hard disk of a personal computer, read-only memory (ROM), erasable programmable read-only memory (EPROM), portable compact disc read-only memory (CD-ROM), USB memory, or any combination of the foregoing storage media. The computer-readable storage medium may be any combination of one or more computer-readable storage media.
Those of ordinary skill in the art will understand the specific implementation of the above-described electronic device and storage medium by reading the above description about the gamma correction method 100, and for brevity, the description is omitted here.
Although the illustrative embodiments have been described herein with reference to the accompanying drawings, it is to be understood that the above illustrative embodiments are merely illustrative and are not intended to limit the scope of the present invention thereto. Various changes and modifications may be made therein by one of ordinary skill in the art without departing from the scope and spirit of the invention. All such changes and modifications are intended to be included within the scope of the present invention as set forth in the appended claims.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names.
The foregoing description is merely illustrative of specific embodiments of the present invention and the scope of the present invention is not limited thereto, and any person skilled in the art can easily think about variations or substitutions within the scope of the present invention. The protection scope of the invention is subject to the protection scope of the claims.

Claims (9)

1. A gamma correction method, comprising:
the acquisition step: acquiring actual brightness values of the current binding points, which correspond to the register values of the preset number one by one; the preset number is greater than or equal to 2;
determining: according to the obtained actual brightness value and the ideal brightness value of the current binding point, selecting and determining two register values from the preset number of register values as adjustment register values;
an adjustment step: determining a new register value according to the determined two adjustment register values;
the method comprises the following steps: the current binding point enters the acquisition step again when the new register value does not meet the requirement of gamma correction, and in the acquisition step, the actual brightness value of the current binding point, which corresponds to the new register value and the two adjustment register values one by one, is acquired;
in the determining step:
when the ideal brightness value is positioned between any two actual brightness values, determining two register values corresponding to the actual brightness values nearest to the two sides of the ideal brightness value as the two adjustment register values; and/or
When the ideal brightness value is the minimum value, determining two register values corresponding to two actual brightness values closest to the ideal brightness value as the two adjustment register values; and/or
When the ideal brightness value is the maximum value, determining two register values corresponding to two actual brightness values closest to the ideal brightness value as the two adjustment register values;
in the adjusting step:
when the ideal brightness value is positioned between the actual brightness values corresponding to the two adjustment register values, the new register value determined according to the two adjustment register values is positioned between the two adjustment register values; and/or
When the ideal brightness value is larger than the actual brightness value corresponding to the two adjustment register values, the new register value determined according to the two adjustment register values is larger than the two adjustment register values; and/or
And when the ideal brightness value is smaller than the actual brightness value corresponding to the two adjustment register values, determining the new register value according to the two adjustment register values to be smaller than the two adjustment register values.
2. The method of claim 1, wherein in the adjusting step:
when the ideal brightness value is located between the actual brightness values corresponding to the two adjustment register values, calculating the new register value according to the two adjustment register values and a first preset formula, wherein the first preset formula is as follows: g3 = (g1+g2)/2; and/or
When the ideal brightness value is larger than the actual brightness value corresponding to the two adjustment register values, calculating the new register value according to the two adjustment register values and a second preset formula, wherein the second preset formula is as follows: g3 =g1+g2; and/or
When the ideal brightness value is smaller than the actual brightness value corresponding to the two adjustment register values, calculating the new register value according to the two adjustment register values and a third preset formula, wherein the third preset formula is as follows: g3 = |g1-g2|;
wherein G1 and G2 are the two adjustment register values and G3 is the new register value.
3. The method of claim 1 or 2, wherein the acquiring step comprises:
and acquiring two actual brightness values of the current binding point, which correspond to the register values with the preset number of 2 one by one.
4. A method as claimed in claim 3, wherein the difference between the two preset register values is greater than a preset threshold value.
5. The method of claim 1 or 2, wherein the entering step further comprises:
entering a repeating step when the current binding point meets the requirement of gamma correction;
the repeating steps: entering the acquisition step for the next binding point until all binding points meet the requirement of gamma correction;
the preset register values for all binding points are the same.
6. The method of claim 1 or 2, wherein prior to the determining step, the method further comprises:
obtaining a minimum actual brightness value and a maximum actual brightness value respectively corresponding to a minimum register value and a maximum register value of a current display panel;
calculating constant coefficients of an ideal gamma correction curve according to the minimum register value, the maximum register value, a preset gamma value and a gamma correction curve formula to obtain an ideal gamma curve;
and calculating the ideal brightness value of the current binding point, which corresponds to the preset number of register values one by one, according to the calculated ideal gamma curve.
7. A gamma correction device, comprising:
the acquisition module is used for acquiring actual brightness values of the current binding points, which correspond to the register values of the preset number one by one; the preset number is greater than or equal to 2;
the determining module is used for selecting and determining two register values from the preset number of register values to serve as adjustment register values according to the obtained actual brightness value and the ideal brightness value of the current binding point;
the adjusting module is used for determining a new register value according to the determined two adjusting register values;
the access module is used for triggering the acquisition module to work when the new register value of the current binding point does not meet the requirement of gamma correction, and is used for acquiring actual brightness values of the current binding point, which are in one-to-one correspondence with the new register value and the two adjustment register values;
the determining module comprises a first determining sub-module and/or a second determining sub-module and/or a third determining sub-module;
the first determining submodule is used for determining two register values corresponding to the actual brightness values nearest to two sides of the ideal brightness value as the two adjustment register values when the ideal brightness value is located between any two actual brightness values;
the second determining submodule is used for determining two register values corresponding to two actual brightness values closest to the ideal brightness value as the two adjustment register values when the ideal brightness value is the minimum value;
the third determining submodule is used for determining two register values corresponding to two actual brightness values closest to the ideal brightness value as the two adjustment register values when the ideal brightness value is the maximum value;
the adjusting module comprises a first adjusting sub-module and/or a second adjusting sub-module and/or a third adjusting sub-module;
the first adjustment submodule is used for determining that the new register value determined according to the two adjustment register values is located between the two adjustment register values when the ideal brightness value is located between the actual brightness values corresponding to the two adjustment register values;
the second adjustment submodule is used for determining that the new register value determined according to the two adjustment register values is larger than the two adjustment register values when the ideal brightness value is larger than the actual brightness value corresponding to the two adjustment register values;
the third adjustment submodule is used for determining that the new register value determined according to the two adjustment register values is smaller than the two adjustment register values when the ideal brightness value is smaller than the actual brightness value corresponding to the two adjustment register values.
8. An electronic device comprising a processor and a memory, wherein the memory has stored therein computer program instructions which, when executed by the processor, are adapted to carry out the gamma correction method of any of claims 1 to 6.
9. A storage medium having stored thereon program instructions for performing the gamma correction method of any of claims 1 to 6 when run.
CN202111510139.7A 2021-12-10 2021-12-10 Gamma correction method and device, electronic equipment and storage medium Active CN114333670B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111510139.7A CN114333670B (en) 2021-12-10 2021-12-10 Gamma correction method and device, electronic equipment and storage medium
PCT/CN2022/133701 WO2023103774A1 (en) 2021-12-10 2022-11-23 Gamma correction method and apparatus, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111510139.7A CN114333670B (en) 2021-12-10 2021-12-10 Gamma correction method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114333670A CN114333670A (en) 2022-04-12
CN114333670B true CN114333670B (en) 2023-06-30

Family

ID=81050648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111510139.7A Active CN114333670B (en) 2021-12-10 2021-12-10 Gamma correction method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN114333670B (en)
WO (1) WO2023103774A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114333670B (en) * 2021-12-10 2023-06-30 北京镁伽科技有限公司 Gamma correction method and device, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160016232A (en) * 2014-08-04 2016-02-15 정태보 Setting System of Gamma Of Display Device And Setting Method Thereof
CN105590587A (en) * 2016-03-24 2016-05-18 京东方科技集团股份有限公司 Gamma correcting method and device for display modules
CN106384573A (en) * 2016-11-04 2017-02-08 武汉精测电子技术股份有限公司 OLED module Gamma adjustment and calibration method based on linear interpolation calculation
CN106782283A (en) * 2017-02-27 2017-05-31 京东方科技集团股份有限公司 The gamma curve correcting method and display device of a kind of display device
CN106856083A (en) * 2015-12-09 2017-06-16 三星显示有限公司 Collect the apparatus and method of data for correcting gamma
CN108281109A (en) * 2018-01-09 2018-07-13 武汉精测电子集团股份有限公司 It is a kind of to carry out the method and device that GAMMA mixing is adjusted to OLED modules
CN108364606A (en) * 2018-02-11 2018-08-03 武汉精测电子集团股份有限公司 A kind of OLED modules gamma adjusting methods
KR20190031744A (en) * 2017-09-18 2019-03-27 엘지디스플레이 주식회사 Optical Compensation System And Method Thereof
CN111223437A (en) * 2020-03-11 2020-06-02 昆山国显光电有限公司 Gamma register calibration method, gamma register calibration device and display device
CN111243550A (en) * 2020-03-26 2020-06-05 深圳精智达技术股份有限公司 Adjusting device, adjusting method and medium for gamma voltage and white balance of display screen

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5513861B2 (en) * 2009-11-27 2014-06-04 ローム株式会社 Image correction processing device
KR102324865B1 (en) * 2014-12-29 2021-11-12 엘지디스플레이 주식회사 Organic Light Emitting Display And Luminance Control Method Of The Same
KR102622957B1 (en) * 2015-12-29 2024-01-10 삼성디스플레이 주식회사 Luminance controller and organic light emitting display device having the same
CN106448559B (en) * 2016-10-31 2019-01-18 昆山国显光电有限公司 A kind of method and device for the value adjusting display gamma register
US11244591B2 (en) * 2019-09-26 2022-02-08 Chengdu Boe Optoelectronics Technology Co., Ltd. Gamma correction method, gamma correction device and gamma correction system
CN114333670B (en) * 2021-12-10 2023-06-30 北京镁伽科技有限公司 Gamma correction method and device, electronic equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160016232A (en) * 2014-08-04 2016-02-15 정태보 Setting System of Gamma Of Display Device And Setting Method Thereof
CN106856083A (en) * 2015-12-09 2017-06-16 三星显示有限公司 Collect the apparatus and method of data for correcting gamma
CN105590587A (en) * 2016-03-24 2016-05-18 京东方科技集团股份有限公司 Gamma correcting method and device for display modules
CN106384573A (en) * 2016-11-04 2017-02-08 武汉精测电子技术股份有限公司 OLED module Gamma adjustment and calibration method based on linear interpolation calculation
CN106782283A (en) * 2017-02-27 2017-05-31 京东方科技集团股份有限公司 The gamma curve correcting method and display device of a kind of display device
KR20190031744A (en) * 2017-09-18 2019-03-27 엘지디스플레이 주식회사 Optical Compensation System And Method Thereof
CN108281109A (en) * 2018-01-09 2018-07-13 武汉精测电子集团股份有限公司 It is a kind of to carry out the method and device that GAMMA mixing is adjusted to OLED modules
CN108364606A (en) * 2018-02-11 2018-08-03 武汉精测电子集团股份有限公司 A kind of OLED modules gamma adjusting methods
CN111223437A (en) * 2020-03-11 2020-06-02 昆山国显光电有限公司 Gamma register calibration method, gamma register calibration device and display device
CN111243550A (en) * 2020-03-26 2020-06-05 深圳精智达技术股份有限公司 Adjusting device, adjusting method and medium for gamma voltage and white balance of display screen

Also Published As

Publication number Publication date
CN114333670A (en) 2022-04-12
WO2023103774A1 (en) 2023-06-15

Similar Documents

Publication Publication Date Title
CN106782283B (en) A kind of gamma curve correcting method and display device of display device
US20220346914A1 (en) Method of determining an orthodontic treatment
CN105590587B (en) A kind of gamma correction method and device for display module
US20100225663A1 (en) Method for creating gamma look-up table and display device
CN106157870A (en) The method of adjustment of display parameters, device and liquid crystal display systems
CN106506831B (en) Control method and control device
US20080079746A1 (en) Method and device of obtaining a color temperature point
CN114333670B (en) Gamma correction method and device, electronic equipment and storage medium
CN113447874B (en) Calibration device and method for semiconductor test system
CN105577932A (en) Screen brightness adjusting method and mobile terminal
CN106501917A (en) A kind of camera lens auxiliary focus adjustment method and device
CN104376835B (en) Method for adjusting brightness and electronic device
US11144149B2 (en) Methods and techniques for correcting pressure sensor data in the presence of abnormal pressure sensor readings
CN116312331B (en) Image quality adjustment control method and related device for display
CN114974098A (en) Rapid thermal shielding correction method and device for LED screen and electronic equipment
CN109559707A (en) Gamma value processing method, device and the display equipment of display panel
CN114038372A (en) Gamma adjustment method, related device and storage medium
CN114613313A (en) Gamma parameter determination method and device for display screen, electronic equipment and storage medium
CN110085187B (en) Method and device for selecting resistance value of Gamma circuit
CN111276092B (en) Optimization parameter determination method and device
CN114222101A (en) White balance adjusting method and device and electronic equipment
US7206713B2 (en) Method of adjusting strobe timing and function testing device for semiconductor device
CN113936621B (en) Correction method and related device for LCD display screen P-gamma
CN116092403B (en) Method and device for detecting voltage waveform of image signal generator and storage medium
CN116105974B (en) Configuration method of optical device driving parameters

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