CN115170681B - Gamma lookup table generation method and device, electronic equipment and storage medium - Google Patents

Gamma lookup table generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115170681B
CN115170681B CN202211082387.0A CN202211082387A CN115170681B CN 115170681 B CN115170681 B CN 115170681B CN 202211082387 A CN202211082387 A CN 202211082387A CN 115170681 B CN115170681 B CN 115170681B
Authority
CN
China
Prior art keywords
value
target
original
color coordinate
component
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
CN202211082387.0A
Other languages
Chinese (zh)
Other versions
CN115170681A (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.)
Hongjing Microelectronics Technology Co ltd
Original Assignee
Hongjing Microelectronics 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 Hongjing Microelectronics Technology Co ltd filed Critical Hongjing Microelectronics Technology Co ltd
Priority to CN202211082387.0A priority Critical patent/CN115170681B/en
Publication of CN115170681A publication Critical patent/CN115170681A/en
Application granted granted Critical
Publication of CN115170681B publication Critical patent/CN115170681B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06T5/90
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/68Circuits for processing colour signals for controlling the amplitude of colour signals, e.g. automatic chroma control circuits
    • H04N9/69Circuits for processing colour signals for controlling the amplitude of colour signals, e.g. automatic chroma control circuits for modifying the colour signals by gamma correction

Abstract

The invention discloses a method and a device for generating a gamma lookup table, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring an original color coordinate value and an original brightness value of a monochrome image to be debugged, and acquiring a target color coordinate value and a target brightness value of the monochrome image; according to the original color coordinate value, the original brightness value, the target color coordinate value and the target brightness value, obtaining a target compensation value based on a target correction compensation algorithm, wherein the target correction compensation algorithm is used for obtaining a compensation value corresponding to each color component in an initial correction color value when the original chromaticity and the original brightness presented when the monochrome image is output to the display equipment are compensated to the chromaticity and the brightness represented by the target color coordinate value and the target brightness value; and generating a target gamma lookup table according to the target compensation value and the initial gamma lookup table. The method can efficiently generate the corresponding gamma lookup table when the display device achieves the expected rendering chromaticity and brightness.

Description

