CN112201192B - Method, device, equipment and medium for determining gamma value of display - Google Patents

Method, device, equipment and medium for determining gamma value of display Download PDF

Info

Publication number
CN112201192B
CN112201192B CN202011105196.2A CN202011105196A CN112201192B CN 112201192 B CN112201192 B CN 112201192B CN 202011105196 A CN202011105196 A CN 202011105196A CN 112201192 B CN112201192 B CN 112201192B
Authority
CN
China
Prior art keywords
value
fitting
gamma
determining
gray
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
CN202011105196.2A
Other languages
Chinese (zh)
Other versions
CN112201192A (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.)
Shenzhen Goodix Technology Co Ltd
Original Assignee
Shenzhen Goodix 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 Shenzhen Goodix Technology Co Ltd filed Critical Shenzhen Goodix Technology Co Ltd
Priority to CN202011105196.2A priority Critical patent/CN112201192B/en
Publication of CN112201192A publication Critical patent/CN112201192A/en
Application granted granted Critical
Publication of CN112201192B publication Critical patent/CN112201192B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • 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
    • 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

Abstract

The embodiment of the application discloses a method, a device, equipment and a medium for determining gamma value of a display. The first gray value and the corresponding real light leakage value are obtained through measurement, a plurality of gamma values are obtained, the first gray value and the real light leakage value are converted and fit according to each gamma value, the fitting error corresponding to each gamma value is calculated, and the gamma value corresponding to the fitting error meeting the preset condition is determined as the gamma value of the display.

Description

