Image processing method and device, terminal and readable storage medium

Through the initial processing of the image and the second noise reduction process guided by the gain guidance map, the problem of the impact on texture details in dark area noise optimization is solved, and the effective reduction of image noise and detail protection are achieved.

CN113810674BActive Publication Date: 2024-08-23GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111037272.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-06
Publication Date
2024-08-23
Estimated Expiration
2041-09-06

AI Technical Summary

Technical Problem

When optimizing noise in dark areas of an image, it is difficult to distinguish between dark areas and texture detail areas using existing technology, resulting in blurred details or reduced contrast after noise reduction.

Method used

By performing the first image processing on the initial image, the image to be denoised is generated, and then the second denoising process is performed according to the gain guidance map to specifically suppress the noise in the dark area and avoid the impact on the texture detail area.

Benefits of technology

It effectively reduces the global noise of the image, protects texture details and contrast, and avoids blurring or low contrast problems after noise reduction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113810674B
    Figure CN113810674B
Patent Text Reader

Abstract

The present application provides an image processing method, device, terminal and readable storage medium. The image processing method includes: inputting an initial image. Performing a first image processing on the initial image to obtain an image to be denoised, wherein the parameter value of each pixel in the image to be denoised is greater than the parameter value of the pixel at the corresponding position of the initial image, and the parameter value is used to reflect the brightness and / or color of the image. Performing a first denoising process on the image to be denoised to obtain an intermediate denoising map. And performing a second denoising process on the intermediate denoising map according to a gain guidance map to obtain a denoised image, wherein the gain guidance map has a gain value that can characterize the parameter value of each pixel in the intermediate denoising map. In the image processing method of the present application, a second denoising process is performed on the intermediate denoising map after preliminary denoising according to the gain guidance map, so as to more specifically suppress the noise in the area that is difficult to distinguish from the texture detail area, and avoid the phenomenon of texture weakening or low contrast in other areas.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technology, and more specifically, to an image processing method, an image processing device, a terminal, and a non-volatile computer-readable storage medium. Background Art

[0002] In the image signal processing (ISP) system, the dark area noise of the image has a very important impact on the overall image quality. In the dark area of ​​the image, the signal-to-noise ratio is lower than that of the bright area. In addition, after the local tone mapping (LTM) or global tone mapping (GTM) modules, the brightness of some dark areas will be increased, which makes the noise in the dark area more obvious. In the noise reduction module, the current optimization method for dark area noise is generally to first distinguish the dark area and non-dark area by the gray value of the pixel and the set threshold, and then adjust the noise reduction intensity for the dark area. However, judging the dark area and non-dark area by the gray value of the pixel of the image and the set threshold will have the following problems: the gray value of some dark area noise will be slightly increased after being brightened by modules such as LTM or GTM. In terms of grayscale, these brightened areas and other areas with texture details that have not been brightened by LTM or GTM may be very close, and the two are difficult to distinguish from each other in terms of brightness alone. If you increase the noise reduction in these dark areas, other areas of texture detail will also be affected, resulting in blurred details or reduced contrast. Summary of the invention

[0003] Embodiments of the present application provide an image processing method, an image processing device, a terminal, and a non-volatile computer-readable storage medium.

[0004] The image processing method of the embodiment of the present application includes: inputting an initial image. Performing a first image processing on the initial image to obtain an image to be denoised, wherein the parameter value of each pixel in the image to be denoised is greater than the parameter value of the pixel at the corresponding position of the initial image, and the parameter value is used to reflect the brightness and / or color of the image. Performing a first noise reduction processing on the image to be denoised to obtain an intermediate noise reduction map. And performing a second noise reduction processing on the intermediate noise reduction map according to a gain guidance map to obtain a noise reduction image, wherein the gain guidance map has a gain value that can characterize the parameter value of each pixel in the intermediate noise reduction map.

[0005] The image processing device of the embodiment of the present application includes an input module, a processing module and a noise reduction module. The input module is used to input an initial image. The processing module is used to perform a first image processing on the initial image to obtain an image to be denoised, wherein the parameter value of each pixel in the image to be denoised is greater than the parameter value of the pixel at the corresponding position of the initial image, and the parameter value is used to reflect the brightness and / or color of the image. The noise reduction module is used to perform a first noise reduction processing on the image to be denoised to obtain an intermediate noise reduction map. And perform a second noise reduction processing on the intermediate noise reduction map according to a gain guidance map to obtain a noise reduction image, wherein the gain guidance map has a gain value that can characterize the parameter value of each pixel in the intermediate noise reduction map.

[0006] The terminal of the embodiment of the present application includes one or more processors, a memory and one or more programs. Among them, one or more of the programs are stored in the memory and executed by one or more of the processors, and the program includes instructions for executing the image processing method described in the embodiment of the present application. The image processing method includes: inputting an initial image. Performing a first image processing on the initial image to obtain an image to be denoised, wherein the parameter value of each pixel in the image to be denoised is greater than the parameter value of the pixel at the corresponding position of the initial image, and the parameter value is used to reflect the brightness and / or color of the image. Performing a first denoising process on the image to be denoised to obtain an intermediate denoising map. And performing a second denoising process on the intermediate denoising map according to a gain guidance map to obtain a denoised image, wherein the gain guidance map has a gain value that can characterize the parameter value of each pixel in the intermediate denoising map.

[0007] The non-volatile computer-readable storage medium of the embodiment of the present application includes a computer program. When the computer program is executed by one or more processors, the processor performs the following image processing method: input an initial image. Perform a first image processing on the initial image to obtain an image to be denoised, wherein the parameter value of each pixel in the image to be denoised is greater than the parameter value of the pixel at the corresponding position of the initial image, and the parameter value is used to reflect the brightness and / or color of the image. Perform a first denoising process on the image to be denoised to obtain an intermediate denoising map. And perform a second denoising process on the intermediate denoising map according to a gain guidance map to obtain a denoised image, wherein the gain guidance map has a gain value that can characterize the parameter value of each pixel in the intermediate denoising map.

[0008] In the image processing method, image processing device, terminal and non-volatile computer-readable storage medium of the present application, a first image processing is performed on an initial image, so that the parameter value of the pixel point in the acquired image to be denoised is larger than the parameter value of the pixel point at the corresponding position of the initial image, and the parameter value is used to reflect the brightness and / or color of the image, and the first denoising processing is performed on the image to be denoised to obtain an intermediate denoising map, thereby preliminarily reducing the noise of the entire image in the image to be denoised, and then the second denoising processing is performed on the intermediate denoising map according to the gain guidance map, so as to more specifically suppress the noise in the area that is difficult to distinguish from the texture detail area, and avoid the phenomenon of texture weakening or low contrast in other areas.

[0009] Additional aspects and advantages of the embodiments of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0011] Figure 1 is a flowchart of an image processing method of certain embodiments of the present application;

[0012] Figure 2 is a schematic diagram of the structure of an image processing device in some embodiments of the present application;

[0013] Figure 3 is a schematic diagram of the structure of a terminal in some implementation modes of the present application;

[0014] Figure 4 is a flowchart of an image processing method of certain embodiments of the present application;

[0015] Figure 5 is a schematic diagram of a first relationship function in an image processing method in certain embodiments of the present application;

[0016] Figure 6 is a schematic diagram of performing a first denoising process on a denoised image according to an image processing method in some embodiments of the present application;

[0017] Figure 7 is a flowchart of an image processing method of certain embodiments of the present application;

[0018] Figure 8 It is a schematic diagram of a mapping curve between a gain value and a noise reduction intensity of a gain guidance graph of an image processing method in certain embodiments of the present application;

[0019] Fig. 9is a schematic diagram of performing a second denoising process on an intermediate denoised image by an image processing method according to certain embodiments of the present application;

[0020] Fig.10 and Fig.11 is a flowchart of an image processing method of certain embodiments of the present application;

[0021] Fig.12 is a schematic diagram of a second relationship function in an image processing method in certain embodiments of the present application;

[0022] Fig.13 is a schematic diagram of performing a first sharpening process on a denoised image by an image processing method according to certain embodiments of the present application;

[0023] Fig.14 is a flowchart of an image processing method of certain embodiments of the present application;

[0024] Fig.15 It is a schematic diagram of a mapping curve between a gain value and a sharpening intensity of a gain guidance map in an image processing method in certain embodiments of the present application;

[0025] Fig.16 is a schematic diagram of performing a second sharpening process on an intermediate sharpened image by an image processing method according to certain embodiments of the present application;

[0026] Fig.17 is a flowchart of an image processing method of certain embodiments of the present application;

[0027] Fig.18 is a schematic diagram of obtaining a gain guidance map by an image processing method in certain embodiments of the present application;

[0028] Fig.19 is a flowchart of an image processing method of certain embodiments of the present application;

[0029] Fig. 20 is a schematic diagram of obtaining a gain guidance map by an image processing method in certain embodiments of the present application;

[0030] Fig.21 It is a connection diagram of a non-volatile computer-readable storage medium and a processor in certain embodiments of the present application. DETAILED DESCRIPTION

[0031] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions from beginning to end. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the embodiments of the present application, and cannot be understood as limiting the embodiments of the present application.

[0032] See also Figure 1 The present application provides an image processing method, which includes:

[0033] 01: Input the initial image;

[0034] 02: Performing a first image processing on the initial image to obtain an image to be denoised, wherein a parameter value of each pixel in the image to be denoised is greater than a parameter value of a pixel at a corresponding position in the initial image, and the parameter value is used to reflect the brightness and / or color of the image;

[0035] 03: Perform the first denoising process on the image to be denoised to obtain an intermediate denoising image;

[0036] 04: Perform a second denoising process on the intermediate denoised image according to the gain guidance map to obtain a denoised image, wherein the gain guidance map has a gain value capable of representing a parameter value of each pixel in the intermediate denoised image.

[0037] Please combine Figure 2 The present application also provides an image processing device 10, which includes an input module 11, a processing module 13, a denoising module 15 and a sharpening module 17. The input module 11 is used to execute the method in 01, that is, the input module 11 is used to input an initial image. The processing module 13 is used to execute the method in 02, that is, the processing module 13 is used to perform a first image processing on the initial image to obtain an image to be denoised, and the parameter value of each pixel in the image to be denoised is greater than the parameter value of the pixel at the corresponding position of the initial image, and the parameter value is used to reflect the brightness and / or color of the image. The denoising module 15 is used to execute the methods in 03 and 04, that is, the denoising module 15 is used to perform a first denoising process on the initial image to be denoised to obtain an intermediate denoising map; and perform a second denoising process on the intermediate denoising map according to the gain guidance map to obtain a denoised image, and the gain guidance map has a gain value that can characterize the parameter value of each pixel in the intermediate denoising map.

[0038] Please combine Figure 3The present application also provides a terminal 100, which includes one or more processors 30, a memory 50 and one or more programs. Among them, one or more programs are stored in the memory 50 and executed by one or more processors 30, and the program includes instructions for executing the image processing method of the embodiment of the present application. That is, when one or more processors 30 execute the program, the processor 30 can implement the methods in 01, 02, 03 and 04. That is, one or more processors 30 are used to: input an initial image; perform a first image processing on the initial image to obtain an image to be denoised, the parameter value of each pixel in the image to be denoised is greater than the parameter value of the pixel at the corresponding position of the initial image, and the parameter value is used to reflect the brightness and / or color of the image; perform a first denoising process on the initial image to be denoised to obtain an intermediate denoising map; perform a second denoising process on the intermediate denoising map according to the gain guidance map to obtain a denoised image, and the gain guidance map has a gain value that can characterize the parameter value of each pixel in the intermediate denoising map.

[0039] Specifically, the terminal 100 may include but is not limited to a mobile phone, a laptop computer, a smart TV, a tablet computer, a smart watch, or a computer. The image processing device 10 may be an integration of functional modules integrated in the terminal 100. This application only takes the case where the terminal 100 is a mobile phone as an example for explanation. When the terminal 100 is other types of devices, the situation is similar to that of a mobile phone and will not be described in detail.

[0040] In the image signal processing (ISP) system, the dark area noise of the image has a very important impact on the overall image quality. In the dark area of ​​the image, the signal-to-noise ratio is lower than that of the bright area. In addition, after the local tone mapping (LTM) or global tone mapping (GTM) modules, the brightness of some dark areas will be increased, which makes the noise in the dark area more obvious. In the noise reduction module, the current optimization method for dark area noise is generally to first distinguish the dark area and non-dark area by the gray value of the pixel and the set threshold, and then adjust the noise reduction intensity for the dark area. However, judging the dark area and non-dark area by the gray value of the pixel of the image and the set threshold will have the following problems: the gray value of some dark area noise will be slightly increased after being brightened by modules such as LTM or GTM. In terms of grayscale, these brightened areas and other areas with texture details that have not been brightened by LTM or GTM may be very close, and the two are difficult to distinguish from each other in terms of brightness alone. If you increase the noise reduction in these dark areas, other areas of texture detail will also be affected, resulting in blurred details or reduced contrast.

