CN114333670A - Gamma correction method and apparatus, electronic device, and storage medium - Google Patents

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

Info

Publication number
CN114333670A
CN114333670A CN202111510139.7A CN202111510139A CN114333670A CN 114333670 A CN114333670 A CN 114333670A CN 202111510139 A CN202111510139 A CN 202111510139A CN 114333670 A CN114333670 A CN 114333670A
Authority
CN
China
Prior art keywords
value
values
register
register values
ideal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111510139.7A
Other languages
Chinese (zh)
Other versions
CN114333670B (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Picture Signal Circuits (AREA)
  • Transforming Electric Information Into Light Information (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the invention provides a gamma correction method and system, control equipment and a storage medium. The gamma correction method includes: an acquisition step: acquiring actual brightness values of the current binding points, which correspond to register values of a preset number one by one; the preset number is greater than or equal to 2; a determination step: selecting and determining 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; an adjusting step: determining a new register value according to the determined two adjusting register values; the method comprises the following steps: and when the new register value of the current binding point does not meet the requirement of gamma correction, the acquiring step is carried out again, and in the acquiring step, the actual brightness value of the current binding point, which corresponds to the new register value and the two adjusting register values one to 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 apparatus, electronic device, 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 luminance of the display device is linearly related to the input gray scale value (or value), and human eyes have gamma characteristics. The gamma characteristic is: human eyes are sensitive to brightness change in a low-brightness environment, human eyes are insensitive to brightness change in a high-brightness environment, and the gray level recognized by the human eyes is actually 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 uniformly varying brightness feeling at a uniformly varying display gray level, it is necessary to perform gamma correction on the original display data in advance. Through correction, the linear relation of human eye brightness perception relative to the input gray value can be obtained.
The principle of gamma correction is that several gray-scale values are selected as binding points for gamma curve correction, and the shape of the gamma curve can be controlled by the corrected binding points. The existing gamma correction technology has long whole adjustment time and low correction precision, and is a problem to be solved urgently at present.
Disclosure of Invention
The present invention has been made in view of the above 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: an acquisition step: acquiring actual brightness values of the current binding points, which correspond to register values of a preset number one by one; the preset number is greater than or equal to 2; a determination step: selecting and determining 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; an adjusting step: determining a new register value according to the determined two adjusting register values; the method comprises the following steps: and when the new register value of the current binding point does not meet the requirement of gamma correction, the acquiring step is carried out again, and in the acquiring step, the actual brightness value of the current binding point, which corresponds to the new register value and the two adjusting register values one to one, is acquired.
Illustratively, in the determining step: when the ideal brightness value is between any two actual brightness values, determining two register values corresponding to the actual brightness values which are respectively closest to 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 which are 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 which are closest to the ideal brightness value as two adjustment register values.
Exemplarily, in the adjusting step: when the ideal brightness value is between the actual brightness values corresponding to the two adjustment register values, determining that a new register value is between the two adjustment register values according to 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 that the new register value is greater than the two adjustment register values according to the two adjustment register values; and/or when the ideal brightness value is less than the actual brightness value corresponding to the two adjustment register values, determining that the new register value is less than the two adjustment register values according to the two adjustment register values.
Exemplarily, in the adjusting step: when the ideal brightness value is 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 values 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; where G1 and G2 are two trim register values and G3 is a new register value.
Illustratively, the obtaining 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.
Illustratively, the difference between the two preset register values is greater than a preset threshold.
Illustratively, the entering step further comprises: entering a repeated step when the current binding point meets the requirement of gamma correction; repeating the 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 bindings are the same.
Illustratively, prior to the determining step, the method further comprises: acquiring a minimum actual brightness value and a maximum actual brightness value corresponding to a minimum register value and a maximum register value of a current display panel respectively; calculating a constant coefficient 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 the ideal gamma curve; and calculating ideal brightness values of the current binding points, which correspond to the register values of the preset number one by one, according to the calculated ideal gamma curve.
According to another aspect of the present invention, there is provided a gamma correction apparatus 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 a preset number of register values as adjusting register values according to the acquired 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 two determined adjusting register values; and the entry 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 to one.
According to another aspect of the present invention, there is provided an electronic device comprising a processor and a memory, wherein the memory has stored therein computer program instructions for executing the above gamma correction method when 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-described gamma correction method when executed.
According to the gamma correction method and device, the electronic device and the storage medium provided by 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 with the preset number until the new register value meets the requirement of gamma correction, and the number 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 by describing in more detail embodiments of the present invention with reference to the attached drawings. The accompanying drawings are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings, like reference numbers generally represent like parts or steps.
FIG. 1 shows a schematic flow diagram of a gamma correction method according to one embodiment of the invention;
FIG. 2a illustrates a schematic diagram of determining a new register value according to one embodiment of the invention;
FIG. 2b illustrates a schematic diagram of determining a new register value according to one embodiment of the invention;
FIG. 2c is a diagram illustrating the determination of a new register value according to one embodiment of the invention;
FIG. 3 shows a schematic block diagram of a gamma correction apparatus 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 below with reference to the accompanying drawings. It is to be understood that the described embodiments are merely a subset of embodiments of the invention and not all embodiments of the invention, with the understanding that the invention is not limited to the example embodiments described herein. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the invention described herein without inventive step, shall fall within the scope of protection of the invention.
In order to at least partially solve the above problem, an embodiment of the present invention provides a gamma correction method. According to the method, gamma correction can be quickly and accurately realized.
The gamma correction for the display panel under test may be implemented 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), a light meter, and an upper computer, among others. For example, the power supply may supply power to the display panel under test. The PG may output a register value of each of several bindings required for gamma correction to the display panel under test. 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 actually measured actual brightness value 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 a preset range. In the above manner, all the bindings are corrected in sequence. And writing the corrected register values of the plurality of binding points into a control chip of the display panel to be detected, wherein the control chip can perform gamma correction on the display panel to be detected according to the corrected register values of the plurality of 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 diagram 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 obtaining step S110, actual brightness values of the current binding points, which correspond to the register values of the preset number one to one, are obtained; the predetermined number is greater than or equal to 2.
In the field of display panels, for convenience of description, each register value is usually referred to as a gray-scale value. For example, the register value is an 8-bit binary number, which may represent a grayscale value from 0 to 255. For example, if the register value is 11111111, then the corresponding gray level value is 255.
In the present embodiment, the preset number is preferably equal to 2. This is by way of example only and not by way of limitation, and the preset number may be any other suitable value. Even if more than 2 register values are initially set, the register values still need to be written one by one and the screen needs to be lighted one by one, which is consistent with the strategy of calculating new register values through deduction of 2 register values, and the efficiency is not improved basically. Therefore, the minimum requirement of ensuring 2 register values can realize gamma correction with high 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 collected through the illuminometer. The setting manner of the register value and the collecting manner of the brightness value have been described above, and are not described herein again. The register values of the preset number may correspond to the actual brightness values of the preset number.
In the determining step S120, two register values are selected and determined from the preset number of register values as adjustment register values according to the acquired actual brightness value and the ideal brightness value of the current binding point.
Each binding point has its own desired luminance value I0. Illustratively, the upper computer can obtain an ideal brightness value I0 of the current binding point through calculation according to the ideal gamma curve, and can also input the ideal brightness value I0 of the current binding point to the upper computer by a user.
Two adjustment register values can be selected and determined from the preset number of register values according to the difference between the preset number of actual brightness values and the ideal brightness value obtained previously. For example, if a predetermined number of actual luminance values are on the same side of the ideal luminance value, e.g., all are larger 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. In addition, for example, if the ideal luminance value is between any two actual luminance values of the preset number of actual luminance values, two register values corresponding to the actual luminance values closest to the two sides of the ideal luminance value may be selected as the two adjustment register values. However, the above embodiments are only examples and do not limit the present invention. Other register values may also be selected by the present invention as the trim register value.
In an adjustment step S130, a new register value is determined based on the two determined adjustment register values.
The new register value may be determined according to a magnitude relationship between the ideal luminance value and two actual luminance values corresponding to the two adjusted register values. By way of example and not limitation, the new register value may be determined by: the relative magnitude relationship between the new register value and the two adjusted register values and the relative magnitude relationship between the ideal luminance value and the two actual luminance values corresponding to the two adjusted register values are kept consistent.
In step S140, when the new register value does not satisfy the requirement of gamma correction, the current tie point is again entered into the obtaining step, and in the obtaining step, the actual brightness value of the current tie point, which corresponds to the new register value and the two adjustment register values one to one, is obtained.
For example, whether the new register value of the current binding meets the requirement of gamma correction can be determined 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 error range of the brightness value, and if so, determining that the new register value of the current binding point meets the requirement of gamma correction;
(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 the error range of the register value, and if so, determining that the new register value of the current binding point meets the requirement of gamma correction;
(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 error range of the gamma value, and if so, determining that the new register value of the current binding point meets the requirement of gamma correction.
Any of the above-mentioned brightness value error range, register value error range and gamma value error range can be a preset range, and the size thereof can be set to any suitable size.
Steps S110-S140 may be performed in a loop until the new register value of the current binding satisfies the requirement of gamma correction. 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 provided by the embodiment of the invention, for each binding point, only the preset register values with the preset number are needed, the new register values can be automatically adjusted and determined until the new register values meet the requirement of gamma correction, and the number 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.
According to an embodiment of the present invention, in the determining step S120: when the ideal brightness value is between any two actual brightness values, determining two register values corresponding to the actual brightness values which are respectively closest to 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 which are 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 which are closest to the ideal brightness value as two adjustment register values.
When the ideal brightness value is between any two actual brightness values, determining two register values corresponding to the actual brightness values which are respectively closest to two sides of the ideal brightness value as two adjustment register values, so that two register values corresponding to the actual brightness values which are relatively close to 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 obtained in the obtaining step S110) or the minimum value (i.e., less than all the actual luminance values obtained in the obtaining step S110), the 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, thereby enabling the luminance value corresponding to the determined new register value to be as close to the ideal luminance value as possible.
According to an embodiment of the present invention, in the adjusting step S130: when the ideal brightness value is between the actual brightness values corresponding to the two adjustment register values, determining that a new register value is between the two adjustment register values according to 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 that the new register value is greater than the two adjustment register values according to the two adjustment register values; and/or when the ideal brightness value is less than the actual brightness value corresponding to the two adjustment register values, determining that the new register value is less than the two adjustment register values according to the two adjustment register values.
As described above, the new register value may be determined by: the relative magnitude relationship between the new register value and the two adjusted register values and the relative magnitude relationship between the ideal luminance value and the two actual luminance values corresponding to the two adjusted 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 close to the ideal brightness value as soon as possible.
According to an embodiment of the present invention, in the adjusting step S130: when the ideal brightness value is 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 values 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; where G1 and G2 are two trim register values and G3 is a new register value.
The first preset formula, the second preset formula and the third preset formula are only examples and are not limiting, and the new register value of the present invention is not limited to this calculation method.
An exemplary overall flow of the gamma correction method is described below in conjunction with fig. 2a-2c to help understand the manner in which the new register values are calculated in the above embodiments.
Step S1: the upper computer obtains an ideal brightness value I0 of the current binding point through calculation according to the ideal gamma curve, or a user inputs an ideal brightness value I0 of the current binding point into the upper computer.
Step S2: by the upper computer outputting two initial register values G1 and G2(G1> G2) of the current binding to the current display panel via the image signal generator, G1 may be a register value obtained after gamma correction is performed on the same type of display panel as the current display panel, or may be a register value that is not subjected to gamma correction. The difference between G2 and G1 is greater than a preset threshold. Referring to fig. 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 the ideal brightness value I0 (i.e. compare the 3 brightness values), and the comparison result can be divided into the following three situations:
case 1): if one of I1 and I2 has a luminance value greater than I0 and one has a luminance value less than I0, i.e., I0 is between I1 and I2, the register value output by the image signal generator may be adjusted by the host computer to G3, so that G3 is (G1+ G2)/2 (formula 1).
Case 1) may be seen with reference to fig. 2a, which shows a schematic diagram of determining a new register value 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) and (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 in the next round of circulation. The 3 rd register value is the new register value determined using equation (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 by the image signal generator is adjusted by the host computer to G3, so that G3 | G1-G2 | (formula 2).
Case 2) may be seen with reference to fig. 2b, which shows a schematic diagram of determining a new register value 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) and (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 in each cycle. The 3 rd register value is the new register value determined using equation (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 by the image signal generator is adjusted by the host computer to G3 so that G3 becomes G1+ G2 (formula 3).
Case 3) may be seen with reference to fig. 2c, which shows a schematic diagram of determining a new register value 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) and (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 in each cycle. The 3 rd register value is the new register value determined using equation (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, the I3 and the I0 (namely compares the 4 brightness values).
The comparison result in step S4 may be classified into the following three cases:
case 1): if I0 is located between any two brightness values of I1, I2, and I3, the register value output by the image signal generator is adjusted by the upper computer to G4, so that G4 is half of the sum of the register values corresponding to the two endpoint brightness values in the nearest range (corresponding to equation 1). The nearest range is the range formed by the two luminance values that most closely surround I0.
For example, as shown in fig. 2a, if I0 is between I3 and I1, then G4 ═ G1+ G3)/2 is calculated according to equation 1, which is equivalent 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, then G4 ═ G2+ G3)/2 is calculated according to equation 1, which corresponds to discarding I1 that is not within the range of I3 and I2. For another example, as shown in fig. 2c, if I0 is between I3 and I2, then G4 ═ G2+ G3)/2 is calculated according to formula 1, which is equivalent 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 register value output by the image signal generator is adjusted by the host computer to G4, so that G4 is the absolute value of the difference between the register values corresponding to the two luminance values closest to I0 (corresponding to equation 2). For example, if I0 is the minimum value and I1 is the maximum value, then this is equivalent to discarding I1 farthest from I0, and G4 | (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 by the host computer to G4, so that G4 is the sum of the register values corresponding to the two luminance values closest to I0 (corresponding to equation 3). For example, if I0 is the maximum value and I1 is the minimum value, which corresponds to discarding I1 farthest from I0, G4 is G2+ G3.
The principle in this step S4 is: if the I0 is the maximum value or the minimum value, discarding the brightness value farthest from I0 from the 4 brightness values; if I0 is within the range of two of the remaining 3 luminance values, the remaining luminance value is discarded, and the next new register value G4 is calculated by the register value corresponding to the discarded remaining 2 luminance values (the specific calculation method is as above).
Step S5: the illuminometer collects an actual brightness value I4 when the register value is G4 and sends the actual brightness value I4 to the upper computer, and the upper computer compares I4 with the remaining two brightness values in I1, I2 and I3 adopted when G4 is calculated and I0. In step S5, the brightness values of the comparisons are: the comparison between I0, I4 and the remaining 2 luminance values in step S4, which are 4 luminance values in total, is performed in a similar manner to the comparison determination in step S4. In fact, step S5 is equivalent to repeating step S4, in which I4 is equivalent to I3 in step S4, and the remaining two luminance values in I1, I2, and I3 employed in calculating G4 are equivalent to I1 and I2 in step S4.
This is explained further below with reference to FIGS. 2a-2 c: as shown in fig. 2a, I2 farthest from I0 is discarded in step S4, and sizes of I1, I4, I3, and I0 are determined in step S5, I0 is located between I3 and I4, at which time I1 needs to be discarded, and since I0 is located between I3 and I4, G5 ═ may be calculated as (G3+ G4)/2; as shown in fig. 2b, I1 is discarded in step S4, and the sizes of I2, I4, I3 and I0 are determined in step S5, I0 is located between I2 and I4, and at this time, I3 needs to be discarded, and since I0 is located between I2 and I4, G5 ═ G2+ G4)/2 can be calculated; as shown in fig. 2c, I1 is discarded in step S4, and in step S5, the sizes of I2, I4, I3, and I0 are determined, I0 is located between I2 and I4, and in this case, I3 needs to be discarded, and since I0 is located between I2 and I4, G5 ═ G2+ G4)/2 can be calculated.
Step S6: and continuously and repeatedly executing the steps for determining the new register value until the new register value finally meets the requirement of gamma correction. In the above description, In and Gn correspond to the n-2 repeated execution of step S4.
It should be noted that, in the above steps S3 to S6, the steps are not strictly executed in sequence, and there may be a case where a certain step is executed multiple times in succession before jumping to the next step. For example, with respect to step S4, although G3 shown in fig. 2a-2c is located on the other side of G0 with respect to G1 and/or G2, that is, 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, the first calculated G3 may be located 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 repeat step S5 several times in a loop until the new register value is located on the other side of G0 with respect to at least one of the two adjusted register values (i.e., case 1 in step S4)).
According to the embodiment of the invention, the acquiring step comprises the following steps: 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 trim register value at the current cycle can be directly determined. This scheme is relatively fast compared to setting the initial register values to more than 2. As described above, 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, which is consistent with the above-described strategy of calculating new register values by deduction of 2 register values, and the efficiency is not substantially improved. Therefore, the minimum requirement of ensuring 2 register values can realize gamma correction with high efficiency.
According to an embodiment of the present invention, the difference between the two preset register values is greater than a preset threshold. The preset threshold may be any suitable value, which may be set according to needs, and the present invention is not limited thereto.
According to an embodiment of the present invention, the step S140 may further include: entering a repeated step when the current binding point meets the requirement of gamma correction; repeating the 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 bindings are the same. The acquiring step S110 may include: at least two actual luminance values corresponding one-to-one to a preset number of register values are acquired for each of all the bindings.
The preset register values of all the binding points are set to be the same, so that the process of measuring the actual brightness value can be reduced, and as long as the first binding point is measured, the subsequent binding points only need to be directly and automatically adjusted by using the actual brightness value. Thus, the register values of all the 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 the ideal luminance values for the respective bindings is described below.
According to an embodiment of the present invention, before the determining step, the method 100 may further include: acquiring a minimum actual brightness value and a maximum actual brightness value corresponding to a minimum register value and a maximum register value of a current display panel respectively; calculating a constant coefficient 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 the ideal gamma curve; and calculating ideal brightness values of the current binding points, which correspond to the register values of the preset number one by one, 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; γ is the target gamma value; i is the brightness value corresponding to each binding point; c is a constant coefficient representing a mapping coefficient of a register value of each binding point to a brightness value in the gamma correction process.
The ideal value of the target gamma value gamma is also a known constant.
First, the minimum brightness value and the maximum brightness value of the current display panel are determined, the minimum brightness value corresponds to the panel minimum register value, and the maximum brightness value corresponds to the panel maximum register value, and a constant coefficient C value is obtained based on the minimum brightness value and the maximum brightness value. 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 typically required to fall within the range of [ γ - Δ γ, γ + Δ γ ], where Δ γ is also specified by the system and is a small amount relative to γ to ensure the accuracy of the 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 the description is omitted here.
For any of several bindings of the current display panel there is a corresponding register value (set to X), and the desired luminance value I0 to be output. The process of gamma correction for the tie point is to indirectly adjust the output brightness value by adjusting the value of the register value G corresponding to the tie point (for an 8-bit register, the register value is an integer value varying between 0 and 255), and continuously approach the ideal brightness value I0 until the requirement of gamma correction is met, and the adjustment of the register value of the tie point can be finished.
According to another aspect of the present invention, there is provided a gamma correction apparatus. FIG. 3 shows a schematic block diagram of a gamma correction apparatus 300 according to one embodiment of the present invention.
As shown in fig. 3, the gamma correction apparatus 300 according to an embodiment of the present invention includes an obtaining module 310, a determining module 320, an adjusting module 330, and an entering 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 components of the gamma correction device 300 will be described below, and the details that have been described above will be omitted.
The obtaining module 310 is configured to obtain actual brightness values of the current binding point, where the actual brightness values correspond to the register values of the preset number one to one; the predetermined number is greater than or equal to 2.
The determining module 320 is configured to select and determine two register values from the preset number of register values as the 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 entry module 340 is configured to trigger the obtaining module 310 to operate when the new register value of the current tie 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 tie 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 410 stores computer program instructions for implementing the corresponding steps in the gamma correction method 100 according to an embodiment of the invention.
The processor 420 is configured to execute the computer program instructions stored in the storage device 410 to perform the corresponding steps of the gamma correction method 100 according to the embodiment of the invention.
Further, 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 processor, cause the computer or processor to perform the respective steps of the above-described gamma correction method 100 of an 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 above storage media. The computer-readable storage medium may be any combination of one or more computer-readable storage media.
The specific implementation of the above electronic device and storage medium can be understood by those skilled in the art from reading the above description related to the gamma correction method 100, and therefore, for brevity, will not be described in detail herein.
Although the illustrative embodiments have been described herein with reference to the accompanying drawings, it is to be understood that the foregoing illustrative embodiments are merely exemplary and are not intended to limit the scope of the invention thereto. Various changes and modifications may be effected therein by one of ordinary skill in the pertinent art without departing from the scope or spirit of the present 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 implementation. 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 usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The above description is only for the specific embodiment of the present invention or the description thereof, and the protection scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and the changes or substitutions should be covered within the protection scope of the present invention. The protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (11)