Method, device, equipment and medium for determining gamma value of display
Technical Field
The present application relates to the field of optical technology, and more particularly, to a method, apparatus, device, and medium for determining gamma values of a display.
Background
In a display, the gamma value reflects the relationship between the input value of the display and the output value of the display, and a curve composed of luminance data is called a gamma curve at different gray scales. The brightness value of the image halftone gray scale can be changed by adjusting the gamma value of the display to increase the middle gradation of the image without having a too large effect on the gradation of the dark portion and the bright portion.
For a light-like sensor placed under a screen, the gamma value of the display is needed to correct the linear relationship between the gray scale fitting the content shown in the display and the light leakage value of the display to achieve accurate image color reproduction in the display. Based on this, a scheme that can accurately determine the gamma value of the display is needed.
Disclosure of Invention
The embodiment of the application provides a determination scheme for the gamma value of a display, which can accurately determine the gamma value of the display.
In a first aspect, a method for determining a gamma value of a display is provided, including:
acquiring N groups of measured values, wherein the measured values comprise a first gray value and a corresponding real light leakage value;
acquiring a plurality of gamma values, and determining fitting errors corresponding to any selected gamma value by adopting the following modes:
converting the first gray value into a second gray value according to any selected gamma value;
determining a fitting curve corresponding to the real light leakage value and the second gray value, and determining a fitting light leakage value corresponding to the second gray value in the fitting curve;
determining fitting errors of the fitting curve according to the fitting light leakage value and the real light leakage value; and determining a gamma value corresponding to the fitting error meeting the preset condition as the gamma value of the display.
In one embodiment, for any selected gamma value γ, converting the first gray value to the second gray value according to the selected gamma value includes: the first gray value is converted into the second gray value as follows:wherein Gray 2 Gray is the second Gray value 1 The first gray value is obtained, so that the measured first gray value can be accurately converted into the second gray value;
in one embodiment, determining a fitted curve corresponding to the real light leakage value and the second gray level value includes: and determining a linear fitting straight line corresponding to the real light leakage value and the second gray value. Therefore, the calculation of the subsequent fitting error can be more conveniently carried out.
In one embodiment, the fitting error is derived from at least one of predefined errors, the predefined errors comprising:
total relative error
Total absolute error
Average relative error
Average absolute error
Maximum relative error
Maximum absolute error maxdif=max { |y (fit) i -y i |};
Wherein i is more than or equal to 1 and less than or equal to N, y i For the true light leakage value, y (fit) in the i-th set of measurements i And (3) fitting the light leakage value for the ith corresponding to the ith second gray value in the fitting curve. So that the fitting curve can be evaluated from various aspects according to the fitting error.
In one embodiment, the fitting error is derived from at least one of predefined errors, comprising: determining one of the predefined errors as the fitting error; or, calculating the fitting error according to at least two of the predefined errors. So that it may be actually necessary to select an appropriate evaluation criterion.
In one embodiment, the fitting error is calculated from at least two of the predefined errors, comprising: and determining the product of the average absolute error and the maximum absolute error as the fitting error. A more accurate fitting error can be obtained to evaluate the fitted curve.
In one embodiment, obtaining a plurality of gamma values includes: a plurality of gamma values is acquired within a predefined first gamma value interval. Therefore, a plurality of gamma values can be obtained according to actual experience, and the calculation efficiency is improved.
In one embodiment, obtaining a plurality of gamma values includes: determining a first step size; and acquiring a plurality of gamma values which are mutually separated by a first step length from the initial value of the first gamma value interval. Thus, the preset first gamma value interval can be traversed without omission.
In one embodiment, the method further comprises: acquiring a first gamma value with fitting error meeting the preset condition from the first gamma value interval; determining a second step length, and acquiring a plurality of second gamma values which contain the first gamma value and are sequentially separated by the second step length according to the determined first gamma value and a preset second step length, wherein the second step length is smaller than the first step length; and determining a fitting error corresponding to any selected second gamma value, and determining the second gamma value corresponding to the fitting error meeting the preset condition as the gamma value of the display. Thereby improving the accuracy of the calculated gamma value of the display.
In one embodiment, obtaining N sets of measurements includes obtaining N sets of measurements while shielding ambient light. Therefore, the accuracy of the obtained measured value can be improved, and the subsequent calculation accuracy is improved.
In one embodiment, obtaining N sets of measurements includes obtaining N sets of measurements corresponding to monochromatic light; correspondingly, determining the gamma value corresponding to the fitting error meeting the preset condition as the gamma value of the display comprises the following steps: and determining the gamma value corresponding to the fitting error meeting the preset condition as the gamma value corresponding to the monochromatic light of the display. Therefore, the gamma value corresponding to the monochromatic light in the display can be determined, and the subsequent correction is more accurate.
In a second aspect, there is provided a gamma value determining apparatus for a display, comprising:
the acquisition module is used for acquiring N groups of measured values, wherein the measured values comprise a first gray value and a corresponding real light leakage value;
the fitting module acquires a plurality of gamma values and determines fitting errors corresponding to any selected gamma value in the following manner: converting the first gray value into a second gray value according to any selected gamma value; determining a fitting curve corresponding to the real light leakage value and the second gray value, and determining a fitting light leakage value corresponding to the second gray value in the fitting curve; determining fitting errors of the fitting curve according to the fitting light leakage value and the real light leakage value;
and the determining module is used for determining the gamma value corresponding to the fitting error meeting the preset condition as the gamma value of the display.
In a third aspect, there is provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of the preceding claims when the program is executed.
In a fourth aspect, a computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the method of any of the preceding claims.
According to the technical scheme, the first gray value and the corresponding real light leakage value are obtained through measurement, the plurality of gamma values are obtained, the first gray value and the real light leakage value are converted and fitted according to each gamma value, the fitting error corresponding to each gamma value is calculated, the gamma value corresponding to the fitting error meeting the preset condition is determined as the gamma value of the display, and therefore accurate calculation of the gamma value of the display is achieved, and correction of the light-like sensor is achieved better.
Drawings
FIG. 1 is a schematic diagram of a system according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for determining gamma values of a display according to an embodiment of the present disclosure;
FIG. 3a is a diagram illustrating a relationship between a first gray level and a real light leakage value;
FIG. 3b is a schematic diagram illustrating the correspondence between the first gray level and the second gray level for gamma correction according to the embodiment of the present application;
fig. 4 is a schematic diagram of a fitting curve obtained by the second gray scale value and the corresponding real light leakage value according to the embodiment of the present application;
FIG. 5 is a schematic diagram of predefined errors corresponding to different gamma values according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a gamma value calculation of a real device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a device for determining gamma values of a display according to an embodiment of the present application;
fig. 8 is a schematic structural view of an apparatus for configuring the method of the embodiment of the present specification.
Detailed Description
The light-like sensor needs to correct the fit linear relationship based on the gamma value of the display to achieve accurate color reproduction in the display. There are different errors at different gamma values of the display, based on which a more accurate gamma value of the display needs to be found for calibration of the photo sensor.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a system according to an embodiment of the present application. In general, when the content in the display is in a gray state, that is, the luminance values of the three primary colors in each pixel point in the display are equal, r=g=b. And simultaneously, the brightness values of the three primary colors are adjusted, namely the gray value can be increased, and the range of the gray value is [0,255].
It should be noted that the gray scale value in the broad sense may also include the gray scale value of monochromatic light, that is, when the content in the display is displayed with light of the same frequency and the same light intensity. At this time, the brightness of different displays also has different gradation values corresponding to the monochromatic light.
The light-like sensor is arranged below the display, and can measure the actual light leakage value (namely the actual measurement value of the light intensity of the light-like sensor to the display) emitted by the display in the gray state.
In order to isolate the influence of external ambient light. The system may be placed in a black room, or a solid black object (e.g., a solid black rubber head) placed over the light-like sensor, etc.
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings. Fig. 2 is a flow chart of a method for determining a gamma value of a display according to an embodiment of the present application, where the method includes:
s201, N groups of measured values are obtained, wherein the measured values comprise a first gray value and a corresponding real light leakage value.
The first gray values are gray values of contents displayed in the real display, and each first gray value has a corresponding real light leakage value along with the change of the gray values of the display. Fig. 3a is a schematic diagram showing a relationship between the first gray scale value and the actual light leakage value. The specific value of N can be set according to actual needs.
It can be seen that the first gray value has an exponential relationship with the true light leakage value. This exponential relationship is not easy to evaluate directly in practical applications, and it is difficult to superimpose linearly because it also needs to consider different RGB component combinations.
S203, a plurality of gamma values are acquired, and a fitting error corresponding to any selected gamma value is determined.
Specifically, a plurality of gamma values may be first determined based on actual experience. For example, based on practical experience, the gamma value of a general display is 2.2, and when the gamma value is 2.2, the image display capability can be reflected more truly.
Then a first gamma value interval can be obtained based on 2.2. For example 2.2 + -0.8, i.e. the first gamma value interval is [1.4,3.0]. So that a random selection or a selection based on a preset manner can be performed in the interval. By presetting the value selection interval based on actual experience, invalid value selection can be avoided, and the calculation efficiency is improved.
Further, after obtaining the plurality of gamma values, the plurality of gamma values need to be evaluated to obtain a better gamma value. In this application, the gamma values are evaluated as follows:
first, for any selected gamma value, the first gray value is converted into a second gray value according to the selected gamma value. Specifically, the first gray value is converted into the second gray value as follows:wherein Gray 2 Gray is the second Gray value 1 Is the first gray value. In this way, the first gradation value is normalized, and gamma correction is performed based on the value after normalization, thereby obtaining the second gradation value.
Fig. 3b is a schematic diagram of the correspondence between the first gray level and the second gray level for gamma correction according to the present application. In this schematic, γ=1/2.2,and gamma correction correspondence in three cases of γ=2.2. Wherein the abscissa is Gray 1 255, i.e. normalized value of the first Gray value, ordinate Gray 2 And/255, i.e., a normalized value of the second gray level value.
And then, fitting the real light leakage value with the second gray level value to generate a fitting curve corresponding to the selected gamma value (the fitting curve in a generalized sense can also comprise a straight line), and determining the fitting light leakage value corresponding to the second gray level value on the fitting curve.
In one embodiment, the fitted curve may be a straight line, thereby facilitating subsequent evaluation of the fitted curve. Fig. 4 is a schematic diagram of a fitting curve obtained by the second gray scale value and the corresponding real light leakage value according to the embodiment of the present application, as shown in fig. 4. The black dots in the diagram represent a numerical pair (second gray value, true light leakage value). Obviously, in the straight line obtained by fitting, a corresponding fitting light leakage value exists in each second gray level value, and the fitting light leakage value always has a certain deviation from the real light leakage value.
The response is that not every black dot can accurately fall on the fitting straight line on the graph, but always has a certain distance from the fitting curve, so that the fitting error of the fitting curve can be determined according to the fitting light leakage value and the real light leakage value.
In embodiments of the present application, several predefined errors may be predefined, such that the fitting error may be derived from at least one of the predefined errors. Several examples of predefined errors are given below:
total relative error
Total absolute error
Average relative error
Average absolute error
Maximum relative error
Maximum absolute error maxdif=max { |y (fit) i -y i |};
Wherein i is more than or equal to 1 and less than or equal to N, y i For the true light leakage value, y (fit) in the i-th set of measurements i And (3) fitting the light leakage value for the ith corresponding to the ith second gray value in the fitting curve.
As shown in fig. 5, fig. 5 is a schematic diagram of predefined errors corresponding to different gamma values according to an embodiment of the present application. In this schematic, the predefined errors include the average absolute error and the maximum absolute error of the different gamma values.
The user can select proper predefined errors from multiple aspects according to actual needs to evaluate the fitting curve.
For example, a user may determine one of the predefined errors as the fitting error; alternatively, the fitting error may be calculated by the user from at least two of the predefined errors.
In one embodiment, in order to evaluate the fitting degree of the fitting curve to the whole and the fitting degree to the individual simultaneously, the product of the average absolute error and the maximum absolute error may be determined as the fitting error.
In this way, the average absolute error evaluates the fitting deviation of the fitted curve to the whole, while the maximum absolute error evaluates the maximum fitting deviation of the fitted curve to the individual, so that the fitting error in this way balances the whole and the individual at the same time, which is a better evaluation criterion.
S205, determining the gamma value corresponding to the fitting error meeting the preset condition as the gamma value of the display.
In general, the fitting errors may be sorted from small to large, and the gamma value corresponding to the fitting error in the front of the sorting (e.g., the first sorting, i.e., the fitting error is the smallest) is determined as the gamma value of the display.
According to the technical scheme, the first gray value and the corresponding real light leakage value are obtained through measurement, the plurality of gamma values are obtained, the first gray value and the real light leakage value are converted and fitted according to each gamma value, the fitting error corresponding to each gamma value is calculated, the gamma value corresponding to the fitting error meeting the preset condition is determined as the gamma value of the display, and therefore accurate calculation of the gamma value of the display is achieved, and correction of the light-like sensor is achieved better.
In one embodiment, after the first gamma value interval is determined based on practical experience, a corresponding first step size may also be determined, so that a plurality of gamma values spaced apart from each other by the first step size are acquired starting from a start value of the first gamma value interval.
For example, when the first gamma value interval is [1.4,3.0], 0.1 may be used as the first step, thereby obtaining 17 sets of gamma values.
Further, after obtaining a first gamma value with a fitting error meeting the preset condition based on a first gamma value interval, determining a second step length, and obtaining a plurality of second gamma values containing the first gamma value and sequentially spaced by the second step length according to the determined first gamma value and the preset second step length, wherein the second step length is smaller than the first step length; and further determining a fitting error corresponding to any selected second gamma value, and determining the second gamma value corresponding to the fitting error meeting the preset condition as the gamma value of the display.
For example, assuming that the calculation is performed based on the first gamma value interval [1.4,3.0], it is determined that the first gamma value of the corresponding error satisfying condition is 2.1, then, at this time, it is also possible to determine that the second step is 0.01, thereby determining a plurality of second gamma values including the first gamma value 2.10, which are sequentially spaced apart by the second step, for example, taking 21 values including 2.01, 2.00,2.02,2.03, … …,2.09,2.10,2.11, … …,2.19,2.20, which are adjacent to each other in the left and right, in the step of 0.01.
Therefore, the fitting errors of the 21 second gamma values with higher precision can be calculated respectively, and the second gamma values with fitting errors meeting the preset conditions can be taken out from the fitting errors to serve as the gamma values of the display.
Fig. 6 is a schematic flow chart of calculating a gamma value of a display according to an embodiment of the present application.
In the diagram, first, a first gamma value interval [1.4,3.0] is set empirically, with a step size of 0.1, so that a fitting error of each gamma value is calculated, and a first gamma value with 2.1 as the minimum fitting error is obtained.
Further, a second gamma value interval is set based on 2.1, namely, about 2.1 as a center, a second step length of 0.01 bit is extended to the left and right by 10 steps, 21 gamma values in the second gamma value interval [2.00,2.20] are obtained, fitting errors of the 12 gamma values are obtained through calculation, and when the gamma value is 2.17, the fitting error is minimum, so that 2.17 is determined as the gamma value of the display.
When the gamma value of the display is 2.17, the corresponding average absolute error is 0.844%, and the corresponding maximum absolute error is 2.147%.
In practical applications, the monochromatic light with different frequencies also needs to be corrected, but the gamma value corresponding to the correction may not be the same as the gamma value of the mixed color light composed of three primary colors.
Therefore, in one embodiment, in order to perform accurate gamma correction on various monochromatic lights, N sets of measurement values corresponding to the monochromatic lights may be acquired when N sets of measurement values are acquired. For example, the display is placed in a black room, while the display is configured to include only a single display pixel (e.g., any one of the three primary red, green, and blue display pixels).
Taking red as an example, at this time, the contents in the display are all displayed in red, and the light leakage value of the red light corresponding to the screen is measured by the light-sensitive sensor. In this way, the gamma value corresponding to the fitting error (i.e. the gamma value corresponding to the fitting error meeting the preset condition) can be calculated in the foregoing manner, and can be determined as the gamma value corresponding to the red light of the display. The gamma values of the display for other colors of light can be obtained in the same way. By the embodiment, the gamma value corresponding to the monochromatic light in the display can be determined, and the subsequent correction is more accurate.
In a second aspect, an embodiment of the present application further provides a device for determining a gamma value of a display, as shown in fig. 7, fig. 7 is a schematic structural diagram of the device for determining a gamma value of a display provided in the embodiment of the present application, including
The acquisition module 701 acquires N groups of measurement values, wherein the measurement values comprise a first gray value and a corresponding real light leakage value;
the fitting module 703 obtains a plurality of gamma values, and determines a fitting error corresponding to any selected gamma value by using the following manner: converting the first gray value into a second gray value according to any selected gamma value; determining a fitting curve corresponding to the real light leakage value and the second gray value, and determining a fitting light leakage value corresponding to the second gray value in the fitting curve; determining fitting errors of the fitting curve according to the fitting light leakage value and the real light leakage value;
the determining module 705 determines the gamma value corresponding to the fitting error meeting the preset condition as the gamma value of the display.
Further, the fitting module 703 converts the first gray value into the second gray value as follows:wherein Gray 2 Gray is the second Gray value 1 Is the first gray value.
Further, the fitting module 703 determines a linear fitting line corresponding to the real light leakage value and the second gray value.
Further, the fitting module 703 obtains a fitting error according to at least one of predefined errors, where the predefined errors include:
total relative error
Total absolute error
Average relative error
Average absolute error
Maximum relative error
Maximum absolute error maxdif=max { |y (fit) i -y i |};
Wherein i is more than or equal to 1 and less than or equal to N, y i For the true light leakage value, y (fit) in the i-th set of measurements i And (3) fitting the light leakage value for the ith corresponding to the ith second gray value in the fitting curve.
Further, the fitting module 703 determines one of the predefined errors as the fitting error; or, calculating the fitting error according to at least two of the predefined errors.
Further, the fitting module 703 calculates the fitting error according to at least two of the predefined errors, and determines the product of the average absolute error and the maximum absolute error as the fitting error.
Further, the fitting module 703 includes: a plurality of gamma values is acquired within a predefined first gamma value interval.
Further, the fitting module 703 includes: determining a first step size; and acquiring a plurality of gamma values which are mutually separated by a first step length from the initial value of the first gamma value interval.
Further, the fitting module 703 is further configured to: acquiring a first gamma value with fitting error meeting the preset condition from the first gamma value interval; determining a second step length, and acquiring a plurality of second gamma values which contain the first gamma value and are sequentially separated by the second step length according to the determined first gamma value and a preset second step length, wherein the second step length is smaller than the first step length; determining a fitting error corresponding to any selected second gamma value; correspondingly, the determining module 705 determines the second gamma value corresponding to the fitting error meeting the preset condition as the gamma value of the display.
Further, the obtaining module 701 obtains the first gray value and the corresponding real light leakage value when shielding the ambient light.
Further, the acquiring module 701 acquires N sets of measured values corresponding to the monochromatic light; correspondingly, the determining module 705 determines the gamma value corresponding to the fitting error meeting the preset condition as the gamma value corresponding to the monochromatic light of the display.
In a third aspect, embodiments of the present disclosure further provide a computer apparatus including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements a method for determining a gamma value of a display as described in fig. 2 when the processor executes the program.
FIG. 8 illustrates a more specific hardware architecture diagram of a computing device provided by embodiments of the present description, which may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 implement communication connections therebetween within the device via a bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit ), microprocessor, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc. for executing relevant programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory ), static storage device, dynamic storage device, or the like. Memory 1020 may store an operating system and other application programs, and when the embodiments of the present specification are implemented in software or firmware, the associated program code is stored in memory 1020 and executed by processor 1010.
The input/output interface 1030 is used to connect with an input/output module for inputting and outputting information. The input/output module may be configured as a component in a device (not shown) or may be external to the device to provide corresponding functionality. Wherein the input devices may include a keyboard, mouse, touch screen, microphone, various types of sensors, etc., and the output devices may include a display, speaker, vibrator, indicator lights, etc.
Communication interface 1040 is used to connect communication modules (not shown) to enable communication interactions of the present device with other devices. The communication module may implement communication through a wired manner (such as USB, network cable, etc.), or may implement communication through a wireless manner (such as mobile network, WIFI, bluetooth, etc.).
Bus 1050 includes a path for transferring information between components of the device (e.g., processor 1010, memory 1020, input/output interface 1030, and communication interface 1040).
It should be noted that although the above-described device only shows processor 1010, memory 1020, input/output interface 1030, communication interface 1040, and bus 1050, in an implementation, the device may include other components necessary to achieve proper operation. Furthermore, it will be understood by those skilled in the art that the above-described apparatus may include only the components necessary to implement the embodiments of the present description, and not all the components shown in the drawings.
In a fourth aspect, the present description embodiments also provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of determining a gamma value for a display as described in fig. 2.
It should be understood that the specific examples in the embodiments of the present application are intended only to help those skilled in the art to better understand the embodiments of the present application and are not intended to limit the scope of the embodiments of the present application.
It is to be understood that the terminology used in the embodiments of the application and the appended claims is for the purpose of describing particular embodiments only, and is not intended to be limiting of the embodiments of the application. For example, as used in the examples of this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
Those of ordinary skill in the art will appreciate that the elements of the examples described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the elements and steps of the examples have been described above generally in terms of functionality for clarity of understanding of interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the several embodiments provided in the present application, it should be understood that the disclosed systems and apparatuses may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices, or elements, or may be an electrical, mechanical, or other form of connection.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purposes of the embodiments of the present application.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (14)