[0041] The image processing method, image processing device 10, terminal 100 and non-volatile computer readable storage medium 200 ( Fig.21 ), a first image processing is performed on the initial image, so that the parameter value of the pixel point in the acquired image to be denoised is larger than the parameter value of the pixel point at the corresponding position of the initial image, and the parameter value is used to reflect the brightness and / or color of the image, and the first denoising process is performed on the image to be denoised to obtain an intermediate denoising map, thereby preliminarily reducing the noise of the entire image in the image to be denoised, and then the second denoising process is performed on the intermediate denoising map according to the gain guidance map, so as to more specifically suppress the noise in the area that is difficult to distinguish from the texture detail area, and avoid the phenomenon of texture weakening or low contrast in other areas.

[0042] In methods 01 and 02, the input initial image may be the original data of the image acquired by the image processing device 10 or the terminal 100, or may be the image stored in the image processing device 10 or the terminal 100. The processing module 13 or the processor 30 performs the first image processing on the input initial image, wherein the first image processing is specifically as follows: the processing module 13 or the processor 30 performs parameter value correction on the initial image through the brightness module or the color module in the image processing engine, so that the parameter value in the initial image is increased to output the image to be denoised, thereby improving the saturation of the initial image before denoising the initial image.

[0043] In method 03, the noise reduction module 15 or the processor 30 performs a first noise reduction process on the image to be denoised. Specifically, the whole image can be denoised by the parameter values ​​of each pixel in the image to be denoised, so as to preliminarily eliminate the obvious noise in the image to be denoised, and output an intermediate noise reduction image. The parameter value may include one or more of the brightness value and the color component value of each color channel. For example, when the image format is a YUV format, the parameter value may include one of the brightness value of the brightness channel, the color component value of the U channel, and the color component value of the V channel; or, the parameter value may include the brightness value and the color component value of the U channel; or, the parameter value may include the brightness value and the color component value of the V channel; or, the parameter value may include the color component value of the U channel and the color component value of the V channel; or, the parameter value may include the brightness value of the brightness channel, the color component value of the U channel, and the color component value of the V channel. When the image format is an RGB format, the parameter value may also include at least one of the brightness value, the color component of the R channel, the color component of the G channel, and the color component of the B channel. The brightness value may be calculated based on the color component of the R channel, the color component of the G channel, and the color component of the B channel.

[0044] In method 04, the denoising module 15 or the processor 30 performs targeted denoising on the intermediate denoised image that has undergone preliminary denoising, mainly by performing a second denoising process on the intermediate denoised image through a gain guidance map. Since the gain guidance map can characterize the gain values ​​corresponding to the parameter values ​​of each pixel point in the intermediate denoised image, the texture detail area and other areas except the texture detail area can be effectively distinguished according to the size of the gain values ​​in the gain guidance map, thereby using the gain values ​​in the gain guidance map to perform targeted denoising on other areas of the intermediate denoised image, and the texture and contrast of other areas can be protected.

[0045] See also Figure 4 In some embodiments, 03: performing a first denoising process on the image to be denoised to obtain an intermediate denoising image may include:

[0046] 031: Obtaining a first relationship function between a preset parameter value of a pixel point and a noise reduction intensity; and

[0047] 033: Perform a first denoising process on the image to be denoised according to the first relationship function to obtain an intermediate denoising image.

[0048] Please combine Figure 2 , the noise reduction module 15 is also used to execute the methods in 031 and 033. That is, the noise reduction module 15 is also used to: obtain a preset first relationship function between the parameter value of the pixel point and the noise reduction intensity; and perform a first noise reduction process on the image to be denoised according to the first relationship function to obtain an intermediate noise reduction image.

[0049] Please combine Figure 3 , the processor 30 is further used to execute the methods in 031 and 033. That is, the processor 30 is further used to: obtain a preset first relationship function between the parameter value of the pixel point and the noise reduction intensity; and perform a first noise reduction process on the image to be denoised according to the first relationship function to obtain the intermediate noise reduction image.

[0050] When the denoising module 15 or the processor 30 performs the first denoising process on the image to be denoised to obtain an intermediate denoising image, it can be implemented according to methods 031 and 033 .

[0051] Specifically, in one embodiment, after the processing module 13 or the processor 30 obtains the image to be denoised, a corresponding noise reduction strength may be set according to the parameter value of each pixel in the image to be denoised, and the larger the parameter value of the pixel, the weaker the noise reduction strength of the pixel, thereby obtaining a first relationship function between the parameter value and the noise reduction strength, wherein the first relationship function may be a formula related to the parameter value and the noise reduction strength, and the parameter value may include a gray value and a color component. Or, Figure 5 As shown in FIG. 1 , the first relationship function is a curve related to the gray value and the noise reduction intensity. When the parameter value is the color component, Figure 5 The horizontal axis (grayscale value) in is replaced by the color component, thereby obtaining a first relationship function between the color component and the noise reduction intensity. The noise reduction module 15 or the processor 30 performs full-image noise reduction processing on the image to be denoised according to the first relationship function, eliminates obvious noise in the image to be denoised, and obtains an intermediate noise reduction image.

[0052] In another embodiment, the first relationship function is pre-set by the processing module 13 or the processor 30. For example, the first relationship function in different scenarios is obtained through machine learning training. When the denoising module 15 or the processor 30 performs denoising on the image to be denoised, the denoising module 15 or the processor 30 selects the closest first relationship function to perform the first denoising process on the image to be denoised, thereby obtaining an intermediate denoising image.

[0053] Please continue reading Figure 4 In some embodiments, 03: performing a first denoising process on the image to be denoised to obtain the image to be denoised may further include:

[0054] 035: obtaining a dark area and a non-dark area in the initial image according to the grayscale value of each pixel in the initial image and a preset grayscale threshold, wherein each pixel in the dark area has a preset first noise reduction intensity, and each pixel in the non-dark area has a preset second noise reduction intensity, and the first noise reduction intensity is greater than the second noise reduction intensity; and

[0055] 037: Using a first noise reduction intensity to reduce noise for each pixel in a dark area of ​​the image to be denoised, and using a second noise reduction intensity to reduce noise for each pixel in a non-dark area of ​​the image to be denoised, so as to obtain an intermediate noise reduction image.

[0056] Please combine Figure 2 , the noise reduction module 15 is also used to execute the methods in 035 and 037. That is, the noise reduction module 15 is also used to: obtain the dark area and the non-dark area in the initial image according to the grayscale value of each pixel in the initial image and the preset grayscale threshold, each pixel in the dark area has a preset first noise reduction intensity, each pixel in the non-dark area has a preset second noise reduction intensity, and the first noise reduction intensity is greater than the second noise reduction intensity; and use the first noise reduction intensity to reduce the noise of each pixel in the dark area of ​​the image to be denoised, and use the second noise reduction intensity to reduce the noise of each pixel in the non-dark area of ​​the image to be denoised, so as to obtain an intermediate noise reduction image.

