Image processing method and apparatus, display device, electronic device, and storage medium

By adjusting the grayscale of the image through contrast compensation function and adjustment parameters, the problem of insufficient contrast between high-order and low-order grayscales in the display device is solved, and the image contrast is enhanced and the display effect is stable.

CN115294912BActive Publication Date: 2025-10-21CHIPONE (SHENZHEN) TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211000920.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-19
Publication Date
2025-10-21
Estimated Expiration
2042-08-19

AI Technical Summary

Technical Problem

In the prior art, a display device cannot effectively increase the contrast between high-order and low-order grayscales when adjusting image brightness, resulting in failure to achieve a contrast enhancement effect.

Method used

By obtaining the contrast compensation parameters of the input image and using a preset type of contrast compensation function and adjustment parameters, the grayscale of multiple pixels of the input image is adjusted to increase the high-order grayscale and reduce the low-order grayscale, thereby increasing the contrast between the high-order and low-order grayscales.

Benefits of technology

The image contrast is enhanced, the stability of the display effect is maintained, the scope of application of the method is expanded, and the limitation of directly adjusting the performance of the display device is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115294912B_ABST
    Figure CN115294912B_ABST
Patent Text Reader

Abstract

The present disclosure relates to an image processing method and device, a display device, an electronic device and a storage medium. The method comprises: obtaining a contrast compensation parameter of an input image; determining an adjustment parameter according to the contrast compensation parameter and a preset type of contrast compensation function; and adjusting a gray scale of a plurality of pixel points of the input image according to the adjustment parameter to obtain a luminance value of the plurality of pixel points. According to the image processing method of the embodiment of the present disclosure, the adjustment parameter for adjusting the gray scale of the pixel points of the input image can be determined through the preset type of contrast compensation function and the contrast compensation parameter, so that each gray scale value can be compensated respectively, thereby increasing the contrast between high-order gray scales and low-order gray scales, and achieving the effect of image contrast enhancement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to an image processing method and apparatus, a display device, an electronic device, and a storage medium. Background Art

[0002] In the related art, when adjusting the brightness of an image displayed on a display device, the gamma value of the display device can be adjusted. The gamma value is the relationship between the brightness of the image output by the display device and the brightness of the image input to the digital gamma control unit (DGC) in the display device, usually a proportional relationship. The scheme for adjusting the gamma value is based on the characteristic that the human eye is insensitive to high-order (higher grayscale) changes and highly sensitive to low-order (lower grayscale) changes. A standard grayscale curve for a display device is set. For example, for any grayscale n, the ratio of its brightness to the brightness of the highest level 255 is (n / 255)^Log. For example, if the gamma value is 2.2, the transmittance (the ratio of the current brightness to the highest brightness) of any grayscale n is (n / 255)^2.2.

[0003] However, the standard grayscale brightness curve set in the related art is a curve with a fixed gamma value (expressed as a straight line). This method can only adjust the brightness of the picture as a whole, but cannot achieve the effect of contrast enhancement, that is, it cannot increase the contrast between high-level grayscale and low-level grayscale. Summary of the Invention

[0004] In view of this, the present disclosure proposes an image processing method and apparatus, a display device, an electronic device, and a storage medium.

[0005] According to one aspect of the present disclosure, there is provided an image processing method, comprising:

[0006] Acquiring a contrast compensation parameter of an input image, wherein the contrast compensation parameter compensates for the contrast of the input image by adjusting the grayscale of a plurality of pixels of the input image;

[0007] determining, according to the contrast compensation parameter and a preset type of contrast compensation function, adjustment parameters for adjusting the grayscales of a plurality of pixels of the input image;

[0008] The grayscales of the plurality of pixels of the input image are adjusted according to the adjustment parameters to obtain the brightness values ​​of the plurality of pixels.

[0009] In one possible implementation, obtaining a contrast compensation parameter of an input image includes:

[0010] Get the range of contrast compensation parameters;

[0011] When the acquired contrast compensation parameter is not within the range of the contrast compensation parameter, a range boundary of the contrast compensation parameter is determined as the contrast compensation parameter.

[0012] In a possible implementation, the method further includes:

[0013] A sine function or a cosine function is determined as the contrast compensation function.

[0014] In a possible implementation, determining, based on the contrast compensation parameter and a preset type of contrast compensation function, adjustment parameters for adjusting the grayscales of a plurality of pixels of the input image includes:

[0015] Determining parameters of the contrast compensation function according to the grayscale range of the pixels of the input image and the contrast compensation parameter;

[0016] The adjustment parameter is determined according to the parameters of the contrast compensation function, the grayscale, and the type of the processing unit that processes the input image.

[0017] In a possible implementation, the parameters of the contrast compensation function include frequency, phase, and amplitude of the contrast compensation function;

[0018] Determining parameters of the contrast compensation function according to the grayscale range of the pixels of the input image and the contrast compensation parameter includes:

[0019] Determining the frequency and phase of the contrast compensation function according to the grayscale range of the pixels of the input image;

[0020] The amplitude of the contrast compensation function is determined according to the contrast compensation parameter.

[0021] In a possible implementation, determining the adjustment parameter according to the parameters of the contrast compensation function, the grayscale, and the type of the processing unit that processes the input image includes:

[0022] determining, according to a type of a processing unit that processes the input image, a superposition parameter, wherein the superposition parameter is used for superimposing with the contrast compensation function;

[0023] The adjustment parameter is determined according to the parameters of the contrast compensation function, the grayscale and the superposition parameter.

[0024] In a possible implementation, adjusting the grayscales of a plurality of pixels of the input image according to an adjustment parameter to obtain brightness values ​​of the plurality of pixels includes:

[0025] Normalize the grayscale of the pixel to obtain a first grayscale;

[0026] Obtaining a first brightness value with the first grayscale as a base and the adjustment parameter as an exponent;

[0027] The first brightness value is inversely normalized to obtain the brightness value of the pixel point.

[0028] In a possible implementation, the method further includes:

[0029] An output image for display on a display device is obtained according to the brightness value of the pixel point.

[0030] According to another aspect of the present disclosure, there is provided an image processing apparatus, the apparatus comprising:

[0031] A contrast parameter acquisition module is used to acquire contrast compensation parameters of an input image, wherein the contrast compensation parameters compensate for the contrast of the input image by adjusting the grayscale of multiple pixels of the input image;

[0032] an adjustment parameter determination module, configured to determine adjustment parameters for adjusting the grayscales of a plurality of pixels of the input image according to the contrast compensation parameter and a preset type of contrast compensation function;

[0033] The adjustment module is used to adjust the grayscale of multiple pixel points of the input image according to the adjustment parameters to obtain the brightness values ​​of the multiple pixel points.

[0034] In a possible implementation, the contrast parameter acquisition module is further configured to: acquire a range of a contrast compensation parameter; and if the acquired contrast compensation parameter is not within the range of the contrast compensation parameter, determine a boundary of the range of the contrast compensation parameter as the contrast compensation parameter.

[0035] In a possible implementation manner, the apparatus further includes: a function determination module, configured to determine a sine function or a cosine function as the contrast compensation function.

[0036] In one possible implementation, the adjustment parameter determination module is further used to: determine the parameters of the contrast compensation function based on the grayscale range of the pixels of the input image and the contrast compensation parameters; and determine the adjustment parameters based on the parameters of the contrast compensation function, the grayscale, and the type of the processing unit that processes the input image.

[0037] In one possible implementation, the parameters of the contrast compensation function include a frequency, a phase, and an amplitude of the contrast compensation function; and the adjustment parameter determination module is further configured to: determine the frequency and the phase of the contrast compensation function based on a grayscale range of pixels of the input image; and determine the amplitude of the contrast compensation function based on the contrast compensation parameters.

[0038] In one possible implementation, the adjustment parameter determination module is further used to: determine a superposition parameter based on a type of a processing unit that processes the input image, wherein the superposition parameter is used to be superimposed with the contrast compensation function; and determine the adjustment parameter based on a parameter of the contrast compensation function, the grayscale, and the superposition parameter.

[0039] In one possible implementation, the adjustment module is further used to: normalize the grayscale of the pixel point to obtain a first grayscale; obtain a first brightness value with the first grayscale as the base and the adjustment parameter as the exponent; and inverse normalize the first brightness value to obtain the brightness value of the pixel point.

[0040] In a possible implementation, the apparatus further includes: a display module, configured to obtain an output image for display on a display device according to the brightness value of the pixel point.

[0041] According to another aspect of the present disclosure, a display device is provided, including a plurality of display units and a processor, wherein the processor is configured to implement the above method by executing instructions.

[0042] In one possible implementation, the display unit includes a display panel, and the display panel includes at least one of a liquid crystal display panel, a micro light-emitting diode display panel, a light-emitting diode display panel, a mini light-emitting diode display panel, a quantum dot light-emitting diode display panel, an organic light-emitting diode display panel, a cathode ray tube display panel, a digital light processing display panel, a field emission display panel, a plasma display panel, an electrophoretic display panel, an electrowetting display panel, and a small-pitch display panel.

[0043] According to another aspect of the present disclosure, an electronic device is provided, including the above display device.

[0044] According to another aspect of the present disclosure, a non-volatile computer-readable storage medium is provided, on which computer program instructions are stored, wherein the computer program instructions implement the above method when executed by a processor.

[0045] According to another aspect of the present disclosure, a computer program product is provided, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above method.

[0046] According to another aspect of the present disclosure, a driving chip is provided, wherein the driving chip is configured to execute the image processing method.

[0047] According to the image processing method of the embodiment of the present disclosure, the adjustment parameters for adjusting the grayscale of the pixel points of the input image can be determined by a preset type of contrast compensation function and contrast compensation parameters, so that compensation can be performed for each mid-grayscale value respectively, thereby increasing the contrast between high-order grayscale and low-order grayscale, and achieving the effect of image contrast enhancement.

[0048] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.

[0050] Figure 1 A flowchart of an image processing method according to an embodiment of the present disclosure is shown;

[0051] Figure 2 A schematic diagram illustrating image display according to an embodiment of the present disclosure;

[0052] Figure 3 A schematic diagram illustrating the relationship between contrast compensation parameters and adjustment parameters according to an embodiment of the present disclosure;

[0053] Figure 4 A schematic diagram illustrating the relationship between contrast compensation parameters and brightness values ​​according to an embodiment of the present disclosure;

[0054] Figure 5 A schematic diagram illustrating an application of an image processing method according to an embodiment of the present disclosure is shown;

