CN114842807B - Brightness adjustment method, system, device and storage medium - Google Patents

Brightness adjustment method, system, device and storage medium Download PDF

Info

Publication number
CN114842807B
CN114842807B CN202110137219.6A CN202110137219A CN114842807B CN 114842807 B CN114842807 B CN 114842807B CN 202110137219 A CN202110137219 A CN 202110137219A CN 114842807 B CN114842807 B CN 114842807B
Authority
CN
China
Prior art keywords
value
equipment
compensation function
gamma
real
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
CN202110137219.6A
Other languages
Chinese (zh)
Other versions
CN114842807A (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.)
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shirui Electronics 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 Shirui Electronics Co Ltd filed Critical Guangzhou Shirui Electronics Co Ltd
Priority to CN202110137219.6A priority Critical patent/CN114842807B/en
Publication of CN114842807A publication Critical patent/CN114842807A/en
Application granted granted Critical
Publication of CN114842807B publication Critical patent/CN114842807B/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
    • G09G3/34Control 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 by control of light from an independent source
    • G09G3/3406Control of illumination source
    • 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
    • G09G3/34Control 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 by control of light from an independent source
    • G09G3/3406Control of illumination source
    • G09G3/3413Details of control of colour illumination sources
    • 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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Picture Signal Circuits (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)

Abstract

The invention provides a brightness adjustment method, a system, a device and a storage medium, wherein the method comprises the following steps: obtaining a reflection brightness value of an environment where equipment is located and a screen brightness value preset by the equipment, and superposing the reflection brightness value and the screen brightness value preset by the equipment to obtain a first superposition value; determining a real-time Gamma curve of the equipment according to the first superposition value; and according to the gray value and the reflection brightness value of each pixel point of the picture displayed by the equipment, performing Gamma compensation on the real-time Gamma curve by using a piecewise compensation function. Compared with a Gamma compensation function with fixed coefficients, the real-time Gamma curve is subjected to Gamma compensation by utilizing the segmented compensation function, a dark field and a bright field in the picture are separated according to the gray value of each pixel point of the picture displayed by the equipment and the reflection brightness value of the environment, and the dark field and the bright field in the picture are subjected to differential Gamma compensation according to the segmented compensation function, so that the picture has layering sense and readability.

Description

Brightness adjustment method, system, device and storage medium
Technical Field
The present invention relates to the field of display devices, and more particularly, to a brightness adjustment method, system, device, and storage medium.
Background
Under different ambient lights, the display effect of the picture of the display device is different, the contrast ratio of the dark field and the bright field in the picture is obviously different under different ambient lights, the contrast ratio of the dark field can be greatly reduced along with the reduction of the gray level, and the contrast ratio of the bright field is not changed.
In order to improve the image display effect, a control scheme for automatically adjusting a backlight value according to ambient light is provided at present, as shown in fig. 1, the specific implementation flow is as follows: after the whole machine is opened, the optical sensor can be used for acquiring the light sensation value of the surrounding environment, and the whole machine adjusts the backlight value according to the light sensation value.
However, the above solution cannot improve the layering sense of the picture, and first, the overall backlight value is set to a maximum value, and after exceeding the set maximum value, the backlight value is adjusted to fail, so that the readability of the picture cannot be improved. Secondly, another proposal is to use an automatic fixed Gamma coefficient to perform Gamma compensation, if the Gamma compensation of the dark field and the bright field is performed by the same system, the bright field is easy to whiten, the layering is poor, and the contrast ratio of the dark field is obviously reduced under the reflected light of the same environment, so that the Gamma compensation of the bright and dark fields is not practically suitable for the compensation by the fixed Gamma system.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The invention aims to overcome at least one defect of the prior art, and provides a method for solving the problems of Gamma compensation or backlight adjustment of equipment, enabling a picture to have a layering sense and avoiding bright field whitening and the like.
The technical scheme adopted by the invention comprises the following steps:
a brightness adjustment method, comprising: obtaining a reflection brightness value of an environment where equipment is located and a screen brightness value preset by the equipment, and superposing the reflection brightness value and the screen brightness value preset by the equipment to obtain a first superposition value; determining a real-time Gamma curve of the equipment according to the first superposition value; and according to the gray value and the reflection brightness value of each pixel point of the picture displayed by the equipment, performing Gamma compensation on the real-time Gamma curve by using a piecewise compensation function.
Compared with a Gamma compensation function with fixed coefficients, the real-time Gamma curve is subjected to Gamma compensation by utilizing the segmented compensation function, a dark field and a bright field in the picture are separated according to the gray value of each pixel point of the picture displayed by the equipment and the reflection brightness value of the environment, and the dark field and the bright field in the picture are subjected to differential Gamma compensation according to the segmented compensation function, so that the picture has layering sense and readability.
Further, the piecewise compensation function includes a linear compensation function and a power compensation function; according to the gray value and the reflection brightness value of each pixel point of the picture displayed by the equipment, the real-time Gamma curve is Gamma compensated by utilizing a piecewise compensation function, specifically: and determining that each pixel belongs to a dark field or a bright field according to the gray value and the reflection brightness value of each pixel of a picture displayed by the equipment, performing Gamma compensation on curve parts corresponding to all pixels belonging to the dark field in the real-time Gamma curve by using the linear compensation function, and performing Gamma compensation on curve parts corresponding to all pixels belonging to the bright field in the real-time Gamma curve by using the power compensation function.
The compensated piecewise function is divided into a compensated linear function and a power function, the pixel points in the equipment picture can be determined to belong to a dark field or a bright field according to the gray value of the pixel points and the reflection brightness value of the environment, after the pixel points are classified, the linear compensation function is utilized to carry out Gamma compensation on the curve part corresponding to the pixel points belonging to the dark field in the real-time Gamma curve, the brightness of the dark field is effectively improved, and the power compensation function is utilized to carry out Gamma compensation on the curve part corresponding to the pixel points belonging to the bright field in the real-time Gamma curve, so that the phenomenon of whitening of the bright field is prevented when the brightness is improved.
Further, determining that each pixel point belongs to a dark field or a bright field according to the gray value and the reflection brightness value of each pixel point of the picture displayed by the device, specifically: respectively superposing the gray value of each pixel point in the picture displayed by the equipment with the reflection brightness value to obtain a second superposition value corresponding to each pixel point; when the second superposition value of the pixel points is smaller than or equal to a preset superposition threshold value, determining that the pixel points belong to a dark field; and when the second superposition value of the pixel points is larger than the superposition threshold value, determining that the pixel points belong to a bright field.
The judgment basis for judging whether the pixel point belongs to the bright field or the dark field is a preset superposition threshold value, the gray value of the pixel point of the equipment picture is superposed with the reflection brightness value of the environment to obtain a second superposition value, and the pixel point is judged to be in the bright field or the dark field according to the second superposition value, namely the brightness actually displayed in human eyes, so that the influence caused by the reflection intensity value of the environment is fully considered when the pixel point is judged to belong to the bright field or the dark field, and the classification of the pixel point is more accurate.
Further, the linear compensation function is v=k×l; wherein k is a constant, L is a second superposition value of the pixel points, and V is a voltage value of an output signal of the device. Because the gray level difference between the pixels belonging to the dark field in the picture is not large, the linear function can be utilized to carry out Gamma compensation on the pixels of the dark field, so that the gray level difference between the pixels of the dark field is increased, and the slope of the Gamma curve of the pixels of the dark field is stretched.
Further, the power compensation function is v=a×l b -c; wherein a, b and c are constants, L is a second added value of the pixel point, V is a voltage value of an output signal of the device, b is an inverse of a Gamma value of the real-time Gamma curve, and a and c satisfy a= 1+c. b is the reciprocal of the Gamma value of the real-time Gamma curve and is used for compensating the real-time Gamma curve, and meanwhile, the term-c is added in the power compensation function, so that the Gamma compensation degree of the power compensation function is slightly weakened, and the phenomenon that the bright field is whitened during Gamma compensation is prevented.
Further, the value range of k is (1, 5) k is the slope of the linear compensation function, the value of k is determined according to the actual situation, and the slope of the Gamma curve used for stretching the dark field pixel points is used for making the gray level difference between the dark field pixel points larger, the picture is more layered, and the readability is stronger.
Further, the value range of c is [0,0.01]. The value of c determines the magnitude of-c in the power compensation function, namely the degree of Gamma compensation weakening of the power compensation function, namely the value of c plays a key role in the effect of the bright field of the picture after the Gamma compensation, so that the bright field cannot whiten.
Further, the value range of the superposition threshold is [0.017,0.019]. The superposition threshold determines the distinction between bright and dark fields in the picture, and thus determines which function is used at which pixel points, which becomes a key influencing factor for the readability and layering of the final picture.
A brightness adjustment system, comprising: the data acquisition module is used for acquiring a reflection brightness value of an environment where equipment is located and a screen brightness value preset by the equipment; the data processing module is used for superposing the reflection brightness value acquired by the data acquisition module and the screen brightness value preset by the equipment to obtain a first superposition value, and determining a real-time Gamma curve of the equipment according to the first superposition value; and the Gamma compensation module is used for carrying out Gamma compensation on the real-time Gamma curve by utilizing a piecewise compensation function according to the gray value of each pixel point of the picture displayed by the equipment and the reflection brightness value acquired by the data acquisition module.
Further, the piecewise compensation function includes a linear compensation function and a power compensation function; the Gamma compensation module is configured to perform Gamma compensation on the real-time Gamma curve by using a piecewise compensation function according to the gray value of each pixel point of the frame displayed by the device and the reflection brightness value acquired by the data acquisition module, and specifically includes: the Gamma compensation module is used for determining that each pixel belongs to a dark field or a bright field according to the gray value of each pixel of the picture displayed by the equipment and the reflection brightness value acquired by the data acquisition module, performing Gamma compensation on curve parts corresponding to all pixels belonging to the dark field in the real-time Gamma curve determined by the data processing module by using the linear compensation function, and performing Gamma compensation on curve parts corresponding to all pixels belonging to the bright field in the real-time Gamma curve determined by the data processing module by using the power compensation function.
Further, the Gamma compensation module is configured to determine, according to the gray value of each pixel of the frame displayed by the device and the reflection brightness value obtained by the data obtaining module, that each pixel belongs to a dark field or a bright field, specifically: the Gamma compensation module is used for respectively superposing the gray value of each pixel point in the picture displayed by the equipment with the reflection brightness value acquired by the data acquisition module to obtain a second superposition value corresponding to each pixel point; when the second superposition value of the pixel points is smaller than or equal to a preset superposition threshold value, determining that the pixel points belong to a dark field; and when the second superposition value of the pixel points is larger than the superposition threshold value, determining that the pixel points belong to a bright field.
A computer device comprising a memory storing a computer program and a processor implementing the brightness adjustment method described above when executing the computer program.
A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the brightness adjustment method described above
Compared with the prior art, the invention has the beneficial effects that:
and performing Gamma compensation on the pixels belonging to the dark field in the picture by using a linear compensation function in the piecewise compensation function, and performing Gamma compensation on the pixels belonging to the bright field in the picture by using a power compensation function, namely performing differential Gamma compensation on the dark field and the bright field according to different characteristics of the dark field and the bright field in the picture, so that the picture displayed by the final equipment has a layering sense, the bright field cannot be whitened due to lifting while the dark field is lifted, and the whole picture has strong readability.
Drawings
Fig. 1 is a flow chart of a brightness adjusting method in the prior art.
Fig. 2 is a schematic flow chart of steps S1 to S3 in the embodiment.
Fig. 3 is a schematic flow chart of steps S1 to S3 including specific steps S311 to S32 in the embodiment.
Fig. 4 is a schematic diagram of Gamma curve compensation according to an embodiment.
Fig. 5 is a schematic block diagram of a brightness adjusting system according to an embodiment.
Description of the reference numerals: a data acquisition module 100; a data processing module 200; gamma compensation module 300.
Detailed Description
The drawings are for illustrative purposes only and are not to be construed as limiting the invention. For better illustration of the following embodiments, some parts of the drawings may be omitted, enlarged or reduced, and do not represent the actual product dimensions; it will be appreciated by those skilled in the art that certain well-known structures in the drawings and descriptions thereof may be omitted.
As shown in fig. 2, the present embodiment provides a brightness adjustment method suitable for adjusting the brightness of any display-type device, hereinafter collectively referred to as "device". The method comprises the following steps:
s1: obtaining a reflection brightness value of an environment where equipment is located and a preset screen brightness value of the equipment;
specifically, the specific acquisition procedure of the "acquiring the reflected luminance value of the environment in which the apparatus is located" in step S1 is: the light sensation value of the environment where the equipment is located can be obtained, the light sensation value of the environment can be obtained through the light sensation sensor, and after the light sensation value of the environment is obtained, the reflection brightness value of the environment is calculated according to the light sensation value. In addition, the screen brightness value preset by the device acquired in step S1 is a screen brightness value saved by the device.
S2: superposing the reflection brightness value obtained in the step S1 and a screen brightness value preset by the equipment to obtain a first superposition value; determining a real-time Gamma curve of the equipment according to the first superposition value;
in step S2, the reflected brightness value of the environment is superimposed with the preset screen brightness value of the device, the obtained first superimposed value is the brightness value displayed by the device under the influence of the ambient light, and the real-time Gamma curve of the device is determined according to the brightness value, i.e. the first superimposed value, so that the Gamma compensation in the subsequent steps can be compensated based on the real-time Gamma curve, and the reflected brightness value of the environment is taken into consideration during compensation.
S3: and (3) according to the gray value of each pixel point of the picture displayed by the equipment and the reflection brightness value obtained in the step (S1), performing Gamma compensation on the real-time Gamma curve determined in the step (S2) by using a piecewise compensation function.
In step S3, when the real-time Gamma curve determined in step S2 performs Gamma compensation, the picture is divided into a dark field and a bright field according to the gray value of each pixel point in the picture displayed by the device and the reflection brightness value obtained in step S1, the dark field is a region with a lower brightness value in the picture, the bright field is a region with a higher brightness value in the picture, and then a piecewise compensation function for performing Gamma compensation is used to perform differential Gamma compensation on the dark field and the bright field. Compared with the Gamma compensation function using fixed coefficients in the prior art, the Gamma compensation is performed on the dark field and the bright field in a corresponding mode by using the piecewise compensation function, so that the picture has more layering sense and readability.
Specifically, as shown in fig. 3, the piecewise compensation function in step S3 includes a linear compensation function and a power compensation function, and the specific implementation procedure of step S3 is as follows:
s31: determining that each pixel point belongs to a dark field or a bright field according to the gray value of each pixel point of a picture displayed by the equipment and the reflection brightness value obtained in the step S1;
the specific implementation procedure of step S31 is:
s311: respectively superposing the gray value of each pixel point in the picture displayed by the equipment with the reflection brightness value obtained in the step S1 to obtain a second superposition value corresponding to each pixel point;
specifically, in order to more conveniently and rapidly process the data, all the second superimposed values obtained in step S311 need to be normalized, and each value after the normalization is corresponding to the second superimposed value of each pixel, where the normalization refers to mapping all the values into a value range from 0 to 1.
S312: judging whether the second superposition value of the pixel points is smaller than or equal to a preset superposition threshold value, if so, executing step S313; if not, go to step S314;
s313: determining that the pixel belongs to a dark field, and executing step S315;
s314: determining that the pixel point belongs to a bright field, and executing step S315;
s315: judging whether all the pixel points in the picture are judged in the step S312, if not, repeatedly executing the step S312 to judge the next pixel point, and if so, executing the step S32;
s32: and (3) performing Gamma compensation on curve parts corresponding to all pixel points belonging to a dark field in the real-time Gamma curve determined in the step (S2) by using a linear compensation function, and performing Gamma compensation on curve parts corresponding to all pixel points belonging to a bright field in the real-time Gamma curve determined in the step (S2) by using a power compensation function.
In the whole step S3, step S31 is first executed to determine whether the pixel points in the picture belong to the dark field or the bright field, and the dark field and the bright field in the picture are classified for the following reasons:
as shown in fig. 4, a plurality of real-time Gamma curves under different ambient light are taken as an example, a curve with the reflection intensity of the ambient light being 2000lux, on this curve, a pixel with a lower gray level can be determined as a dark field in a picture, and it is assumed that a pixel with a gray level lower than about 40 belongs to the dark field and a pixel with a gray level higher than 40 belongs to the bright field in the curve, as shown in fig. 4, the part of the curve where the pixel belonging to the dark field is relatively gentle, the gray level difference between the pixels of the dark field is insufficient, the dark field part is unclear, and secondly, the gray level difference between the pixel with the lowest gray level and the pixel with the highest gray level is relatively gentle, so that the whole picture has insufficient layering and poor readability. Therefore, the slope of the curve part corresponding to the dark field of the picture can be stretched to enlarge the whole gray level difference, the curve part corresponding to the dark field is steeper than the previous curve part, the dark field is lifted, the dark field part of the displayed picture is clearer and has layering sense, the effective mode of stretching the slope of the curve is to carry out Gamma compensation through a linear compensation function, and compared with a power function, the linear function can stretch the slope of the real-time Gamma curve better.
Meanwhile, the curve is seen that, because the trend of the curve part corresponding to the bright field is different from the trend of the curve part corresponding to the dark field, if the same compensation function is used for Gamma compensation, the gray level of the pixel point of the bright field is too high, and the bright field is whitened, so that the Gamma compensation is still carried out by adopting the power function in the bright field.
Therefore, it is determined in step S31 that each pixel belongs to a dark field or a bright field, specifically, step S311 is performed: the gray value of each pixel point in the picture displayed by the equipment is respectively overlapped with the reflection brightness value obtained in the step S1 to obtain a second overlapped value corresponding to each pixel point, so that the judgment of each pixel point is combined with the factor of the reflection brightness value of the environment, and the subsequent executed steps can be judged based on more actual and accurate data; step S312 is performed: judging whether the second superposition value of the pixel points is smaller than or equal to a preset superposition threshold, if so, executing step S313: determining that the pixel belongs to the dark field, and executing step S315: judging whether all the pixel points in the picture are judged in the step S312, if not, repeatedly executing the step S312 to judge the next pixel point, and if so, executing the step S32; in step S312, if the second overlapping value of the pixel point is greater than the preset overlapping threshold, step S314 is executed: determining that the pixel belongs to the bright field, step S315 is executed: judging whether all the pixel points in the picture are judged in the step S312, if not, repeatedly executing the step S312 to judge the next pixel point, and if so, executing the step S32; after determining that all the pixels in the frame belong to the dark field or the bright field through the determination process in step S315, step S32 is executed: and (2) performing Gamma compensation on curve parts corresponding to all pixel points belonging to the dark field by using a linear compensation function, and performing Gamma compensation on curve parts corresponding to all pixel points belonging to the bright field in the real-time Gamma curve determined in the step (S2) by using a power compensation function.
As described above, the Gamma compensation is performed by using the linear compensation function in order to stretch the slope of the Gamma curve portion corresponding to the dark field, so that the dark field is improved, the dark field portion of the displayed picture is clearer and has a hierarchical sense, and meanwhile, in order to avoid the phenomenon that the bright field in the picture is whitened when the Gamma compensation is performed, the Gamma compensation is performed by using the power function, i.e. the power compensation function, on the Gamma curve portion corresponding to the bright field.
Specifically, the linear compensation function in step S32 is v=k×l; where k is a constant, L is a second added value of the pixel point, V is a voltage value of an output signal of the device, and specifically, L and V both refer to values after normalization processing. The compensation functions are all photoelectric conversion functions, so that L is taken as an independent variable, and V is taken as an independent variable. The k value of the linear compensation function can determine the slope of the curve portion of the real-time Gamma curve corresponding to the dark field to which the stretching is to be performed, and preferably the k value is in the range of (1, 5).
Specifically, the power compensation function in step S32 is v=a×l b -c; wherein a, b and c are constants, L is a second superimposed value of the pixel point, V is a voltage value of an output signal of the device, specifically, L and V both refer to normalized values, b is an inverse of a Gamma value of the real-time Gamma curve determined in the step S2, and a and c satisfy a= 1+c.
b is the reciprocal of the Gamma value of the real-time Gamma curve, thus L b Is mainly used for compensating the part of the real-time Gamma curve, can offset the real-time Gamma curve, and adds the term-c in the power compensation function to lead the power compensation function toThe Gamma compensation degree is slightly weakened, and the phenomenon that the bright field is whitened during Gamma compensation is prevented. Since adding the term-c affects the normalization of the values of V and L, a and c satisfy a= 1+c, enabling the normalization of the values of the power compensation functions V and L. Preferably, c has a value in the range of [0,0.01]]。
Preferably, the range of values of the superimposition threshold in step S312 is [0.017,0.019]. The superposition threshold determines the distinction between bright and dark fields in the picture, and thus determines which function is used at which pixels, which is a key influencing factor for the readability and the layering of the final picture.
Specifically, when the Gamma value of the real-time Gamma curve determined in step S2 is 2.2 and b can be determined to be 1/2.2, i.e. 0.45, the values of a and c are preferably 1.099 and 0.099, i.e. the power compensation function is preferably v=1.099×l 0.45 -0.099. Preferably, k of the linear compensation function is 4.5, and the linear compensation function is preferably v=4.5×l. Preferably, the preferred value of the overlap threshold is 0.018. The piecewise compensation function is preferably, by combining the foregoing individual preference values:
compensating the real-time Gamma curve with Gamma value of 2.2 determined in the step S2 by using the piecewise compensation function, wherein the sum of the dark fields in the picture, namely the second superimposed value, is [0,0.018 ]]In the range, that is, the part of the real-time Gamma curve corresponding to the pixel point belonging to the dark field, gamma compensation is performed by using a linear compensation function v=4.5×l, in order to stretch the slope of the Gamma curve part corresponding to the dark field, the dark field is lifted, the dark field part of the displayed picture is clearer and has a layering sense, and at the same time, the second overlapping value is as shown in (0.018,1]The part of the real-time Gamma curve corresponding to the pixel point belonging to the bright field in the range is compensated by the power compensation function v=1.099×l 0.45 -0.099 to perform Gamma compensation, so as to avoid the phenomenon that bright field in the picture is whitened when Gamma compensation is performed.
Based on the same idea as the above-described luminance adjustment method, as shown in fig. 4, the present embodiment provides a luminance adjustment system including:
the data acquisition module 100 is configured to acquire a reflected brightness value of an environment where the device is located and a preset screen brightness value of the device;
in particular, a device refers to any display-like device. The specific acquisition process of the data acquisition module 100 for acquiring the reflected brightness value of the environment where the device is located is: the light sensation value of the environment where the equipment is located can be obtained, the light sensation value of the environment can be obtained through the light sensation sensor, and after the light sensation value of the environment is obtained, the reflection brightness value of the environment is calculated according to the light sensation value. In addition, the screen brightness value preset by the device acquired by the data acquisition module 100 is a screen brightness value stored by the device.
The data processing module 200 is configured to superimpose the reflected brightness value obtained by the data obtaining module 100 and the preset screen brightness value of the device to obtain a first superimposed value, and determine a real-time Gamma curve of the device according to the first superimposed value;
specifically, the data processing module 200 superimposes the reflected luminance value obtained by the data obtaining module 100 and the preset screen luminance value of the device, where the obtained first superimposed value is a luminance value displayed by the device under the influence of ambient light, and determines a real-time Gamma curve of the device according to the luminance value, that is, the first superimposed value, so that subsequent Gamma compensation can be performed based on the real-time Gamma curve, and the reflected luminance value of the environment is taken into consideration during compensation.
The Gamma compensation module 300 is configured to perform Gamma compensation on the real-time Gamma curve by using the piecewise compensation function according to the gray level value of each pixel of the frame displayed by the device and the reflection brightness value acquired by the data acquisition module 100.
Specifically, the Gamma compensation module 300 divides the frame into a dark field and a bright field according to the gray value of each pixel point in the frame displayed by the device and the reflection brightness value obtained by the data obtaining module 100, the dark field is a region with a lower brightness value in the frame, the bright field is a region with a higher brightness value in the frame, and then a piecewise compensation function for performing Gamma compensation is used to perform differential Gamma compensation on the dark field and the bright field. Compared with the Gamma compensation function using fixed coefficients in the prior art, the Gamma compensation is performed on the dark field and the bright field in a corresponding mode by using the piecewise compensation function, so that the picture has more layering sense and readability.
Specifically, the piecewise compensation function includes a linear compensation function and a power compensation function;
the Gamma compensation module 300 is specifically configured to determine that each pixel belongs to a dark field or a bright field according to the gray value of each pixel of the frame displayed by the device and the reflection brightness value obtained by the data obtaining module 100.
Specifically, the specific process of determining that each pixel belongs to a dark field or a bright field is as follows: respectively superposing the gray value of each pixel point in the picture displayed by the equipment with the reflection brightness value acquired by the data acquisition module 100 to obtain a second superposition value corresponding to each pixel point;
when the second superposition value of the pixel point is smaller than or equal to a preset superposition threshold value, determining that the pixel point belongs to a dark field;
and when the second superposition value of the pixel point is larger than the superposition threshold value, determining that the pixel point belongs to a bright field.
The Gamma compensation module 300 is specifically further configured to perform Gamma compensation on curve portions corresponding to all pixels belonging to the dark field in the real-time Gamma curve determined by the data processing module 200 by using a linear compensation function, and perform Gamma compensation on curve portions corresponding to all pixels belonging to the bright field in the real-time Gamma curve determined by the data processing module 200 by using a power compensation function.
Specifically, the linear compensation function is v=k×l; where k is a constant, L is a second added value of the pixel point, V is a voltage value of an output signal of the device, and specifically, L and V both refer to values after normalization processing. The compensation functions are all photoelectric conversion functions, so that L is taken as an independent variable, and V is taken as an independent variable. The k value of the linear compensation function can determine the slope of the curve portion of the real-time Gamma curve corresponding to the dark field to which the stretching is to be performed, and preferably the k value is in the range of (1, 5).
Specifically, the power compensation function is v=a×l b -c; wherein a, b and c are constants, L is the second superimposed value of the pixel point, V is the voltage value of the output signal of the device, and specifically, L and V both refer to normalized valuesB is the inverse of the Gamma value of the real-time Gamma curve determined by the data processing module 200, and a and c satisfy a= 1+c.
b is the reciprocal of the Gamma value of the real-time Gamma curve, thus L b The method is mainly used for compensating the part of the real-time Gamma curve, can offset the real-time Gamma curve, and adds the term-c in the power compensation function, so that the Gamma compensation degree of the power compensation function is slightly weakened, and the phenomenon of whitening of a bright field during Gamma compensation is prevented. Since adding the term-c affects the normalization of the values of V and L, a and c satisfy a= 1+c, enabling the normalization of the values of the power compensation functions V and L. Preferably, c has a value in the range of [0,0.01]]。
Preferably, the value range of the superposition threshold used for the judgment by the Gamma compensation module 300 is [0.017,0.019].
Specifically, when the Gamma value of the real-time Gamma curve determined by the data processing module 200 is 2.2 and b can be determined to be 1/2.2, i.e. 0.45, the values of a and c are preferably 1.099 and 0.099, i.e. the power compensation function is preferably v=1.099×l 0.45 -0.099. Preferably, k of the linear compensation function is 4.5, and the linear compensation function is preferably v=4.5×l. Preferably, the preferred value of the overlap threshold is 0.018. The piecewise compensation function is preferably, by combining the foregoing individual preference values:
the segment compensation function is used to compensate the real-time Gamma curve with Gamma value of 2.2 determined by the data processing module 200, and the value of the segment compensation function is [0,0.018 ] for dark fields in the picture, namely for the second superposition value]In the range, that is, the part of the real-time Gamma curve corresponding to the pixel point belonging to the dark field, gamma compensation is performed by using a linear compensation function v=4.5×l, in order to stretch the slope of the Gamma curve part corresponding to the dark field, the dark field is lifted, the dark field part of the displayed picture is clearer and has a layering sense, and at the same time, the second overlapping value is as shown in (0.018,1]The part of the real-time Gamma curve corresponding to the pixel point belonging to the bright field in the range is compensated by the power compensation function v=1.099×l 0.45 Gamma compensation at-0.099The phenomenon that the bright field in the picture is whitened when Gamma compensation is performed can be avoided.
In the above-described embodiment of the brightness adjustment system, the logical division of each functional module is merely used as an example, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, for example, in view of the configuration requirements of hardware or the implementation of software, that is, the internal structure of the brightness adjustment system may be divided into functional modules different from those described above, but all the functions described above may be performed. Secondly, since the foregoing embodiments of the brightness adjustment system are based on the same concept, the principles and technical effects thereof are the same as those of the brightness adjustment method, and the specific content may be referred to the description of the method embodiment, and will not be repeated here.
Based on the same ideas the above-described brightness adjustment method, the present embodiment also provides a computer device including a memory storing a computer program and a processor implementing the above-described brightness adjustment method when executing the computer program.
Based on the same ideas of the above-described brightness adjustment method, the present embodiment also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the above-described brightness adjustment method.
It should be understood that the foregoing examples of the present invention are merely illustrative of the present invention and are not intended to limit the present invention to the specific embodiments thereof. Any modification, equivalent replacement, improvement, etc. that comes within the spirit and principle of the claims of the present invention should be included in the protection scope of the claims of the present invention.

Claims (9)

1. A brightness adjustment method, comprising:
obtaining a reflection brightness value of an environment where equipment is located and a screen brightness value preset by the equipment, and superposing the reflection brightness value and the screen brightness value preset by the equipment to obtain a first superposition value; determining a real-time Gamma curve of the equipment according to the first superposition value;
according to the gray value and the reflection brightness value of each pixel point of the picture displayed by the equipment, performing Gamma compensation on the real-time Gamma curve by using a piecewise compensation function;
the piecewise compensation function includes a linear compensation function and a power compensation function;
according to the gray value and the reflection brightness value of each pixel point of the picture displayed by the equipment, the real-time Gamma curve is Gamma compensated by utilizing a piecewise compensation function, specifically:
determining that each pixel belongs to a dark field or a bright field according to the gray value and the reflection brightness value of each pixel of a picture displayed by the equipment, performing Gamma compensation on curve parts corresponding to all pixels belonging to the dark field in the real-time Gamma curve by using the linear compensation function, and performing Gamma compensation on curve parts corresponding to all pixels belonging to the bright field in the real-time Gamma curve by using the power compensation function;
determining that each pixel belongs to a dark field or a bright field according to the gray value and the reflection brightness value of each pixel of a picture displayed by the equipment, wherein the method specifically comprises the following steps:
respectively superposing the gray value of each pixel point in the picture displayed by the equipment with the reflection brightness value to obtain a second superposition value corresponding to each pixel point;
when the second superposition value of the pixel points is smaller than or equal to a preset superposition threshold value, determining that the pixel points belong to a dark field; and when the second superposition value of the pixel points is larger than the superposition threshold value, determining that the pixel points belong to a bright field.
2. The method for adjusting luminance according to claim 1, wherein,
the linear compensation function is v=k×l;
wherein k is a constant, L is a second superposition value of the pixel points, and V is a voltage value of an output signal of the device.
3. The method for adjusting luminance according to claim 2, wherein,
the power compensation function is v=a×l b -c;
Wherein a, b and c are constants, L is a second added value of the pixel point, V is a voltage value of an output signal of the device, b is an inverse of a Gamma value of the real-time Gamma curve, and a and c satisfy a= 1+c.
4. A brightness adjustment method according to any one of claims 2 or 3, characterized in that the value range of k is (1, 5).
5. A brightness adjustment method according to claim 3, characterized in that the value of c is in the range [0,0.01].
6. A brightness adjustment method according to any one of claims 2 or 3, characterized in that the overlap threshold has a value in the range [0.017,0.019].
7. A brightness adjustment system, comprising:
the data acquisition module is used for acquiring a reflection brightness value of an environment where equipment is located and a screen brightness value preset by the equipment;
the data processing module is used for superposing the reflection brightness value acquired by the data acquisition module and the screen brightness value preset by the equipment to obtain a first superposition value, and determining a real-time Gamma curve of the equipment according to the first superposition value;
the Gamma compensation module is used for carrying out Gamma compensation on the real-time Gamma curve by utilizing a piecewise compensation function according to the gray value of each pixel point of the picture displayed by the equipment and the reflection brightness value acquired by the data acquisition module;
the piecewise compensation function includes a linear compensation function and a power compensation function;
according to the gray value and the reflection brightness value of each pixel point of the picture displayed by the equipment, the real-time Gamma curve is Gamma compensated by utilizing a piecewise compensation function, specifically:
determining that each pixel belongs to a dark field or a bright field according to the gray value and the reflection brightness value of each pixel of a picture displayed by the equipment, performing Gamma compensation on curve parts corresponding to all pixels belonging to the dark field in the real-time Gamma curve by using the linear compensation function, and performing Gamma compensation on curve parts corresponding to all pixels belonging to the bright field in the real-time Gamma curve by using the power compensation function;
determining that each pixel belongs to a dark field or a bright field according to the gray value and the reflection brightness value of each pixel of a picture displayed by the equipment, wherein the method specifically comprises the following steps:
respectively superposing the gray value of each pixel point in the picture displayed by the equipment with the reflection brightness value to obtain a second superposition value corresponding to each pixel point;
when the second superposition value of the pixel points is smaller than or equal to a preset superposition threshold value, determining that the pixel points belong to a dark field; and when the second superposition value of the pixel points is larger than the superposition threshold value, determining that the pixel points belong to a bright field.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the brightness adjustment method according to any one of claims 1-6 when executing the computer program.
9. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the brightness adjustment method according to any one of claims 1 to 6.
CN202110137219.6A 2021-02-01 2021-02-01 Brightness adjustment method, system, device and storage medium Active CN114842807B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110137219.6A CN114842807B (en) 2021-02-01 2021-02-01 Brightness adjustment method, system, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110137219.6A CN114842807B (en) 2021-02-01 2021-02-01 Brightness adjustment method, system, device and storage medium