[0057] Please combine Figure 3, the processor 30 is also used to execute the methods in 035 and 037. That is, the processor 30 is also used to: obtain the dark area and the non-dark area in the initial image according to the gray value of each pixel in the initial image and the preset gray threshold, each pixel in the dark area has a preset first noise reduction intensity, each pixel in the non-dark area has a preset second noise reduction intensity, and the first noise reduction intensity is greater than the second noise reduction intensity; and use the first noise reduction intensity to reduce the noise of each pixel in the dark area of ​​the image to be denoised, and use the second noise reduction intensity to reduce the noise of each pixel in the non-dark area of ​​the image to be denoised, so as to obtain an intermediate noise reduction image.

[0058] When the noise reduction module 15 or the processor 30 performs the first noise reduction processing on the image to be denoised to obtain the intermediate noise reduction image, it can also be implemented according to methods 035 and 037. Specifically, before performing the first image processing on the initial image, the processing module 13 or the processor 30 obtains the dark area and the non-dark area of ​​the initial image according to the grayscale value of each pixel in the initial image and the preset grayscale threshold, wherein the preset threshold can be set according to the actual scene and the actual shooting conditions. Each pixel in the dark area has a one-to-one corresponding preset first noise reduction intensity, and the preset first noise reduction intensity corresponding to each pixel in the dark area can be calculated by the processing module 13 or the processor 30 through machine learning of a large number of sample images under the same scene. Similarly, each pixel summarized in the non-dark area also has a one-to-one corresponding preset second noise reduction intensity, and the preset second noise reduction intensity corresponding to each pixel in the non-dark area can be calculated by the processing module 13 or the processor 30 through machine learning of a large number of sample images under the same scene.

[0059] Please combine Figure 6In one example, assuming that the initial image is P0 (size is 3×3), the dark area obtained by dividing according to the preset grayscale threshold is the area composed of the positions corresponding to the parameter values ​​of R(0,0), R(0,1), R(1,0), and R(1,1), respectively, and the non-dark area is the area composed of the positions corresponding to the parameter values ​​of R(0,2), R(1,2), R(2,0), R(2,1), and R(2,2), respectively. The dark area in the image to be denoised P1 obtained after the first image processing of the initial image P0 is the area composed of the positions corresponding to the parameter values ​​of B(0,0), B(0,1), B(1,0), and B(1,1), respectively, and the non-dark area in the image to be denoised P1 is the area composed of the positions corresponding to the parameter values ​​of B(0,2), B(1,2), B(2,0), B(2,1), and B(2,2), respectively. Similarly, the dark area in the intermediate noise reduction image P2 is the area composed of the positions corresponding to the parameter values ​​C(0,0), C(0,1), C(1,0), and C(1,1), and the non-dark area in the intermediate noise reduction image P2 is the area composed of the positions corresponding to the parameter values ​​C(0,2), C(1,2), C(2,0), C(2,1), and C(2,2). If the preset grayscale threshold is 7.5, the first relationship function is a curve of grayscale value and noise reduction intensity, such as Figure 5 As shown, Figure 5 When the medium gray value is 7.5, the corresponding noise reduction intensity is 1, then multiple noise reduction intensities with noise reduction intensities less than 1 are all the first noise reduction intensities, and multiple noise reduction intensities with noise reduction intensities greater than 1 are all the second noise reduction intensities. The denoising module 15 or the processor 30 uses the first denoising intensity corresponding to the parameter values ​​B(0, 0), B(0, 1), B(1, 0) and B(1, 1) of each pixel point in the dark area of ​​the image to be denoised to perform denoising on the pixels corresponding to the above parameter values, so as to obtain the corresponding parameter values ​​C(0, 0), C(0, 1), C(1, 0) and C(1, 1) in the dark area of ​​the intermediate denoised image P2; and uses the second denoising intensity corresponding to the parameter values ​​B(0, 2), B(1, 2), B(2, 0), B(2, 1) and B(2, 2) of each pixel point in the non-dark area to perform denoising on the pixels corresponding to the above parameter values, so as to obtain the parameter values ​​C(0, 2), C(1, 2), C(2, 0), C(2, 1) and C(2, 2) of the corresponding pixels in the non-dark area of ​​the intermediate denoised image P2.

[0060] See also Figure 7 In some embodiments, 04: performing a second denoising process on the intermediate denoised image according to the gain guidance image to obtain a denoised image may include:

[0061] 041: Perform a second denoising process on the parameter values ​​of each pixel point corresponding to the dark area in the intermediate denoising image according to the gain value of each pixel point corresponding to the dark area in the gain guidance image, so as to obtain a denoised image.

[0062] Please combine Figure 2 , the noise reduction module 15 is also used to execute the method in 041. That is, the noise reduction module 15 is also used to: perform a second noise reduction process on the parameter values ​​of each pixel point corresponding to the dark area in the intermediate noise reduction image according to the gain value of each pixel point corresponding to the dark area in the gain guidance image, so as to obtain a noise reduction image.

[0063] Please combine Figure 3 , the processor 30 is also used to execute the method in 041. That is, the processor 30 is also used to: perform a second noise reduction process on the parameter value of each pixel point corresponding to the dark area in the intermediate noise reduction image according to the gain value of each pixel point corresponding to the dark area in the gain guidance image, so as to obtain a noise reduction image.

[0064] Specifically, since the gain value of each pixel point in the gain guidance map is calculated, and the gain value can be used to know the increase multiple corresponding to the parameter value of each pixel point in the intermediate denoising map, for the dark area in the intermediate denoising map, when performing the first image processing, the increase multiple of the parameter value of the pixel in the dark area is different from the increase multiple of the parameter value of the pixel in the non-dark area (the non-dark area may include the texture detail area and the highlight area). Therefore, according to the gain value in the gain guidance map, the area with a large or small increase multiple (that is, distinguishing the dark area and the non-dark area) can be effectively distinguished, so as to use the gain value of each pixel point corresponding to the dark area in the gain guidance map to perform the second denoising process on each pixel point in the dark area of ​​the intermediate denoising map to obtain a denoised image. Among them, if Figure 8 As shown, the corresponding noise reduction strength can be set according to the gain value in the gain guidance graph and a mapping curve can be generated. The larger the gain value corresponding to the pixel point, the greater the noise reduction strength corresponding to the pixel point.