[0055] Figure 6 A block diagram showing an image processing apparatus according to an embodiment of the present disclosure is shown;

[0056] Figure 7 A block diagram of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0057] Various exemplary embodiments, features, and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise indicated.

[0058] In the description of the present disclosure, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the present disclosure and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present disclosure.

[0059] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. Throughout the present disclosure, "plurality" means two or more, unless otherwise specifically defined.

[0060] In this disclosure, unless otherwise expressly specified or limited, terms such as "mounted," "connected," "connect," and "fixed" should be understood broadly. For example, they may refer to fixed connections, detachable connections, or integration; mechanical connections or electrical connections; direct connections or indirect connections through an intermediate medium; and internal connections between two components or interactions between two components. Those skilled in the art will understand the specific meanings of these terms in this disclosure based on specific circumstances.

[0061] The term "and / or" herein simply describes an association relationship between associated objects, indicating that three relationships can exist. For example, "A and / or B" can represent the existence of three situations: A alone, A and B simultaneously, and B alone. Furthermore, the term "at least one" herein refers to any combination of at least two of any one or more of a plurality of items. For example, "at least one of A, B, and C" can represent any one or more elements selected from the set consisting of A, B, and C.

[0062] To address the problem in related arts of being unable to increase the contrast between high-order grayscales and low-order grayscales, thus failing to achieve contrast enhancement, the present disclosure provides an image processing method. This method utilizes a contrast compensation function to increase high-order grayscales and decrease low-order grayscales, thereby increasing high-order gamma values ​​and decreasing low-order gamma values. Furthermore, the gamma value curves for high-order grayscales and low-order gamma value curves are smoothly connected. This method improves image contrast while maintaining a stable display effect.

[0063] Figure 1 FIG. 1 is a flow chart showing an image processing method according to an embodiment of the present disclosure. Figure 1 As shown, this includes:

[0064] In step S11, a contrast compensation parameter of an input image is obtained, wherein the contrast compensation parameter is used to compensate for the contrast of the input image by adjusting the grayscale of a plurality of pixels of the input image;

[0065] In step S12, adjusting parameters for adjusting the grayscales of a plurality of pixels of the input image are determined according to the contrast compensation parameters and a preset type of contrast compensation function;

[0066] In step S13, the grayscales of the plurality of pixels of the input image are adjusted according to the adjustment parameters to obtain the brightness values ​​of the plurality of pixels.

[0067] According to the image processing method of the embodiment of the present disclosure, the adjustment parameters for adjusting the grayscale of the pixel points of the input image can be determined by a preset type of contrast compensation function and contrast compensation parameters, so that compensation can be performed for each mid-grayscale value respectively, thereby increasing the contrast between high-order grayscale and low-order grayscale, and achieving the effect of image contrast enhancement.

[0068] In one possible implementation, when a display device displays an image, the RGB values ​​of each pixel of the input image can be processed by a digital gamma control unit to achieve various image adjustment processes, wherein each RGB value can correspond to a grayscale. For example, the RGB value can correspond to the grayscale of the R value, the grayscale of the G value, the grayscale of the B value, and so on. The digital gamma control unit can be used to adjust the color, brightness, grayscale, white balance, contrast, etc. of the image. After the adjustment process, the RGB values ​​of multiple pixels of the image can change, and the adjusted RGB values ​​are obtained. That is, the grayscale changes, and the adjusted grayscale is obtained. The adjusted RGB values ​​can be input into the analog gamma control unit, and the analog gamma control unit can generate an analog voltage based on the adjusted RGB values, thereby controlling the display device to display the adjusted image.

[0069] Figure 2 A schematic diagram showing an image display according to an embodiment of the present disclosure is shown as follows: Figure 2 As shown, the digital RGB values ​​of the input image (i.e., digital-R, digital-G, and digital-B) can be input into the digital gamma control unit for adjustment, thereby obtaining the adjusted digital data R1, G1, B1 (i.e., digital-R1, digital-G1, and digital-B1). The digital data R1, G1, B1 are input into the analog gamma control unit, and the analog gamma control unit can convert the input digital signal into an analog voltage, and control each pixel of the display panel to display accordingly based on the analog voltage. Of course, the analog voltage output by the analog gamma control unit can also be adjusted directly, that is, the digital RGB data can be directly input into the analog gamma control unit, and converted into an analog voltage by the analog gamma control unit, and the analog voltage is adjusted so that the display panel displays based on the adjusted analog voltage. However, this control method involves the performance of the display device itself. For example, directly adjusting the analog voltage may not be adjusted to an ideal state due to the performance of the display device. Therefore, the scope of application of this adjustment method may be limited by the performance of the display device.

[0070] In one possible implementation, based on the above factors, the digital gamma control unit can be used to adjust the input digital RGB data, that is, to adjust the grayscale corresponding to the RGB value, so as to achieve an ideal adjustment effect and improve the applicability of the adjustment method.

[0071] In one possible implementation, the grayscale can be adjusted during the contrast adjustment process. For example, the grayscale of the R value, the grayscale of the B value, and the grayscale of the G value of the pixel point can all be adjusted in the same way, for example, by using their respective adjustment parameters to adjust the contrast of the image, obtain the brightness value of the pixel point, and increase the contrast between the high-order grayscale and the low-order grayscale.

[0072] In one possible implementation, the contrast compensation parameter may be a parameter input to a digital gamma control unit. The digital gamma control unit may adjust the grayscale (e.g., grayscale corresponding to RGB values) of multiple pixels in an input image using the contrast compensation parameter, thereby compensating for the contrast of the input image. Furthermore, the grayscale adjustment range cannot be increased indefinitely, and therefore, the range of the contrast compensation parameter may be limited.

[0073] In a possible implementation, step S11 may include: acquiring a range of a contrast compensation parameter; and if the acquired contrast compensation parameter is not within the range of the contrast compensation parameter, determining a boundary of the range of the contrast compensation parameter as the contrast compensation parameter.

[0074] In this example, the contrast compensation parameter range can be set to [-0.99, 0.99], i.e., the maximum value of the contrast compensation parameter is 0.99 and the minimum value is -0.99. If the contrast compensation parameter exceeds this range, the range boundary is used as the contrast compensation parameter. For example, if the user inputs a contrast compensation parameter of 1.5 into the digital gamma control unit, which exceeds the upper limit of the contrast compensation parameter range, the upper boundary value of the contrast compensation parameter range, 0.99, is used as the contrast compensation parameter. In other words, the digital gamma control unit can use 0.99 as the contrast compensation parameter to adjust the grayscale of the input image. For another example, if the user inputs a contrast compensation parameter of -1.5 into the digital gamma control unit, which exceeds the lower limit of the contrast compensation parameter range, the lower boundary value of the contrast compensation parameter range, -0.99, is used as the contrast compensation parameter. In other words, the digital gamma control unit can use -0.99 as the contrast compensation parameter to adjust the grayscale of the input image. When the contrast compensation parameter is greater than 0, the contrast of the input image may be positively compensated, i.e., the contrast of the input image is increased. Conversely, when the contrast compensation parameter is less than 0, the contrast of the input image may be negatively compensated, i.e., the contrast of the input image is decreased. When the contrast compensation parameter is equal to 0, no contrast compensation is performed on the input image. The present disclosure does not limit the specific value range of the contrast compensation parameter.

[0075] The present disclosure does not limit the specific numerical value range of the contrast compensation parameter.

[0076] In one possible implementation, the contrast between high-order grayscales and low-order grayscales needs to be increased, that is, the high-order grayscales are increased and the low-order grayscales are decreased, that is, the high-order gamma values ​​are increased and the low-order gamma values ​​are decreased. Furthermore, the gamma value curves for the high-order grayscales and the low-order gamma value curves can be smoothly connected. Therefore, an appropriate type of contrast compensation function can be set. The method further includes: determining a sine function or a cosine function as the contrast compensation function. The sine and cosine function have the same function curve shape, but differ only in phase. Therefore, by adjusting their phases, the two functions can be made into the same function.

[0077] In one possible implementation, in step S12, adjustment parameters for adjusting the grayscale of each pixel may be determined based on the contrast compensation function of the type described above and the contrast compensation parameters. Step S12 may include: determining the parameters of the contrast compensation function based on the grayscale range of the pixels of the input image and the contrast compensation parameters; and determining the adjustment parameters based on the parameters of the contrast compensation function, the grayscale, and the type of processing unit that processes the input image.

[0078] In one possible implementation, as described above, the contrast compensation function is a sine function or a cosine function. The sine function and the cosine function differ only in phase. Therefore, the following description uses the sine function as an example. To determine the adjustment parameters using the sine function, the parameters of the sine function, such as frequency, phase, and amplitude, can be determined first.

[0079] In one possible implementation, the parameters of the contrast compensation function include a frequency, a phase, and an amplitude of the contrast compensation function; and determining the parameters of the contrast compensation function based on a grayscale range of pixels of the input image and the contrast compensation parameters includes: determining the frequency and the phase of the contrast compensation function based on the grayscale range of pixels of the input image; and determining the amplitude of the contrast compensation function based on the contrast compensation parameters.

[0080] In one possible implementation, the frequency and phase of the contrast compensation function may be determined based on the grayscale range of the pixels of the input image. For example, the maximum grayscale value is 255 and the minimum grayscale value is 0, so the grayscale range is the interval [0, 255]. The present disclosure does not impose any limitation on the grayscale range.

[0081] In one possible implementation, a sine function is used to determine adjustment parameters to achieve an effect of increasing the contrast between high-order grayscales and low-order grayscales. The waveform of the sine function can be utilized, that is, by utilizing its central symmetry. In waveforms greater than the center of symmetry, the waveform of the sine function takes a value greater than 0, and steadily increases and then decreases within half a cycle, ultimately reaching a value of 0 at the end of the cycle. In waveforms less than the center of symmetry, the waveform of the sine function takes a value less than 0, and steadily decreases and then increases within half a cycle, ultimately reaching a value of 0 at the end of the half cycle (the center of symmetry). Therefore, by using a sine function to determine the adjustment parameters, the enhancement amplitude of the high-order grayscale can be steadily increased and then decreased, ultimately reaching a value of 0 at the upper limit of the grayscale range, that is, the original grayscale value is maintained at the upper limit. And at the starting position of the low-order grayscale (the lower limit position of the grayscale), the enhancement amplitude is 0 (that is, the original value of the grayscale is maintained at the lower limit position), and the enhancement amplitude of the low-order grayscale is steadily reduced and then increased, and at the end position of half a cycle (the critical point of the high-order grayscale and the low-order grayscale), the enhancement amplitude of the low-order grayscale is 0, that is, the original value of the grayscale is maintained at the critical position.