Publications (2)

Publication Number Publication Date
CN114842807A CN114842807A (en) 2022-08-02
CN114842807B true CN114842807B (en) 2023-11-17

Family

ID=82561116

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110137219.6A Active CN114842807B (en) 2021-02-01 2021-02-01 Brightness adjustment method, system, device and storage medium

Country Status (1)

Country Link
CN (1) CN114842807B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075428A (en) * 2007-06-26 2007-11-21 四川长虹电器股份有限公司 Method for correcting multi-segmented Gamma curve
CN101207709A (en) * 2006-12-22 2008-06-25 深圳创维-Rgb电子有限公司 Method, device and equipment for regulating gamma curviline
EP1959419A2 (en) * 2007-02-15 2008-08-20 Samsung Electronics Co., Ltd. Driving method and driving apparatus of liquid crystal display
CN101794552A (en) * 2010-03-09 2010-08-04 彩虹集团公司 Method for increasing contrast of OLED display screen
CN102737603A (en) * 2012-06-26 2012-10-17 中兴通讯股份有限公司 Liquid crystal display (LCD) screen display method and device for display of LCD screen
CN103065609A (en) * 2013-01-23 2013-04-24 深圳市华星光电技术有限公司 Method of Gamma compensation towards display device and device of Gamma compensation
CN104488019A (en) * 2012-07-19 2015-04-01 富士胶片株式会社 Image display device and method
CN105430365A (en) * 2015-11-06 2016-03-23 深圳市创凯智能股份有限公司 Projection fusion dark field processing method and fusion equipment
CN106971695A (en) * 2017-03-27 2017-07-21 武汉华星光电技术有限公司 The brightness adjusting method and device of RGBW liquid crystal display devices
CN107211079A (en) * 2015-12-17 2017-09-26 皇家飞利浦有限公司 Dynamic range for image and video is encoded
CN107799080A (en) * 2017-11-03 2018-03-13 天津大学 A kind of liquid crystal pixel compensation method based on segmented curve
CN110544457A (en) * 2019-09-09 2019-12-06 深圳博邦诚光电有限公司 inverse Gamma dynamic mapping algorithm
JP2020118783A (en) * 2019-01-22 2020-08-06 キヤノン株式会社 Ambient light correction method
CN111540317A (en) * 2020-06-19 2020-08-14 广州视源电子科技股份有限公司 Brightness control method and device, storage medium and related equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200744389A (en) * 2006-05-30 2007-12-01 Hung-Shing Chen An optimal compensation method for color and tone characteristics of display devices under different viewing surrounds
CN101324722B (en) * 2007-06-13 2010-11-03 深圳Tcl新技术有限公司 Method for adjusting liquid crystal display device backlight lightness and contrast

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207709A (en) * 2006-12-22 2008-06-25 深圳创维-Rgb电子有限公司 Method, device and equipment for regulating gamma curviline
EP1959419A2 (en) * 2007-02-15 2008-08-20 Samsung Electronics Co., Ltd. Driving method and driving apparatus of liquid crystal display
CN101075428A (en) * 2007-06-26 2007-11-21 四川长虹电器股份有限公司 Method for correcting multi-segmented Gamma curve
CN101794552A (en) * 2010-03-09 2010-08-04 彩虹集团公司 Method for increasing contrast of OLED display screen
CN102737603A (en) * 2012-06-26 2012-10-17 中兴通讯股份有限公司 Liquid crystal display (LCD) screen display method and device for display of LCD screen
CN104488019A (en) * 2012-07-19 2015-04-01 富士胶片株式会社 Image display device and method
CN103065609A (en) * 2013-01-23 2013-04-24 深圳市华星光电技术有限公司 Method of Gamma compensation towards display device and device of Gamma compensation
CN105430365A (en) * 2015-11-06 2016-03-23 深圳市创凯智能股份有限公司 Projection fusion dark field processing method and fusion equipment
CN107211079A (en) * 2015-12-17 2017-09-26 皇家飞利浦有限公司 Dynamic range for image and video is encoded
CN106971695A (en) * 2017-03-27 2017-07-21 武汉华星光电技术有限公司 The brightness adjusting method and device of RGBW liquid crystal display devices
CN107799080A (en) * 2017-11-03 2018-03-13 天津大学 A kind of liquid crystal pixel compensation method based on segmented curve
JP2020118783A (en) * 2019-01-22 2020-08-06 キヤノン株式会社 Ambient light correction method
CN110544457A (en) * 2019-09-09 2019-12-06 深圳博邦诚光电有限公司 inverse Gamma dynamic mapping algorithm
CN111540317A (en) * 2020-06-19 2020-08-14 广州视源电子科技股份有限公司 Brightness control method and device, storage medium and related equipment