1. A method of determining a gamma value for a display, comprising:
acquiring N groups of measured values, wherein the measured values comprise a first gray value and a corresponding real light leakage value;
acquiring a plurality of gamma values, and determining fitting errors corresponding to any selected gamma value by adopting the following modes:
converting the first gray value into a second gray value according to any selected gamma value;
determining a fitting curve corresponding to the real light leakage value and the second gray value, and determining a fitting light leakage value corresponding to the second gray value in the fitting curve;
determining fitting errors of the fitting curve according to the fitting light leakage value and the real light leakage value;
and determining a gamma value corresponding to the fitting error meeting the preset condition as the gamma value of the display.
2. The method of claim 1, for any selected gamma value γ, converting the first gray value to a second gray value according to the selected gamma value, comprising:
the first gray value is converted into the second gray value as follows:wherein Gray 2 Gray is the second Gray value 1 Is the first gray value.
3. The method of claim 1, determining a fitted curve corresponding to the true light leakage value and the second gray value, comprising:
and determining a linear fitting straight line corresponding to the real light leakage value and the second gray value.
4. The method of claim 1, determining a fitting error of the fitted curve from the fitted light leakage value and the true light leakage value, comprising:
deriving a fitting error from at least one of predefined errors, the predefined errors comprising:
total relative error
Total absolute error
Average relative error
Average absolute error
Maximum relative error
Maximum absolute error maxdif=max { |y (fit) i -y i |};
Wherein i is more than or equal to 1 and less than or equal to N, y i For the true light leakage value, y (fit) in the i-th set of measurements i And (3) fitting the light leakage value for the ith corresponding to the ith second gray value in the fitting curve.
5. The method of claim 4, the fitting error resulting from at least one of predefined errors, comprising:
determining one of the predefined errors as the fitting error; or alternatively, the process may be performed,
and calculating the fitting error according to at least two of the predefined errors.
6. The method of claim 5, the fitting error calculated from at least two of the predefined errors, comprising:
and determining the product of the average absolute error and the maximum absolute error as the fitting error.
7. The method of claim 1, acquiring a plurality of gamma values, comprising:
a plurality of gamma values is acquired within a predefined first gamma value interval.
8. The method of claim 7, acquiring a plurality of gamma values within a predefined first gamma value interval, comprising:
determining a first step size;
and acquiring a plurality of gamma values which are mutually separated by a first step length from the initial value of the first gamma value interval.
9. The method of claim 8, the method further comprising:
acquiring a first gamma value with fitting error meeting the preset condition from the first gamma value interval;
determining a second step length, and acquiring a plurality of second gamma values which contain the first gamma value and are sequentially separated by the second step length according to the determined first gamma value and a preset second step length, wherein the second step length is smaller than the first step length;
and determining a fitting error corresponding to any selected second gamma value, and determining the second gamma value corresponding to the fitting error meeting the preset condition as the gamma value of the display.
10. The method of claim 1, obtaining N sets of measurements, comprising: while shielding ambient light, N sets of measurements are acquired.
11. The method of claim 1, obtaining N sets of measurements, comprising:
acquiring N groups of measured values corresponding to the monochromatic light;
correspondingly, determining the gamma value corresponding to the fitting error meeting the preset condition as the gamma value of the display comprises the following steps:
and determining the gamma value corresponding to the fitting error meeting the preset condition as the gamma value corresponding to the monochromatic light of the display.
12. A gamma value determining apparatus for a display, comprising:
the acquisition module is used for acquiring N groups of measured values, wherein the measured values comprise a first gray value and a corresponding real light leakage value;
the fitting module acquires a plurality of gamma values and determines fitting errors corresponding to any selected gamma value in the following manner: converting the first gray value into a second gray value according to any selected gamma value; determining a fitting curve corresponding to the real light leakage value and the second gray value, and determining a fitting light leakage value corresponding to the second gray value in the fitting curve; determining fitting errors of the fitting curve according to the fitting light leakage value and the real light leakage value;
and the determining module is used for determining the gamma value corresponding to the fitting error meeting the preset condition as the gamma value of the display.
13. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 11 when the program is executed by the processor.
14. A computer readable storage medium having stored thereon a computer program which when executed by a processor implements the method of any of claims 1 to 11.
CN202011105196.2A 2020-10-15 2020-10-15 Method, device, equipment and medium for determining gamma value of display Active CN112201192B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011105196.2A CN112201192B (en) 2020-10-15 2020-10-15 Method, device, equipment and medium for determining gamma value of display

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011105196.2A CN112201192B (en) 2020-10-15 2020-10-15 Method, device, equipment and medium for determining gamma value of display

Publications (2)

Publication Number Publication Date
CN112201192A CN112201192A (en) 2021-01-08
CN112201192B true CN112201192B (en) 2023-08-04

Family

ID=74010125

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011105196.2A Active CN112201192B (en) 2020-10-15 2020-10-15 Method, device, equipment and medium for determining gamma value of display

Country Status (1)

Country Link
CN (1) CN112201192B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101820551A (en) * 2010-05-10 2010-09-01 青岛海信电器股份有限公司 Method, device and system for debugging liquid crystal display gamma
CN107799081A (en) * 2017-11-08 2018-03-13 武汉华星光电半导体显示技术有限公司 Gamma corrects system and its bearing calibration
CN109166559A (en) * 2018-11-09 2019-01-08 重庆先进光电显示技术研究院 The gamma value adjustment method and device of display panel

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106782283B (en) * 2017-02-27 2019-10-08 京东方科技集团股份有限公司 A kind of gamma curve correcting method and display device of display device
US10819885B2 (en) * 2018-11-09 2020-10-27 Chongqing Advance Display Technology Research Gamma value tuning method and device of display panel

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101820551A (en) * 2010-05-10 2010-09-01 青岛海信电器股份有限公司 Method, device and system for debugging liquid crystal display gamma
CN107799081A (en) * 2017-11-08 2018-03-13 武汉华星光电半导体显示技术有限公司 Gamma corrects system and its bearing calibration
CN109166559A (en) * 2018-11-09 2019-01-08 重庆先进光电显示技术研究院 The gamma value adjustment method and device of display panel