Gamma lookup table generation method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of display, in particular to a method and a device for generating a gamma lookup table, electronic equipment and a storage medium. The invention also relates to a gamma correction method.
Background
The display device generally needs to perform Gamma (Gamma) correction to obtain a good image display effect.
Currently, when Gamma correction is performed on a display device, a Gamma correction method for brightness is generally used, and for a display device of RGB888, that is, a brightness curve of a 256-level gray scale map, the brightness curve is output by looking up the values of a Red component (R, red), a Green component (G, green), and a Blue component (B, blue) after Gamma correction corresponding to a monochrome gray scale map in a preset Gamma lookup table (Gamma table), so that the brightness curve presented by the display device on the 256-level monochrome gray scale map meets the requirement of a Gamma 2.2 curve.
Since the above method only corrects the pixel luminance, it is possible that the entire color displayed is color-shifted. In order to solve the problem, a method for adjusting brightness and chromaticity (chromaticity) when each monochrome gray scale image is output based on a manual single-point debugging gamma lookup table and establishing the gamma lookup table in a linear interpolation mode also exists in the related art, however, the method has the problems of complex steps and low debugging efficiency on one hand, and easily has the problem of poor chromaticity consistency after each monochrome gray scale image is adjusted due to the influence of artificial subjective factors in manual adjustment on the other hand.
Disclosure of Invention
Therefore, the invention provides a method and a device for generating a gamma lookup table, electronic equipment and a storage medium, so as to solve the problems of low efficiency and inaccurate result which may exist when gamma correction is performed based on the gamma lookup table in the related art.
In order to achieve the above object, a first aspect of the present invention provides a method for generating a gamma lookup table, the method comprising:
acquiring an original color coordinate value and an original brightness value of a monochromatic image to be debugged, and acquiring a target color coordinate value and a target brightness value of the monochromatic image;
wherein the original color coordinate values and the original luminance values respectively represent an original chromaticity and an original luminance when the monochrome image is displayed on a display device, and the target color coordinate values and the target luminance values respectively represent a chromaticity and a luminance when the monochrome image is output to the display device for display, which are expected to be presented by the monochrome image; the original color coordinate values and the original brightness values correspond to initial corrected color values, which are numerical values of original color values of the monochrome image corresponding in an initial gamma lookup table of the display device;
obtaining a target compensation value based on a target correction compensation algorithm according to the original color coordinate value, the original brightness value, the target color coordinate value and the target brightness value;
wherein the target compensation value comprises compensation values corresponding to color components in the initial correction color value, and the target correction compensation algorithm is used for obtaining the compensation values corresponding to the color components in the initial correction color value when the original chromaticity and the original brightness presented when the monochrome image is output to the display device are compensated to the chromaticity and the brightness represented by the target chromaticity coordinate value and the target brightness value;
and generating a target gamma lookup table according to the target compensation value and the initial gamma lookup table, wherein the target gamma lookup table is a gamma lookup table corresponding to the display device when the chromaticity and the brightness represented by the target color coordinate value and the target brightness value are reached.
Optionally, the obtaining a target compensation value based on a target correction compensation algorithm according to the original color coordinate value, the original brightness value, the target color coordinate value, and the target brightness value includes: acquiring a first difference value between an abscissa component of the original color coordinate value and an abscissa component of the target color coordinate value, a second difference value between an ordinate component of the original color coordinate value and an ordinate component of the target color coordinate value, and a third difference value between the original luminance value and the target luminance value; and obtaining the target compensation value based on the target correction compensation algorithm according to the first difference, the second difference and the third difference.
Optionally, the target correction compensation algorithm is:
Figure 695831DEST_PATH_IMAGE001
or the following steps:
Figure 790433DEST_PATH_IMAGE002
Figure 782659DEST_PATH_IMAGE003
Figure 212504DEST_PATH_IMAGE004
wherein, the first and the second end of the pipe are connected with each other,
Figure 47605DEST_PATH_IMAGE005
a compensation value representing a green component in the target compensation value,
Figure 57149DEST_PATH_IMAGE006
a compensation value representing a red component in the target compensation value,
Figure 762937DEST_PATH_IMAGE007
a compensation value representing a blue component in the target compensation value;
Figure 629262DEST_PATH_IMAGE008
the first difference value is represented by a first difference value,
Figure 295866DEST_PATH_IMAGE009
is representative of the second difference value as a function of,
Figure 233735DEST_PATH_IMAGE010
representing the third difference;
Figure 731713DEST_PATH_IMAGE011
Figure 706622DEST_PATH_IMAGE012
and
Figure 752201DEST_PATH_IMAGE013
representing the influence values of the red component in the initial correction color value on the abscissa component of the color coordinate value, the ordinate component of the color coordinate value and the brightness value respectively when the red component is increased according to a preset step value;
Figure 900285DEST_PATH_IMAGE014
Figure 456032DEST_PATH_IMAGE015
and
Figure 664159DEST_PATH_IMAGE016
representing the influence values of the green component in the initial correction color value on the abscissa component of the color coordinate value, the ordinate component of the color coordinate value and the brightness value respectively when the green component is increased according to a preset step value;
Figure 429990DEST_PATH_IMAGE017
Figure 585027DEST_PATH_IMAGE018
and
Figure 57597DEST_PATH_IMAGE019
and expressing the influence values of the blue component in the initial correction color value on the abscissa component of the color coordinate value, the ordinate component of the color coordinate value and the brightness value respectively when the blue component grows according to the preset step value.
Optionally, in the target correction compensation algorithm
Figure 498943DEST_PATH_IMAGE011
Figure 689753DEST_PATH_IMAGE012
Figure 117323DEST_PATH_IMAGE013
Figure 37874DEST_PATH_IMAGE014
Figure 322225DEST_PATH_IMAGE015
Figure 938014DEST_PATH_IMAGE016
Figure 231592DEST_PATH_IMAGE017
Figure 239606DEST_PATH_IMAGE018
And
Figure 960438DEST_PATH_IMAGE019
a value calculated for pre-measurement, or a value calculated for real-time measurement before the target compensation value is obtained based on the target correction compensation algorithm; wherein, in
Figure 63523DEST_PATH_IMAGE011
Figure 957530DEST_PATH_IMAGE012
Figure 524777DEST_PATH_IMAGE013
Figure 354193DEST_PATH_IMAGE014
Figure 741312DEST_PATH_IMAGE015
Figure 704589DEST_PATH_IMAGE016
Figure 64026DEST_PATH_IMAGE017
Figure 126660DEST_PATH_IMAGE018
And
Figure 63392DEST_PATH_IMAGE019
in order to measure the calculated value in real time before the target compensation value is obtained based on the target correction compensation algorithm, the method further includes: respectively adjusting the red component and the green component in the initial correction color value according to the preset multiple of the preset step valueThe component and the blue component are obtained, and each measured value is divided by the preset multiple to be used as the value
Figure 440146DEST_PATH_IMAGE011
Figure 716407DEST_PATH_IMAGE012
Figure 513724DEST_PATH_IMAGE013
Figure 875435DEST_PATH_IMAGE014
Figure 790302DEST_PATH_IMAGE015
Figure 248965DEST_PATH_IMAGE016
Figure 653401DEST_PATH_IMAGE017
Figure 440092DEST_PATH_IMAGE018
And
Figure 220966DEST_PATH_IMAGE019
optionally, before the step of acquiring the original color coordinate value and the original brightness value of the monochrome image to be debugged, and acquiring the target color coordinate value and the target brightness value of the monochrome image, the method further includes: acquiring a display mode of the display equipment; the acquiring of the original color coordinate value and the original brightness value of the monochrome image to be debugged, and the acquiring of the target color coordinate value and the target brightness value of the monochrome image, includes: and acquiring an original color coordinate value, an original brightness value, a target color coordinate value and a target brightness value of the monochrome image in the display mode.
Optionally, after obtaining the target gamma lookup table, the method further comprises:
and establishing mapping data reflecting the corresponding relation between the target gamma lookup table and the display mode of the display equipment, and storing the mapping data into a storage component of the display equipment.
In order to achieve the above object, the second aspect of the present invention also provides a gamma correction method applied to a display device, the method comprising:
acquiring a display signal to be displayed;
and performing gamma correction on each monochromatic image display in the display signal according to a target gamma lookup table to obtain a target correction output value for the display of the display device, wherein the target gamma lookup table is obtained according to the generation method of the gamma lookup table in any one of the first aspects of the invention.
In order to achieve the above object, a third aspect of the present invention further provides a gamma lookup table generating apparatus, including:
the acquisition module is used for acquiring an original color coordinate value and an original brightness value of a monochrome image to be debugged and acquiring a target color coordinate value and a target brightness value of the monochrome image;
wherein the original color coordinate values and the original luminance values respectively represent an original chromaticity and an original luminance when the monochrome image is displayed on a display device, and the target color coordinate values and the target luminance values respectively represent a chromaticity and a luminance when the monochrome image is output to the display device for display, which are expected to be presented by the monochrome image; the original color coordinate values and the original brightness values correspond to initial corrected color values, which are numerical values of original color values of the monochrome image corresponding in an initial gamma lookup table of the display device;
a compensation value calculating module, configured to obtain a target compensation value based on a target correction compensation algorithm according to the original color coordinate value, the original brightness value, the target color coordinate value, and the target brightness value;
wherein the target compensation value includes compensation values corresponding to respective color components in the initial correction color value, and the target correction compensation algorithm is configured to obtain compensation values corresponding to respective color components in the initial correction color value when an original chromaticity and an original brightness exhibited when the monochrome image is output to the display device are compensated to the chromaticity and brightness represented by the target chromaticity coordinate value and the target brightness value;
and the generating module is used for generating a target gamma lookup table according to the target compensation value and the initial gamma lookup table, wherein the target gamma lookup table is a gamma lookup table corresponding to the display device when the display device reaches the target color coordinate value and the chromaticity and the brightness represented by the target brightness value.
In order to achieve the above object, a fourth aspect of the present invention also provides an electronic apparatus comprising:
one or more processors;
memory having one or more programs stored thereon which, when executed by the one or more processors, cause the one or more processors to perform the method of any of the first or second aspects of the invention;
one or more I/O interfaces connected between the processor and the memory and configured to enable information interaction between the processor and the memory.
To achieve the above object, the fifth aspect of the present invention also provides a computer-readable storage medium on which a computer program is stored, which when executed by a processor, implements the method of any one of the first or second aspects of the present invention.
The invention has the following advantages: according to the embodiment of the invention, without depending on manual work, the original color coordinate value and the original brightness value respectively corresponding to the original chromaticity and the original brightness when the monochrome image to be debugged is displayed on the display device are automatically acquired through the electronic device, and the target color coordinate value and the target brightness value respectively corresponding to the chromaticity and the brightness expected to be presented when the monochrome image is output to the display device for display are acquired, so that the target compensation value of each color component in the initial correction color value corresponding to the original color value of the monochrome image when the original chromaticity and the original brightness are compensated to the chromaticity and the brightness respectively represented by the target color coordinate value and the target brightness value is automatically acquired through the electronic device according to the original color coordinate value, the original brightness coordinate value, the target color coordinate value and the target brightness respectively based on the target correction compensation algorithm, and therefore, the target gamma lookup table is conveniently and efficiently generated according to the target compensation value and the initial gamma lookup table of each color component, and after the target gamma lookup table is generated, the color components of the monochrome image output to the display device can be accurately corrected based on the target gamma lookup table, namely, and the RGB components are accurately corrected.
Drawings
The accompanying drawings, which are included to provide a further understanding 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.
Fig. 1 is a schematic flowchart of a method for generating a gamma lookup table according to an embodiment of the present invention.
Fig. 2 is a schematic flowchart of a process for obtaining a target compensation value according to an embodiment of the present invention.
Fig. 3 is a schematic view of an application scenario of the method for generating a gamma lookup table according to the embodiment of the present invention.
FIG. 4 is a flowchart illustrating a gamma correction method according to an embodiment of the present invention.
Fig. 5 is a block diagram illustrating a gamma lookup table generating apparatus according to an embodiment of the present invention.
FIG. 6 is a block diagram of a gamma correction apparatus according to an embodiment of the present invention.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present invention, are given by way of illustration and explanation only, not limitation.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order; furthermore, the embodiments and features of the embodiments of the present invention may be arbitrarily combined with each other without conflict.
As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
When the terms "comprises" and/or "made of … … are used in this disclosure, the presence of the stated features, integers, steps, operations, elements, and/or components is specified, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and the present disclosure, and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
Currently, when Gamma correction is performed on a display device, a Gamma correction method for brightness is generally used, and for a display device of RGB888, that is, a brightness curve of a 256-level gray scale map, numerical values of respective color components, that is, a red component, a green component and a blue component, after Gamma correction, of a corresponding monochrome gray scale map are searched in a preset Gamma lookup table and output, so that a brightness curve presented by the display device on the 256-level monochrome gray scale map meets the requirement of a Gamma 2.2 curve, and since this method only corrects the brightness of a pixel, a situation that the overall color displayed by the display device is color-off may occur.
In order to solve the problem, a method capable of simultaneously correcting the chromaticity and the brightness during the output of a monochrome gray scale image also exists in the related art, the method comprises the steps of determining a reference point, namely a reference pixel point, from display equipment, correcting the brightness and the chromaticity of the reference point based on a manual single-point debugging mode, completing the correction values of all the pixel points based on a linear interpolation mode after obtaining the correction values, so as to establish a gamma lookup table for simultaneously correcting the brightness and the chromaticity, and further simultaneously carrying out gamma correction on pixels in display signals according to the gamma lookup table. Although the method can solve the problem of integral color cast of the color displayed by the display equipment when only gamma correction is carried out on brightness to a certain extent, the method depends on manual debugging, so that the problems of complicated steps and low debugging efficiency exist on one hand, the manual adjustment has the influence of artificial subjective factors on the other hand, in addition, the method establishes the gamma lookup tables aiming at all pixels based on a linear difference mode after the correction values of partial points are obtained, and because the characteristic curve of the display equipment is not linear, the problem of poor color consistency after the adjustment of each monochromatic gray scale image easily exists when the gamma lookup tables established based on the method are used for gamma correction, and the ideal effect cannot be achieved.
In order to conveniently, efficiently and accurately perform gamma correction on a display device, the embodiment of the invention provides a method for generating a gamma lookup table. Please refer to fig. 1, which is a flowchart illustrating a method for generating a gamma lookup table according to an embodiment of the present invention, where the method may be applied to an electronic device, and the electronic device may be a terminal device, such as a computer, a mobile phone, a tablet computer, or a server, and is not limited herein.
As shown in fig. 1, the method for generating a gamma lookup table according to an embodiment of the present invention may include the following steps S101 to S103, which are described in detail below.
Step S101, obtaining an original color coordinate value and an original brightness value of a monochrome image to be debugged, and obtaining a target color coordinate value and a target brightness value of the monochrome image, wherein the original color coordinate value and the original brightness value respectively represent original chromaticity and original brightness of the monochrome image when displayed on a display device, and the target color coordinate value and the target brightness value respectively represent chromaticity and brightness of the monochrome image when the monochrome image is output to the display device for display and expected to be presented by the monochrome image; the original color coordinate values and the original luminance values correspond to initial corrected color values, which are the values of the original color values of the monochrome image corresponding in an initial gamma lookup table of the display device.
In the embodiment of the present invention, the monochrome image to be debugged, that is, the monochrome grayscale image, may be any monochrome map whose color is to be debugged, and correspondingly, the original color value of the monochrome image may be a numerical value representing any color, and the original color value may be an RGB value, where R represents a red component of the color, G represents a green component of the color, and B represents a blue component of the color.
The initial correction color value is a numerical value corresponding to the original color value of the monochrome image in the initial gamma lookup table; the initial gamma lookup table may be a gamma lookup table preset for the display device when the display device is shipped from a factory, that is, a gamma lookup table used for performing initial gamma correction on a color of the monochrome image when the monochrome image is output to the display device for display.
The original color coordinate value and the original brightness value in the embodiment of the invention correspond to the initial correction color value, that is, the original color value representing the color of the pixel in the monochrome image is corrected by the initial gamma lookup table to obtain the initial correction color value, and then the initial correction color value is output to the display device, the display device displays the numerical value of the presented original chromaticity based on the initial correction color value, namely the numerical value can be represented by the original color coordinate value, and the presented original brightness can be represented by the original brightness value.
The target color coordinate value and the target luminance value may be a chromaticity value and a luminance value corresponding to chromaticity and luminance, respectively, which the display device is expected to reach or present when outputting the monochrome image to the display device for display.
It should be noted that, in the embodiment of the present invention, unless otherwise specified, the chromaticity of a color is represented by a chromaticity coordinate (chromaticity coordinate) and the brightness of the color is represented by a brightness value, for example, the chromaticity value and the brightness value of a color may be directly represented in the form of xyY, where xy represents the chromaticity coordinate and Y represents the brightness value.
The color coordinate, which refers to the coordinate of a color, also called a color system, in which the abscissa is represented as x and the ordinate is represented as y, has a color coordinate, and a point (x, y) can be determined on the chromaticity diagram, which point accurately represents the luminescent color, i.e., the color coordinate accurately represents the color.
In addition, in the embodiment of the present invention, the display device may be any display device, and if no special description is given, the gamma lookup table generated based on the method of the embodiment of the present invention corresponds to the display device.
In carrying out the present invention, the inventors found that, after the display device obtains the display signal, the display values, i.e., the color coordinate values and the luminance values (xyY), whose output signals are presented on the display device are the result of simultaneous actions by respective color components, i.e., R, G, and B components, in its original color, the three color components have different actions on the color coordinate values and the luminance values finally presented on the display device, and the addition of a single component in the three color components has monotonous actions on the abscissa component x of the finally presented color coordinate values, the ordinate component Y of the color coordinate values, and the luminance value Y. Therefore, the original color coordinate value and the original brightness value of the pixel color after the initial gamma correction when the pixel color in the monochrome image is output to the display device for display, and the target color coordinate value and the target brightness value expected to be presented by the pixel color can be provided to the electronic device, so that the increment of each color component in the original color value, namely the original RGB value, of the pixel color can be adaptively adjusted by the electronic device, and the target gamma lookup table corresponding to the chromaticity and the brightness respectively expressed by the target color coordinate value and the target brightness value when the chromaticity and the brightness presented when the display device displays the monochrome image can be efficiently and accurately generated.
That is, after obtaining an original color coordinate value and an original brightness value respectively corresponding to an original chromaticity and an original brightness actually presented when the monochrome image to be debugged is output to the display device in step S101, and a target color coordinate value and a target brightness value respectively corresponding to a chromaticity and a brightness expected to be presented, step S102 is performed, and a target compensation value is obtained based on a target correction compensation algorithm according to the original color coordinate value, the original brightness value, the target color coordinate value and the target brightness value; the target compensation value comprises a compensation value corresponding to each color component in the initial correction color value, and the target correction compensation algorithm is used for obtaining a compensation value corresponding to each color component in the initial correction color value when the original chromaticity and the original brightness presented when the monochrome image is output to the display device are compensated to the chromaticity and the brightness represented by the target chromaticity coordinate value and the target brightness value.
Please refer to fig. 2, which is a schematic flow chart illustrating a process of obtaining a target compensation value according to an embodiment of the present invention. As shown in fig. 2, in the embodiment of the present invention, the target compensation value may be obtained through the following steps S201 to S202.
In step S201, a first difference between an abscissa component of the original color coordinate value and an abscissa component of the target color coordinate value, a second difference between an ordinate component of the original color coordinate value and an ordinate component of the target color coordinate value, and a third difference between the original luminance value and the target luminance value are obtained.
Step S202, a target compensation value is obtained based on a target correction compensation algorithm according to the first difference value, the second difference value and the third difference value.
That is, since the addition of the R component, the G component and the B component in the color value of each pixel of the monochrome image when finally outputted to the display device affects each component in the finally presented display value (xyY), that is, the abscissa component x of the color coordinate value, the ordinate component Y of the color coordinate value and the luminance value Y component, differently, when the electronic device obtains the monochrome image when outputted to the display device for display, the original color coordinate value and the original luminance value corresponding to the original chromaticity and the original luminance which are presented by the display device after correcting the original color value through the initial gamma lookup table, and the target color coordinate value and the target luminance value corresponding to the chromaticity and luminance which are desired to be presented are obtained, in order to reduce the amount of calculation and speed up the debugging, the actual display value when the original color value corresponding to the initial corrected color value in the initial gamma lookup table is outputted to the display device for display can be obtained by using the target correction compensation algorithm to compensate to the target value, that is corresponding to the original color value when outputted to the display device for display, and then the target gamma correction value in the initial gamma lookup table can be obtained by adding the corresponding to the target gamma correction value in the initial gamma correction table.
In an embodiment of the present invention, the target correction compensation algorithm may be expressed as:
Figure 268556DEST_PATH_IMAGE001
alternatively, it can be expressed as:
Figure 47156DEST_PATH_IMAGE020
Figure 383460DEST_PATH_IMAGE021
Figure 764763DEST_PATH_IMAGE004
wherein the content of the first and second substances,
Figure 870122DEST_PATH_IMAGE005
a compensation value representing the green component among the target compensation values,
Figure 819623DEST_PATH_IMAGE006
a compensation value representing the red component in the target compensation value,
Figure 227512DEST_PATH_IMAGE007
a compensation value representing a blue component in the target compensation value;
Figure 84610DEST_PATH_IMAGE008
it is indicated that the first difference value is,
Figure 982159DEST_PATH_IMAGE009
it is indicated that the second difference value,
Figure 492775DEST_PATH_IMAGE010
represents a third difference;
Figure 538091DEST_PATH_IMAGE011
Figure 136563DEST_PATH_IMAGE012
and
Figure 216514DEST_PATH_IMAGE013
representing the influence values of the red component in the initial correction color value on the abscissa component of the color coordinate value, the ordinate component of the color coordinate value and the brightness value respectively when the red component is increased according to the preset step value;
Figure 366873DEST_PATH_IMAGE014
Figure 899485DEST_PATH_IMAGE015
and
Figure 301648DEST_PATH_IMAGE016
representing the influence values of the green component in the initial correction color value on the abscissa component of the color coordinate value, the ordinate component of the color coordinate value and the brightness value respectively when the green component is increased according to the preset step value;
Figure 564002DEST_PATH_IMAGE017
Figure 822945DEST_PATH_IMAGE018
and
Figure 780536DEST_PATH_IMAGE019
and expressing the influence values of the blue component in the initial correction color value on the abscissa component of the color coordinate value, the ordinate component of the color coordinate value and the brightness value respectively when the blue component grows according to the preset step value.
It should be noted that, in this embodiment, in order to ensure the accuracy of the finally generated gamma lookup table, the preset step value may be 1, and of course, in actual implementation, the preset step value may also be set to another value according to needs or according to the characteristics of the display device, for example, the preset step value is set to 2, which is not limited herein.
In addition, in the above target correction compensation algorithm of the embodiment of the present invention
Figure 783128DEST_PATH_IMAGE011
Figure 135874DEST_PATH_IMAGE012
Figure 831297DEST_PATH_IMAGE013
Figure 276185DEST_PATH_IMAGE014
Figure 144784DEST_PATH_IMAGE015
Figure 53834DEST_PATH_IMAGE016
Figure 592263DEST_PATH_IMAGE017
Figure 586764DEST_PATH_IMAGE018
And
Figure 259053DEST_PATH_IMAGE019
the calculated values may be measured in advance,that is, the values may be fixed values obtained by pre-measurement and calculation, that is, the values of the parameters are fixed for any original color value and the display value corresponding to the target color coordinate value and the target brightness value.
However, considering that the characteristic curve of the display device is not linear, in order to ensure the accuracy of the result, in the embodiment of the present invention, the characteristic curve is
Figure 960293DEST_PATH_IMAGE011
Figure 997519DEST_PATH_IMAGE012
Figure 276054DEST_PATH_IMAGE013
Figure 424139DEST_PATH_IMAGE014
Figure 979885DEST_PATH_IMAGE015
Figure 188012DEST_PATH_IMAGE016
Figure 717957DEST_PATH_IMAGE017
Figure 341837DEST_PATH_IMAGE018
And
Figure 79986DEST_PATH_IMAGE019
it is also possible to measure the calculated value in real time before obtaining the target compensation value based on the target correction compensation algorithm, in which case the method further comprises: respectively adjusting red components, green components and blue components in the initial correction color values according to preset multiples of the preset step value, and dividing each measured value by the preset multiples to obtain the red component, the green component and the blue component
Figure 521331DEST_PATH_IMAGE011
Figure 712141DEST_PATH_IMAGE012
Figure 139711DEST_PATH_IMAGE013
Figure 466788DEST_PATH_IMAGE014
Figure 79034DEST_PATH_IMAGE015
Figure 757140DEST_PATH_IMAGE016
Figure 988402DEST_PATH_IMAGE017
Figure 435564DEST_PATH_IMAGE018
And
Figure 218712DEST_PATH_IMAGE019
that is, the electronic device may calculate the target compensation value in the algorithm before each time the target compensation value is obtained based on the target compensation algorithm
Figure 321797DEST_PATH_IMAGE011
Figure 153487DEST_PATH_IMAGE012
Figure 284516DEST_PATH_IMAGE013
Figure 910669DEST_PATH_IMAGE014
Figure 501051DEST_PATH_IMAGE015
Figure 136431DEST_PATH_IMAGE016
Figure 354923DEST_PATH_IMAGE017
Figure 620819DEST_PATH_IMAGE018
And
Figure 495235DEST_PATH_IMAGE019
meanwhile, in order to reduce errors, considering that when the preset step value is small, the measurement calculation results of the real-time values of the measurement errors may be 0, the real-time values of the measurement errors are adjusted according to the preset multiple of the preset step value, and the calculated values are divided by the preset multiple, so that when the color components are adjusted according to the preset step value, the parameters respectively correspond to the values to reduce the measurement errors and improve the accuracy of the result.
For example, when the preset step value is 1, the preset multiple may be 5, and then the correction values of the x component of the abscissa of the color coordinate value, the Y component of the ordinate of the color coordinate value, and the luminance value Y may be measured when each component in the initial corrected color value is adjusted by the step value 5 each time, and the value obtained by dividing the correction value by 5 is taken as the value corresponding to the parameters when the preset step value is 1.
Step S103, generating a target gamma lookup table according to the target compensation value and the initial gamma lookup table, wherein the target gamma lookup table is the gamma lookup table corresponding to the display device when the display device reaches the chromaticity and the brightness represented by the target color coordinate value and the target brightness value.
After the target compensation value is obtained based on the step S102, the target gamma lookup table corresponding to the display device can be conveniently, efficiently and accurately generated according to the target compensation value and the initial gamma lookup table.
It should be noted that, since the display device may have different display modes, for example, to improve the display effect, generally when the display device is used for displaying characters and displaying images, the brightness and the chromaticity of the pixels presented to the display device are often different, in the embodiment of the present invention, before the above step S101, that is, before the original color coordinate value and the original luminance value of the monochrome image to be debugged are acquired, and before the target color coordinate value and the target luminance value of the monochrome image are acquired, the display mode of the display device may also be acquired, and after the display mode is acquired, the acquiring the original color coordinate value and the original luminance value of the monochrome image to be debugged, and acquiring the target color coordinate value and the target luminance value of the monochrome image may be: and acquiring the original color coordinate value, the original brightness value, the target color coordinate value and the target brightness value of the monochrome image in the display mode.
In addition, after obtaining the target gamma lookup table based on the above method, the method further includes: and establishing mapping data reflecting the corresponding relation between the target gamma lookup table and the display device or the display mode of the display device, and storing the mapping data into a storage component of the display device, so that after the display device acquires the display signal to be displayed, gamma correction can be performed on each monochrome image display in the display signal according to the target gamma lookup table, and a target correction output value is obtained for the display device to display.
Please refer to fig. 3, which is a schematic view of an application scenario of the method for generating a gamma lookup table according to an embodiment of the invention.
In the application scenario shown in fig. 3, the first electronic device 1000 may be configured to implement the method for generating a gamma lookup table provided in the embodiment of the present invention to generate a target gamma lookup table of the display device 2000, where the first electronic device 1000 may be a terminal device such as a computer, a mobile phone, a tablet computer, or may also be a server.
For example, the first electronic device 1000 may adaptively debug the display device according to the display mode selected by the user and by loading the file recorded with the target chrominance values and the target luminance values, so as to generate the target gamma lookup table of the display device in the display mode selected by the user.
Color analysis device 3000 can be used to measure the monochrome image at each debugging passA real-time display value, i.e., an original color coordinate value and an original brightness value corresponding to an original chromaticity and an original brightness, displayed on the display device after the initial gamma correction is performed by the initial gamma lookup table, so that the first electronic device 1000 may determine the target correction compensation algorithm according to the real-time display value
Figure 996623DEST_PATH_IMAGE011
Figure 272884DEST_PATH_IMAGE012
Figure 444102DEST_PATH_IMAGE013
Figure 805813DEST_PATH_IMAGE014
Figure 845313DEST_PATH_IMAGE015
Figure 976080DEST_PATH_IMAGE016
Figure 318200DEST_PATH_IMAGE017
Figure 993639DEST_PATH_IMAGE018
And
Figure 508934DEST_PATH_IMAGE019
the numerical value of (c).
As shown in fig. 3, according to the method for generating a gamma lookup table provided in the embodiment of the present invention, the electronic device can conveniently, efficiently and accurately generate the target gamma lookup table through setting the closed-loop control system shown in fig. 3, so that the problems of complicated steps, low efficiency and possibly inaccurate manual single-point debugging can be solved.
In summary, the method for generating a gamma lookup table provided in the embodiment of the present invention can obtain the original color coordinate value and the original luminance value corresponding to the original chromaticity and the original luminance when the monochrome image to be debugged is displayed on the display device without relying on manual work, and set that the monochrome image is expected to be presented when displayed on the display device, that is, the target color coordinate value and the target luminance value corresponding to the chromaticity and the luminance which are expected to be reached are expected to be presented; therefore, according to the difference value between the original color coordinate value, the original brightness value, the target color coordinate value and the target brightness value, based on a target correction compensation algorithm, when the color value represented by the initial correction color value is output to the display device, the chromaticity brightness presented by the display device is compensated to the chromaticity brightness represented by the target color coordinate value and the target brightness value, and the compensation value corresponding to each color component in the initial correction color value is obtained, so that the target gamma lookup table is conveniently and efficiently generated according to the target compensation value and the initial gamma lookup table, and after the target gamma lookup table is generated, the accurate gamma correction can be accurately performed on the display image output to the display device based on the target gamma lookup table.
In addition, in the embodiment of the present invention, a gamma correction method is further provided, which can be applied to a display device, please refer to fig. 4, which is a flowchart illustrating a gamma correction method according to an embodiment of the present invention. As shown in fig. 4, the gamma correction method may include the following steps S401 to S402:
step S401, a display signal to be displayed is acquired.
Step S402, performing gamma correction on each monochrome image in the display signal according to a target gamma lookup table to obtain a target correction output value for display by the display device, where the target gamma lookup table is obtained according to any one of the methods for generating a gamma lookup table in the embodiments of the present invention.
It should be noted that, the steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the steps include the same logical relationship, which is within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
An embodiment of the present invention further provides a device for generating a gamma lookup table, which can be applied to an electronic device, as shown in fig. 5, the device 500 for generating a gamma lookup table may include: an acquisition module 501, a compensation value calculation module 502 and a generation module 503.
The obtaining module 501 is configured to obtain an original color coordinate value and an original brightness value of a monochrome image to be debugged, and obtain a target color coordinate value and a target brightness value of the monochrome image; the original color coordinate value and the original brightness value respectively represent the original chromaticity and the original brightness of the monochrome image when the monochrome image is displayed on the display device, and the target color coordinate value and the target brightness value respectively represent the chromaticity and the brightness of the monochrome image when the monochrome image is output to the display device for display and expected to be presented by the monochrome image; the original color coordinate values and the original luminance values correspond to initial corrected color values, which are the values of the original color values of the monochrome image corresponding in an initial gamma lookup table of the display device.
The compensation value calculating module 502 is configured to obtain a target compensation value based on a target correction compensation algorithm according to the original color coordinate value, the original brightness value, the target color coordinate value, and the target brightness value; the target compensation value comprises a compensation value corresponding to each color component in the initial correction color value, and the target correction compensation algorithm is used for obtaining a compensation value corresponding to each color component in the initial correction color value when the original chromaticity and the original brightness presented when the monochrome image is output to the display device are compensated to the chromaticity and the brightness represented by the target chromaticity coordinate value and the target brightness value.
The generating module 503 is configured to generate a target gamma lookup table according to the target compensation value and the initial gamma lookup table, where the target gamma lookup table is a gamma lookup table corresponding to the display device when the display device reaches the chromaticity and the brightness represented by the target color coordinate value and the target brightness value.
In some embodiments, the compensation value calculating module 502, when obtaining the target compensation value based on the target correction compensation algorithm according to the original color coordinate value, the original brightness value, the target color coordinate value and the target brightness value, may be configured to: acquiring a first difference value between an abscissa component of the original color coordinate value and an abscissa component of the target color coordinate value, a second difference value between an ordinate component of the original color coordinate value and an ordinate component of the target color coordinate value, and a third difference value between the original luminance value and the target luminance value; and obtaining a target compensation value based on a target correction compensation algorithm according to the first difference, the second difference and the third difference.
In some embodiments, the apparatus 500 further includes a display mode obtaining module, configured to obtain an original color coordinate value and an original luminance value of the monochrome image to be debugged, and when obtaining a target color coordinate value and a target luminance value of the monochrome image, the display mode obtaining module may be configured to: and acquiring the original color coordinate value, the original brightness value, the target color coordinate value and the target brightness value of the monochrome image in the display mode.
In some embodiments, the apparatus 500 further comprises a storage module for: after the target gamma lookup table is obtained, mapping data reflecting the corresponding relation between the target gamma lookup table and the display mode of the display device is established, and the mapping data is stored in a storage component of the display device.
The functions or modules included in the apparatus 500 for generating a gamma lookup table according to the embodiment of the present invention may be used to execute the method described in the above first aspect of the method embodiment, and for concrete implementation and technical effects, reference may be made to the description of the above method embodiment, and for brevity, no further description is given here.
An embodiment of the present invention further provides a gamma correction device, which may be applied to a display device, as shown in fig. 6, the gamma correction device 600 may include: a display signal acquisition module 601 and a correction module 602.
The display signal acquiring module 601 is configured to acquire a display signal to be displayed.
The correction module 602 is configured to perform gamma correction on each monochrome image display in the display signal according to a target gamma lookup table, so as to obtain a target correction output value for display by the display device, where the target gamma lookup table is obtained according to any one of the methods for generating a gamma lookup table in the embodiments of the present invention.
The functions or modules included in the gamma correction apparatus provided in the embodiment of the present invention may be used to execute the method described in the second aspect of the method embodiment, and for concrete implementation and technical effects, reference may be made to the description of the method embodiment above, and for brevity, details are not described here again.
In practical applications, one logical unit may be one physical unit, may be a part of one physical unit, or may be implemented by a combination of a plurality of physical units. In addition, in order to highlight the innovative part of the present invention, a unit which is less closely related to solving the technical problem proposed by the present invention is not introduced in the present embodiment, but it does not indicate that no other unit exists in the present embodiment.
An embodiment of the present invention further provides an electronic device, where the second electronic device 700 includes:
one or more processors 701;
a memory 702 having one or more programs stored thereon which, when executed by the one or more processors, cause the one or more processors to implement the method of any of the above embodiments;
one or more I/O interfaces 703 connected between the processor and the memory, configured to enable information interaction between the processor and the memory.
Among them, the processor 701 is a device with data processing capability, which includes but is not limited to a Central Processing Unit (CPU) and the like; memory 702 is a device having data storage capabilities including, but not limited to, random access memory (RAM, more specifically SDRAM, DDR, etc.), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), FLASH memory (FLASH); an I/O interface (read/write interface) 703 is coupled between the processor 701 and the memory 702 and enables information interaction between the processor 701 and the memory 702, including but not limited to a data Bus (Bus) or the like.
In some embodiments, the processor 701, the memory 702, and the I/O interface 703 are connected to each other and to other components of the electronic device by a bus.
The present embodiment also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any of the above embodiments.
It will be understood by those of ordinary skill in the art that all or some of the steps of the above inventive method, systems, functional modules/units in the apparatus may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by the computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
Those skilled in the art will appreciate that although some embodiments described herein include some features included in other embodiments instead of others, combinations of features of different embodiments are meant to be within the scope of the embodiments and form different embodiments.
It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.

