Image enhancement method, electronic device and storage medium

By acquiring and utilizing the enhancement coefficients calculated by different discrete parameters of pixel points, the image data is processed, and the problem of poor enhancement effect in the prior art is solved and the image quality is improved.

CN112258413BActive Publication Date: 2024-11-29ZHEJIANG PIXFRA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011148231.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-23
Publication Date
2024-11-29
Estimated Expiration
2040-10-23

AI Technical Summary

Technical Problem

In the prior art, the effect of enhancing the image data is not good enough, especially in infrared image data, there are problems such as high noise, low contrast and blurred details.

Method used

By acquiring the first discrete parameters and the second discrete parameters of the pixel point, it is used to calculate the first enhancement coefficient and the second enhancement coefficient respectively. Based on these coefficients, the original image data is enhanced and two different enhancements corresponding to the pixel point are used. The coefficients are enhanced to adapt to the degree of discreteness in different regions.

Benefits of technology

The effect of image enhancement processing is improved, making the enhancement intensity of pixel values ​​closer to actual needs, reducing noise and enhancing detailed information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112258413B_ABST
    Figure CN112258413B_ABST
Patent Text Reader

Abstract

The present application discloses an image enhancement method, an electronic device and a storage medium. The method comprises: obtaining a first discrete parameter and a second discrete parameter of a pixel point in the original image data, wherein the first discrete parameter and the second discrete parameter are respectively used to represent the discrete degree of the pixel value in the first area where the pixel point is located; obtaining a first enhancement coefficient using the first discrete parameter, and obtaining a second enhancement coefficient using the second discrete parameter; and performing enhancement processing on the original image data based on the first enhancement coefficient and the second enhancement coefficient to obtain target image data. In the above manner, the effect of enhancing the original image data can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing, and in particular to an image enhancement method, electronic equipment and storage medium. Background Art

[0002] The method of obtaining effective information through image data obtained from the outside world is widely used in various fields, such as security, military, and medical fields. Image data can include multiple types, such as infrared image data, depth image data, color image data, etc., but the image data directly obtained often has many defects, which interferes with the acquisition of subsequent image data information. Taking infrared image data as an example, due to the manufacturing process level of the equipment itself for obtaining infrared image data, the acquired infrared image data has defects such as high noise, low contrast, and blurred details. Therefore, it is necessary to enhance the directly obtained image data to improve the imaging quality.

[0003] However, the effect of enhancing the image data in the prior art is not good enough. Summary of the invention

[0004] The present application provides an image enhancement method, an electronic device and a storage medium, which can solve the problem that the effect of enhancing image data in the prior art is not good enough.

[0005] In order to solve the above technical problems, a technical solution adopted by the present application is: to provide an image enhancement method. The method includes: obtaining a first discrete parameter and a second discrete parameter of a pixel point in the original image data, wherein the first discrete parameter and the second discrete parameter are respectively used to represent the discrete degree of the pixel value in the first area where the pixel point is located; obtaining a first enhancement coefficient using the first discrete parameter, and obtaining a second enhancement coefficient using the second discrete parameter; and enhancing the original image data based on the first enhancement coefficient and the second enhancement coefficient to obtain target image data.

[0006] To solve the above technical problems, another technical solution adopted in the present application is: to provide an electronic device, which includes a processor and a memory connected to the processor, wherein the memory stores program instructions; the processor is used to execute the program instructions stored in the memory to implement the above method.

[0007] In order to solve the above technical problem, another technical solution adopted by the present application is: providing a storage medium storing program instructions, which can implement the above method when executed.

[0008] Through the above-mentioned method, when the present application enhances the original image data, for the pixel points in the original image data, two different parameters corresponding to the pixel points that can reflect the discrete degree of the first region in which the pixel points are located are respectively used to obtain two different enhancement coefficients corresponding to the pixel points, so as to enhance the pixel values ​​of the pixel points using the two different enhancement coefficients corresponding to the pixel points. Compared with the method of performing enhancement processing using only one enhancement coefficient, the intensity of the enhancement processing of the pixel values ​​of the pixel points can be made more suitable for the pixel points, that is, the intensity of the enhancement processing of the pixel values ​​of the pixel points is made closer to the intensity of the enhancement processing actually required for the pixel points, thereby improving the effect of enhancing the original image data. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Figure 1 It is a flowchart of the first embodiment of the image enhancement method of the present application;

[0010] Figure 2 This is a schematic diagram of the first area where the pixel of the present application is located;

[0011] Figure 3 is a flowchart of the second embodiment of the image enhancement method of the present application;

[0012] Figure 4 is a flowchart of the third embodiment of the image enhancement method of the present application;

[0013] Figure 5 is a flowchart of a fourth embodiment of the image enhancement method of the present application;

[0014] Figure 6 is a flowchart of a fifth embodiment of the image enhancement method of the present application;

[0015] Figure 7 yes Figure 6 The specific process diagram of S51 in FIG.

[0016] Figure 8 It is a structural schematic diagram of an embodiment of the electronic device of the present application;

[0017] Fig. 9 It is a structural diagram of an embodiment of a storage medium of the present application. DETAILED DESCRIPTION

[0018] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0019] The terms "first", "second", and "third" in this application are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first", "second", and "third" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0020] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments without conflict.

[0021] Figure 1 is a flowchart of the first embodiment of the image enhancement method of the present application. It should be noted that if there is substantially the same result, this embodiment does not use Figure 1 The process sequence shown is limited. Figure 1 As shown, this embodiment may include:

[0022] S11: Acquire a first discrete parameter and a second discrete parameter of a pixel point in the original image data.

[0023] The first discrete parameter and the second discrete parameter are respectively used to represent the discrete degree of the pixel value in the first area where the pixel point is located.

[0024] The original image data may be infrared image data, color image data, depth image data, etc. Among them, the three types of image data exemplified above may be acquired by different types of imaging devices, respectively. For example, infrared sensing data may be acquired by an infrared camera, color image data may be acquired by an RGB camera, and depth image data may be acquired by a Depth camera. In other embodiments, the three types of image data exemplified above may also be acquired by the same type of imaging device. The following text of this application mainly describes the case where the original image data is infrared image data.

[0025] The original image data includes a plurality of pixels, each of which has a corresponding pixel value. The first region where the pixel is located may be the entire region of the original image data, or may be a local region of the original image data including the pixel.

[0026] If the first area where the pixel point is located is a local area including the pixel point in the original image data, then among the multiple pixels included in the original image data, the first areas where the pixel points are located are different.

[0027] In the case where the first region where the pixel point is located is a local region including the pixel point in the original image data, the first region where the pixel point is located may be a region within a preset range centered on the pixel point in the original image data. In other embodiments, the first region where the pixel point is located may be a region within a preset range centered on the pixel point in the original image data with the pixel point as the upper left corner, or the first region where the pixel point is located may be a region within a preset range centered on the pixel point in the original image data with the pixel point as the lower right corner, and so on.

[0028] The preset range may be the number of pixels in the width direction (x)*the number of pixels in the length direction (y) in the first region where the pixels are located, for example, 2*2, 3*3, 5*5, etc. Figure 2 is a schematic diagram of a first area where a pixel point is located, wherein Figure 2 The first area where the middle pixel point is located is an area within 3*3 centered on the pixel point.

[0029] The parameters used to represent the degree of discreteness of the pixel values ​​in the first region where the pixel point is located may include parameters such as the extreme difference, variance, standard deviation, and the difference between the pixel value of the pixel point and the mean value of the pixel value in the first region where the pixel point is located. The extreme difference may be the difference between the maximum pixel value and the minimum pixel value in the first region where the pixel point is located. The mean value may be the average value of the pixel values ​​in the first region where the pixel point is located. The variance may be the average value of the square of the difference between each pixel value and the mean value in the first region where the pixel point is located. The standard deviation may be the arithmetic square root of the variance.

[0030] The first discrete parameter and the second discrete parameter are two different parameters that can be used to represent the degree of discreteness of pixel values ​​in the first region where the pixel point is located. In a specific embodiment, the first discrete parameter can be the range, and the second discrete parameter can be the variance. The range can also be called contrast.

[0031] In this step, the first discrete parameters and the second discrete parameters of a specified number of pixels in the original image data may be obtained, or the first discrete parameters and the second discrete parameters of each pixel in the original image data may be obtained.

[0032] This article mainly takes the first discrete parameter and the second discrete parameter of each pixel in the original image data as an example for explanation. Each pixel in the original image data has a corresponding first discrete coefficient and a second discrete coefficient. Since the first area where each pixel value is located is a local area including the pixel in the original image data, among the multiple pixels in the original image data, there are cases where the first areas where the pixels are located are different, so there are cases where the first discrete coefficient and the second discrete coefficient of the pixels are different.

[0033] S12: obtaining a first enhancement coefficient using the first discrete parameter, and obtaining a second enhancement coefficient using the second discrete parameter.

[0034] For each pixel in the original image data, its corresponding first discrete coefficient may be used to calculate its corresponding first enhancement coefficient, and its corresponding second discrete coefficient may be used to calculate its corresponding second enhancement coefficient.

[0035] Optionally, the first enhancement coefficient is less than 1, and the first enhancement coefficient is positively correlated with the first discrete parameter; the second enhancement coefficient is less than 1, and the second enhancement coefficient is positively correlated with the second discrete parameter.

[0036] If the first discrete parameter is the range, the first enhancement coefficient can also be called the range coefficient / contrast coefficient. The method of calculating the first enhancement coefficient using the range can be as follows:

[0037] coef1(i,j)=contrast(i,j) / (contrast(i,j)+ε1),

[0038] Among them, (i, j) is the coordinate of the pixel point, coef1(i, j) is the first enhancement coefficient, contrast(i, j) is the range, and ε1 is the first configurable parameter.

[0039] If the first discrete parameter is a variance, the second enhancement coefficient may also be called a variance coefficient. The method for calculating the second enhancement coefficient using the variance may be as follows:

[0040] coef2(i,j)=var(i,j) / (var(i,j)+ε2),

[0041] Among them, (i, j) is the coordinate of the pixel point, coef2(i, j) is the second enhancement coefficient, var(i, j) is the range, and ε2 is the second configurable parameter.

[0042] Since the first area where each pixel value is located is a local area including the pixel point in the original image data, the first discrete coefficient and the second discrete coefficient corresponding to the pixel point in the original image data are different. Accordingly, the first enhancement coefficient and the second enhancement coefficient corresponding to the pixel point in the original image data are also different.

[0043] In addition, the process of obtaining the first discrete coefficient and the second discrete coefficient of the pixel point in the present application, and obtaining the first enhancement coefficient using the first discrete coefficient, and obtaining the second enhancement coefficient using the second discrete parameter can be called: the process of performing weak guided filtering on the original image data using the original image data itself as the guiding data.

[0044] S13: Based on the first enhancement coefficient and the second enhancement coefficient, the original image data is enhanced to obtain target image data.

[0045] The corresponding pixel values ​​in the original image data can be enhanced based on the first enhancement coefficient and the second enhancement coefficient of the pixel point in the original image data to obtain the target image data. The detailed description of this step can be found in the following embodiments.

[0046] Through the implementation of this embodiment, when the present application enhances the original image data, for the pixel points in the original image data, two different parameters corresponding to the pixel points that can reflect the discrete degree of the first region in which the pixel points are located are respectively used to obtain two different enhancement coefficients corresponding to the pixel points, so as to enhance the pixel values ​​of the pixel points using the two different enhancement coefficients corresponding to the pixel points. Compared with the method of performing enhancement processing using only one enhancement coefficient, the intensity of the enhancement processing of the pixel values ​​of the pixel points can be made more suitable for the pixel points, that is, the intensity of the enhancement processing of the pixel values ​​of the pixel points is made closer to the intensity of the enhancement processing actually required for the pixel points, thereby improving the effect of enhancing the original image data.