Also Published As

Publication number Publication date
CN112201192A (en) 2021-01-08

Similar Documents

Publication Publication Date Title
KR100731358B1 (en) Method and system for measuring the video quality
KR100442004B1 (en) Gray level conversion method and display device
CN112599088B (en) Screen light leakage and ambient light detection method, chip, terminal and storage medium
CN101409769B (en) Digital image tone remapping method and apparatus
JP2015158626A (en) Calibration device, calibration method and program
EP1976308A2 (en) Device and method for measuring noise characteristics of image sensor
CN113776787A (en) Screen uniformity testing method and system of virtual reality equipment and related device
CN112201192B (en) Method, device, equipment and medium for determining gamma value of display
JP3976095B2 (en) Gamma value acquisition method for liquid crystal display device, gamma value acquisition system for realizing the same, computer for acquiring the same, and program used therefor
KR100859937B1 (en) Method and device of rapidly generating a gray-level versus brightness curve of a display
CN115278186B (en) Controllable uniform projection method, device, equipment and medium based on Internet of things
US7983867B2 (en) Multi-gain data processing
US20160206192A1 (en) Arithmetic processor and control method thereof
CN108628715B (en) Display effect correction method and device of display equipment
CN112365833A (en) Method for detecting and correcting brightness adjustment value of light sensation under screen
JP4812795B2 (en) Gamma value acquisition method and gamma value acquisition system for liquid crystal display device, liquid crystal display device and gamma value acquisition computer used in the system, and program thereof
US11375084B2 (en) Measurement method for measuring a physical property value of light output of a display device
KR101476722B1 (en) Method for processing color data measured from display device
CN112735353B (en) Screen brightness uniformity correction device and method
WO2022199332A1 (en) Color correction method, correctable display method, electronic device, and chip
KR20090102441A (en) A measurement and compensation apparatus and method of lifetime for oled panel
CN114519987A (en) Gamma correction method, system and storage medium for display
CN117153079A (en) Color coordinate adjustment method, device, electronic equipment and storage medium
JP5266001B2 (en) Displaying printed matter on the monitor
JP2002247396A (en) Method and device for correcting color of printer

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