[0065] Please combine Fig. 9In an example, it is assumed that the intermediate denoised image is P2, wherein the pixels in the dark area are set as described above, that is, the parameter values ​​of the pixels in the dark area of ​​the intermediate denoised image P2 are C(0,0), C(0,1), C(1,0), and C(1,1), respectively, and the remaining pixels are non-dark areas. Then, the gain values ​​corresponding to the parameter values ​​C(0,0), C(0,1), C(1,0), and C(1,1) of the pixels in the dark area in the gain guidance image P3 are D(0,0), D(0,1), D(1,0), and D(1,1), respectively. Then, the parameter value C(0,0) is denoised using the denoising intensity corresponding to D(0,0) to obtain the parameter value E(0,0) at (0,0) in the denoised image P4. 1) is used to perform denoising on parameter value C(0,1) with the denoising intensity corresponding to D(1,0) to obtain parameter value E(0,1) at (0,1) in denoised image P4, denoising on parameter value C(1,0) with the denoising intensity corresponding to D(1,0) to obtain parameter value E(1,0) at (1,0) in denoised image P4, denoising on parameter value C(1,1) with the denoising intensity corresponding to D(1,1) to obtain parameter value E(1,1) at (1,1) in denoised image P4, and parameter values ​​of pixel points at other positions in denoised image P4 are still the parameter values ​​of other pixel points in the intermediate denoising image, that is, parameter values ​​are C(0,2), C(1,2), C(2,0), C(2,1), and C(2,2) respectively. In summary, denoising module 13 or processor 30 suppresses noise in dark areas with high gain values ​​more specifically, and does not cause texture weakening or low contrast in non-dark areas.

[0066] See also Fig.10 In some embodiments, the image processing method may further include:

[0067] 05: performing a first sharpening process on the denoised image to obtain an intermediate sharpening image; and

[0068] 06: Perform a second sharpening process on the intermediate sharpened image according to the gain guidance map to obtain a sharpened image, wherein the gain guidance map has a gain value that can characterize the parameter value of each pixel point in the intermediate sharpened image.

[0069] Please combine Figure 2 The image processing device 10 further includes a sharpening module 17, which is further used to execute the methods in 05 and 06. That is, the sharpening module 17 is further used to: perform a first sharpening process on the denoised image to obtain an intermediate sharpened image; and perform a second sharpening process on the intermediate sharpened image according to the gain guidance map to obtain a sharpened image, wherein the gain guidance map has a gain value that can characterize the parameter value of each pixel in the intermediate sharpened image.

[0070] Please combine Figure 3, the processor 30 is further used to execute the methods in 05 and 06. That is, the processor 30 is further used to: perform a first sharpening process on the denoised image to obtain an intermediate sharpened image; and perform a second sharpening process on the intermediate sharpened image according to the gain guidance map to obtain a sharpened image, wherein the gain guidance map has a gain value that can characterize the parameter value of each pixel point in the intermediate sharpened image.

[0071] Specifically, after the noise reduction module 15 or the processor 30 obtains the noise reduction image, it can perform a sharpening process on the noise reduction image to improve the sharpness of the noise reduction image. The sharpening module 17 or the processor 30 performs a first sharpening process on the noise reduction image and performs full-image sharpening on the noise reduction image to preliminarily improve the sharpness of each pixel in the noise reduction image to output an intermediate sharpened image. At the same time, the gain value in the gain guidance map can also represent the increase multiple of the parameter value of each pixel in the intermediate sharpened image. Therefore, the intermediate sharpened image is subjected to a targeted second sharpening process using the gain guidance map to further improve the sharpness of a partial area of ​​the intermediate sharpened image and improve the image quality.

[0072] See also Fig.11 In some embodiments, 05: performing a first sharpening process on the denoised image to obtain an intermediate sharpening image may include:

[0073] 051: Obtaining a preset second relationship function between the parameter value of the pixel point and the sharpening intensity; and

[0074] 053: Perform a first sharpening process on the denoised image according to the second relationship function to obtain an intermediate sharpening image.

[0075] Please combine Figure 2 , the sharpening module 17 is also used to execute the methods in 051 and 053. That is, the sharpening module 17 is also used to: obtain a second relationship function between a preset parameter value of a pixel point and a sharpening intensity; and perform a first sharpening process on the denoised image according to the second relationship function to obtain an intermediate sharpening image.

[0076] Please combine Figure 3 , the processor 30 is further used to execute the methods in 051 and 053. That is, the processor 30 is further used to: obtain a preset second relationship function between the parameter value of the pixel point and the sharpening intensity; and perform a first sharpening process on the denoised image according to the second relationship function to obtain an intermediate sharpening image.

[0077] Specifically, in one embodiment, the post-processor 30 of the processing module 13 may receive a denoised image, and may set a corresponding sharpening intensity according to the parameter value of each pixel in the denoised image, and the larger the parameter value of the pixel, the weaker the sharpening intensity of the pixel, thereby obtaining a second relationship function between the parameter value and the sharpening intensity, wherein the second relationship function may be a formula related to the parameter value and the sharpening intensity, and the parameter value may include a gray value and a color component. Or, as Fig.12 As shown in , the second relationship function is a curve related to grayscale value and sharpening intensity. When the parameter value is the color component, Fig.12 The horizontal coordinate (grayscale value) in is replaced with the color component, thereby obtaining a second relationship function between the color component and the sharpening intensity. The sharpening module 17 or the processor 30 performs a first sharpening process on the denoised image according to the second relationship function to preliminarily improve the sharpness of each pixel in the denoised image to output an intermediate sharpened image. In another embodiment, the second relationship function is pre-set by the processing module 13 or the processor 30, for example, a second relationship function of the denoised image in different scenes is obtained through machine learning training. When the sharpening module 17 or the processor 30 sharpens the denoised image, the sharpening module 17 or the processor 30 selects the closest second relationship function to perform a first sharpening process on the denoised image, thereby obtaining an intermediate sharpened image.

[0078] Please refer again Fig.11 In some embodiments, 05: performing a first sharpening process on the denoised image to obtain an intermediate sharpening image may include:

[0079] 055: obtaining a dark area and a non-dark area in the initial image according to the grayscale value of each pixel in the initial image and a preset grayscale threshold, wherein each pixel in the dark area has a preset first sharpening intensity, and each pixel in the non-dark area has a preset second sharpening intensity, and the first sharpening intensity is greater than the second sharpening intensity; and

[0080] 057: sharpen each pixel in the dark area of ​​the denoised image using the first sharpening intensity, and sharpen each pixel in the non-dark area of ​​the denoised image using the second sharpening intensity to obtain an intermediate sharpened image.

[0081] Please combine Figure 2 , the sharpening module 17 is also used to execute the methods in 055 and 057. That is, the sharpening module 17 is also used to: obtain the dark area and the non-dark area in the initial image according to the grayscale value of each pixel in the initial image and the preset grayscale threshold, each pixel in the dark area has a preset first sharpening intensity, each pixel in the non-dark area has a preset second sharpening intensity, and the first sharpening intensity is greater than the second sharpening intensity; and use the first sharpening intensity to sharpen each pixel in the dark area of ​​the denoised image, and use the second sharpening intensity to sharpen each pixel in the non-dark area of ​​the denoised image to obtain an intermediate sharpened image.

[0082] Please combine Figure 3 , the processor 30 is also used to execute the methods in 055 and 057. That is, the processor 30 is also used to: obtain the dark area and the non-dark area in the initial image according to the grayscale value of each pixel in the initial image and the preset grayscale threshold, each pixel in the dark area has a preset first sharpening intensity, each pixel in the non-dark area has a preset second sharpening intensity, and the first sharpening intensity is greater than the second sharpening intensity; and use the first sharpening intensity to sharpen each pixel in the dark area of ​​the denoised image, and use the second sharpening intensity to sharpen each pixel in the non-dark area of ​​the denoised image to obtain an intermediate sharpened image.

[0083] Please combine Fig.12 and Fig.13 Similarly, if the preset grayscale threshold is 7.5, the second relationship function is a curve of grayscale value and sharpening intensity. Fig.12 When the medium gray value is 7.5, the corresponding sharpening intensity is 1.09, then multiple sharpening intensities with noise reduction intensity less than 1.09 are all the first sharpening intensity, and multiple sharpening intensities with sharpening intensity greater than 1.09 are all the second sharpening intensity. The sharpening module 17 or the processor 30 performs a first sharpening process on each pixel point using the first sharpening intensity corresponding to the pixels corresponding to the parameter values ​​E(0, 0), E(0, 1), E(1, 0) and E(1, 1) in the dark area of ​​the denoised image P4, so as to obtain the corresponding parameter values ​​F(0, 0), F(0, 1), F(1, 0), F(1, 1) in the dark area of ​​the intermediate sharpening image P2; and performs a sharpening process on the parameter values ​​corresponding to each pixel using the second sharpening intensity corresponding to the pixels corresponding to the parameter values ​​C(0, 2), C(1, 2), C(2, 0), C(2, 1), and C(2, 2) in the non-dark area, so as to obtain the parameter values ​​F(0, 2), F(1, 2), F(2, 0), F(2, 1), and F(2, 2) at the corresponding positions in the non-dark area of ​​the intermediate sharpening image P5.

[0084] See also Fig.14 In some embodiments, 06: performing a second sharpening process on the intermediate sharpening image according to the gain guidance image to obtain a sharpened image, including:

[0085] 061: Perform a second sharpening process on the parameter values ​​of each pixel point corresponding to the dark area in the intermediate sharpening image according to the gain value of each pixel point corresponding to the dark area in the gain guidance image, so as to obtain a sharpened image.

[0086] Please combine Figure 2, the sharpening module 17 is also used to execute the method in 061. That is, the sharpening module 17 is also used to: perform a second sharpening process on the parameter values ​​of each pixel point corresponding to the dark area in the intermediate sharpening image according to the gain value of each pixel point corresponding to the dark area in the gain guidance image, so as to obtain a sharpened image.

[0087] Please combine Figure 3 The processor 30 is also used to execute the method in 061. That is, the processor 30 is also used to: perform a second sharpening process on the parameter value of each pixel point corresponding to the dark area in the intermediate sharpening image according to the gain value of each pixel point corresponding to the dark area in the gain guidance image, so as to obtain a sharpened image.