[0082] In one possible implementation, based on the aforementioned adjustment method, the frequency and phase of the sine function can be set. Specifically, the frequency of the sine function can be set so that its minimum positive period is equal to the grayscale range, and the phase of the sine function can be set so that its center of symmetry is equal to the critical point between high-order grayscale and low-order grayscale, for example, the midpoint of the grayscale range. If the contrast compensation parameter is a cosine function, the phase of the cosine function can be adjusted by an additional 1 / 4 of the minimum positive period, as described above. This disclosure does not limit the method for setting the frequency and phase.

[0083] In a possible implementation, the amplitude of the contrast compensation function, that is, the amplitude of the sine function or the cosine function, may be set as the input contrast compensation parameter.

[0084] In one possible implementation, after setting the contrast compensation function parameters, an overlay parameter to be superimposed with the contrast compensation parameters may also be determined, thereby obtaining an adjustment parameter. Determining the adjustment parameter based on the contrast compensation function parameters, the grayscale, and the type of processing unit processing the input image includes: determining the overlay parameter based on the type of processing unit processing the input image, the overlay parameter being used to be superimposed with the contrast compensation function; and determining the adjustment parameter based on the contrast compensation function parameters, the grayscale, and the overlay parameter.

[0085] In the example, the superposition parameter is used to superimpose with the contrast compensation function, and the superposition parameter can be set to a gamma slope. In the example, the gamma value is the brightness relationship between the output image of the digital gamma control unit and the input image, for example, a proportional relationship, wherein the brightness can be represented by grayscale. Therefore, the gamma value can be determined by the proportional relationship between the grayscale of the output image and the input image. The gamma slope is the slope of the curve formed by the grayscale of the output image of the digital gamma control unit and the grayscale of the input image. When the processing unit is a digital gamma control unit, the gamma slope is 1. When the processing unit is an analog gamma control unit, the gamma slope is 2.2. The present disclosure does not set the specific value of the superposition parameter. Superimposing the contrast compensation function with the gamma slope can enable the contrast compensation function to adjust the gamma value, that is, to adjust the grayscale of the pixel point, thereby compensating the contrast of the image.

[0086] In an example, the adjustment parameter can be determined by the following formula (1):

[0087] S=sin(n / 255×Period+LeftShift)×ContrastGain+GammaLog (1)

[0088] Where S is the adjustment parameter. n is the grayscale of the pixel. In this example, the grayscale input into formula (1) is the normalized grayscale n / 255. Period is the period of the contrast compensation function, which can be determined by the frequency. In this example, Period = 3. LeftShift is the phase of the contrast compensation function. In this example, LeftShift = 1.6. GammaLog is the gamma slope. If the processing unit is an analog gamma control unit, GammaLog = 1. ContrastGain is the contrast compensation parameter.

[0089] Figure 3 A schematic diagram showing the relationship between contrast compensation parameters and adjustment parameters according to an embodiment of the present disclosure is shown as follows: Figure 3 As shown, the horizontal axis is the grayscale of the pixel of the input image, the vertical axis is the adjustment parameter, and the numbers marked on each curve are contrast compensation parameters.

[0090] In the example, Figure 3 FIG. 1 shows a curve showing the relationship between the adjustment parameter determined according to various contrast compensation parameters and the grayscale of the pixel of the input image. When the grayscale is greater than 127 (the critical point between high-order grayscale and low-order grayscale), the adjustment parameter is less than 1; when the grayscale is less than 127, the adjustment parameter is greater than 1; and when the grayscale is equal to 127, the adjustment parameter is equal to 1.

[0091] In a possible implementation, in step S13, the grayscale of each pixel of the input image can be adjusted based on the adjustment parameters determined above. In the example, the grayscale to be adjusted can be a normalized grayscale. After normalization, it is convenient to perform operations on the grayscale, improve the versatility of the operation, and help avoid grayscale overflow. For example, in some operation methods, the upper limit of the grayscale is 255, and some display devices cannot display all grayscales. For example, if the upper limit is lower than 255, the grayscale can be normalized first, and then the corresponding operation can be performed. After the operation, it can be inversely normalized according to the upper limit of the display device, and the grayscale suitable for the display device can be obtained. The above method can improve the versatility of the operation.

[0092] In one possible implementation, based on the above factors, during the calculation process, the normalized grayscale can be adjusted by adjusting the parameters, and step S13 may include: normalizing the grayscale of the pixel point to obtain a first grayscale; obtaining a first brightness value with the first grayscale as the base and the adjustment parameter as the exponent; and inverse normalizing the first brightness value to obtain the brightness value of the pixel point.

[0093] In one possible implementation, after normalization (e.g., dividing the pixel's grayscale by 255), the upper limit of the obtained first grayscale is always 1. The first grayscale can be adjusted by adjusting the parameter. For example, the first brightness value is obtained by using an exponential function with the first grayscale as the base and the adjustment parameter as the exponent. Due to the normalization process above, the upper limit of the obtained first brightness value is also 1. Thus, the first brightness value can simplify calculations and improve the versatility of calculations. For example, in other processing of the brightness value, it can facilitate calculations and effectively avoid overflow of the calculated value.

[0094] In one possible implementation, when the output image needs to be displayed, the brightness value of the output image can be obtained by performing inverse normalization according to the upper limit of the display device as described above. For example, the brightness value of the output image, that is, the brightness value of the pixel point, can be obtained by the following formula (2):

[0095] lightness=(n / 255)^(sin(n / 255×Period+LeftShift)×ContrastGain+GammaLog)×255(2)

[0096] Among them, n / 255 is the normalization processing of the grayscale, sin(n / 255×Period+LeftShift)×ContrastGain+GammaLog) is the adjustment parameter S, and finally multiplied by 255 (taking the grayscale upper limit of the display device as 255 as an example) is to perform inverse normalization processing on the first brightness value.

[0097] Furthermore, the brightness value determined according to formula (2) is the grayscale value of the output image. The method further includes: obtaining an output image for display on a display device based on the brightness value of the pixel point. That is, the brightness value of the pixel point is used as the grayscale value of the output image, and an analog voltage is determined based on the grayscale value by an analog gamma control unit, and the output image is displayed on a display panel.

[0098] Figure 4 A schematic diagram showing the relationship between contrast compensation parameters and brightness values ​​according to an embodiment of the present disclosure is shown as follows: Figure 4 As shown, the horizontal axis is the grayscale of the pixel of the input image, and the vertical axis is the grayscale of the pixel of the output image (i.e., the grayscale of the pixel output by the digital gamma control unit, which is also the brightness value of the pixel, for example, the brightness value determined according to formula (2)). The numbers marked on each curve are contrast compensation parameters.

[0099] In one possible implementation, when the grayscale of a pixel of the input image is greater than a critical point (e.g., 127) between a high-order grayscale and a low-order grayscale, the compensation amplitude of the grayscale of the pixel of the output image increases steadily and then decreases steadily until the compensation amplitude is 0 at the upper limit of the grayscale, i.e., at the upper limit of the grayscale, the grayscale of the output image is equal to the grayscale of the input image, i.e., the original value is maintained. When the grayscale of a pixel of the input image is less than a critical point (e.g., 127) between a high-order grayscale and a low-order grayscale, the compensation amplitude of the grayscale of the pixel of the output image decreases steadily and then increases steadily until the compensation amplitude is 0 at the critical point of the high-order grayscale and the low-order grayscale, i.e., at the critical point of the high-order grayscale and the low-order grayscale, and at the lower limit of the grayscale, the grayscale of the output image is equal to the grayscale of the input image, i.e., the original value is maintained.

[0100] According to the image processing method of the embodiment of the present disclosure, the adjustment parameters for adjusting the grayscale of the pixel points of the input image can be determined by a preset type of contrast compensation function and contrast compensation parameters, so that compensation can be performed for each grayscale value separately, so that the high-order grayscale increases and the low-order grayscale decreases, thereby increasing the contrast between the high-order grayscale and the low-order grayscale, and achieving the effect of image contrast enhancement. Furthermore, the grayscale can be normalized and then adjusted by adjusting the parameters to improve the versatility of the adjustment method. The method adjusts the grayscale output by the digital gamma control unit, does not directly adjust the analog gamma control unit, does not involve the performance of the display device itself, and can expand the scope of application of the method.

[0101] Figure 5 FIG. 1 shows an application diagram of an image processing method according to an embodiment of the present disclosure. Figure 5 As shown, the digital gamma control unit can process the RGB values ​​of the input image, for example, the grayscale of the R value, the grayscale of the G value, and the grayscale of the B value, so as to adjust the contrast of the input image and obtain an adjusted output image.

[0102] In one possible implementation, the grayscale of the pixels of the input image may be normalized, for example, the grayscale of the R value, the grayscale of the G value, and the grayscale of the B value may be normalized respectively to obtain a first grayscale, which may then be adjusted.

[0103] In one possible implementation, a contrast compensation parameter may be input into the digital gamma control unit, and the digital gamma control unit may determine whether the input contrast compensation parameter exceeds a preset range. If the contrast compensation parameter exceeds the preset range, the boundary of the preset range may be used as the contrast compensation parameter; otherwise, the contrast compensation parameter may be directly obtained.

[0104] In one possible implementation, the digital gamma control unit may determine the grayscale adjustment parameters of each pixel based on the contrast compensation parameter and the grayscale of each pixel according to formula (1). For example, the grayscale adjustment parameters of the R value, the G value, and the B value of each pixel may be obtained.

[0105] In one possible implementation, the normalized first grayscale can be adjusted based on the adjustment parameter obtained above. For example, a first brightness value is obtained with the first grayscale as the base and the adjustment parameter as the exponent. Furthermore, when displaying, the first brightness value can be inversely normalized to obtain the grayscale of the RGB values ​​of the output image, for example, the grayscale of the R2 value, the grayscale of the B2 value, and the grayscale of the G2 value. That is, the grayscale of each pixel of the output image can be obtained based on formula (2).

[0106] In one possible implementation, the RGB values ​​of the output image can be input into the analog gamma control unit, so that the analog gamma control unit controls the analog voltage based on the R2 value, B2 value and G2 value to obtain the analog data R3 value, B3 value and G3 value, that is, the output value of the display panel, so that the display panel displays the output image with adjusted brightness.

[0107] After the above contrast adjustment, the high-order grayscale can be increased, the low-order grayscale can be reduced, and the image contrast can be improved.

[0108] Figure 6 A block diagram of an image processing apparatus according to an embodiment of the present disclosure is shown. Figure 6 As shown, the device includes:

[0109] A contrast parameter acquisition module 11 is used to acquire contrast compensation parameters of an input image, wherein the contrast compensation parameters compensate for the contrast of the input image by adjusting the grayscale of multiple pixels of the input image;

[0110] an adjustment parameter determination module 12, configured to determine adjustment parameters for adjusting the grayscales of a plurality of pixels of the input image according to the contrast compensation parameter and a preset type of contrast compensation function;

[0111] The adjustment module 13 is configured to adjust the grayscales of a plurality of pixels of the input image according to an adjustment parameter to obtain brightness values ​​of the plurality of pixels.

[0112] In a possible implementation, the contrast parameter acquisition module is further configured to: acquire a range of a contrast compensation parameter; and if the acquired contrast compensation parameter is not within the range of the contrast compensation parameter, determine a boundary of the range of the contrast compensation parameter as the contrast compensation parameter.

[0113] In a possible implementation manner, the apparatus further includes: a function determination module, configured to determine a sine function or a cosine function as the contrast compensation function.

[0114] In one possible implementation, the adjustment parameter determination module is further used to: determine the parameters of the contrast compensation function based on the grayscale range of the pixels of the input image and the contrast compensation parameters; and determine the adjustment parameters based on the parameters of the contrast compensation function, the grayscale, and the type of the processing unit that processes the input image.

[0115] In one possible implementation, the parameters of the contrast compensation function include a frequency, a phase, and an amplitude of the contrast compensation function; and the adjustment parameter determination module is further configured to: determine the frequency and the phase of the contrast compensation function based on a grayscale range of pixels of the input image; and determine the amplitude of the contrast compensation function based on the contrast compensation parameters.

[0116] In one possible implementation, the adjustment parameter determination module is further used to: determine a superposition parameter based on a type of a processing unit that processes the input image, wherein the superposition parameter is used to be superimposed with the contrast compensation function; and determine the adjustment parameter based on a parameter of the contrast compensation function, the grayscale, and the superposition parameter.

[0117] In one possible implementation, the adjustment module is further used to: normalize the grayscale of the pixel point to obtain a first grayscale; obtain a first brightness value with the first grayscale as the base and the adjustment parameter as the exponent; and inverse normalize the first brightness value to obtain the brightness value of the pixel point.

[0118] In a possible implementation, the apparatus further includes: a display module, configured to obtain an output image for display on a display device according to the brightness value of the pixel point.

[0119] The present disclosure also provides a display device, comprising a plurality of display units and a processor, wherein the processor is configured to implement the image processing method by executing instructions.

[0120] In one possible implementation, the display unit includes a display panel, and the display panel includes at least one of a liquid crystal display panel, a micro light-emitting diode display panel, a light-emitting diode display panel, a mini light-emitting diode display panel, a quantum dot light-emitting diode display panel, an organic light-emitting diode display panel, a cathode ray tube display panel, a digital light processing display panel, a field emission display panel, a plasma display panel, an electrophoretic display panel, an electrowetting display panel, and a small-pitch display panel.

[0121] The present disclosure also provides an electronic device including the above-mentioned display device. For example, the electronic device in this embodiment includes, but is not limited to, a desktop computer, a television, a mobile device with a large screen such as a mobile phone, a tablet computer, and other common electronic devices that require multiple chips to be cascaded to achieve driving.

[0122] Exemplarily, the electronic device may also be user equipment (UE), mobile device, user terminal, terminal, handheld device, computing device or vehicle-mounted device, etc. Exemplarily, some examples of terminals include: display, smart phone or portable device, mobile phone, tablet computer, laptop computer, PDA, mobile Internet device (MID), wearable device, virtual reality (VR) device, augmented reality (AR) device, wireless terminal in industrial control (Industrial Control), wireless terminal in self-driving, wireless terminal in remote medical surgery, wireless terminal in smart grid (Smart Grid), wireless terminal in transportation safety (Transportation Safety), wireless terminal in smart city (Smart City), wireless terminal in smart home (Smart Home), wireless terminal in Internet of Vehicles, etc. For example, the server may be a local server or a cloud server.

[0123] Figure 7 FIG1 shows a block diagram of an electronic device 1900 according to an embodiment of the present disclosure. For example, the electronic device 1900 can be provided as a server or a terminal device. Figure 7 The electronic device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions executable by the processing component 1922, such as an application. The application stored in the memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute the instructions to perform the above-described method.

[0124] The electronic device 1900 may further include a power supply component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input / output (I / O) interface 1958. The electronic device 1900 may operate based on an operating system stored in the memory 1932, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or the like.

[0125] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions that can be executed by the processing component 1922 of the electronic device 1900 to perform the above method.

[0126] The present disclosure also provides a driver chip, which is used to execute the image processing method.

[0127] The above description is merely an exemplary embodiment of the present invention and is not intended to limit the scope of protection of the present invention. The scope of protection of the present invention is determined by the appended claims.

[0128] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.

[0129] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.