1. A gamma correction method, comprising:
an acquisition step: acquiring actual brightness values of the current binding points, which correspond to register values of a preset number one by one; the preset number is greater than or equal to 2;
a determination step: selecting and determining two register values from the register values of the preset number as adjustment register values according to the obtained actual brightness value and the ideal brightness value of the current binding point;
an adjusting step: determining a new register value according to the determined two adjusting register values;
the method comprises the following steps: and when the new register value does not meet the requirement of gamma correction, the current binding point enters the acquiring step again, and in the acquiring step, the actual brightness value of the current binding point, which corresponds to the new register value and the two adjusting register values one to one, is acquired.
2. The method of claim 1, wherein in the determining step:
when the ideal brightness value is between any two actual brightness values, determining two register values corresponding to the actual brightness values closest 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
And 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.
3. The method of claim 1, wherein in the adjusting step:
when the ideal brightness value is 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 between the two adjustment register values; and/or
When the ideal brightness value is greater than the actual brightness values corresponding to the two adjustment register values, determining that the new register value is greater than the two adjustment register values according to 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 that the new register value is smaller than the two adjustment register values according to the two adjustment register values.
4. The method of claim 3, wherein in the adjusting step:
when the ideal brightness value is 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, where the first preset formula is: g3 ═ (G1+ G2)/2; and/or
When the ideal brightness value is greater than 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 second preset formula, where the second preset formula is: 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, where the third preset formula is: g3 ═ G1+ G2;
wherein G1 and G2 are the two trim register values and G3 is the new register value.
5. The method of any of claims 1 to 4, wherein the obtaining 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.
6. The method of claim 5, wherein the difference between the two preset register values is greater than a preset threshold.
7. The method of any of claims 1 to 4, wherein the entering step further comprises:
entering a repeating step when the current binding point meets the requirement of gamma correction;
the repeating step: 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 bindings are the same.
8. The method of any of claims 1 to 4, wherein prior to the determining step, the method further comprises:
acquiring a minimum actual brightness value and a maximum actual brightness value corresponding to a minimum register value and a maximum register value of a current display panel respectively;
calculating constant coefficients of the 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 values of the current binding points, which correspond to the register values of the preset number one by one, according to the calculated ideal gamma curve.
9. 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 register values of the preset number as adjusting 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 two determined adjusting register values;
and the entering 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 adjusting register values one to one.
10. An electronic device comprising a processor and a memory, wherein the memory has stored therein computer program instructions for execution by the processor to perform the gamma correction method of any of claims 1 to 8.
11. A storage medium having stored thereon program instructions for performing, when executed, the gamma correction method of any one of claims 1 to 8.
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 true CN114333670A (en) 2022-04-12
CN114333670B 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)