[0088] Likewise, if Fig.15 As shown in the figure, you can generate a mapping curve based on the corresponding sharpening strength setting according to the gain value in the gain guide map. The larger the gain value corresponding to the pixel point, the smaller the sharpening strength corresponding to the pixel point. Fig.16 In an example, assuming that the intermediate sharpening image is P5 and the gain guidance image is P3, the parameter values ​​of the pixels in the dark area of ​​the intermediate sharpening image P5 are F(0,0), F(0,1), F(1,0), and F(1,1), respectively, and the remaining pixels are non-dark areas. The gain values ​​corresponding to the pixels in the dark area of ​​the intermediate sharpening image P5 in the gain guidance image P3 are D(0,0), D(0,1), D(1,0), and D(1,1), respectively. The sharpening intensity corresponding to D(0,0) is used to sharpen the parameter value F(0,0) to obtain the parameter value G(0,0) at (0,0) in the sharpened image P6, and the sharpening intensity corresponding to D(0,1) is used to sharpen the parameter value F( The sharpening intensity corresponding to D(1,0) is used to sharpen the parameter value F(1,0) to obtain the parameter value G(1,0) at (1,0) in the sharpened image P6, and the noise reduction intensity corresponding to D(1,1) is used to sharpen the parameter value C(1,1) to obtain the pixel point G(1,1) at (1,1) in the sharpened image P6. The parameter values ​​of the pixel points at other positions in the sharpened image P6 are still the parameter values ​​of the other pixel points in the intermediate sharpened image, that is, the parameter values ​​are F(0,2), F(1,2), F(2,0), F(2,1), and F(2,2). In summary, the gain guidance map is used to further reduce the sharpness of each pixel point in the dark area, thereby further weakening the noise in the dark area.

[0089] See also Fig.17 In some embodiments, the image processing method may further include:

[0090] 07: Get multiple frames of original images;

[0091] 08: Select one frame from multiple frames of original images as the original key frame;

[0092] 09: performing a first image processing on the original key frame to obtain a first key frame, wherein the parameter value of each pixel point in the first key frame is greater than the parameter value of the pixel point at the corresponding position of the original key frame;

[0093] 010: performing a second image processing on the original key frame to obtain a second key frame, wherein the parameter value of each pixel in the second key frame is smaller than the parameter value of the pixel at the corresponding position of the original key frame; and

[0094] 011: Obtain a gain guidance map according to the first key frame and the second key frame.

[0095] Please combine Figure 2 , the image processing device 10 may further include an acquisition module 19, the acquisition module 19 is used to execute the methods in 07 and 08, and the processing module 13 is also used to execute the methods in 09, 010 and 011. That is, the acquisition module 19 is used to: acquire multiple frames of original images; and select one of the multiple frames of original images as the original key frame. The processing module 13 is also used to: perform a first image processing on the original key frame to acquire a first key frame, in which the parameter value of each pixel point in the first key frame is larger than the parameter value of the pixel point at the corresponding position of the original key frame; perform a second image processing on the original key frame to acquire a second key frame, in which the parameter value of each pixel point in the second key frame is smaller than the parameter value of the pixel point at the corresponding position of the original key frame; and acquire a gain guidance map according to the first key frame and the second key frame.

[0096] Please combine Figure 3 , the processor 30 is also used to execute the methods in 07, 08, 09, 010 and 011. That is, the processor 30 is also used to: obtain multiple frames of original images; select one of the multiple frames of original images as an original key frame; perform a first image processing on the original key frame to obtain a first key frame, and the parameter value of each pixel in the first key frame is greater than the parameter value of the pixel at the corresponding position of the original key frame; perform a second image processing on the original key frame to obtain a second key frame, and the parameter value of each pixel in the second key frame is smaller than the parameter value of the pixel at the corresponding position of the original key frame; and obtain a gain guidance map according to the first key frame and the second key frame.

[0097] Specifically, when acquiring the original image in the scene, the acquisition module 19 or the processor can acquire multiple frames of original images by setting a shooting mode, wherein the exposure time of the multiple frames of original images is substantially consistent. The acquisition module 19 or the processor 30 selects a frame with the best brightness and clarity from the multiple frames of original images and sets it as the original key frame.

[0098] Please combine Fig.18In the embodiment of the present application, the parameter value is taken as an example for explanation. When the parameter value is a color component, the first image processing is mainly adjusted by the color module. The processing module 13 or the processor 30 performs the first image processing (the brightness module is turned on) on the original key frame P7 to obtain a first key frame P8 in which the brightness value of each pixel is greater than the brightness value of the corresponding position of the original key frame P7. For example, the brightness value Y1(0,0) of the pixel at (0,0) in the first key frame P8 is greater than the brightness value Y0(0,0) of the pixel at (0,0) in the original key frame P7, that is, Y1(0,0)>Y0(0,0). At the same time, the processing module 13 or the processor 30 performs a second image processing on the original key frame P7 (the brightness module is in the off state) to obtain a second key frame P9 in which the brightness value of each pixel is smaller than the brightness value of the corresponding position of the original key frame P7, such as the brightness value Y2(0,0) of the pixel at (0,0) in the second key frame P9 is smaller than the brightness value Y0(0,0) of the pixel at (0,0) in the original key frame P7, that is, Y2(0,0)<Y0(0,0). Finally, the processing module 13 or the processor 30 obtains the gain guidance map P3 according to the first key frame P8 and the second key frame P9.

[0099] See also Fig.19 In some implementations, 011: obtaining a gain guidance map according to the first key frame and the second key frame, comprising:

[0100] 0111: Perform Gaussian blur processing on the first key frame and the second key frame to obtain a first denoised frame and a second denoised frame respectively;

[0101] 0113: Obtain the ratio of the parameter value of each pixel point in the second denoised frame to the parameter value of the pixel point at the corresponding position in the first denoised frame;

[0102] 0115: Generate a ratio mask image according to the ratio corresponding to each pixel point; and

[0103] 0117: Normalize the contrast mask map to obtain a gain guidance map.

[0104] Please combine Figure 2 , the processing module 13 is also used to execute the methods in 0111, 0113, 0115 and 0117. That is, the processing module 13 is also used to: perform Gaussian blur processing on the first key frame and the second key frame to obtain the first denoised frame and the second denoised frame respectively; obtain the ratio of the parameter value of each pixel point in the second denoised frame to the parameter value of the pixel point at the corresponding position of the first denoised frame; generate a ratio mask map according to the ratio corresponding to each pixel point; and perform normalization processing on the ratio mask map to obtain a gain guidance map.

[0105] Please combine Figure 3 , the processor 30 is also used to execute the methods in 0111, 0113, 0115 and 0117. That is, the processor 30 is also used to: perform Gaussian blur processing on the first key frame and the second key frame to obtain the first denoised frame and the second denoised frame respectively; obtain the ratio of the parameter value of each pixel point in the second denoised frame to the parameter value of the pixel point at the corresponding position of the first denoised frame; generate a ratio mask map according to the ratio corresponding to each pixel point; and perform normalization processing on the ratio mask map to obtain a gain guidance map.

[0106] Specifically, the processing module 13 performs Gaussian blur processing on both the first key frame P8 and the second key frame P9. To obtain the first denoised frame P8' and the second denoised frame P9', respectively, so as to reduce the influence of noise on the gain value in the gain guide map P3. The processing module 13 or the processor 30 then divides the parameter value of each pixel point in the first denoised frame P8' by the parameter value of the pixel point at the corresponding position in the second denoised frame as the value of the corresponding position in the ratio mask map P3'. For example, the parameter value of the pixel point at the position (0, 0) of the first denoised frame P8' is Y1'(0, 0), and the parameter value of the pixel point at the position (0, 0) of the second denoised frame P9' is Y2'(0, 0). Then the value at the position (0, 0) in the ratio mask map P3' is D'(0, 0). The calculation method of the values ​​of the pixel points at the remaining positions in the ratio mask map P3' is the same as the calculation method of the value of the pixel point at the position (0, 0), which will not be repeated here. After the processing module 13 or the processor 30 obtains the ratio mask map P3`, it normalizes the comparison value mask map P3` to output a gain guidance map. The normalization of the comparison value mask map P3` is specifically as follows: the gain value of a pixel point at a certain position in the gain guidance map P3 is the ratio of the value of the corresponding position in the ratio mask map P3` to all the values ​​in the ratio mask map P3`. For example, D(0,0)=D`(0,0) / [D`(0,0)+D`(0,1)+D`(0,2)+D`(1,0)+D`(1,1)+D`(1,2)+D`(2,0)+D`(2,1)+D`(2,2)].

[0107] In some embodiments, the gain guidance map may be preset, that is, the gain guidance map is pre-trained in the image processing device 10 or the terminal 100, and the specific training process may be the same as the implementation process of methods 07, 08, 09, 010, 011, 0111, 0113, 0115 and 0117.

[0108] In some embodiments, the parameter value includes at least one of the brightness value of the brightness channel, the color component value of the U channel, and the color component value of the V channel; when the parameter value includes the brightness value of the brightness channel, the gain guidance map includes the brightness gain guidance map; when the parameter value includes the color component value of the U channel, the gain guidance map includes the U channel gain guidance map; when the parameter value includes the color component value of the V channel, the gain guidance map includes the V channel gain guidance map.

[0109] When the format of the original image is in YUV format, calculations can be performed on different channels to obtain the gain guidance map of the corresponding channel, so that noise reduction can be performed according to one or more implementations of performing noise reduction processing from the brightness channel of the image, performing noise reduction processing from the U channel of the image, and performing noise reduction processing on the image from the V channel. When the noise reduction module 15 or the processor 30 performs the second noise reduction processing on the intermediate noise reduction map, the parameter values ​​of the three channels Y, U, and V can be adjusted respectively according to the brightness gain guidance map, the U channel gain guidance map, and the V channel gain guidance map, so as to specifically weaken the noise in the dark area of ​​the intermediate noise reduction map from different aspects.

[0110] In other embodiments, when the format of the original image is RGB format, the parameter value may include at least one of a brightness value, a color component of an R channel, a color component of a G channel, and a color component of a B channel. The brightness value may be calculated based on the color component of an R channel, the color component of a G channel, and the color component of a B channel. For example, the RGB color space is converted to a YIQ color space, where Y refers to the brightness value, Y=0.299R+0.587G+0.144B.

[0111] See also Fig.21 The present application also provides a non-volatile computer-readable storage medium 200 including a computer program 201. When the computer program 201 is executed by one or more processors 30, the processor 30 executes the image processing methods in 01, 02, 03, 04, 05, 06, 07, 08, 09, 010, 011, 031, 033, 035, 037, 041, 051, 053, 053, 055, 057, 061, 0111, 0113, 0115 and 0117.

[0112] In the description of this specification, the descriptions with reference to the terms "certain embodiments", "in an example", "exemplarily", etc., mean that the specific features, structures, materials or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0113] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0114] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. An image processing method, characterized in that: include: Input the initial image; Performing a first image processing on the initial image to obtain an image to be denoised, wherein a parameter value of each pixel in the image to be denoised is greater than a parameter value of a pixel at a corresponding position in the initial image, and the parameter value is used to reflect the brightness and / or color of the image; Performing a first denoising process on the image to be denoised to obtain an intermediate denoising image; and performing a second denoising process on the intermediate denoised image according to a gain guidance map to obtain a denoised image, wherein the gain guidance map has a gain value capable of representing a parameter value of each pixel point in the intermediate denoised image; The image processing method further comprises: Get multiple frames of original images; Selecting one of the frames of the original image as an original key frame; Performing a first image processing on the original key frame to obtain a first key frame, wherein a parameter value of each pixel point in the first key frame is greater than a parameter value of a pixel point at a corresponding position of the original key frame; Performing a second image processing on the original key frame to obtain a second key frame, wherein the parameter value of each pixel in the second key frame is smaller than the parameter value of the pixel at the corresponding position of the original key frame; and Acquire the gain guidance map according to the first key frame and the second key frame; The acquiring the gain guidance map according to the first key frame and the second key frame includes: Performing Gaussian blur processing on the first key frame and the second key frame to obtain a first denoised frame and a second denoised frame respectively; Obtaining a ratio of a parameter value of each pixel point in the second denoised frame to a parameter value of a pixel point at a corresponding position in the first denoised frame; Generating a ratio mask image according to the ratio corresponding to each pixel point; and The ratio mask image is normalized to obtain the gain guidance image.