[0130] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and the part of the module, program segment or instruction contains one or more executable instructions for realizing the prescribed logical function. In some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the prescribed function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0131] While various embodiments of the present disclosure have been described above, the above descriptions are illustrative, non-exhaustive, and not intended to be limiting of the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is selected to best explain the principles of the embodiments, their practical applications, or improvements to existing technologies, or to enable others skilled in the art to understand the embodiments disclosed herein.

Claims

1. An image processing method, characterized in that: include: Obtaining a contrast compensation parameter of an input image, wherein the contrast compensation parameter compensates for the contrast of the input image by adjusting the grayscale of multiple pixels of the input image, and the range of the contrast compensation parameter is [-0.99, 0.99]; determining, according to the contrast compensation parameter and a preset type of contrast compensation function, adjustment parameters for adjusting the grayscales of a plurality of pixels of the input image; Adjusting the grayscale of a plurality of pixels of the input image according to the adjustment parameter to obtain brightness values ​​of the plurality of pixels; The step of determining adjustment parameters for adjusting the grayscales of a plurality of pixels of the input image according to the contrast compensation parameter and a preset type of contrast compensation function includes: Determining parameters of the contrast compensation function according to the grayscale range of the pixels of the input image and the contrast compensation parameter; determining the adjustment parameter according to the parameters of the contrast compensation function, the grayscale, and the type of the processing unit that processes the input image; The step of determining the adjustment parameter according to the parameters of the contrast compensation function, the grayscale, and the type of the processing unit that processes the input image includes: determining, according to a type of a processing unit that processes the input image, a superposition parameter, wherein the superposition parameter is used for superimposing with the contrast compensation function; determining the adjustment parameter according to the parameters of the contrast compensation function, the grayscale, and the superposition parameter; Wherein, the processing unit includes a digital gamma control unit and an analog gamma control unit.

2. The method according to claim 1, characterized in that Get the contrast compensation parameters of the input image, including: Get the range of contrast compensation parameters; When the acquired contrast compensation parameter is not within the range of the contrast compensation parameter, a range boundary of the contrast compensation parameter is determined as the contrast compensation parameter.

3. The method according to claim 1, characterized in that The method further comprises: A sine function or a cosine function is determined as the contrast compensation function.

4. The method according to claim 1, wherein The parameters of the contrast compensation function include the frequency, phase and amplitude of the contrast compensation function; Determining parameters of the contrast compensation function according to the grayscale range of the pixels of the input image and the contrast compensation parameter includes: Determining the frequency and phase of the contrast compensation function according to the grayscale range of the pixels of the input image; The amplitude of the contrast compensation function is determined according to the contrast compensation parameter.

5. The method according to claim 1, wherein Adjusting the grayscales of a plurality of pixels of the input image according to the adjustment parameters to obtain brightness values ​​of the plurality of pixels includes: Normalize the grayscale of the pixel to obtain a first grayscale; Obtaining a first brightness value with the first grayscale as a base and the adjustment parameter as an exponent; The first brightness value is inversely normalized to obtain the brightness value of the pixel point.

6. The method according to claim 1, characterized in that The method further comprises: An output image for display on a display device is obtained according to the brightness value of the pixel point.

7. An image processing device, characterized in that include: a contrast parameter acquisition module, configured to acquire a contrast compensation parameter of an input image, wherein the contrast compensation parameter is adjusted by adjusting the grayscale of a plurality of pixels of the input image to compensate for the contrast of the input image, and the range of the contrast compensation parameter is [-0.99, 0.99]; an adjustment parameter determination module, configured to determine adjustment parameters for adjusting the grayscales of a plurality of pixels of the input image according to the contrast compensation parameter and a preset type of contrast compensation function; an adjustment module, configured to adjust the grayscales of a plurality of pixels of the input image according to an adjustment parameter to obtain brightness values ​​of the plurality of pixels; The adjustment parameter determination module is further configured to: determine the parameters of the contrast compensation function according to the grayscale range of the pixels of the input image and the contrast compensation parameter; and determine the adjustment parameters according to the parameters of the contrast compensation function, the grayscale, and the type of the processing unit that processes the input image. The adjustment parameter determination module is further configured to: determine a superposition parameter according to a type of a processing unit that processes the input image, the superposition parameter being used to be superimposed with the contrast compensation function; and determine the adjustment parameter according to a parameter of the contrast compensation function, the grayscale, and the superposition parameter; Wherein, the processing unit includes a digital gamma control unit and an analog gamma control unit.

8. A display device, characterized in that: The device comprises a plurality of display units and a processor, wherein the processor is configured to implement the method according to any one of claims 1 to 6 by executing instructions.

9. The display device according to claim 8, wherein The display unit includes a display panel, and the display panel includes at least one of a liquid crystal display panel, a micro light-emitting diode display panel, a light-emitting diode display panel, a mini light-emitting diode display panel, a quantum dot light-emitting diode display panel, an organic light-emitting diode display panel, a cathode ray tube display panel, a digital light processing display panel, a field emission display panel, a plasma display panel, an electrophoretic display panel, an electrowetting display panel and a small-pitch display panel. 10 . An electronic device comprising the display device according to claim 8 .

11. A driver chip, characterized in that: The driver chip is used to execute the image processing method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method and system for reducing power consumption of display panel

    CN105528994A