[0047] Figure 3 is a flow chart of the second embodiment of the image enhancement method of the present application. It should be noted that if there is substantially the same result, this embodiment does not use Figure 3 This embodiment is a further extension of S13 in the above embodiment. Figure 3 As shown, this embodiment may include:

[0048] S21: Obtaining a final enhancement coefficient of the pixel based on the first enhancement coefficient and the second enhancement coefficient of the pixel.

[0049] The product of the first enhancement coefficient and the second enhancement coefficient of the pixel point may be used as the final enhancement coefficient of the pixel point.

[0050] In view of the fact that in the original image data (infrared image data), the noise in the highlight area is relatively obvious visually, while the attention to details in the low-brightness area is low, the third enhancement coefficient calculated according to the brightness of each pixel in the original image data can be introduced when calculating the final enhancement coefficient. In this case, the product of the first enhancement coefficient, the second enhancement coefficient and the third enhancement coefficient of the pixel point can be used as the final enhancement coefficient of the pixel point.

[0051] If the product of the first enhancement coefficient, the second enhancement coefficient, and the third enhancement coefficient of the pixel point is used as the final enhancement coefficient of the pixel point, before S21, the method may further include: obtaining the third enhancement coefficient of the pixel point based on the brightness of each pixel point in the original image data. For a specific method of obtaining the third enhancement coefficient of the pixel point, please refer to the following embodiments.

[0052] S22: performing enhancement processing on the original image data based on the final enhancement coefficient of each pixel in the original image data to obtain target image data.

[0053] The original image data may be preprocessed to extract high-frequency data from the original image data. The preprocessing is not limited to filtering, but may also be other processing that can extract high-frequency data from the original image data. On this basis, in S22, the preprocessed original image data is enhanced based on the final enhancement coefficient of each pixel in the original image data. The details are as follows:

[0054] Figure 4 FIG. 1 is a flow chart of the third embodiment of the image enhancement method of the present application. It should be noted that if there are substantially the same results, this embodiment does not necessarily use Figure 4 In this embodiment, S31 may be included before S22, and S32-S33 are further extensions of S22 in the above embodiment. Figure 4 As shown, this embodiment may include:

[0055] S31: Filtering the original image data to obtain high-frequency data corresponding to the original image data.

[0056] The original image data is filtered to obtain a filtering result, and then the original image data is subtracted from the filtering result to obtain high-frequency data corresponding to the original image data. The filtering process can be a strong guided filtering process, a Gaussian filtering process, a mean filtering process, or other filtering processes that can achieve high-frequency data acquisition.

[0057] S32: Multiply the final enhancement coefficient of each pixel in the original image data by the value of the corresponding pixel in the high-frequency data to obtain detail information data corresponding to the original image data.

[0058] In this step, the final enhancement coefficient is multiplied by the value of the corresponding pixel point in the high-frequency data, that is, the value of the corresponding pixel point in the high-frequency data is enhanced by the final enhancement coefficient.

[0059] S33: Obtain target image data based on the detail information data.

[0060] In this step, the target image data can be directly obtained based on the original image data and the detail information data. For example, the target image data can be obtained by adding the original image data and the detail information data. In order to make the target image data more obviously reflect the effect after the enhancement processing, the target image data can also be obtained based on the original image data and the detail information data after the mapping processing. Please refer to the following embodiments for detailed description.

[0061] In this embodiment, the high-frequency data is enhanced, and the final enhancement coefficient is obtained by using the weaker guided filtering process mentioned above. The high-frequency data is obtained by performing a stronger filtering process on the original data. Therefore, filtering processes of different intensities are used to obtain the high-frequency data and the final enhancement coefficient, which can avoid the problem that the same filtering parameters cannot adapt to different levels of high-frequency data and the final enhancement coefficient acquisition.

[0062] Figure 5 FIG. 4 is a flow chart of the fourth embodiment of the image enhancement method of the present application. It should be noted that if there is substantially the same result, this embodiment does not necessarily use Figure 5 The process sequence shown is limited. Figure 5 As shown, in the above embodiment, based on the brightness of each pixel in the original image data, obtaining the third enhancement coefficient of the pixel may include the following sub-steps:

[0063] S41: Obtain the brightness mean of the second area where the pixel point in the original image data is located.

[0064] The second area where the pixel point is located can be the entire area / all areas of the original image data, or can be a local area including the pixel point in the original image data. The brightness mean of the second area where the pixel point is located is the mean of the brightness values ​​of all the pixels in the second area where the pixel point is located.

[0065] It should be noted that the brightness value of the pixel referred to in this embodiment may be the value of the pixel in the original image data, or may be the value of the pixel in the brightness information data mentioned in the following embodiments.

[0066] When the second area where the pixel point is located is the entire area of ​​the original image data, and the brightness value of the pixel is the pixel value of the pixel point in the original image data, the brightness mean is the mean of all pixel values ​​in the original image data; when the second area where the pixel point is located is the entire area of ​​the original image data (that is, the entire area of ​​the brightness information data), and the brightness value of the pixel is the value of the pixel point in the brightness information data, the brightness mean is the mean of the values ​​of all pixel points in the brightness information data.

[0067] S42: Obtain a ratio of the brightness value of the pixel to the average brightness value as the brightness ratio of the pixel.

[0068] The calculation formula of brightness ratio can be as follows:

[0069]

[0070] Among them, kbright(i,j) is the brightness ratio, in(i,j) is the brightness value, is the mean brightness.

[0071] S43: Obtain a third enhancement coefficient of the pixel based on the brightness ratio of the pixel.

[0072] The area of ​​the image data brightness information data involved in this application can be divided into three parts, namely, a dark area, a normal area, and a highlight area. The brightness value of the pixel points belonging to the dark area belongs to the first range, the brightness value of the pixel points belonging to the normal area belongs to the second range, and the brightness value of the pixel points belonging to the highlight area belongs to the third range.

[0073] Optionally, the upper limit value of the first range is less than or equal to the lower limit value of the second range, and the upper limit value of the second range is less than or equal to the lower limit value of the third range.

[0074] If the brightness value of the pixel point belongs to the first range, the brightness ratio of the pixel point is multiplied by the first coefficient to obtain a third enhancement coefficient of the pixel point.

[0075] If the brightness value of the pixel point belongs to the second range, the brightness ratio of the pixel point is multiplied by the second coefficient to obtain a third enhancement coefficient of the pixel point.

[0076] If the brightness value of the pixel point belongs to the third range, the brightness ratio of the pixel point is multiplied by the third coefficient to obtain the third enhancement coefficient of the pixel point.

[0077] Therefore, the specific calculation formula of the third enhancement coefficient can be as follows:

[0078]

[0079] Among them, K(i,j) is the third enhancement coefficient, k1 is the first coefficient, k2 is the second coefficient, k3 is the third coefficient, the first range is less than T1, the second range is greater than or equal to T1 and less than T2, and the third range is greater than or equal to T2.

[0080] Optionally, the first coefficient is smaller than the third coefficient, and the third coefficient is smaller than the second coefficient (k2>k3>k1). In other embodiments, the first coefficient, the second coefficient, and the third coefficient may also satisfy other relationships, such as k3>k2>k1.

[0081] When k2>k3>k1, the high-frequency data corresponding to the original image is enhanced based on the final enhancement coefficient obtained based on the third enhancement coefficient, which can reduce the noise information in the dark area and the highlight area and enhance the detail information in the normal brightness area.

[0082] Figure 6 FIG. 5 is a flowchart of the fifth embodiment of the image enhancement method of the present application. It should be noted that if there are substantially the same results, this embodiment does not necessarily use Figure 6 In this embodiment, S51 may be included before the above S33, and on this basis, S33 may include S52, such as Figure 6 As shown, this embodiment may include:

[0083] S51: performing mapping processing on the original image data to obtain brightness information data corresponding to the original image data.

[0084] The mapping process may also be referred to as dynamic range compression, that is, the original image data is compressed from a high dynamic range to a low dynamic range through a mapping function to obtain brightness information data.

[0085] For example, the dynamic range bit width of the original image data (infrared image data) before the mapping process is 14 bits, and the dynamic range bit width of the brightness information data obtained after the mapping process is 8 bits.

[0086] The mapping process may include linear compression processing and / or nonlinear compression processing. The following describes the case where the mapping process includes linear compression processing and nonlinear compression processing. Figure 7 , S51 may include the following sub-steps:

[0087] S511: performing linear mapping processing on the original image data to obtain linear brightness data corresponding to the original image data, and performing nonlinear mapping processing on the original image data to obtain nonlinear brightness data corresponding to the original image data.

[0088] The mapping function used in the linear mapping process may be a linear mapping function, and the mapping function used in the nonlinear mapping process may be a nonlinear mapping function.

[0089] S512: Perform weighted processing on the linear brightness data and the nonlinear brightness data to obtain brightness information data.

[0090] S52: Obtain target image data based on the detail information data and the brightness information data.

[0091] The detail information data and the brightness information data may be summed to obtain the target image data.

[0092] Through the implementation of this embodiment, in this application, before obtaining the target image data based on the detail information data, the original image is mapped.

[0093] Directly map the original image data to obtain the corresponding brightness information data, and obtain the target image data based on the detail information data and the brightness information data. Compared with the method of first filtering the original image data and then mapping the filtered original image data, more information carried by the original image data can be retained when the brightness information data corresponding to the original image data is extracted.

[0094] Figure 8 Schematic diagram of the structure of an embodiment of the electronic device of the present application. Figure 8 As shown, the electronic device includes a processor 61 and a memory 62 coupled to the processor.

[0095] The memory 62 stores program instructions for implementing the method of any of the above embodiments; the processor 61 is used to execute the program instructions stored in the memory 62 to implement the steps of the above method embodiments. The processor 61 may also be called a CPU (Central Processing Unit). The processor 61 may be an integrated circuit chip with signal processing capabilities. The processor 61 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0096] Fig. 9 Schematic diagram of the structure of an embodiment of the storage medium of the present application. Fig. 9 As shown, the computer-readable storage medium 70 of the embodiment of the present application stores program instructions 71, and the program instructions 71 are executed to implement the method provided in the above embodiment of the present application. Among them, the program instructions 71 can form a program file and be stored in the above computer-readable storage medium 70 in the form of a software product, so that a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) executes all or part of the steps of each implementation method of the present application. The aforementioned computer-readable storage medium 70 includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), disks or optical disks, or terminal devices such as computers, servers, mobile phones, and tablets.

[0097] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0098] In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. The above is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the description and drawings of this application, or directly or indirectly used in other related technical fields, is also included in the patent protection scope of the present application.

Claims

1. An image enhancement method, characterized in that: include: Acquire a first discrete parameter and a second discrete parameter of a pixel point in the original image data, wherein the first discrete parameter and the second discrete parameter are two different parameters for representing the discrete degree of pixel values ​​in a first area where the pixel point is located, and the first area where the pixel point is located is the entire area of ​​the original image data, or a local area of ​​the original image data including the pixel point; Using the first discrete parameter to obtain a first enhancement coefficient, using the second discrete parameter to obtain a second enhancement coefficient, the first enhancement coefficient is positively correlated with the first discrete parameter, and the second enhancement coefficient is positively correlated with the second discrete parameter; Based on the first enhancement coefficient and the second enhancement coefficient, the original image data is enhanced to obtain target image data; The step of performing enhancement processing on the original image data based on the first enhancement coefficient and the second enhancement coefficient to obtain target image data includes: Obtaining high-frequency data corresponding to the original image data; The final enhancement coefficient of each pixel in the original image data is multiplied by the value of the corresponding pixel in the high-frequency data to obtain detail information data corresponding to the original image data; wherein the final enhancement coefficient of each pixel in the original image data is calculated based on the first enhancement coefficient and the second enhancement coefficient of each pixel; The target image data is obtained based on the detail information data.

2. The method according to claim 1, characterized in that: The first discrete parameter is the range, and the second discrete parameter is the variance; And / or, the first enhancement coefficient is less than 1; the second enhancement coefficient is less than 1.