2. The image processing method according to claim 1, characterized in that: The performing a first denoising process on the image to be denoised to obtain an intermediate denoising image comprises: Obtaining a first relationship function between a preset parameter value of a pixel point and a noise reduction intensity; and A first denoising process is performed on the image to be denoised according to the first relationship function to obtain the intermediate denoising image.

3. The image processing method according to claim 1, characterized in that: The step of performing a second noise reduction process on the intermediate noise reduction image according to the gain guidance image to obtain a noise reduction image includes: A second denoising process is performed on the parameter values ​​of each pixel point corresponding to the dark area in the intermediate denoising image according to the gain value of each pixel point corresponding to the dark area in the gain guidance image, so as to obtain the denoised image.

4. The image processing method according to any one of claims 1 to 3, characterized in that: The image processing method further comprises: Performing a first sharpening process on the denoised image to obtain an intermediate sharpening image; and A second sharpening process is performed on the intermediate sharpened image according to the gain guide image to obtain a sharpened image, wherein the gain value has a parameter value that can characterize each pixel point in the intermediate sharpened image.

5. The image processing method according to claim 4, characterized in that: The step of performing a first sharpening process on the denoised image to obtain an intermediate sharpened image comprises: Obtaining a second relationship function between the parameter value of the pixel point and the sharpening intensity of the gain guidance graph; and The first sharpening process is performed on the denoised image according to the second relationship function to obtain the intermediate sharpening image.

6. The image processing method according to claim 4, characterized in that: The step of performing a second sharpening process on the intermediate sharpening image according to the gain guidance image to obtain a sharpened image comprises: A second sharpening process is performed on the parameter values ​​of each pixel point corresponding to the dark area in the intermediate sharpening image according to the gain value of each pixel point corresponding to the dark area in the gain guidance image, so as to obtain the sharpened image.

7. The image processing method according to claim 1, characterized in that: The parameter value includes at least one of the brightness value of the brightness channel, the color component value of the U channel, and the color component value of the V channel; when the parameter value includes the brightness value of the brightness channel, the gain guidance map includes a brightness gain guidance map; when the parameter value includes the color component value of the U channel, the gain guidance map includes a U channel gain guidance map; when the parameter value includes the color component value of the V channel, the gain guidance map includes a V channel gain guidance map.

8. An image processing device, characterized in that: include: An input module, used to input an initial image; a processing module, configured to perform a first image processing on the initial image to obtain an image to be denoised, wherein a parameter value of each pixel in the image to be denoised is greater than a parameter value of a pixel at a corresponding position in the initial image, and the parameter value is used to reflect the brightness and / or color of the image; and A denoising module, configured to perform a first denoising process on the image to be denoised to obtain an intermediate denoising image; and performing a second denoising process on the intermediate denoised image according to a gain guidance map to obtain a denoised image, wherein the gain guidance map can represent a gain value of a parameter value of each pixel point in the intermediate denoised image; The image processing device further comprises an acquisition module, which is used to acquire multiple frames of original images; select one frame from the multiple frames of original images as an original key frame; The processing module is further used to perform a first image processing on the original key frame to obtain a first key frame, wherein the parameter value of each pixel in the first key frame is greater than the parameter value of the pixel at the corresponding position of the original key frame; perform a second image processing on the original key frame to obtain a second key frame, wherein the parameter value of each pixel in the second key frame is smaller than the parameter value of the pixel at the corresponding position of the original key frame; and obtain the gain guidance map according to the first key frame and the second key frame; The processing module is further used to perform Gaussian blur processing on the first key frame and the second key frame to obtain a first denoised frame and a second denoised frame respectively; obtain a ratio of a parameter value of each pixel point in the second denoised frame to a parameter value of a pixel point at a corresponding position in the first denoised frame; A ratio mask image is generated according to the ratio corresponding to each pixel point; and the ratio mask image is normalized to obtain the gain guidance image.

9. A terminal, characterized in that: The terminal comprises: One or more processors, memory; and One or more programs, wherein one or more of the programs are stored in the memory and executed by one or more of the processors, and the programs include instructions for executing the image processing method according to any one of claims 1 to 7.

10. A non-volatile computer-readable storage medium storing a computer program, which, when executed by one or more processors, implements the image processing method according to any one of claims 1 to 7.