[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN110807750B - Image processing method and apparatus - Google Patents

Image processing method and apparatus Download PDF

Info

Publication number
CN110807750B
CN110807750B CN201911112275.3A CN201911112275A CN110807750B CN 110807750 B CN110807750 B CN 110807750B CN 201911112275 A CN201911112275 A CN 201911112275A CN 110807750 B CN110807750 B CN 110807750B
Authority
CN
China
Prior art keywords
brightness
flat area
value
image
flat
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
CN201911112275.3A
Other languages
Chinese (zh)
Other versions
CN110807750A (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.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Visual Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Visual Technology Co Ltd filed Critical Hisense Visual Technology Co Ltd
Priority to CN201911112275.3A priority Critical patent/CN110807750B/en
Publication of CN110807750A publication Critical patent/CN110807750A/en
Application granted granted Critical
Publication of CN110807750B publication Critical patent/CN110807750B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • G06T5/92Dynamic range modification of images or parts thereof based on global image properties
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • G06T5/94Dynamic range modification of images or parts thereof based on local image properties, e.g. for local contrast enhancement
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/40Analysis of texture

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Processing (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Transforming Electric Information Into Light Information (AREA)

Abstract

The application provides an image processing method and equipment, wherein the method comprises the following steps: according to the brightness difference between pixel points in an image, carrying out region division on the image to obtain a flat region and a non-flat region; respectively adjusting the brightness of the flat area and the non-flat area according to the brightness levels of the flat area and the non-flat area and a brightness adjustment strategy corresponding to the brightness levels to obtain an adjusted image; and displaying the adjusted image. The method of the embodiment of the application improves the image display effect.

Description

Image processing method and apparatus
Technical Field
The present application relates to the field of image processing technologies, and in particular, to an image processing method and apparatus.
Background
At present, the high-speed development and intellectualization of the television industry become the inevitable trend of the current television industry, and more users select to use televisions to watch network videos. At present, video contents on a network are abundant in types and large in quantity, but the quality is uneven, for example, the image brightness and darkness level is not good, which affects the viewing effect, as shown in fig. 1.
At present, a dynamic contrast adjustment algorithm is adopted to improve contrast, the brightness of an image is adjusted according to the average brightness of the image and response curves of low brightness, medium brightness and high brightness, however, when the average brightness is between two thresholds, two response curves act simultaneously, the coupling between the response curves can generate conflict in some scenes, and finally the image contrast improvement effect is poor.
Disclosure of Invention
The application provides an image processing method and image processing equipment, which are used for improving image contrast and improving image display effect.
In a first aspect, the present application provides an image processing method, including:
according to the brightness difference between pixel points in an image, carrying out region division on the image to obtain a flat region and a non-flat region;
respectively adjusting the brightness of the flat area and the brightness of the non-flat area according to the brightness level of the flat area and the brightness level of the non-flat area and a brightness adjusting strategy corresponding to the brightness level to obtain an adjusted image;
and displaying the adjusted image.
In a second aspect, the present application provides an image processing apparatus comprising:
the preprocessing module is used for carrying out region division on the image according to the brightness difference between pixel points in the image to obtain a flat region and a non-flat region;
the processing module is used for respectively adjusting the brightness of the flat area and the non-flat area according to the brightness levels of the flat area and the non-flat area and a brightness adjustment strategy corresponding to the brightness levels to obtain an adjusted image;
and the display module is used for displaying the adjusted image.
In a third aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the method of any one of the first aspect.
In a fourth aspect, an embodiment of the present application provides a display device, including:
a processor, a display; and
a memory for storing executable instructions of the processor;
the display is used for displaying images;
wherein the processor is configured to perform the method of any of the first aspects via execution of the executable instructions.
According to the image processing method, the image processing device and the storage medium, the image is subjected to region division according to the brightness difference among all pixel points in the image, and a flat region and a non-flat region are obtained; the brightness of the flat area and the brightness of the non-flat area are respectively adjusted according to the brightness levels of the flat area and the non-flat area and the brightness adjustment strategies corresponding to the brightness levels to obtain adjusted images, the images are divided into areas according to the brightness difference, the brightness is adjusted according to the divided areas and the adjustment strategies corresponding to different brightness levels, the precision of improving the contrast is higher, the effect of improving the contrast of the images is better, and the image display effect is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a diagram of a first image;
FIG. 2 is a low light response curve;
FIG. 3 is a medium bright response curve;
FIG. 4 is a highlight response curve;
FIG. 5 is a flowchart illustrating an embodiment of an image processing method provided in the present application;
FIG. 6 is a second image illustration;
FIG. 7 is a schematic diagram illustrating an embodiment of an image processing method provided herein;
FIG. 8A is a histogram statistics illustration of an embodiment provided herein;
FIG. 8B is a histogram statistics illustration of another embodiment provided herein;
FIG. 9 is a schematic structural diagram of an embodiment of an image processing apparatus provided in the present application;
fig. 10 is a schematic structural diagram of an embodiment of a display device provided in the present application.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. The drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the disclosed concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terms "comprising" and "having," and any variations thereof, in the description and claims of this application and the drawings described herein are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Firstly, the application scenario related to the present application is introduced:
the method provided by the embodiment of the application is applied to an image processing scene, for example, the contrast of an image is adjusted by a display device before the image is displayed, so that the image display effect is improved.
The method provided by the application can be realized by a display device such as a processor executing corresponding software codes, and can also be realized by the display device performing data interaction with a server while executing the corresponding software codes, for example, the server controls the display device to realize the image processing method. The display device and the server can be connected through a network.
Wherein, the display device includes for example: and terminal equipment such as televisions, personal computers and tablet computers.
As shown in fig. 2, the low-brightness response curve is mainly used for low-brightness images, and the overall brightness of the images is low, which is easy to compensate for dark field detail loss. The brightness of the image is increased by this curve. And if the average brightness of the image is less than a certain threshold value L and the average brightness of the image is lower, the brightness of the image is improved by adopting the low-brightness response area. For example, when the image of fig. 1 is processed, the final image still has poor contrast and poor gradation.
As shown in fig. 3, the medium-bright response curve is mainly used for medium-bright images, and the brightness difference of the images is small, so that the problem of the level difference is compensated. The brightness of the darker pixel points in the image is darker, and the brightness of the brighter pixel points is brighter. As shown in fig. 4, the curve is a highlight response curve, mainly for a highlight image, the overall brightness of the image is high, and it is easy to compensate for the loss of bright field details.
In fig. 2-4, the abscissa x is the input luminance, the ordinate y is the output luminance,
if the average brightness of the image is larger than a certain threshold value L and smaller than a certain threshold value M, the contrast adjustment is realized through the combined action of the low-brightness response curve and the medium-brightness response curve.
If the average brightness of the image is larger than a certain threshold M and smaller than a certain threshold H, the contrast adjustment is realized through the joint action of the high-brightness response curve and the medium-brightness response curve.
However, the average brightness cannot completely represent the current brightness distribution information of the image, and under the same average brightness, the brightness distribution of the image has an obvious difference, and meanwhile, when the brightness is between two thresholds, two response curves act simultaneously, and the coupling between the static curves conflicts in a part of scenes, which finally results in a poor image contrast improvement effect.
According to the method, the image is divided into the flat area and the non-flat area, different contrast enhancement processing is carried out according to the flat area, the non-flat area and the adjustment strategies corresponding to the brightness levels of the flat area and the non-flat area, and the problems that a dark field Jing Fubai (starry sky near a black background), a bright field Jing Anbu in the image is poor in floating level and the like are solved.
The technical solution of the present application will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 5 is a flowchart illustrating an embodiment of an image processing method provided in the present application. As shown in fig. 5, the method provided in this embodiment includes:
step 101, according to the brightness difference between each pixel point in the image, performing region division on the image to obtain a flat region and a non-flat region.
Before the contrast of the image is adjusted, a flat region and a non-flat region in the current image may be divided, where the flat region is, for example, a region in which the brightness difference between pixels is small, and the non-flat region is, for example, a region in which the brightness difference between pixels is large, and especially, the brightness difference between adjacent pixels is large.
In an embodiment, as shown in fig. 7, the following operations may also be performed before step 101:
determining whether the brightness value of each pixel point in the image is within a preset brightness range according to the minimum brightness value and the maximum brightness value in the image;
if not, preprocessing the brightness value of each pixel point in the image so as to enable the brightness value of each pixel point in the image to be within a preset brightness range.
Specifically, as shown in fig. 6, when the brightness of the input of the upper and lower black edge signals in the image is not 0, the upper and lower black edges become too bright, and the gradation of the entire screen is raised. Therefore, the non-standard signals can be processed in the embodiment of the application.
Firstly, the information of the image is obtained, for example, the preset brightness range of the standard signal corresponding to the image is obtained, for example, the preset brightness range of the RGB Limit signal is 16-235, the preset brightness range of the RGB FULL signal is 0-255, and the preset brightness range of the yuv signal is 16-235.
And extracting the brightness of the image to obtain a minimum brightness value MinLv and a maximum brightness value MaxLv in the image.
If the minimum brightness value or the maximum brightness value does not belong to a preset brightness range, for example, for RGB Limit signals and YUV signals, if the minimum brightness value is less than 16 or the maximum brightness value is greater than 235, the signal of the image belongs to a non-standard signal, then preprocessing is performed, so that the brightness value of each pixel point in the image is within the preset brightness range.
Alternatively, for example, for the RGB FULL signal, the non-standard signal may be a signal having a minimum luminance value other than 0.
For example, by the following formula:
Yout={(Yin-MinLv)/(MaxLv-MinLv)}×219+16
wherein Yin represents the original brightness value of the pixel point, and Yout represents the brightness value after the pixel point is processed.
Step 102, respectively adjusting the brightness of the flat area and the brightness of the non-flat area according to the brightness level of the flat area and the brightness level of the non-flat area and a brightness adjustment strategy corresponding to the brightness level to obtain an adjusted image;
and step 103, displaying the adjusted image.
Specifically, different regions may be adjusted according to the same or different adjustment strategies, and different brightness levels of different regions may also correspond to the same or different brightness adjustment strategies.
For a flat area or a non-flat area, if the brightness mean value of the area is less than or equal to a first preset value, determining the brightness level of any area as a first brightness level;
if the brightness mean value of any region is larger than a first preset value and smaller than or equal to a second preset value, determining the brightness level of any region as a second brightness level;
and if the average brightness value of any region is greater than the second preset value, determining the brightness level of any region as a third brightness level.
For example, the third brightness level is a high brightness level, the second brightness level is a medium brightness level, and the first brightness level is a low brightness level.
In the method of the embodiment of the application, more brightness levels can be divided, so that finer-grained image contrast adjustment is realized.
For example, if the brightness level of a flat or non-flat area is a low brightness level, the brightness values of the pixels in the flat or non-flat area may be decreased. For example, if the brightness level of a certain non-flat area is a high brightness level, the brightness of the non-flat area may be extended, for example, some brightness values are increased, that is, the brightness values of some pixel points are changed to increase the brightness level.
According to the method, according to the brightness difference between each pixel point in the image, the image is divided into areas, and a flat area and a non-flat area are obtained; the brightness of the flat area and the brightness of the non-flat area are respectively adjusted according to the brightness levels of the flat area and the non-flat area and the brightness adjustment strategies corresponding to the brightness levels to obtain adjusted images, the images are divided into areas according to the brightness difference, the brightness is adjusted according to the divided areas and the adjustment strategies corresponding to different brightness levels, the precision of improving the contrast is higher, the effect of improving the contrast of the images is better, and the image display effect is improved.
On the basis of the foregoing embodiment, further, step 101 may specifically be implemented by:
dividing pixel points in the image, the brightness difference between the pixel points and the adjacent pixel points of which is less than a first preset threshold value, into flat areas;
and dividing the pixel points, of which the brightness difference with the adjacent pixel points is greater than or equal to a first preset threshold value, in the image into non-flat areas.
Specifically, the brightness difference of adjacent pixel points in the flat area is small, the brightness difference of adjacent pixel points in the non-flat area is large, and the adjacent pixel points with the brightness difference smaller than a first preset threshold value in the image can be divided into the flat areas; and dividing adjacent pixel points with the brightness difference larger than or equal to a first preset threshold value in the image into non-flat areas.
Further, the brightness adjustment for the flat area may be performed as follows:
if the brightness level of the flat area is the first brightness level, performing darkening processing on the pixel points of the flat area; when the average brightness value of the flat area is less than or equal to the first preset value, the brightness level of the flat area is a first brightness level.
In an embodiment, the darkening processing on the pixel point of the flat area can be specifically realized by the following method:
and subtracting the minimum brightness value of the flat area from the brightness value of each pixel point of the flat area to obtain the brightness value of each pixel point of the flat area after adjustment.
Specifically, the adjustment strategy corresponding to the first brightness level of the flat area is as follows:
the first brightness level is, for example, a low brightness level, a flat area of the low brightness level is similar to the upper and lower black edges of a movie or a black background, the brightness value of each pixel point in the flat area is darkened, for example, the minimum brightness value in the flat area is subtracted, and the dark field is darkened, so that the contrast of the whole image is improved. Yout = Yin-MinLv1 can be handled according to this formula. Wherein Yin represents the original brightness value of the pixel point, and Yout represents the brightness value after the pixel point is processed. MinLv1 represents the minimum brightness value in the flat area.
The flat areas with middle and high brightness levels can keep the original brightness and are not processed.
Further, the brightness adjustment for the non-flat area may be performed as follows:
if the brightness level of the non-flat area is a first brightness level or a second brightness level, performing shading treatment on the pixel points of the non-flat area, wherein when the brightness mean value of the non-flat area is less than or equal to a first preset value, the brightness level of the non-flat area is the first brightness level, and when the brightness mean value of the non-flat area is greater than the first preset value and less than or equal to the second preset value, the brightness level of the non-flat area is the second brightness level;
in an embodiment, the darkening processing on the pixel point in the non-flat area can be specifically realized by the following method:
subtracting the minimum brightness value of the non-flat area from the brightness value of the pixel point with the brightness value smaller than the second preset threshold value in the non-flat area to obtain the brightness value of each pixel point of the non-flat area after adjustment;
if the brightness level of the non-flat area is a third brightness level, performing brightness value expansion processing on the pixel points of the non-flat area, wherein when the brightness mean value of the non-flat area is greater than the second preset value, the brightness level of the non-flat area is the third brightness level;
in an embodiment, the luminance value expansion processing is performed on the pixel point in the non-flat area, which may be specifically implemented by the following method:
subtracting the minimum brightness value of the non-flat area from the brightness value of each pixel point of the non-flat area to obtain a first intermediate value, dividing the first intermediate value by a brightness difference value to obtain a second intermediate value, and multiplying the second intermediate value by the maximum brightness value of the non-flat area to obtain the adjusted brightness value of each pixel point of the non-flat area; the brightness difference value is the difference between the maximum brightness value and the minimum brightness value of the non-flat area.
Specifically, the adjustment strategy for the first brightness level and the second brightness level of the non-flat area is as follows:
the first brightness level is, for example, a low brightness level, the second brightness level is, for example, a medium brightness level, the low-brightness pixel points in the current non-flat area are subjected to shading processing to improve the contrast, a low-brightness threshold value y1 is set, pixels with brightness smaller than y1 in the current non-flat area are subjected to shading processing, and other pixels are not subjected to processing. For example, the non-flat area may be a starry sky, the night sky is black when the background is provided, and if there are many stars, the background is darkened, so that the contrast between the stars and the night sky is more obvious.
Further, if the brightness level of the non-flat area is the first brightness level, for example, the low brightness level, the following operations may be performed before the brightness adjustment:
performing histogram statistics on the brightness information of the non-flat area to obtain the brightness distribution of the non-flat area, wherein the brightness distribution comprises at least two brightness values;
and if the number of the brightness values in the brightness distribution is smaller than a third preset threshold and the brightness difference between the brightness values in the brightness distribution is larger than a fourth preset threshold, subtracting the minimum brightness value of the non-flat area from the brightness value of the pixel point of which the brightness value in the non-flat area is smaller than the second preset threshold.
Specifically, histogram statistics is performed on the luminance information of the non-flat area to obtain luminance distribution, where the luminance distribution includes a plurality of luminance values and the number of pixels corresponding to each luminance value (in fig. 8A, the abscissa represents the luminance value, and the ordinate represents the number of pixels), and if the luminance distribution is relatively uniform or irregular, no processing is performed; as shown in fig. 8A, if the luminance values are less (e.g., less than the third preset threshold), the distribution is regular, and the brightness difference is significant (e.g., the luminance difference is greater than the fourth preset threshold), then the low-luminance pixel points in the current non-flat area are darkened to improve the contrast, the low-luminance threshold y1 is set, the pixels with luminance less than y1 in the current non-flat area are darkened, and other pixels are not processed. For example, the non-flat area may be a starry sky, the night sky is black when the background is black, and if there are many stars, the background is darkened, so that the contrast between the stars and the night sky is more obvious.
The adjustment strategy corresponding to the third brightness level for the non-flat area is as follows:
the third brightness level is, for example, a high brightness level, and the non-flat area may have saturated brightness and a poor low brightness level, so that the brightness value of the non-flat area may be expanded to improve the bright and dark levels.
For example, the maximum brightness value in the non-flat area is unchanged, and the brightness values of other pixel points are reduced. See, for example, the following equation:
Yout={(Yin-MinLv2)/(MaxLv2-MinLv2)}×MaxLv2
wherein Yin represents the original brightness value of the pixel point, and Yout represents the brightness value after the pixel point is processed. MinLv2 represents the minimum brightness value in the non-flat area, and MaxLv2 represents the maximum brightness value in the non-flat area. Yin-MinLv2 yields a first intermediate value, (Yin-MinLv 2)/(MaxLv 2-MinLv 2) yields a second intermediate value.
As shown in fig. 8B, for example, the luminance of the pixel corresponding to the luminance value smaller than the maximum luminance value may be equalized to increase the pixel having the luminance value smaller than the maximum luminance value in the non-flat area, where the left side in fig. 8B is the histogram statistical result before processing, and the right side is the histogram statistical result after processing.
In this embodiment, for the divided flat area or the divided non-flat area, the image brightness distribution of different areas is changed, so that the contrast of the image is more significant, and the display effect is improved.
Fig. 9 is a structural diagram of an embodiment of an image processing apparatus provided in the present application, and as shown in fig. 9, the image processing apparatus of the present embodiment includes:
the preprocessing module 901 is configured to perform region division on an image according to a brightness difference between each pixel point in the image to obtain a flat region and a non-flat region;
a processing module 902, configured to adjust the brightness of the flat area and the brightness of the non-flat area respectively according to the brightness levels of the flat area and the non-flat area and a brightness adjustment policy corresponding to the brightness levels, so as to obtain an adjusted image;
a display module 903, configured to display the adjusted image.
In one possible implementation, the preprocessing module 901 is configured to:
dividing pixel points in the image, the brightness difference between the pixel points and the adjacent pixel points of which is less than a first preset threshold value, into flat areas;
and dividing the pixel points, of which the brightness difference with the adjacent pixel points is greater than or equal to a first preset threshold value, in the image into non-flat areas.
In one possible implementation, the processing module 902 is configured to:
and if the brightness level of the flat area is a first brightness level, performing darkening processing on the pixel points of the flat area, wherein when the brightness mean value of the flat area is less than or equal to the first preset value, the brightness level of the flat area is the first brightness level.
In one possible implementation, the processing module 902 is configured to:
and subtracting the minimum brightness value of the flat area from the brightness value of each pixel point of the flat area to obtain the brightness value of each pixel point of the flat area after adjustment.
In one possible implementation, the processing module 902 is configured to:
if the brightness level of the non-flat area is a first brightness level or a second brightness level, performing shading processing on the pixel points of the non-flat area, wherein when the brightness mean value of the non-flat area is less than or equal to the first preset value, the brightness level of the non-flat area is the first brightness level, and when the brightness mean value of the non-flat area is greater than the first preset value and less than or equal to the second preset value, the brightness level of the non-flat area is the second brightness level;
and if the brightness level of the non-flat area is a third brightness level, performing brightness value expansion processing on the pixel points of the non-flat area, wherein when the brightness mean value of the non-flat area is greater than the second preset value, the brightness level of the non-flat area is the third brightness level.
In one possible implementation, the processing module 902 is configured to:
and subtracting the minimum brightness value of the non-flat area from the brightness value of the pixel point with the brightness value smaller than a second preset threshold value in the non-flat area to obtain the brightness value of each pixel point of the non-flat area after adjustment.
In one possible implementation, the processing module 902 is configured to:
subtracting the minimum brightness value of the non-flat area from the brightness value of each pixel point of the non-flat area to obtain a first intermediate value, dividing the first intermediate value by a brightness difference value to obtain a second intermediate value, and multiplying the second intermediate value by the maximum brightness value of the non-flat area to obtain an adjusted brightness value of each pixel point of the non-flat area; the brightness difference value is the difference between the maximum brightness value and the minimum brightness value of the non-flat area.
In one possible implementation, the processing module 902 is configured to:
performing histogram statistics on the brightness information of the non-flat area to obtain the brightness distribution of the non-flat area, wherein the brightness distribution comprises at least two brightness values;
and if the number of the brightness values in the brightness distribution is smaller than a third preset threshold value and the brightness difference between the brightness values in the brightness distribution is larger than a fourth preset threshold value, performing darkening processing on the pixel points of the non-flat area.
In a possible implementation manner, the preprocessing module 901 is further configured to:
determining whether the brightness value of each pixel point in the image is within a preset brightness range or not according to the minimum brightness value and the maximum brightness value in the image;
if not, preprocessing the brightness value of each pixel point in the image so as to enable the brightness value of each pixel point in the image to be within the preset brightness range.
The apparatus of this embodiment may be configured to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
Fig. 10 is a structural diagram of an embodiment of a display device provided in the present application, and as shown in fig. 10, the display device includes:
a processor 101, a display 103, and a memory 102 for storing executable instructions for the processor 101. The display 103 is used to display images.
The above components may communicate over one or more buses.
The processor 101 is configured to execute the corresponding method in the foregoing method embodiment by executing the executable instruction, and the specific implementation process of the method may refer to the foregoing method embodiment, which is not described herein again.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method in the foregoing method embodiment is implemented.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (9)

1. An image processing method, comprising:
according to the brightness difference between pixel points in an image, carrying out region division on the image to obtain a flat region and a non-flat region;
respectively adjusting the brightness of the flat area and the brightness of the non-flat area according to the brightness level of the flat area and the brightness level of the non-flat area and a brightness adjusting strategy corresponding to the brightness level to obtain an adjusted image;
displaying the adjusted image;
adjusting the brightness of the non-flat area according to the brightness level of the non-flat area and a brightness adjustment strategy corresponding to the brightness level, including:
if the brightness level of the non-flat area is a first brightness level or a second brightness level, performing shading processing on the pixel points of the non-flat area, wherein when the brightness mean value of the non-flat area is less than or equal to a first preset value, the brightness level of the non-flat area is the first brightness level, and when the brightness mean value of the non-flat area is greater than the first preset value and less than or equal to the second preset value, the brightness level of the non-flat area is the second brightness level;
and if the brightness level of the non-flat area is a third brightness level, performing brightness value expansion processing on the pixel points of the non-flat area, wherein when the brightness average value of the non-flat area is greater than the second preset value, the brightness level of the non-flat area is the third brightness level.
2. The method according to claim 1, wherein the dividing the image into regions according to the brightness difference between the pixels in the image comprises:
dividing pixel points in the image, the brightness difference between the pixel points and the adjacent pixel points of which is less than a first preset threshold value, into flat areas;
and dividing the pixel points, of which the brightness difference with the adjacent pixel points is greater than or equal to a first preset threshold value, in the image into non-flat areas.
3. The method according to claim 1 or 2, wherein adjusting the brightness of the flat area according to the brightness level of the flat area and a brightness adjustment strategy corresponding to the brightness level comprises:
and if the brightness level of the flat area is a first brightness level, performing darkening treatment on the pixel points of the flat area, wherein when the brightness mean value of the flat area is less than or equal to a first preset value, the brightness level of the flat area is the first brightness level.
4. The method of claim 3, wherein the darkening the pixel points of the flat region comprises:
and subtracting the minimum brightness value of the flat area from the brightness value of each pixel point of the flat area to obtain the brightness value of each pixel point of the flat area after adjustment.
5. The method of claim 1, wherein the darkening the pixels of the non-flat area comprises:
and subtracting the minimum brightness value of the non-flat area from the brightness value of the pixel point with the brightness value smaller than a second preset threshold value in the non-flat area to obtain the brightness value of each pixel point of the non-flat area after adjustment.
6. The method according to claim 1, wherein said performing a luminance value expansion process on the pixels in the non-flat area comprises:
subtracting the minimum brightness value of the non-flat area from the brightness value of each pixel point of the non-flat area to obtain a first intermediate value, dividing the first intermediate value by a brightness difference value to obtain a second intermediate value, and multiplying the second intermediate value by the maximum brightness value of the non-flat area to obtain an adjusted brightness value of each pixel point of the non-flat area; the brightness difference value is the difference between the maximum brightness value and the minimum brightness value of the non-flat area.
7. The method of claim 1, wherein if the brightness level of the non-flat area is the first brightness level, before performing the shading process on the pixel points of the non-flat area, the method further comprises:
performing histogram statistics on the brightness information of the non-flat area to obtain the brightness distribution of the non-flat area, wherein the brightness distribution comprises at least two brightness values;
correspondingly, the step of performing shading processing on the pixel points of the non-flat area includes:
and if the number of the brightness values in the brightness distribution is smaller than a third preset threshold value and the brightness difference between the brightness values in the brightness distribution is larger than a fourth preset threshold value, performing darkening processing on the pixel points of the non-flat area.
8. The method according to claim 1 or 2, wherein before the dividing the image into regions according to the brightness difference between the pixels in the image, the method further comprises:
determining whether the brightness value of each pixel point in the image is within a preset brightness range according to the minimum brightness value and the maximum brightness value in the image;
if not, preprocessing the brightness value of each pixel point in the image so as to enable the brightness value of each pixel point in the image to be within the preset brightness range.
9. A display device, comprising:
a processor, a display; and
a memory for storing executable instructions of the processor;
the display is used for displaying images;
wherein the processor is configured to perform the method of any of claims 1-8 via execution of the executable instructions.
CN201911112275.3A 2019-11-14 2019-11-14 Image processing method and apparatus Active CN110807750B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911112275.3A CN110807750B (en) 2019-11-14 2019-11-14 Image processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911112275.3A CN110807750B (en) 2019-11-14 2019-11-14 Image processing method and apparatus

Publications (2)

Publication Number Publication Date
CN110807750A CN110807750A (en) 2020-02-18
CN110807750B true CN110807750B (en) 2022-11-18

Family

ID=69502663

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911112275.3A Active CN110807750B (en) 2019-11-14 2019-11-14 Image processing method and apparatus

Country Status (1)

Country Link
CN (1) CN110807750B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114268745B (en) * 2020-09-16 2024-06-28 北京小米移动软件有限公司 Brightness adjustment method, device, equipment and storage medium
CN114827482B (en) * 2021-01-28 2023-11-03 抖音视界有限公司 Image brightness adjusting method and device, electronic equipment and medium
WO2022246663A1 (en) * 2021-05-25 2022-12-01 深圳市大疆创新科技有限公司 Image processing method, device and system, and storage medium

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1549592A (en) * 2003-05-23 2004-11-24 华亚微电子(上海)有限公司 Adaptive recursive noise reducing method of video signal for applied scene static detection
CN102254313A (en) * 2011-07-14 2011-11-23 浙江大学 Image defogging method based on restoration and fusion of images on foggy days
CN102469238A (en) * 2010-11-08 2012-05-23 旭曜科技股份有限公司 Image sharpness enhancement method and system using pixel region characteristics
CN104732487A (en) * 2013-12-20 2015-06-24 比亚迪股份有限公司 Method and system for enhancing picture contrast
CN105511132A (en) * 2015-11-30 2016-04-20 友达光电股份有限公司 Display with switchable viewing angle and operation method thereof
WO2016072129A1 (en) * 2014-11-05 2016-05-12 シャープ株式会社 Field-sequential image display device and image display method
CN106097970A (en) * 2016-08-10 2016-11-09 深圳市华星光电技术有限公司 A kind of driving method reducing AMOLED display ghost and drive system
JP2017013481A (en) * 2015-06-29 2017-01-19 キヤノン株式会社 Image processing system, image processing method for the same, and program
CN107707827A (en) * 2017-11-14 2018-02-16 维沃移动通信有限公司 A kind of high-dynamics image image pickup method and mobile terminal
CN108009997A (en) * 2017-11-08 2018-05-08 青岛海信电器股份有限公司 Method and device for adjusting image contrast
CN108513044A (en) * 2018-04-16 2018-09-07 深圳市华星光电技术有限公司 Picture smooth treatment method, electronic device and computer readable storage medium
CN109272459A (en) * 2018-08-20 2019-01-25 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN109727215A (en) * 2018-12-28 2019-05-07 Oppo广东移动通信有限公司 Image processing method, device, terminal device and storage medium
CN109741280A (en) * 2019-01-04 2019-05-10 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN110400260A (en) * 2018-04-25 2019-11-01 展讯通信(上海)有限公司 Image processing method and device

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1549592A (en) * 2003-05-23 2004-11-24 华亚微电子(上海)有限公司 Adaptive recursive noise reducing method of video signal for applied scene static detection
CN102469238A (en) * 2010-11-08 2012-05-23 旭曜科技股份有限公司 Image sharpness enhancement method and system using pixel region characteristics
CN102254313A (en) * 2011-07-14 2011-11-23 浙江大学 Image defogging method based on restoration and fusion of images on foggy days
CN104732487A (en) * 2013-12-20 2015-06-24 比亚迪股份有限公司 Method and system for enhancing picture contrast
WO2016072129A1 (en) * 2014-11-05 2016-05-12 シャープ株式会社 Field-sequential image display device and image display method
JP2017013481A (en) * 2015-06-29 2017-01-19 キヤノン株式会社 Image processing system, image processing method for the same, and program
CN105511132A (en) * 2015-11-30 2016-04-20 友达光电股份有限公司 Display with switchable viewing angle and operation method thereof
CN106097970A (en) * 2016-08-10 2016-11-09 深圳市华星光电技术有限公司 A kind of driving method reducing AMOLED display ghost and drive system
CN108009997A (en) * 2017-11-08 2018-05-08 青岛海信电器股份有限公司 Method and device for adjusting image contrast
CN107707827A (en) * 2017-11-14 2018-02-16 维沃移动通信有限公司 A kind of high-dynamics image image pickup method and mobile terminal
CN108513044A (en) * 2018-04-16 2018-09-07 深圳市华星光电技术有限公司 Picture smooth treatment method, electronic device and computer readable storage medium
CN110400260A (en) * 2018-04-25 2019-11-01 展讯通信(上海)有限公司 Image processing method and device
CN109272459A (en) * 2018-08-20 2019-01-25 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN109727215A (en) * 2018-12-28 2019-05-07 Oppo广东移动通信有限公司 Image processing method, device, terminal device and storage medium
CN109741280A (en) * 2019-01-04 2019-05-10 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于高分辨率遥感影像的矿山开发监测研究;王燕波 等;《热带地理》;20110731;第1节 *

Also Published As

Publication number Publication date
CN110807750A (en) 2020-02-18

Similar Documents

Publication Publication Date Title
CN105407296B (en) Real-time video enhancement method and device
JP4221434B2 (en) Outline correction method, image processing apparatus, and display apparatus
CN107895566B (en) It is a kind of that two-step method is compensated based on the liquid crystal pixel of S curve and logarithmic curve
CN110807750B (en) Image processing method and apparatus
CN108962185B (en) Method for reducing display image brightness, device thereof and display device
EP1918875A2 (en) Display device and method of improving flicker of image
US20090317017A1 (en) Image characteristic oriented tone mapping for high dynamic range images
CN111064942B (en) Image processing method and apparatus
US20100165139A1 (en) Image gamut mapping
WO2021218603A1 (en) Image processing method and projection system
WO2002080525A2 (en) System and method for performing segmentation-based enhancements of a video image
CN108009997A (en) Method and device for adjusting image contrast
US8014623B2 (en) System and method for efficiently enhancing videos and images
CN115223509A (en) Backlight control method, backlight control device, display equipment and computer readable storage medium
US8165421B2 (en) Method and apparatus for image processing by using stored image
JP4930781B2 (en) Image correction circuit, image correction method, and image display apparatus
US20120314969A1 (en) Image processing apparatus and display device including the same, and image processing method
US8693777B2 (en) Apparatus and method for estimating edge areas of digital image
US7453524B2 (en) Method and device for image contrast enhancement
CN117218039A (en) Image processing method, device, computer equipment and storage medium
CN111372020B (en) Image display method, terminal and storage medium for enhancing contrast
CN105635789A (en) Video image OSD brightness reducing method and device
US7375770B2 (en) Method for luminance transition improvement
CN103986922B (en) Image processing method
CN112992052A (en) Power consumption control method of display panel and display panel

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant after: Hisense Visual Technology Co., Ltd.

Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant before: QINGDAO HISENSE ELECTRONICS Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant