CN117392965A - Correction method, correction device, electronic equipment and medium - Google Patents

Correction method, correction device, electronic equipment and medium Download PDF

Info

Publication number
CN117392965A
CN117392965A CN202210785426.7A CN202210785426A CN117392965A CN 117392965 A CN117392965 A CN 117392965A CN 202210785426 A CN202210785426 A CN 202210785426A CN 117392965 A CN117392965 A CN 117392965A
Authority
CN
China
Prior art keywords
gamma
value
gray
scale
brightness
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.)
Pending
Application number
CN202210785426.7A
Other languages
Chinese (zh)
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.)
Guangzhou Shikun Electronic Technology Co Ltd
Original Assignee
Guangzhou Shikun Electronic 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 Guangzhou Shikun Electronic Technology Co Ltd filed Critical Guangzhou Shikun Electronic Technology Co Ltd
Priority to CN202210785426.7A priority Critical patent/CN117392965A/en
Publication of CN117392965A publication Critical patent/CN117392965A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/02Improving the quality of display appearance
    • G09G2320/0271Adjustment of the gradation levels within the range of the gradation scale, e.g. by redistribution or clipping
    • G09G2320/0276Adjustment of the gradation levels within the range of the gradation scale, e.g. by redistribution or clipping for the purpose of adaptation to the characteristics of a display device, i.e. gamma correction
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0673Adjustment of display parameters for control of gamma adjustment, e.g. selecting another gamma curve
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0693Calibration of display systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

The embodiment of the invention discloses a correction method, a correction device, electronic equipment and a correction medium. The method comprises the following steps: determining white field brightness, red field brightness, green field brightness and blue field brightness under the same color gradation; if the white field brightness is not equal to the sum of the red field brightness, the green field brightness and the blue field brightness under the same color level, determining actual gamma values respectively corresponding to a plurality of gray-scale pictures displayed by the display equipment under the initial gamma correction coefficient; determining a gamma curve based on the target gamma value and each actual gamma value; a target gamma correction coefficient of the display device is determined based on the gamma curve and picture information corresponding to the plurality of gray-scale pictures. The adjusted gamma value is determined through the actual gamma value and the target gamma value, so that the target gamma correction coefficient is recalculated according to the adjusted gamma value and the picture information of a plurality of gray-scale pictures, the problem that the initial gamma correction coefficient is inaccurate under the condition that the white-field brightness is not equal to the sum of the red-field brightness, the green-field brightness and the blue-field brightness is solved, and the correction accuracy is improved.

Description