Also Published As

Publication number Publication date
CN114842807A (en) 2022-08-02

Similar Documents

Publication Publication Date Title
Wang et al. Simple low-light image enhancement based on Weber–Fechner law in logarithmic space
CN104519281B (en) The processing method and processing unit of a kind of image
CN104751807B (en) Method and device for regulating backlight brightness and liquid crystal display device
CN101364384B (en) Method and apparatus for liquid crystal image processing
CN111599320B (en) Backlight adjusting method and device of display device and display device
CN108281125B (en) Method, device and equipment for adjusting backlight brightness according to human eye characteristics
CN103325355B (en) A kind of method of image content-based dynamic adjustments backlight illumination
CN109447910A (en) A kind of low-luminance color image enchancing method based on fuzzy theory
CN107872662A (en) Display device
CN107820069B (en) Video monitoring equipment ISP debugging method
CN112950657A (en) Gamma value correction method, gamma value correction device, electronic device, and readable storage medium
AU2012374785A1 (en) Device or method for displaying image
CN110278425A (en) Image enchancing method, device, equipment and storage medium
JP4622636B2 (en) Image display device
CN109272470B (en) Image enhancement method and device
CN110175969B (en) Image processing method and image processing apparatus
CN107799080A (en) A kind of liquid crystal pixel compensation method based on segmented curve
CN111340717A (en) Image preprocessing device for uncooled thermal infrared imager
CN109587395A (en) It is a kind of based on image procossing and virtually that is enhanced prevent the system and its implementation of dazzle
CN116168652A (en) Image display method, device, electronic equipment and computer readable storage medium
CN112785984A (en) LCD high-efficiency self-adaptive global backlight adjusting method for image gray level perception
KR100466785B1 (en) Apparatus and Method Of Controlling Picture Quality In Flat Display Panel
CN114842807B (en) Brightness adjustment method, system, device and storage medium
CN116453470B (en) Image display method, device, electronic equipment and computer readable storage medium
CN107369157A (en) A kind of adaptive threshold Otsu image segmentation method and device

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