3. The method according to claim 1, characterized in that The first area where the pixel point is located is an area in the original image data within a preset range centered at the pixel point.

4. The method according to claim 1, characterized in that: The step of performing enhancement processing on the original image data based on the first enhancement coefficient and the second enhancement coefficient to obtain target image data includes: Based on the brightness of each pixel in the original image data, obtaining a third enhancement coefficient of the pixel; The obtaining a final enhancement coefficient of the pixel point based on the first enhancement coefficient and the second enhancement coefficient of the pixel point comprises: The final enhancement coefficient is obtained based on the first enhancement coefficient, the second enhancement coefficient and the third enhancement coefficient of the pixel point.

5. The method according to claim 4, characterized in that The obtaining the final enhancement coefficient based on the first enhancement coefficient, the second enhancement coefficient and the third enhancement coefficient of the pixel point comprises: Taking the product of the first enhancement coefficient, the second enhancement coefficient and the third enhancement coefficient of the pixel point as the final enhancement coefficient; And / or, obtaining a third enhancement coefficient of the pixel based on the brightness of each pixel in the original image data includes: Acquire a brightness mean value of a second region where the pixel point in the original image data is located; the second region where the pixel point is located is the entire region of the original image data, or a local region of the original image data including the pixel point; Obtaining a ratio of the brightness value of the pixel point to the brightness mean as the brightness ratio of the pixel point; A third enhancement coefficient of the pixel is obtained based on the brightness ratio of the pixel.

6. The method according to claim 5, characterized in that The second area is the entire area of ​​the original image data; And / or, obtaining a third enhancement coefficient of the pixel based on the brightness ratio of the pixel includes: If the brightness value of the pixel point belongs to the first range, multiplying the brightness ratio of the pixel point by the first coefficient to obtain a third enhancement coefficient of the pixel point; If the brightness value of the pixel point belongs to the second range, multiplying the brightness ratio of the pixel point by the second coefficient to obtain a third enhancement coefficient of the pixel point; If the brightness value of the pixel point belongs to the third range, the brightness ratio of the pixel point is multiplied by the third coefficient to obtain the third enhancement coefficient of the pixel point.

7. The method according to claim 6, characterized in that The upper limit value of the first range is less than or equal to the lower limit value of the second range, and the upper limit value of the second range is less than or equal to the lower limit value of the third range; and / or, The first coefficient is smaller than the third coefficient, and the third coefficient is smaller than the second coefficient.

8. The method according to claim 1, characterized in that The obtaining high-frequency data corresponding to the original image data includes: The original image data is filtered to obtain high-frequency data corresponding to the original image data.

9. The method according to claim 1, characterized in that: Before obtaining the target image data based on the detail information data, the method includes: Performing mapping processing on the original image data to obtain brightness information data corresponding to the original image data; The obtaining the target image data based on the detail information data comprises: The target image data is obtained based on the detail information data and the brightness information data.

10. The method according to claim 9, characterized in that The mapping process includes linear mapping process and nonlinear mapping process, and the mapping process is performed on the original image data to obtain brightness information data corresponding to the original image data, including: Performing linear mapping processing on the original image data to obtain linear brightness data corresponding to the original image data, and performing nonlinear mapping processing on the original image data to obtain nonlinear brightness data corresponding to the original image data; Performing weighted processing on the linear brightness data and the nonlinear brightness data to obtain the brightness information data; The obtaining the target image data based on the detail information data and the brightness information data comprises: The detail information data and the brightness information data are summed to obtain the target image data.

11. An electronic device, characterized in that: The invention comprises a processor and a memory connected to the processor, wherein: The memory stores program instructions; The processor is configured to execute the program instructions stored in the memory to implement the method according to any one of claims 1 to 10.

12. A storage medium, characterized in that: The storage medium stores program instructions, and when the program instructions are executed, the method according to any one of claims 1 to 10 is implemented.

Citation Information

Patent Citations

  • Method and system for accentuating non-stochastic features in an image

    CA2261363A1

  • A method and system for enhancing low-light video images

    CN102289792A