Claims (8)

1. A method for generating a gamma lookup table, comprising:
acquiring an original color coordinate value and an original brightness value of a monochromatic image to be debugged, and acquiring a target color coordinate value and a target brightness value of the monochromatic image;
wherein the original color coordinate values and the original luminance values respectively represent an original chromaticity and an original luminance when the monochrome image is displayed on a display device, and the target color coordinate values and the target luminance values respectively represent a chromaticity and a luminance when the monochrome image is output to the display device for display, which are expected to be presented by the monochrome image; the original color coordinate values and the original brightness values correspond to an initial corrected color value, the initial corrected color value being a value of the original color value of the monochrome image corresponding in an initial gamma lookup table of the display device;
obtaining a target compensation value based on a target correction compensation algorithm according to the original color coordinate value, the original brightness value, the target color coordinate value and the target brightness value;
wherein the target compensation value includes compensation values corresponding to respective color components in the initial correction color value, and the target correction compensation algorithm is configured to obtain compensation values corresponding to respective color components in the initial correction color value when an original chromaticity and an original brightness exhibited when the monochrome image is output to the display device are compensated to the chromaticity and brightness represented by the target chromaticity coordinate value and the target brightness value;
generating a target gamma lookup table according to the target compensation value and the initial gamma lookup table, wherein the target gamma lookup table is a gamma lookup table corresponding to the display device when the chromaticity and the brightness represented by the target color coordinate value and the target brightness value are reached;
wherein, the target correction compensation algorithm is as follows:
Figure 652193DEST_PATH_IMAGE001
or the following steps:
Figure 746925DEST_PATH_IMAGE002
wherein the content of the first and second substances,
Figure 177907DEST_PATH_IMAGE004
a compensation value representing a green component in the target compensation value,
Figure 150542DEST_PATH_IMAGE006
a compensation value representing a red component in the target compensation value,
Figure 983369DEST_PATH_IMAGE008
a compensation value representing a blue component in the target compensation value;
Figure 750467DEST_PATH_IMAGE010
it is indicated that the first difference value is,
Figure 668745DEST_PATH_IMAGE012
it is indicated that the second difference value,
Figure 445071DEST_PATH_IMAGE014
representing a third difference value, the first difference value being a difference value between an abscissa component of the original color coordinate value and an abscissa component of the target color coordinate value, the second difference value being a difference value between an ordinate component of the original color coordinate value and an ordinate component of the target color coordinate value, the third difference value being a difference value between the original luminance value and the target luminance value;
Figure 132404DEST_PATH_IMAGE016
Figure 834519DEST_PATH_IMAGE018
and
Figure 974513DEST_PATH_IMAGE020
expressing the influence values of the red component in the initial correction color value on the abscissa component of the color coordinate value, the ordinate component of the color coordinate value and the brightness value respectively when the red component is increased according to a preset step value;
Figure 554530DEST_PATH_IMAGE022
Figure 96370DEST_PATH_IMAGE024
and
Figure 798747DEST_PATH_IMAGE026
representing the influence values of the green component in the initial correction color value on the abscissa component of the color coordinate value, the ordinate component of the color coordinate value and the brightness value respectively when the green component is increased according to a preset step value;
Figure 301403DEST_PATH_IMAGE028
Figure 544166DEST_PATH_IMAGE030
and
Figure 815878DEST_PATH_IMAGE032
and expressing the influence values of the blue component in the initial correction color value on the abscissa component of the color coordinate value, the ordinate component of the color coordinate value and the brightness value respectively when the blue component grows according to the preset step value.
2. The method of claim 1, wherein in the target correction compensation algorithm
Figure 751473DEST_PATH_IMAGE034
Figure 234102DEST_PATH_IMAGE036
Figure 14976DEST_PATH_IMAGE038
Figure 406774DEST_PATH_IMAGE040
Figure 247691DEST_PATH_IMAGE042
Figure 724940DEST_PATH_IMAGE044
Figure 309505DEST_PATH_IMAGE046
Figure 555810DEST_PATH_IMAGE048
And
Figure 567628DEST_PATH_IMAGE050
a value calculated for pre-measurement, or a value calculated for real-time measurement before the target compensation value is obtained based on the target correction compensation algorithm;
wherein, in
Figure 499550DEST_PATH_IMAGE034
Figure 887806DEST_PATH_IMAGE036
Figure 785355DEST_PATH_IMAGE038
Figure 843441DEST_PATH_IMAGE040
Figure 154336DEST_PATH_IMAGE042
Figure 752808DEST_PATH_IMAGE044
Figure 941081DEST_PATH_IMAGE046
Figure 560282DEST_PATH_IMAGE048
And
Figure 233840DEST_PATH_IMAGE050
in order to measure the calculated value in real time before the target compensation value is obtained based on the target correction compensation algorithm, the method further includes:
according to the preset stepAdjusting the red component, the green component and the blue component in the initial correction color value respectively by the preset multiple of the long value, and dividing each measured value by the preset multiple to be used as the initial correction color value
Figure 963898DEST_PATH_IMAGE034
Figure 773722DEST_PATH_IMAGE036
Figure 235928DEST_PATH_IMAGE038
Figure 521416DEST_PATH_IMAGE040
Figure 163487DEST_PATH_IMAGE042
Figure 218031DEST_PATH_IMAGE044
Figure 788821DEST_PATH_IMAGE046
Figure 296025DEST_PATH_IMAGE048
And
Figure 39990DEST_PATH_IMAGE050
3. the method according to claim 1, wherein before the steps of acquiring an original color coordinate value and an original luminance value of a monochrome image to be debugged, and acquiring a target color coordinate value and a target luminance value of the monochrome image, the method further comprises:
acquiring a display mode of the display equipment;
the acquiring of the original color coordinate value and the original brightness value of the monochrome image to be debugged, and the acquiring of the target color coordinate value and the target brightness value of the monochrome image, includes:
and acquiring the original color coordinate value, the original brightness value, the target color coordinate value and the target brightness value of the monochrome image in the display mode.
4. The method of claim 3, wherein after obtaining the target gamma lookup table, the method further comprises:
and establishing mapping data reflecting the corresponding relation between the target gamma lookup table and the display mode of the display equipment, and storing the mapping data into a storage component of the display equipment.
5. A gamma correction method, applied to a display device, includes:
acquiring a display signal to be displayed;
and performing gamma correction on each monochrome image display in the display signal according to a target gamma lookup table to obtain a target correction output value for the display device to display, wherein the target gamma lookup table is obtained according to the generation method of the gamma lookup table in any one of claims 1 to 4.
6. An apparatus for generating a gamma lookup table, comprising:
the acquisition module is used for acquiring an original color coordinate value and an original brightness value of a monochromatic image to be debugged and acquiring a target color coordinate value and a target brightness value of the monochromatic image;
wherein the original color coordinate values and the original luminance values respectively represent an original chromaticity and an original luminance when the monochrome image is displayed on a display device, and the target color coordinate values and the target luminance values respectively represent a chromaticity and a luminance when the monochrome image is output to the display device for display, which are expected to be presented by the monochrome image; the original color coordinate values and the original brightness values correspond to initial corrected color values, which are numerical values of original color values of the monochrome image corresponding in an initial gamma lookup table of the display device;
a compensation value calculation module for obtaining a target compensation value based on a target correction compensation algorithm according to the original color coordinate value, the original brightness value, the target color coordinate value and the target brightness value;
wherein the target compensation value includes compensation values corresponding to respective color components in the initial correction color value, and the target correction compensation algorithm is configured to obtain compensation values corresponding to respective color components in the initial correction color value when an original chromaticity and an original brightness exhibited when the monochrome image is output to the display device are compensated to the chromaticity and brightness represented by the target chromaticity coordinate value and the target brightness value;
the generating module is used for generating a target gamma lookup table according to the target compensation value and the initial gamma lookup table, wherein the target gamma lookup table is a gamma lookup table corresponding to the display device when the display device reaches the target color coordinate value and the chromaticity and the brightness represented by the target brightness value;
wherein, the target correction compensation algorithm is as follows:
Figure 621144DEST_PATH_IMAGE001
or the following steps:
Figure 601651DEST_PATH_IMAGE002
wherein the content of the first and second substances,
Figure DEST_PATH_IMAGE052
a compensation value representing a green component in the target compensation value,
Figure DEST_PATH_IMAGE053
a compensation value representing a red component in the target compensation value,
Figure DEST_PATH_IMAGE054
a compensation value representing a blue component in the target compensation value;
Figure DEST_PATH_IMAGE055
it is indicated that the first difference value is,
Figure DEST_PATH_IMAGE056
it is indicated that the second difference value is,
Figure 409201DEST_PATH_IMAGE014
representing a third difference value, the first difference value being a difference value between an abscissa component of the original color coordinate value and an abscissa component of the target color coordinate value, the second difference value being a difference value between an ordinate component of the original color coordinate value and an ordinate component of the target color coordinate value, the third difference value being a difference value between the original luminance value and the target luminance value;
Figure 19174DEST_PATH_IMAGE034
Figure 251572DEST_PATH_IMAGE036
and
Figure 662700DEST_PATH_IMAGE038
representing the influence values of the red component in the initial correction color value on the abscissa component of the color coordinate value, the ordinate component of the color coordinate value and the brightness value respectively when the red component is increased according to a preset step value;
Figure DEST_PATH_IMAGE057
Figure DEST_PATH_IMAGE058
and
Figure 347759DEST_PATH_IMAGE044
representing the influence values of the green component in the initial correction color value on the abscissa component of the color coordinate value, the ordinate component of the color coordinate value and the brightness value respectively when the green component is increased according to a preset step value;
Figure 636789DEST_PATH_IMAGE046
Figure DEST_PATH_IMAGE059
and
Figure 192535DEST_PATH_IMAGE051
and expressing the influence values of the blue component in the initial correction color value on the abscissa component of the color coordinate value, the ordinate component of the color coordinate value and the brightness value respectively when the blue component grows according to the preset step value.
7. An electronic device, comprising:
one or more processors;
memory having one or more programs stored thereon that, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-5;
one or more I/O interfaces connected between the processor and the memory and configured to enable information interaction between the processor and the memory.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-5.
CN202211082387.0A 2022-09-06 2022-09-06 Gamma lookup table generation method and device, electronic equipment and storage medium Active CN115170681B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211082387.0A CN115170681B (en) 2022-09-06 2022-09-06 Gamma lookup table generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211082387.0A CN115170681B (en) 2022-09-06 2022-09-06 Gamma lookup table generation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115170681A CN115170681A (en) 2022-10-11
CN115170681B true CN115170681B (en) 2023-01-03

Family

ID=83482238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211082387.0A Active CN115170681B (en) 2022-09-06 2022-09-06 Gamma lookup table generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115170681B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101105916A (en) * 2007-08-10 2008-01-16 东莞黄江达裕科技电子厂 GAMMA curve regulation method and device
CN105405413A (en) * 2015-12-29 2016-03-16 Tcl新技术(惠州)有限公司 Automatic LCD splicing adjustment type white balance realizing method and system
CN107682682A (en) * 2017-09-30 2018-02-09 武汉天马微电子有限公司 A kind of chromaticity coordinates of automatic correction display screen and the method and relevant device of brightness
CN110278420A (en) * 2018-03-16 2019-09-24 深圳光峰科技股份有限公司 Image processing apparatus, display equipment, image procossing and display device and method
CN110428777A (en) * 2019-08-14 2019-11-08 京东方科技集团股份有限公司 A kind of display bearing calibration of display module and device
CN110910847A (en) * 2019-11-25 2020-03-24 深圳吉迪思电子科技有限公司 Gamma correction method and device for display module
CN113744689A (en) * 2020-05-29 2021-12-03 北京小米移动软件有限公司 Display screen color gamut calibration method and device and electronic equipment
CN114882822A (en) * 2022-05-11 2022-08-09 昆山国显光电有限公司 Gamma debugging method, device, equipment and computer readable storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101469025B1 (en) * 2008-04-16 2014-12-05 삼성디스플레이 주식회사 Method and system of generating gamma data of display device
KR101439333B1 (en) * 2010-09-14 2014-09-11 삼성디스플레이 주식회사 Luminance Correction System for Organic Light Emitting Display Device
KR102078677B1 (en) * 2013-05-10 2020-02-20 삼성디스플레이 주식회사 Method of generating image compensation data for display device, image compensation device using the same and method of operating display device
KR20150014710A (en) * 2013-07-30 2015-02-09 삼성디스플레이 주식회사 Liquid crystal display apparatus and driving method there of
KR20150139014A (en) * 2014-05-30 2015-12-11 삼성디스플레이 주식회사 Methods of correcting gamma and display device employing the same
CN106531066B (en) * 2016-11-28 2020-02-07 昆山国显光电有限公司 Gamma correction method and device for display module
CN113948041B (en) * 2021-10-13 2023-01-24 昆山国显光电有限公司 Brightness compensation method and device of display panel and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101105916A (en) * 2007-08-10 2008-01-16 东莞黄江达裕科技电子厂 GAMMA curve regulation method and device
CN105405413A (en) * 2015-12-29 2016-03-16 Tcl新技术(惠州)有限公司 Automatic LCD splicing adjustment type white balance realizing method and system
CN107682682A (en) * 2017-09-30 2018-02-09 武汉天马微电子有限公司 A kind of chromaticity coordinates of automatic correction display screen and the method and relevant device of brightness
CN110278420A (en) * 2018-03-16 2019-09-24 深圳光峰科技股份有限公司 Image processing apparatus, display equipment, image procossing and display device and method
CN110428777A (en) * 2019-08-14 2019-11-08 京东方科技集团股份有限公司 A kind of display bearing calibration of display module and device
CN110910847A (en) * 2019-11-25 2020-03-24 深圳吉迪思电子科技有限公司 Gamma correction method and device for display module
CN113744689A (en) * 2020-05-29 2021-12-03 北京小米移动软件有限公司 Display screen color gamut calibration method and device and electronic equipment
CN114882822A (en) * 2022-05-11 2022-08-09 昆山国显光电有限公司 Gamma debugging method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN115170681A (en) 2022-10-11

Similar Documents

Publication Publication Date Title
US8289344B2 (en) Methods and apparatus for color uniformity
US10839731B2 (en) Mura correction system
CN109166559B (en) Gamma value debugging method and device for display panel
US7129456B2 (en) Method and apparatus for calculating image correction data and projection system
US20200184912A1 (en) Method and device for adjusting gray scale of display panel
CN109036333B (en) Display parameter correction method and device of display, terminal equipment and storage medium
US10157582B2 (en) Display device, gradation correction map generation device, gradation correction map generation method, and program
CN113495709B (en) Color correction method, AP chip, terminal and storage medium
WO2013103462A1 (en) Image perceptual attribute adjustment
US11114017B2 (en) Mura correction driver
US9928784B2 (en) Display apparatus, gradation correction map generating device, gradation correction map generating method, and program
JP2011039477A (en) Method for control of improving luminance uniformity, luminance calibrating controller, and display device
JP2011034044A (en) Method for calibration of improving luminance uniformity in display device, and related device
US7884837B2 (en) Method and apparatus for correcting spatial non-uniformity in display device
JP2013044959A5 (en)
CN115170681B (en) Gamma lookup table generation method and device, electronic equipment and storage medium
CN109410889B (en) White balance adjusting method and device and electronic equipment
US20140133752A1 (en) Display apparatus and method for image output thereof
CN114242013A (en) Method and device for eliminating brightness mura defect of liquid crystal display
CN114627833B (en) Display method, display panel and readable storage medium
CN117198236A (en) White balance correction method, white balance correction device, liquid crystal display device and storage medium
US20210352270A1 (en) Method and System for Accurate Measurement of Color Performance of Electronic Displays Using Low-Accuracy Measurement Devices
CN113470591B (en) Monitor color matching method and device, electronic equipment and storage medium
CN108574836B (en) Method and device for weakening saturation or pockmark phenomenon in image
CN115862534A (en) Color correction method, color correction device, electronic device and storage medium

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