Cited By (1)

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

Citations (13)

* 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
US20160189635A1 (en) * 2014-12-29 2016-06-30 Lg Display Co., Ltd. Organic light emitting diode display and method for controlling luminance thereof
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
US20170186375A1 (en) * 2015-12-29 2017-06-29 Samsung Display Co., Ltd. Luminance controller and organic light emitting display device having the same
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
US20210097920A1 (en) * 2019-09-26 2021-04-01 Chengdu Boe Optoelectronics Technology Co., Ltd. Gamma correction method, gamma correction device and gamma correction system

Family Cites Families (3)

* 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
CN106448559B (en) * 2016-10-31 2019-01-18 昆山国显光电有限公司 A kind of method and device for the value adjusting display gamma register
CN114333670B (en) * 2021-12-10 2023-06-30 北京镁伽科技有限公司 Gamma correction method and device, electronic equipment and storage medium

Patent Citations (13)

* 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
US20160189635A1 (en) * 2014-12-29 2016-06-30 Lg Display Co., Ltd. Organic light emitting diode display and method for controlling luminance thereof
CN106856083A (en) * 2015-12-09 2017-06-16 三星显示有限公司 Collect the apparatus and method of data for correcting gamma
US20170186375A1 (en) * 2015-12-29 2017-06-29 Samsung Display Co., Ltd. Luminance controller and organic light emitting display device having the same
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
US20210097920A1 (en) * 2019-09-26 2021-04-01 Chengdu Boe Optoelectronics Technology Co., Ltd. Gamma correction method, gamma correction device and gamma correction system
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