Correction method, correction device, electronic equipment and medium
Technical Field
The embodiment of the invention relates to the technical field of display, in particular to a correction method, a correction device, electronic equipment and a correction medium.
Background
In the process of producing display devices (such as televisions), the production line performs automatic Gamma correction on each display device, so that the brightness distribution of each display device accords with the distribution of a set Gamma value (such as 2.2 or 2.4).
Currently, the process of automatic gamma correction is that firstly, a display device displays different pictures, such as 11 gray-scale pictures, all red field pictures, all green field pictures and all blue field pictures, and 14 pictures are displayed; then the upper computer collects the chromaticity values (namely, the x coordinate and the y coordinate representing the color temperature) and the brightness values (namely, the Lv values) of the 14 pictures through a color temperature instrument; finally, the upper computer calculates gamma correction parameters of the display equipment according to the collected chromaticity values and brightness values corresponding to the 14 pictures and preset gamma values (such as 2.2 or 2.4), so that the brightness distribution of the display equipment accords with the set gamma value distribution after the gamma correction parameters are written into the display equipment.
In the above correction process, the algorithm for calculating the gamma correction parameter of the display device is based on that the white field luminance of the display screen of the display device is equal to the sum of the red field luminance, the green field luminance and the blue field luminance. However, in the actual production process of display devices, there are many display devices in which the white field luminance is not equal to the sum of the red field luminance, the green field luminance, and the blue field luminance. For such display devices, the gamma correction parameters obtained by the above correction method are not accurate, resulting in a large deviation between the brightness distribution of the display device to which the gamma correction parameters are written and the set gamma value distribution.
Disclosure of Invention
The embodiment of the invention provides a correction method, a correction device, electronic equipment and a correction medium, which are used for improving the accuracy of gamma correction.
According to an aspect of an embodiment of the present invention, there is provided a correction method including:
determining white field brightness, red field brightness, green field brightness and blue field brightness under the same color gradation;
if the white field brightness is not equal to the sum of the red field brightness, the green field brightness and the blue field brightness under the same color level, determining actual gamma values respectively corresponding to a plurality of gray-scale pictures displayed by the display equipment under the initial gamma correction coefficient, wherein the gray scales corresponding to the plurality of gray-scale pictures are different;
determining a gamma curve based on the target gamma value and each actual gamma value, wherein the gamma curve represents the adjusted gamma value corresponding to different gray scales;
and determining a target gamma correction coefficient of the display device based on the gamma curve and picture information corresponding to the plurality of gray-scale pictures.
According to another aspect of an embodiment of the present invention, there is provided a correction device including:
the brightness determining module is used for determining white field brightness, red field brightness, green field brightness and blue field brightness under the same color level;
The gamma value determining module is used for determining actual gamma values respectively corresponding to a plurality of gray-scale pictures displayed by the display equipment under the initial gamma correction coefficient if the white-field brightness is not equal to the sum of the red-field brightness, the green-field brightness and the blue-field brightness under the same color scale, and the gray scales corresponding to the plurality of gray-scale pictures are different;
the curve determining module is used for determining a gamma curve based on the target gamma value and each actual gamma value, wherein the gamma curve represents the adjusted gamma value corresponding to different gray scales;
and the coefficient determining module is used for determining a target gamma correction coefficient of the display equipment based on the gamma curve and picture information corresponding to the plurality of gray-scale pictures.
According to another aspect of an embodiment of the present invention, there is provided an electronic apparatus including:
one or more processors;
a storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the correction method as described in any of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing a computer program which, when executed by a processor, implements a correction method according to any of the embodiments of the present invention.
According to the technical scheme, firstly, the white field brightness, the red field brightness, the green field brightness and the blue field brightness under the same color level are determined; then, if the white field brightness is not equal to the sum of the red field brightness, the green field brightness and the blue field brightness under the same color level, determining actual gamma values respectively corresponding to a plurality of gray-scale pictures displayed by the display equipment under the initial gamma correction coefficient, wherein the gray scales corresponding to the plurality of gray-scale pictures are different; then, based on the target gamma value and each actual gamma value, determining a gamma curve, wherein the gamma curve represents the adjusted gamma value corresponding to different gray scales; and finally, determining a target gamma correction coefficient of the display equipment based on the gamma curve and picture information corresponding to the plurality of gray-scale pictures. According to the technical scheme, the adjusted gamma value is determined through the actual gamma values and the target gamma values of the plurality of gray-scale pictures under the initial gamma correction coefficient, so that the corresponding target gamma correction coefficient is recalculated according to the adjusted gamma value and the picture information of the plurality of gray-scale pictures, the problem that the initial gamma correction coefficient is inaccurate under the condition that the white-field brightness is not equal to the sum of the red-field brightness, the green-field brightness and the blue-field brightness is solved, and the correction accuracy is improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram illustrating an implementation of a gamma correction method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a calibration method according to a first embodiment of the present invention;
FIG. 3 is a flowchart of a calibration method according to a second embodiment of the present invention;
fig. 4 is a schematic diagram illustrating an implementation of a correction method according to a second embodiment of the present invention;
fig. 5 is a schematic structural diagram of a calibration device according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "initial," "target," and the like in the description and claims of the present invention and the above-described drawings are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Fig. 1 is a schematic diagram illustrating an implementation of a gamma correction method according to an embodiment of the invention. As shown in fig. 1, 1 represents an upper computer; 2 represents a color temperature meter; 3 denotes a display device. The implementation process of the method is as follows: first, the display device 3 displays different pictures, such as 11 gray-scale pictures, full red field pictures, full green field pictures, and full blue field pictures, and 14 pictures in total; then the color temperature instrument 2 collects the chromaticity values (namely, the x coordinate and the y coordinate representing the color temperature) and the brightness values (namely, the Lv value) of the 14 pictures, and the upper computer 1 reads the chromaticity values and the brightness values corresponding to the 14 pictures collected by the color temperature instrument; finally, the upper computer 1 calculates the gamma correction parameters of the display device 3 according to the chromaticity values and the brightness values corresponding to the 14 pictures and the preset gamma values (such as 2.2 or 2.4), and writes the gamma correction parameters into the display device (such as a board card of the display device), so that the brightness distribution of the display device 3 accords with the set gamma value distribution after the gamma correction parameters are written into the display device 3.
In the above correction process, the algorithm for calculating the gamma correction parameter of the display device is based on that the white field luminance of the display screen of the display device is equal to the sum of the red field luminance, the green field luminance and the blue field luminance. However, in the actual production process of display devices, there are many display devices in which the white field luminance is not equal to the sum of the red field luminance, the green field luminance, and the blue field luminance. For such display devices, the gamma correction parameters obtained by the above correction method are not accurate, resulting in a large deviation between the brightness distribution of the display device to which the gamma correction parameters are written and the set gamma value distribution.
Example 1
In order to solve the technical problems, the embodiment of the invention provides a correction method. Fig. 2 is a flowchart of a correction method according to a first embodiment of the present invention, where the method may be applied to the case of performing gamma automatic correction on a display device, and the method may be performed by a correction device, where the correction device may be implemented in hardware and/or software, and the correction device may be configured in an electronic device, where the electronic device may be a computer, a server, or a notebook computer. As shown in fig. 2, the method includes:
s110, determining white field brightness, red field brightness, green field brightness and blue field brightness under the same color level.
In this embodiment, the tone scale can be understood as an index standard for representing the intensity of the image brightness; the tone scale refers to brightness, independent of color, wherein the tone scale is brightest white and darkest black. The range of the gradation value may be 0-255 gray scale values or 0-4095 gray scale values, which is not limited herein. The tone scale may be used to characterize the brightness level of the tone scale; where 0-255 is taken as an example, 0 may represent the darkest brightness (i.e., black), the higher the gray value, the higher the brightness, and similarly 255 may represent the brightest brightness (i.e., white).
Each image (or picture) may be considered to be composed of a number of points, which may be referred to as pixel points; typically, each pixel may take on a different color, and each pixel may be composed of three sub-pixels, red (Red), green (Green), and Blue (Blue), which may also be denoted as R, G, B. Each sub-pixel (i.e., R, G, B) can correspond to a range of tone scale values, such as 0-255 gray scale values.
A white field is understood to be a white display consisting of three sub-pixels, red, green and blue. The display screen may refer to an entire screen displayed by the display device. The display device may refer to a device for displaying a corresponding screen. White field brightness is understood to be the brightness of the picture in white field.
Accordingly, a red field is understood to be a red display consisting of red sub-pixels. Red field brightness is understood to be the picture brightness in the red field.
A green field is understood to be a green display consisting of green sub-pixels. Green field luminance is understood to be the picture luminance in the green field.
A blue field is understood to be a blue display consisting of blue sub-pixels. Blue field luminance can be understood as picture luminance in the blue field.
The same tone scale can be understood as a combination of tone scales corresponding to the same group R, G, B. Assuming that the tone scale value ranges corresponding to R, G, B can be 0-255 gray scale values, then 256×256 tone scale combinations may coexist. The same gradation may be considered as the same gradation of white field, red field, and blue field, such as x% white field, x% red field, and x% blue field. Taking the value range of [0-255] as an example, a 10% white field can be considered as a white field at 10% by 256 gradation. That is, the result of multiplying x% by the number y of gradation included in the gradation range is the gradation value corresponding to the result.
In this step, it is possible to determine, for each of the tone scale combinations (e.g., [ R, G, B ] = [0, 0], [ R, G, B ] = [10, 10, 10], or [ R, G, B ] = [100, 100, 100], etc.), the corresponding white field luminance, red field luminance, green field luminance, and blue field luminance at that tone scale combination. A set number of tone scale combinations may be selected from all the tone scale combinations (there is no specific limitation on how to select the set number of tone scale combinations); on the basis of this, for each selected tone scale, the corresponding white field luminance, red field luminance, green field luminance and blue field luminance are determined at that tone scale.
Each tone scale may correspond to a white field luminance, a red field luminance, a green field luminance, and a blue field luminance. The present embodiment is not particularly limited as to how to determine the white field luminance, the red field luminance, the green field luminance, or the blue field luminance at the same tone.
In one embodiment, this step may be determined based on the operation of the chromaticity values and the luminance values of the pictures displayed by the display device under a plurality of gray scales, for example, the chromaticity values and the luminance values of the 14 pictures may be determined, and three extremum values X, Y, Z may be obtained in the operation determination, and then the distribution of the red field, the green field, and the blue field may be estimated from the trend of the white field by linear estimation.
In one embodiment, the white, red, green, and blue fields at multiple gray scales may be acquired, and then x% red, x% white, x% green, and x% blue field intensities may be determined, i.e., white, red, blue, and green field intensities at the same color scale may be determined.
S120, if the white field brightness is not equal to the sum of the red field brightness, the green field brightness and the blue field brightness under the same color level, determining the actual gamma values respectively corresponding to a plurality of gray-scale pictures displayed by the display equipment under the initial gamma correction coefficient, wherein the gray scales corresponding to the plurality of gray-scale pictures are different.
In this embodiment, the initial gamma correction coefficient may be understood as a gamma correction coefficient determined based on the target gamma value. And according to the chromaticity value and the brightness value corresponding to the acquired 14 pictures and the target gamma value, calculating the gamma correction coefficient of the display equipment. The gamma correction factor can be understood as the value of the RGB color levels of the display device at different gray levels. The initial gamma correction coefficient may be regarded as the gamma correction parameter in the above-described embodiment. In this step, how to calculate the initial gamma correction coefficient according to the chromaticity value and the luminance value corresponding to the acquired 14 frames and the target gamma value is not limited.
The 14 pictures refer to 11 gray-scale pictures, full red field pictures, full green field pictures and full blue field pictures displayed by the display device. The gray-scale picture can be understood as a display picture under a set gray-scale value; gray scale is understood to be a criterion that characterizes the change in brightness between brightest and darkest, and, like gray scale, a gray scale value range may be 0-255 gray scale values, 0 may represent darkest brightness, higher brightness is the higher gray scale value, and so on, 255 may represent brightest brightness; the gray scale value range may be 0-4095 gray scale values, which is not limited herein. The 11 gray-scale frames are not particularly limited herein, and for example, the 11 gray-scale frames may be display frames with gray-scale values of 0% by 256, 10% by 256, 20% by 256, 30% by 256, … …, 90% by 256, and 100% by 256, respectively.
The full red field picture can be understood as a display picture when the red field brightness is highest; and if the R value is 255, and the G and B values are 0, respectively, the red field picture is corresponding to the R value. Correspondingly, an all-green field picture can be understood as a display picture when the brightness of the green field is highest; if the G value is 255, and R and B are 0, respectively. The full blue field picture can be understood as a display picture when the brightness of the blue field is highest; if B is 255, R and G are 0, respectively.
The color of each pixel in a picture (or image) may be represented collectively by luminance and chrominance. Chromaticity may represent hue and saturation of a color. One picture may correspond to one chroma value and one luma value. The chromaticity value may be understood as a value characterizing the chromaticity of a pixel. The chromaticity values may be represented as chromaticity coordinates, such as x-coordinates and y-coordinates. The luminance value may be understood as a value representing the luminance of the pixel, and the luminance value may be expressed as an Lv value.
The target gamma value may be understood as a preset gamma value. Specific values of the target gamma value are not limited herein, and may be 2.2 or 2.4, for example.
The plurality of gray-scale pictures displayed by the display device under the initial gamma correction coefficient can be understood as a plurality of gray-scale pictures acquired after the initial gamma correction coefficient is written into the display device. Wherein the gray scales corresponding to the plurality of gray scale pictures are different. For example, the plurality of gray-scale frames may be display frames with the gray-scale values (gray-scale may also be referred to as gray-scale values) of 0% by 256, 10% by 256, 20% by 256, 30% by 256, … …, 90% by 256, and 100% by 256, respectively.
The actual gamma value can be understood as the gamma value actually corresponding to the gray-scale picture of the display device after the initial gamma correction coefficient is written into the display device.
After determining the white field luminance, the red field luminance, the green field luminance, and the blue field luminance at the same color gradation, it can be determined whether the white field luminance is equal to the sum of the red field luminance, the green field luminance, and the blue field luminance. If the white field brightness is not equal to the sum of the red field brightness, the green field brightness and the blue field brightness under the same color level, the actual gamma values respectively corresponding to a plurality of gray-scale pictures displayed by the display equipment under the initial gamma correction coefficient can be determined.
There is no specific limitation on how the actual gamma value is determined. For example, the actual gamma value of each gray-scale picture may be determined based on the brightness values of a plurality of gray-scale pictures displayed by the display device under the initial gamma correction coefficient. Specifically, the brightness value of each gray-scale picture in the plurality of gray-scale pictures can be obtained first; then taking the maximum brightness value and the minimum brightness value in all brightness values as reference brightness values; it can be understood that, since the larger the gray scale is, the higher the brightness (i.e., the gray scale is in direct proportion to the brightness of the corresponding gray scale picture), the brightness value corresponding to the gray scale picture with the largest gray scale is the largest, and the brightness value corresponding to the gray scale picture with the smallest gray scale is the smallest. And finally, determining the actual gamma value corresponding to the gray-scale picture according to the determined reference brightness value and the brightness value of the gray-scale picture for each gray-scale picture except for the gray-scale picture corresponding to the reference brightness value.
For example, the plurality of gray-scale frames are display frames with gray-scale values of 0% by 256, 10% by 256, 20% by 256, 30% by 256, … …, 90% by 256, and 100% by 256, respectively, and a total of 11 gray-scale frames are taken as an example. Let the luminance value corresponding to a gray-scale picture with gray-scale of 0% by 256 (i.e., the minimum luminance value) be represented as Lv0, the luminance value corresponding to a gray-scale picture with gray-scale of 10% by 256 be represented as Lv10, and so on, the luminance value corresponding to a gray-scale picture with gray-scale of 100% by 256 (i.e., the maximum luminance value) be represented as Lv100. The formula for calculating the actual gamma value can be expressed as:
wherein Lvx can represent the brightness value of each gray-scale picture except the gray-scale picture corresponding to the reference brightness value, and x can be 10, 20, 30, … …, 80, 90; lg may represent a base 10 logarithmic function, such as lg10=1.
According to the calculation formula of the actual gamma values, 9 actual gamma values can be calculated.
S130, determining a gamma curve based on the target gamma value and each actual gamma value, wherein the gamma curve represents the adjusted gamma value corresponding to different gray scales.
In this embodiment, the gamma curve can be understood as a curve formed based on the adjusted gamma values corresponding to different gray scales, and can be used to represent the adjusted gamma values corresponding to different gray scales.
How the gamma curve is determined based on the target gamma value and each actual gamma value is not particularly limited herein. For example, each difference between the target gamma value and each actual gamma value may be determined (for example, the target gamma value may be subtracted from the actual gamma value or the actual gamma value may be subtracted from the target gamma value), and a corresponding curve (for example, may be referred to as a gamma deviation curve) may be determined according to the determined correspondence between each difference and each gray level corresponding to each actual gamma value; on the basis, determining a corresponding gamma curve based on the target gamma value and the determined gamma deviation curve, specifically, if the difference value is the target gamma value minus the actual gamma value, determining each value obtained by adding the corresponding value on the gamma deviation curve to the target gamma value, and determining the generated curve as the gamma curve; if the difference is the actual gamma value minus the target gamma value, each value obtained by subtracting the corresponding value on the gamma deviation curve from the target gamma value is determined as a gamma curve.
S140, determining a target gamma correction coefficient of the display device based on the gamma curve and picture information corresponding to the plurality of gray-scale pictures.
In this embodiment, the picture information is understood as information for characterizing chromaticity and luminance of the grayscale picture, for example, the picture information may include chromaticity values (i.e., color temperature coordinates) and luminance values of the grayscale picture. The target gamma correction coefficient may be understood as an adjusted gamma correction coefficient determined based on each gamma value adjusted at different gray levels in the gamma curve and picture information corresponding to a plurality of gray-scale pictures.
Here, how to determine the target gamma correction coefficient of the displayed apparatus based on the gamma curve and the picture information corresponding to the plurality of gray-scale pictures is not particularly limited. For example, the method for calculating the initial gamma correction coefficient may be referred to, and the corresponding gamma correction coefficient may be calculated according to the adjusted gamma value corresponding to each gray level in the gamma curve and the picture information corresponding to the gray level picture corresponding to each gray level to obtain the target gamma correction coefficient.
In this embodiment, the adjusted gamma values corresponding to different gray scales may be the same or different.
The first embodiment provides a correction method, which includes determining white field brightness, red field brightness, green field brightness and blue field brightness under the same color level; then, if the white field brightness is not equal to the sum of the red field brightness, the green field brightness and the blue field brightness under the same color level, determining actual gamma values respectively corresponding to a plurality of gray-scale pictures displayed by the display equipment under the initial gamma correction coefficient, wherein the gray scales corresponding to the plurality of gray-scale pictures are different; then, based on the target gamma value and each actual gamma value, determining a gamma curve, wherein the gamma curve represents the adjusted gamma value corresponding to different gray scales; and finally, determining a target gamma correction coefficient of the display equipment based on the gamma curve and picture information corresponding to the plurality of gray-scale pictures. According to the method, the adjusted gamma value is determined through the actual gamma values and the target gamma values of the plurality of gray-scale pictures under the initial gamma correction coefficient, so that the corresponding target gamma correction coefficient is recalculated according to the adjusted gamma value and the picture information of the plurality of gray-scale pictures, the problem that the initial gamma correction coefficient is inaccurate under the condition that the white field brightness is not equal to the sum of the red field brightness, the green field brightness and the blue field brightness is solved, and the correction accuracy is improved.
Example two
Fig. 3 is a flowchart of a correction method according to a second embodiment of the present invention, where the correction method is refined based on the foregoing embodiment. In the present embodiment, a process of determining a gamma curve based on a target gamma value and each actual gamma value, and determining actual gamma values respectively corresponding to a plurality of gray-scale pictures displayed by a display device under an initial gamma correction coefficient is specifically described. It should be noted that technical details not described in detail in this embodiment may be found in any of the above embodiments. As shown in fig. 3, the method includes:
s210, determining white field brightness, red field brightness, green field brightness and blue field brightness under each tone in the tone set.
In the present embodiment, the tone scale set is understood as a set composed of a plurality of tone scales set in advance. The tone scale set may include 0% > -256 tone scales (i.e., [ R, G, B ] = [0% > -256, 0% > -256 ]), 10% > -256 tone scales (i.e., [ R, G, B ] = [10% > -256, 10% > -256 ]), 20% > -256 tone scales (i.e., [ R, G, B ] = [20% > -256, 20% > -256 ]), - … …, 90% > -256 tone scales (i.e., [ R, G, B ] = [90% > -256, 90% > -256 ]), and 100% > -256 tone scales (i.e., [ R, G, B ] = [100% > -256, 100% > -256 ]).
For each tone scale in the set of tone scales, a white field luminance, a red field luminance, a green field luminance, and a blue field luminance at that tone scale are determined. For example, taking x% by 256 tone scale as an example, the white field luminance of x% by 256 tone scale, the red field luminance of x% by 256 tone scale, the green field luminance of x% by 256 tone scale, and the blue field luminance of x% by 256 tone scale are determined, respectively.
This step can determine the white field luminance, red field luminance, green field luminance, and blue field luminance at each of the tone levels in the tone level set. So as to determine for each tone scale whether the white field luminance is equal to the sum of the red field luminance, the green field luminance, and the blue field luminance for that tone scale, if there is any tone scale in which the white field luminance is not equal to the sum of the red field luminance, the green field luminance, and the blue field luminance, S220 may be continuously performed to correct the target gamma value.
S220, if the white field brightness is not equal to the sum of the red field brightness, the green field brightness and the blue field brightness under the same color level, acquiring brightness values of a plurality of gray-scale pictures displayed by the display equipment under the initial gamma correction coefficient.
The white field luminance at any one color level in the color level set is not equal to the sum of the red field luminance, the green field luminance and the blue field luminance, and the white field luminance at the same color level is considered to be not equal to the sum of the red field luminance, the green field luminance and the blue field luminance.
In this embodiment, after the initial gamma correction coefficient is written into the display device, if the white field luminance is not equal to the sum of the red field luminance, the green field luminance and the blue field luminance at the same color level, the luminance values of a plurality of gray-scale pictures displayed by the display device under the initial gamma correction coefficient may be obtained. In this step, the plurality of gray-scale frames may be display frames with gray-scale values of 0% by 256, 10% by 256, 20% by 256, 30% by 256, … …, 90% by 256, and 100% by 256, respectively, for 11 gray-scale frames.
S230, taking a maximum brightness value corresponding to a gray-scale picture with the maximum gray-scale and a minimum brightness value corresponding to a gray-scale picture with the minimum gray-scale in the plurality of gray-scale pictures as reference brightness values.
In this embodiment, the gray-scale frame with the largest gray-scale can be understood as a display frame corresponding to the maximum gray-scale value, such as a display frame with a gray-scale value of 100% by 256. Accordingly, a gray-scale frame with the smallest gray-scale can be understood as a display frame corresponding to the smallest gray-scale value, such as a display frame with a gray-scale value of 0% by 256. The gray scale (i.e. gray scale value) is in a direct proportion relation with the brightness value of the corresponding gray scale picture, so that the corresponding maximum brightness value can be understood as the brightness value corresponding to the gray scale picture with the maximum gray scale; the minimum luminance value is understood as a luminance value corresponding to a gray-scale picture having the smallest gray-scale.
The reference luminance value may be understood as a luminance value standard for calculating actual gamma values corresponding to other gray-scale pictures except for the gray-scale picture corresponding to the reference luminance value. In this step, the maximum luminance value corresponding to the gray-scale picture having the largest gray-scale and the minimum luminance value corresponding to the gray-scale picture having the smallest gray-scale among the plurality of gray-scale pictures may be used as the reference luminance values.
S240, determining an actual gamma value corresponding to the target gray-scale picture based on the brightness value and the reference brightness value of the target gray-scale picture.
In this embodiment, the target gray-scale frame may be understood as a gray-scale frame outside a gray-scale frame with the largest gray-scale and a gray-scale frame with the smallest gray-scale among the displayed plurality of gray-scale frames.
For each target gray-scale picture, the actual gamma value corresponding to the target gray-scale picture can be determined based on the brightness value of the target gray-scale picture and the reference brightness value. How to determine the actual gamma value corresponding to the target gray-scale picture based on the brightness value of the target gray-scale picture and the reference brightness value can be referred to the calculation formula method of the actual gamma value in the above embodiment, which is not described herein.
S250, determining a gamma deviation value of the actual gamma value based on the actual gamma value and the target gamma value for each actual gamma value.
In this embodiment, the gamma deviation value is understood as a deviation value between the actual gamma value and the target gamma value. Each actual gamma value may correspond to a gamma offset value.
For each actual gamma value, a gamma deviation value corresponding to the actual gamma value may be determined based on the actual gamma value and the target gamma value. For example, the difference between the actual gamma value and the target gamma value (i.e., the difference obtained by subtracting the target gamma value from the actual gamma value) may be the difference between the target gamma value and the actual gamma value (i.e., the difference obtained by subtracting the actual gamma value from the target gamma value).
S260, determining a gamma deviation curve based on each gamma deviation value and the corresponding gray level, wherein the gamma deviation curve represents the corresponding relation between different gray levels and the corresponding gamma deviation value.
In this embodiment, the gamma deviation curve can be understood as a curve representing the correspondence between different gray scales and corresponding gamma deviation values based on each gamma deviation value and each corresponding gray scale. Each gray level corresponds to a gray level picture, each gray level picture corresponds to an actual gamma value, and each actual gamma value corresponds to a gamma deviation value.
Based on the determined gamma deviation values and the gray scales corresponding to the gamma deviation values, a gamma deviation curve representing the correspondence between the gamma deviation values and the gray scales can be determined. The method for determining the gamma deviation curve is not particularly limited, and for example, each determined gamma deviation value and the corresponding gray scale may be used as the base point of initial determination, and linear interpolation may be performed on the base point to generate a gamma deviation curve containing more points (for example, a gamma deviation curve containing 4096 points is generated by linear interpolation).
S270, determining a gamma curve based on the target gamma value and the gamma deviation curve.
In this embodiment, different gamma deviation value determining manners may correspond to different gamma curve determining manners. For example, if the gamma deviation value is a difference between the target gamma value and the actual gamma value, each value obtained by adding a corresponding value to the gamma deviation curve to the target gamma value may be determined as the gamma curve. If the gamma deviation value is the actual gamma value minus the target gamma value, each value obtained by subtracting the corresponding value on the gamma deviation curve from the target gamma value can be determined as a gamma curve.
S280, determining a target gamma correction coefficient of the display device based on the gamma curve and picture information corresponding to the plurality of gray-scale pictures.
In this embodiment, the target gamma correction coefficient of the display device may be determined by performing the recalculation of the gamma correction coefficient based on the adjusted gamma value corresponding to each gray level in the determined gamma curve and the picture information corresponding to the gray level picture corresponding to each gray level.
The second embodiment provides a correction method, specifically describing a process of determining a gamma curve based on a target gamma value and each actual gamma value, and determining actual gamma values corresponding to a plurality of gray-scale pictures displayed by a display device under an initial gamma correction coefficient. The method uses the corresponding maximum brightness value and minimum brightness value in a plurality of gray-scale pictures as reference brightness values, so that corresponding actual gamma values can be determined according to the reference brightness values and the brightness values of target gray-scale pictures; determining a corresponding gamma deviation curve based on each actual gamma value and the target gamma value, and correcting error compensation on the actual gamma value based on the gamma deviation curve to determine the corresponding gamma curve; on the basis, the corresponding target gamma correction coefficient is recalculated according to the gamma curve and the picture information of a plurality of gray-scale pictures, so that the problem that the initial gamma correction coefficient is inaccurate under the condition that the white field brightness is not equal to the sum of the red field brightness, the green field brightness and the blue field brightness can be solved, and the correction accuracy is improved.
Optionally, determining a gamma deviation curve based on each gamma deviation value and the corresponding gray level includes: determining an initial point on a gamma deviation curve based on each gamma deviation value and the corresponding gray scale; and performing linear interpolation based on the initial point to obtain a gamma deviation curve.
The initial point may be understood as a point formed by each gamma deviation value and the corresponding gray level, for example, each gamma deviation value and the gray level corresponding to the gamma deviation value may form an initial point. For example, taking the example that the gray-scale values of the plurality of gray-scale frames may be 0% by 256, 10% by 256, 20% by 256, 30% by 256, … …, 90% by 256, and 100% by 256 respectively as display frames, the 9 actual gamma values corresponding to the 9 target gray-scale frames except the gray-scale frame with the largest gray-scale and the gray-scale frame with the smallest gray-scale may be determined, and each actual gamma value and the corresponding gray-scale may form an initial point, so that the 9 initial points may be determined.
Linear interpolation may refer to a method of determining a value of an unknown quantity between two known quantities using a straight line connecting the two known quantities. In this step, linear interpolation is performed based on the initial points, and it is understood that interpolation of a plurality of unknowns is performed between the respective initial points on the basis of a curve determined by 9 initial points, and a value of the unknowns is determined on the basis of the determined curve. Linear interpolation based on the initial point can result in a gamma deviation curve with multiple points (e.g., 4096 points).
Optionally, determining the gamma deviation value of the actual gamma value based on the actual gamma value and the target gamma value includes: determining a difference value between the actual gamma value and the target gamma value as a gamma deviation value of the actual gamma value;
accordingly, determining a gamma curve based on the target gamma value and the gamma deviation curve includes: a gamma curve is determined based on the difference between the target gamma value and the corresponding value on the gamma deviation curve.
In this embodiment, when the difference between the actual gamma value and the target gamma value (i.e., the value obtained by subtracting the target gamma value from the actual gamma value) is determined as the gamma deviation value of the actual gamma value, the obtained gamma deviation value may be a positive value, so that a corresponding gamma curve may be generated based on the difference between the target gamma value and the corresponding value on the gamma deviation curve at this time; that is, the difference between the target gamma value and the gamma deviation value corresponding to each gray level on the gamma deviation curve is determined, and a corresponding gamma curve is generated according to the determined correspondence between each difference and the corresponding gray level.
Optionally, determining the gamma deviation value of the actual gamma value based on the actual gamma value and the target gamma value includes: determining a difference value between the target gamma value and the actual gamma value as a gamma deviation value of the actual gamma value;
Accordingly, determining a gamma curve based on the target gamma value and the gamma deviation curve includes: a gamma curve is determined based on a sum of the target gamma value and a corresponding value on the gamma deviation curve.
In this embodiment, when the difference between the target gamma value and the actual gamma value (i.e., the value obtained by subtracting the actual gamma value from the target gamma value) is determined as the gamma deviation value of the actual gamma value, the obtained gamma deviation value may be a negative value, so that a corresponding gamma curve may be generated based on the sum of the corresponding values on the target gamma value and the gamma deviation curve; that is, a sum value between the target gamma value and the gamma deviation value corresponding to each gray level on the gamma deviation curve is determined, and a corresponding gamma curve is generated according to the determined correspondence between each sum value and the corresponding gray level.
The present invention is exemplified below.
Fig. 4 is a schematic diagram illustrating an implementation of a correction method according to a second embodiment of the present invention. As shown in fig. 4, 1 represents an upper computer; 2 represents a color temperature meter; 3 denotes a display device; the method comprises the following specific processes:
s310, the display device displays 14 different pictures;
for example, the display device can be 11 gray-scale pictures (i.e. each gray-scale picture under 0% by 256, 10% by 256, 20% by 256, … …, 100% by 256), full red field picture, full green field picture, and full blue field picture, and total 14 pictures;
S320, collecting color temperature values and brightness values of the 14 pictures by a color temperature instrument, and reading chromaticity values and brightness values corresponding to the 14 pictures collected by the color temperature instrument by an upper computer;
the chromaticity value may refer to color temperature coordinates, i.e. x-coordinates, y-coordinates; the luminance value may refer to an Lv value;
s330, the upper computer calculates Gamma correction parameters (namely initial Gamma correction coefficients) of the display equipment according to the color temperature values and brightness values (namely picture information) of the 14 pictures and target Gamma values (such as 2.2 or 2.4) set by a user;
s340, the upper computer writes Gamma correction parameters (namely initial Gamma correction coefficients) into the display equipment through the serial port;
s350, the display device displays 11 gray-scale frames again (i.e. each gray-scale frame under 0% by 256, 10% by 256, 20% by 256, … …, 100% by 256, i.e. the plurality of gray-scale frames displayed by the display device under the initial gamma correction coefficient);
s360, the upper computer collects brightness values of the 11 gray-scale pictures (namely, obtains brightness values of a plurality of gray-scale pictures displayed by the display device under an initial Gamma correction coefficient) through a color temperature meter, and calculates actual Gamma values of each gray-scale picture of 9 gray-scale pictures (namely, 9 target gray-scale pictures) of 10% by 256, 20% by 256, … … and 90% by 256 after the Gamma correction parameters (namely, the initial Gamma correction coefficient) are written in the display device:
Assuming that the luminance value corresponding to the gray-scale picture with 0% by 256 gray-scales is represented as Lv0 (i.e., the minimum luminance value corresponding to the gray-scale picture with the smallest gray-scales), the luminance value corresponding to the gray-scale picture with 100% by 256 gray-scales is represented as Lv100 (i.e., the maximum luminance value corresponding to the gray-scale picture with the largest gray-scales), the luminance value corresponding to the gray-scale picture with 10% by 256 gray-scales is represented as Lv10 (i.e., the luminance value of the target gray-scale picture), and so on;
using Lv0 and Lv100 as reference luminance values, and calculating an actual Gamma value corresponding to a gray-scale picture of 10% by 256 gray-scales after correction, the formula may be expressed as:
the actual gamma calculation for other target gray scale frames can be analogized.
S370, after the Gamma correction parameters are written, gamma deviation values between the target Gamma value and each actual Gamma value in the 9 gray-scale pictures are calculated;
gamma offset value = actual Gamma value-target Gamma value;
s380, performing linear interpolation based on the 9 gamma deviation values generated in S370 to generate a deviation curve (namely, gamma deviation curve) in the interval of 0-4095 (total 4096 points). Subtracting the value on the deviation curve from the target Gamma value to form a new corrected target Gamma value curve (namely, determining a Gamma curve based on the difference between the target Gamma value and the corresponding value on the Gamma deviation curve);
For example: the target Gamma value is 2.2, after the Gamma correction is completed for the first time, after the Gamma correction parameters are written (i.e. after the initial Gamma correction coefficients are written into the display device), the actual Gamma value of a certain gray-scale picture is 2.4, and the corresponding Gamma deviation value is 2.4-2.2=0.2; for the gray-scale picture, the new Gamma correction target value is: 2.2 (target Gamma value) -0.2 (Gamma deviation value) =2.0 (new Gamma correction target value, i.e., adjusted Gamma value). The plurality of gray-scale pictures sequentially determine the adjusted gamma values, thereby forming a gamma curve.
S390, a new Gamma value curve (i.e. a Gamma curve determined based on the target Gamma value and each actual Gamma value) and the frame information corresponding to the 11 gray-scale frames are used to recalculate the Gamma correction parameters (i.e. the target Gamma correction coefficients) and write them into the display device.
In the prior art, the deviation between the actual Gamma value and the target Gamma value of the display device after correction is relatively large in different gray scales of the display device facing red, green, blue and white display screens (i.e., WRGB screens) or other display screens with white field brightness which is not equal to the sum of red, field brightness, green field brightness and blue field brightness. By the correction method provided by the invention, the deviation between the actual Gamma value and the target Gamma value is smaller after Gamma correction, and the correction accuracy is improved.
Example III
Fig. 5 is a schematic structural diagram of a calibration device according to a third embodiment of the present invention. As shown in fig. 5, the apparatus is configured in an electronic device for calibrating an optical detector, which may include a light source controller, a light source, and an image acquisition device, and the apparatus includes:
a luminance determining module 410, configured to determine white field luminance, red field luminance, green field luminance, and blue field luminance at the same color level;
the gamma value determining module 420 is configured to determine actual gamma values corresponding to a plurality of gray-scale frames displayed by the display device under the initial gamma correction coefficient, respectively, if the white-field luminance is not equal to the sum of the red-field luminance, the green-field luminance and the blue-field luminance at the same color level, and the gray scales corresponding to the plurality of gray-scale frames are different;
a curve determining module 430, configured to determine a gamma curve based on the target gamma value and each of the actual gamma values, where the gamma curve represents the adjusted gamma values corresponding to different gray scales;
the coefficient determining module 440 is configured to determine a target gamma correction coefficient of the display device based on the gamma curve and the picture information corresponding to the plurality of gray-scale pictures.
The device firstly determines the brightness of a white field, the brightness of a red field, the brightness of a green field and the brightness of a blue field under the same color level through a brightness determination module 410; then, through the gamma value determining module 420, if the white field brightness is not equal to the sum of the red field brightness, the green field brightness and the blue field brightness under the same color level, determining the actual gamma values respectively corresponding to a plurality of gray-scale pictures displayed by the display device under the initial gamma correction coefficient, wherein the gray scales corresponding to the plurality of gray-scale pictures are different; then, a gamma curve is determined by a curve determining module 430 based on the target gamma value and each actual gamma value, wherein the gamma curve represents the adjusted gamma value corresponding to different gray scales; finally, a coefficient determining module 440 determines a target gamma correction coefficient of the display device based on the gamma curve and the frame information corresponding to the plurality of gray-scale frames. The device determines the adjusted gamma value through the actual gamma values and the target gamma values of the plurality of gray-scale pictures under the initial gamma correction coefficient, so as to recalculate the corresponding target gamma correction coefficient according to the adjusted gamma value and the picture information of the plurality of gray-scale pictures, solve the problem of inaccurate initial gamma correction coefficient under the condition that the white field brightness is not equal to the sum of the red field brightness, the green field brightness and the blue field brightness, and improve the correction accuracy.
Optionally, the curve determination module 430 includes:
an offset value determining unit configured to determine, for each actual gamma value, a gamma offset value of the actual gamma value based on the actual gamma value and a target gamma value;
the deviation curve determining unit is used for determining a gamma deviation curve based on each gamma deviation value and the corresponding gray level, wherein the gamma deviation curve represents the corresponding relation between different gray levels and the corresponding gamma deviation value;
and a gamma curve determining unit for determining a gamma curve based on the target gamma value and the gamma deviation curve.
Optionally, the deviation curve determining unit includes:
an initial point determining subunit, configured to determine an initial point on the gamma deviation curve based on each of the gamma deviation values and the corresponding gray scale;
and the linear interpolation subunit is used for carrying out linear interpolation based on the initial point to obtain a gamma deviation curve.
Optionally, the determining the gamma deviation value of the actual gamma value based on the actual gamma value and the target gamma value includes:
determining a difference value between the actual gamma value and the target gamma value as a gamma deviation value of the actual gamma value;
Accordingly, the determining a gamma curve based on the target gamma value and the gamma deviation curve includes:
and determining a gamma curve based on the difference between the target gamma value and the corresponding value on the gamma deviation curve.
Optionally, the determining the gamma deviation value of the actual gamma value based on the actual gamma value and the target gamma value includes:
determining a difference value between the target gamma value and the actual gamma value as a gamma deviation value of the actual gamma value;
accordingly, the determining a gamma curve based on the target gamma value and the gamma deviation curve includes:
and determining a gamma curve based on the sum of the target gamma value and the corresponding value on the gamma deviation curve.
Optionally, the brightness determining module 410 includes:
and a luminance determining subunit for determining, for each tone in the tone set, white field luminance, red field luminance, green field luminance, and blue field luminance.
Optionally, the gamma value determining module 420 includes:
a brightness value obtaining unit for obtaining brightness values of a plurality of gray-scale pictures displayed by the display device under the initial gamma correction coefficient;
the reference brightness value determining unit is used for taking a maximum brightness value corresponding to a gray-scale picture with the maximum gray-scale and a minimum brightness value corresponding to a gray-scale picture with the minimum gray-scale in the plurality of gray-scale pictures as reference brightness values;
The gamma value determining unit is used for determining an actual gamma value corresponding to a target gray-scale picture based on the brightness value and the reference brightness value of the target gray-scale picture, wherein the target gray-scale picture is a gray-scale picture with the largest gray-scale and a gray-scale picture with the smallest gray-scale in the displayed plurality of gray-scale pictures.
The correction device provided by the embodiment of the invention can execute the correction method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Fig. 6 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 6, the electronic device 10 includes at least one processor 11, and a storage device such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc. communicatively connected to the at least one processor 11, wherein the storage device stores a computer program executable by the at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the respective methods and processes described above, such as the correction method.
In some embodiments, the correction method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the correction method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the correction method by any other suitable means (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a terminal device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the terminal device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A correction method, the method comprising:
determining white field brightness, red field brightness, green field brightness and blue field brightness under the same color gradation;
if the white field brightness is not equal to the sum of the red field brightness, the green field brightness and the blue field brightness under the same color level, determining actual gamma values respectively corresponding to a plurality of gray-scale pictures displayed by the display equipment under the initial gamma correction coefficient, wherein the gray scales corresponding to the plurality of gray-scale pictures are different;
Determining a gamma curve based on the target gamma value and each actual gamma value, wherein the gamma curve represents the adjusted gamma value corresponding to different gray scales;
and determining a target gamma correction coefficient of the display device based on the gamma curve and picture information corresponding to the plurality of gray-scale pictures.
2. The method of claim 1, wherein the determining a gamma curve based on the target gamma value and each of the actual gamma values comprises:
determining, for each actual gamma value, a gamma offset value for the actual gamma value based on the actual gamma value and a target gamma value;
determining a gamma deviation curve based on each gamma deviation value and the corresponding gray scale, wherein the gamma deviation curve represents the corresponding relation between different gray scales and the corresponding gamma deviation value;
a gamma curve is determined based on the target gamma value and the gamma deviation curve.
3. The method of claim 2, wherein determining a gamma deviation curve based on each of the gamma deviation values and the corresponding gray scale comprises:
determining an initial point on the gamma deviation curve based on each gamma deviation value and the corresponding gray scale;
And carrying out linear interpolation based on the initial point to obtain a gamma deviation curve.
4. The method of claim 2, wherein the determining a gamma offset value for the actual gamma value based on the actual gamma value and a target gamma value comprises:
determining a difference value between the actual gamma value and the target gamma value as a gamma deviation value of the actual gamma value;
accordingly, the determining a gamma curve based on the target gamma value and the gamma deviation curve includes:
and determining a gamma curve based on the difference between the target gamma value and the corresponding value on the gamma deviation curve.
5. The method of claim 2, wherein the determining a gamma offset value for the actual gamma value based on the actual gamma value and a target gamma value comprises:
determining a difference value between the target gamma value and the actual gamma value as a gamma deviation value of the actual gamma value;
accordingly, the determining a gamma curve based on the target gamma value and the gamma deviation curve includes:
and determining a gamma curve based on the sum of the target gamma value and the corresponding value on the gamma deviation curve.
6. The method of claim 1, wherein determining white field luminance, red field luminance, green field luminance, and blue field luminance at the same color level comprises:
white field luminance, red field luminance, green field luminance, and blue field luminance are determined for each tone in the tone set.
7. The method according to claim 1, wherein determining actual gamma values corresponding to the plurality of gray-scale pictures displayed by the display device under the initial gamma correction coefficients, respectively, comprises:
acquiring brightness values of a plurality of gray-scale pictures displayed by display equipment under an initial gamma correction coefficient;
taking a maximum brightness value corresponding to a gray-scale picture with the maximum gray-scale and a minimum brightness value corresponding to a gray-scale picture with the minimum gray-scale in the plurality of gray-scale pictures as reference brightness values;
for a target gray-scale picture, determining an actual gamma value corresponding to the target gray-scale picture based on a brightness value and a reference brightness value of the target gray-scale picture, wherein the target gray-scale picture is a gray-scale picture outside a gray-scale picture with the largest gray-scale and a gray-scale picture with the smallest gray-scale in a plurality of displayed gray-scale pictures.
8. A correction device, the device comprising:
The brightness determining module is used for determining white field brightness, red field brightness, green field brightness and blue field brightness under the same color level;
the gamma value determining module is used for determining actual gamma values respectively corresponding to a plurality of gray-scale pictures displayed by the display equipment under the initial gamma correction coefficient if the white-field brightness is not equal to the sum of the red-field brightness, the green-field brightness and the blue-field brightness under the same color scale, and the gray scales corresponding to the plurality of gray-scale pictures are different;
the curve determining module is used for determining a gamma curve based on the target gamma value and each actual gamma value, wherein the gamma curve represents the adjusted gamma value corresponding to different gray scales;
and the coefficient determining module is used for determining a target gamma correction coefficient of the display equipment based on the gamma curve and picture information corresponding to the plurality of gray-scale pictures.
9. An electronic device, comprising:
one or more processors;
a storage means for storing one or more programs;
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-7.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-7.
CN202210785426.7A 2022-07-04 2022-07-04 Correction method, correction device, electronic equipment and medium Pending CN117392965A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210785426.7A CN117392965A (en) 2022-07-04 2022-07-04 Correction method, correction device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210785426.7A CN117392965A (en) 2022-07-04 2022-07-04 Correction method, correction device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN117392965A true CN117392965A (en) 2024-01-12

Family

ID=89467210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210785426.7A Pending CN117392965A (en) 2022-07-04 2022-07-04 Correction method, correction device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN117392965A (en)

Similar Documents

Publication Publication Date Title
CN108877736B (en) Compensation method and device for eliminating uneven screen brightness
CN106782303B (en) A kind of display bearing calibration of display panel, apparatus and system
US11900852B2 (en) Method and device for obtaining display compensation information, and display compensation method and device
CN112530347B (en) Method, device and equipment for determining compensation gray scale
CN109996054B (en) White balance adjusting method and device
TWI413101B (en) Control method for improving the luminous uniformity and related luminosity calibrating controller and display device
CN109036333B (en) Display parameter correction method and device of display, terminal equipment and storage medium
CN110675818B (en) Curve matching-based module Gamma correction method and system
CN113495709B (en) Color correction method, AP chip, terminal and storage medium
WO2017084424A1 (en) Chroma adjustment method and device for liquid crystal display screen
CN114283745A (en) Brightness compensation method of display panel and related device
JP2023519275A (en) Display effect enhancement method, device, facility
CN109410889B (en) White balance adjusting method and device and electronic equipment
CN116453470B (en) Image display method, device, electronic equipment and computer readable storage medium
CN117392965A (en) Correction method, correction device, electronic equipment and medium
CN108447456B (en) A kind of image shows bearing calibration and device
WO2020097930A1 (en) Method for displaying image on double-screen display panel, and related device
CN110896466A (en) White balance adjustment method and system of display device
CN115862534A (en) Color correction method, color correction device, electronic device and storage medium
TWI568270B (en) Image calibration system and its method
CN115170681B (en) Gamma lookup table generation method and device, electronic equipment and storage medium
CN118135933A (en) Display method and device based on multiple primary colors, electronic equipment and storage medium
CN118430403A (en) Display screen correction method, device, equipment and medium
CN114299858B (en) Method for compensating brightness and chromaticity of display device and related equipment
CN112331121B (en) System and method for improving color uniformity of display panel

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