Cited By (1)

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

Also Published As

Publication number Publication date
WO2023103774A1 (en) 2023-06-15
CN114333670B (en) 2023-06-30

Similar Documents

Publication Publication Date Title
US20220346914A1 (en) Method of determining an orthodontic treatment
RU2012114864A (en) METHOD FOR LIGHT DISTRIBUTION MANAGEMENT IN A SPACE INCLUDING MULTIPLE INSTALLED LIGHT SOURCES AND AN EXTERNAL LIGHT SOURCE
US7995866B2 (en) Rotation angle detection apparatus, and control method and control program of rotation angle detection apparatus
CN105654923A (en) Method for adjusting backlight brightness and user terminal
EP2733672A1 (en) Information processing apparatus, control method, program, and recording medium
CN111080477A (en) Household power load prediction method and system
CN114333670B (en) Gamma correction method and device, electronic equipment and storage medium
CN106506831A (en) Control method and control device
CN106200926A (en) Control method, control device and electronic installation
JP4704897B2 (en) 3D measurement data inspection method using parametric tolerance
TWI807414B (en) Inspection device, inspection method, and storage medium
US10520424B2 (en) Adaptive method for a light source for inspecting an article
US11144149B2 (en) Methods and techniques for correcting pressure sensor data in the presence of abnormal pressure sensor readings
CN113776787A (en) Screen uniformity testing method and system of virtual reality equipment and related device
CN116312331B (en) Image quality adjustment control method and related device for display
CN112801435B (en) Substation fireproof verification method and device, equipment and storage medium
JP3976095B2 (en) Gamma value acquisition method for liquid crystal display device, gamma value acquisition system for realizing the same, computer for acquiring the same, and program used therefor
US6021359A (en) Method and apparatus for determining an inspection schedule for a production line
US9245067B2 (en) Probabilistic method and system for testing a material
JP2017106782A (en) Automatic reading apparatus for measuring instrument and program
CN116415686A (en) Temperature rise model calibration method and device, ultrasonic imaging equipment and storage medium
CN114613313A (en) Gamma parameter determination method and device for display screen, electronic equipment and storage medium
CN114038372A (en) Gamma adjustment method, related device and storage medium
CN109844453B (en) Display device
KR101785889B1 (en) Apparatus and method for determining priority of debugging test items associated with debugging test program of semiconductor

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