Image noise reduction method, device and computer storage medium

By performing sub-image processing and feature extraction on the Bayer format Raw image, and using segmentation threshold filtering for transformation, the problem of high complexity and poor effect of noise reduction in the existing technology is solved, and the clarity and detail retention of the image are improved. .

CN112907468BActive Publication Date: 2024-09-10ZHEJIANG DAHUA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110157380.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-04
Publication Date
2024-09-10
Estimated Expiration
2041-02-04

AI Technical Summary

Technical Problem

In the existing technology, the Bayer format Raw image noise reduction method has high computational complexity and poor noise reduction effect, resulting in blurred images and difficulty in improving image clarity.

Method used

By processing the image to be denoised, a sub-image group is obtained, feature extraction is performed on the sub-image, filtering is performed using the segmentation threshold of the characteristic sub-image, and then the filtered sub-image group is transformed to obtain the target image. Both noise reduction and detail preservation are taken into consideration.

Benefits of technology

The clarity of the target image is improved, the noise reduction is based on the image details of the sub-image, achieving both noise reduction and detail preservation, and avoiding image blur.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112907468B
    Figure CN112907468B
Patent Text Reader

Abstract

The present application provides an image denoising method, device and computer storage medium, the image denoising method comprising: processing an image to be denoised to obtain a sub-image group, wherein each sub-image in the sub-image group corresponds to each channel of the image to be denoised; extracting features from the sub-image to obtain a feature sub-image group, wherein each feature sub-image in the feature sub-image group corresponds to each sub-image; filtering the sub-image group using a segmentation threshold of the feature sub-image; transforming the filtered sub-image group to obtain a target image. The image denoising method of the present application improves the clarity of the target image.
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 technology, and in particular to an image noise reduction method, device and computer storage medium. Background Art

[0002] Since image sensors can only obtain intensity information, in order to obtain color information, most current image acquisition is in CFA mode (Color Filter Array), using the Bayer format filter setting, that is, each pixel can only capture one of the three colors R, G, and B. However, the Bayer format Raw image will be processed by various modules of the ISP (Image Signal Processor), and each step of the processing operation will cause different changes in noise, such as CFA interpolation, which makes the noise nature more complex and difficult to process.

[0003] In the prior art, classic denoising methods, such as spatial domain denoising and transform domain denoising, are usually used to achieve denoising of Raw images. However, the classic denoising methods have high computational complexity, and the denoised image is blurred, and a good denoising effect cannot be achieved. Summary of the invention

[0004] The present application provides an image noise reduction method, device and computer storage medium, the main technical problem to be solved is how to improve the clarity of the target image.

[0005] In order to solve the above technical problems, the present application provides an image noise reduction method, which comprises:

[0006] Processing the image to be denoised to obtain a sub-image group, wherein each sub-image in the sub-image group corresponds to each channel of the image to be denoised;

[0007] Extracting features from the sub-images to obtain a feature sub-image group, wherein each feature sub-image in the feature sub-image group corresponds to each of the sub-images;

[0008] Performing filtering processing on the sub-image group using the segmentation threshold of the characteristic sub-image;

[0009] The sub-image group after the filtering process is transformed to obtain a target image.

[0010] In order to solve the above technical problem, the present application also provides an electronic device, the device comprising a memory and a processor coupled to the memory;

[0011] The memory is used to store program data, and the processor is used to execute the program data to implement the image denoising method as described above.

[0012] In order to solve the above technical problems, the present application also provides a computer storage medium, which is used to store program data. When the program data is executed by a processor, it is used to implement the image denoising method as described above.

[0013] The present application processes the image to be denoised to obtain a sub-image group, wherein each sub-image in the sub-image group corresponds to each channel of the image to be denoised; extracts features from the sub-image to obtain a feature sub-image group, wherein each feature sub-image in the feature sub-image group corresponds to each sub-image; performs filtering processing on the sub-image group using the segmentation threshold of the feature sub-image; and performs transformation processing on the filtered sub-image group to obtain a target image. The present application uses the segmentation threshold of the feature sub-image to filter the sub-image group, so that the denoising is based on the image details of the sub-image, achieving a balance between denoising and detail retention, and transforms the filtered sub-image group to obtain the target image, thereby improving the clarity of the target image. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:

[0015] Figure 1 It is a flowchart of an embodiment of an image noise reduction method provided by the present application;

[0016] Figure 2 yes Figure 1 A schematic diagram of a flow chart of an embodiment of S103 in the image noise reduction method shown;

[0017] Figure 3 yes Figure 1 A schematic diagram of a flow chart of an embodiment of S102 in the image noise reduction method shown;

[0018] Figure 4 is a schematic diagram of an image to be denoised in the Bayer format in the image denoising method provided in the present application;

[0019] Figure 5 yes Figure 4 Schematic diagram of a bright noise sub-graph in the image denoising method shown;

[0020] Figure 6 yes Figure 4 A schematic diagram of processing the pixels of the R channel and the B channel in the image denoising method shown;

[0021] Figure 7 yes Figure 4A schematic diagram of a first color noise sub-graph in the image denoising method shown;

[0022] Figure 8 yes Figure 4 A schematic diagram of a second color noise sub-graph in the image denoising method shown;

[0023] Fig. 9 yes Figure 1 A schematic diagram of a flow chart of an embodiment of S104 in the image noise reduction method shown;

[0024] Fig.10 It is a structural schematic diagram of an embodiment of an electronic device provided by the present application;

[0025] Fig.11 It is a structural diagram of an embodiment of a computer storage medium provided by the present application. DETAILED DESCRIPTION

[0026] 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. According to 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.

[0027] This application proposes an image noise reduction method, which can be applied to the noise reduction of RAW images. Figure 1 , Figure 1 It is a flowchart of an embodiment of an image noise reduction method provided by the present application.

[0028] The execution subject of the image noise reduction method may be an image noise reduction device, for example, the image noise reduction method may be executed by an electronic device or a server or other processing device, wherein the electronic device may be a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the image noise reduction method may be implemented by a processor calling a computer-readable instruction stored in a memory.

[0029] Specifically, the image noise reduction method of this embodiment includes the following steps:

[0030] S101: Process the image to be denoised to obtain a sub-image group.

[0031] The image to be denoised obtained by the image denoising device of this embodiment is a RAW image in Bayer format. The image denoising device can obtain the image to be denoised through a camera installed at a fixed position, or directly extract the image to be denoised stored in a storage area.

[0032] Since each pixel in the Bayer format RAW image has one of the three colors of R, G, and B, in order to facilitate the noise reduction process and avoid the influence of the chromaticity on the brightness of the image to be denoised during the noise reduction process, the image noise reduction device of this embodiment processes the chromaticity and brightness of the image to be denoised respectively to obtain a sub-image group. Specifically, the image noise reduction device extracts the image information of the image to be denoised on the R channel, the G channel, and the B channel respectively to obtain a sub-image group. Among them, the sub-image group includes a bright noise sub-image, a first color noise sub-image, and a second color noise sub-image.

[0033] Further, each sub-image in the sub-image group corresponds to each channel of the image to be denoised. The bright noise sub-image corresponds to the image information on the G channel of the image to be denoised, the first color noise sub-image corresponds to the image information on the R channel of the image to be denoised, and the second color noise sub-image corresponds to the image information on the B channel of the image to be denoised. In a specific embodiment, the first color noise sub-image may correspond to the image information on the B channel of the image to be denoised, and the second color noise sub-image corresponds to the image information on the R channel of the image to be denoised. This is not limited here.

[0034] S102: Extract features from the sub-images to obtain a feature sub-image group.

[0035] In order to conveniently obtain the segmentation threshold of each characteristic sub-image, the image denoising device of this embodiment needs to perform feature extraction on the sub-image to obtain a characteristic sub-image group. Among them, the characteristic sub-image group includes a bright noise texture characteristic sub-image, a first color noise texture characteristic sub-image, and a second color noise texture characteristic sub-image. Specifically, the image denoising device performs feature extraction on the bright noise sub-image, the first color noise sub-image, and the second color noise sub-image respectively to obtain a bright noise texture characteristic sub-image, a first color noise texture characteristic sub-image, and a second color noise texture characteristic sub-image corresponding to the bright noise sub-image, the first color noise sub-image, and the second color noise sub-image.

[0036] Furthermore, in order to enable the image denoising device to effectively distinguish the smooth area and non-smooth area of ​​the image in low-light scenes and high-noise images. The image denoising device of this embodiment uses a preset window to traverse the bright noise sub-image, the first color noise sub-image, and the second color noise sub-image respectively, and calculates the standard deviation of the pixels in the window in turn, so as to use the standard deviation as the central pixel feature of the window to obtain a feature sub-image group. For example, the sub-image is 9x9, and the preset window is 3x3. The image denoising device uses a 3x3 preset window to traverse the 9x9 sub-image to obtain 9 central pixel features, and each central pixel feature is the label difference of 9 pixels in the corresponding 3x3 preset window.

[0037] S103: Perform filtering processing on the sub-image group using the segmentation threshold of the characteristic sub-image.

[0038] In order to make the sub-images in the sub-image group after filtering clear, the image denoising device of this embodiment should perform denoising on the sub-images based on the image details of the sub-images, so as to ensure that the denoising is strengthened in the flat area of ​​the sub-images and reduced in the non-flat area of ​​the sub-images, so as to retain more detailed information of the sub-images. Specifically, the image denoising device of this embodiment performs filtering on the sub-image group using the segmentation threshold of the characteristic sub-image to obtain the sub-image group after filtering.

[0039] S104: Transform the filtered sub-image group to obtain a target image.

[0040] Based on the sub-image group after filtering in S103, the image denoising device transforms the filtered bright noise sub-image, the first color noise sub-image and the second color noise sub-image to obtain a denoised image, that is, a target image.

[0041] In the above scheme, the image denoising device processes the image to be denoised to obtain a sub-image group, wherein each sub-image in the sub-image group corresponds to each channel of the image to be denoised; extracts features from the sub-image to obtain a feature sub-image group, wherein each feature sub-image in the feature sub-image group corresponds to each sub-image; filters the sub-image group using the segmentation threshold of the feature sub-image; and transforms the filtered sub-image group to obtain a target image. The present application uses the segmentation threshold of the feature sub-image to filter the sub-image group, so that the denoising is based on the image details of the sub-image, achieving a balance between denoising and detail retention, and transforms the filtered sub-image group to obtain the target image, thereby improving the clarity of the target image.

[0042] Please continue reading Figure 2 , Figure 2 yes Figure 1 The flowchart of S103 in the image noise reduction method is shown in FIG. Based on the above embodiment, S103 also includes the following steps:

[0043] S201: Calculate the segmentation threshold of each characteristic sub-image.

[0044] Since the segmentation threshold enables the image to be denoised based on the detailed content of the sub-image, it ensures that the denoising is enhanced in the flat area of ​​the sub-image, reduced in the non-flat area of ​​the sub-image, and the denoising is smooth in the transition area between the flat area and the non-flat area. To this end, the image denoising device of this embodiment divides the feature sub-image into two categories using the preset segmentation threshold, and uses the preset segmentation threshold that maximizes the variance between the two categories as the final segmentation threshold.

[0045] Specifically, the image denoising device obtains the minimum pixel value and the maximum pixel value of each feature sub-image; selects a pixel value within the range of the minimum pixel value and the maximum pixel value as a preset segmentation threshold; divides the feature values ​​in the feature sub-image whose feature values ​​are greater than or equal to the preset segmentation threshold into a first classification set; divides the feature values ​​in the feature sub-image whose feature values ​​are less than the preset segmentation threshold into a second classification set; and calculates the variance between the first classification set and the second classification set. The image denoising device repeats the above process until the variance corresponding to any pixel value within the range of the minimum pixel value and the maximum pixel value is obtained, and all variances are compared, and the pixel value corresponding to the maximum variance is used as the final segmentation threshold.

[0046] S202: Calculate the noise reduction strength of the target pixel in each feature sub-image.

[0047] Considering the differences between regions in an image, if the image denoising device uses the same denoising strength to filter the sub-images, it will cause problems such as blurring of the denoised target image. To this end, the image denoising device of this embodiment fully considers the differences between regions in an image and uses different denoising strengths for different regions.

[0048] Furthermore, the image denoising device calculates the regional difference between the region where the target pixel point is located and other regions in each characteristic sub-image, and calculates the denoising intensity of the target pixel point in the characteristic sub-image using the ratio between the square of the regional difference and the square of the preset denoising parameter. The region where the target pixel point is located has the same size as the other regions. For example, if the size of the region where the target pixel point is located is 3x3, then the size of the other regions is also 3x3.

[0049] The noise reduction strength includes weak noise reduction strength and strong noise reduction strength. The preset noise reduction parameters include strong noise reduction parameters and weak noise reduction parameters. The image noise reduction device calculates the strong noise reduction strength of the target pixel in the feature sub-image by using the ratio between the square of the regional difference and the square of the preset strong noise reduction parameter; the image noise reduction device calculates the weak noise reduction strength of the target pixel in the feature sub-image by using the ratio between the square of the regional difference and the square of the preset weak noise reduction parameter.

[0050] Specifically, the calculation of the strong noise reduction strength satisfies the following formula:

[0051]

[0052] Among them, Whigh is the strong noise reduction strength, Hh is the strong noise reduction parameter, and d is the regional difference between the area where the target pixel is located and other areas in each feature sub-image.

[0053] Specifically, the calculation of weak noise reduction strength satisfies the following formula:

[0054]

[0055] Wherein, Wlow is the weak noise reduction strength, Hl is the weak noise reduction parameter, and d is the regional difference between the target pixel area and other areas in each feature sub-image.

[0056] S203: Filtering each sub-image using the ratio of the feature of the target pixel point in each feature sub-image to the segmentation threshold and the noise reduction strength of the target pixel point in each feature sub-image.

[0057] Based on the segmentation threshold obtained in S201 and the strong noise reduction strength and weak noise reduction strength of the target pixel in each characteristic sub-image obtained in S202, the image noise reduction device of this embodiment uses the ratio of the feature of the target pixel in each characteristic sub-image to the segmentation threshold and the noise reduction strength of the target pixel in each characteristic sub-image to perform non-local mean filtering on each sub-image. Specifically, the image noise reduction device uses the ratio of the feature of the target pixel in each characteristic sub-image to the segmentation threshold and the noise reduction strength of the target pixel in each characteristic sub-image to calculate the regional noise reduction strength, and uses the regional noise reduction strength to perform filtering on the corresponding area in the sub-image.

[0058] Specifically, the noise reduction strength W of the region satisfies the following formula:

[0059]

[0060] Among them, map(i,j) / T is the ratio of the feature of the target pixel in the feature sub-image to the segmentation threshold, table is the preset parameter table, the input of table is the ratio of the feature of the target pixel in the feature sub-image to the segmentation threshold, Whigh is the strong noise reduction strength of the target pixel, and Wlow is the weak noise reduction strength of the target pixel.

[0061] In a specific embodiment, the larger the ratio of the feature of the target pixel point in each feature sub-image to the segmentation threshold, the closer the area where the pixel point is located is to the detail area, and the smaller the ratio of the feature of the target pixel point in each feature sub-image to the segmentation threshold, the closer the area where the pixel point is located is to the smooth area. The different ratios of the feature of the target pixel point in each feature sub-image to the segmentation threshold can control the noise reduction strength W of different areas.

[0062] In the above scheme, the image denoising device calculates the segmentation threshold of each feature sub-image and the denoising intensity of the area where the target pixel point is located in each feature sub-image, and uses the ratio of the area feature where the target pixel point is located in each feature sub-image to the segmentation threshold and the denoising intensity of the area where the target pixel point is located in each feature sub-image to perform filtering processing on each sub-image. The segmentation threshold used by the image denoising device for denoising can enable the image to be denoised based on the detailed content of the sub-image, so as to ensure that the denoising is strengthened in the flat area of ​​the sub-image, reduced in the non-flat area of ​​the sub-image, and smooth the denoising in the transition area between the flat area and the non-flat area; each sub-image is denoised separately, and the strategy of adjusting the denoising intensity based on the detailed content of the image is also adopted on the first color noise sub-image and the second color noise sub-image, so as to avoid the problem of edge color cast caused by single chromaticity processing and non-smooth denoising.

[0063] Please continue reading Figure 3 , Figure 3 yes Figure 1 The flowchart of S102 in the image noise reduction method is shown in FIG. Based on the above embodiment, S102 also includes the following steps:

[0064] S301: extracting image information of the image to be denoised on the G channel to obtain a bright noise sub-image.

[0065] like Figure 4 and Figure 5 As shown, Figure 4 is a schematic diagram of a Bayer format image to be denoised in the image denoising method provided in this application, Figure 5 yes Figure 4 The schematic diagram of the bright noise sub-graph in the image denoising method shown is shown. Since the image information on the G channel of the image can be used as brightness information, in order to obtain the brightness information of the image. The image denoising device of this embodiment can extract the brightness information of the image to be denoised on the G channel to obtain the bright noise sub-graph.

[0066] S302: performing weighted averaging on pixels on the G channel adjacent to a pixel on the R channel in the image to be denoised, to obtain a first estimated brightness value of the pixel on the R channel.

[0067] In order to avoid the influence of chromaticity on brightness during the image denoising process, the image denoising device of this embodiment performs denoising processing in two dimensions, brightness and chromaticity, while considering the correlation between image channels. To this end, the image denoising device extracts the image information on the R channel of the image to be denoised, and specifically estimates the brightness value of the R channel pixel using the pixel points on the G channel adjacent to the R channel pixel point. That is, the pixel points on the G channel adjacent to a pixel point on the R channel in the image to be denoised are weighted averaged to obtain the first estimated brightness value of a pixel point on the R channel.

[0068] In a specific embodiment, for calculating the first estimated brightness value, the image noise reduction device may also average the pixels on the G channel adjacent to the pixel on the R channel to obtain the first estimated brightness value of the pixel on the R channel. This embodiment is not limited to this.

[0069] S303: Calculate the difference between the own brightness value of a pixel point on the R channel and the first estimated brightness value to obtain a first color noise sub-image.

[0070] Based on the first estimated brightness value of a pixel on the R channel obtained in S302, the image noise reduction apparatus calculates the difference between the brightness value of the pixel on the R channel and the first estimated brightness value. Figure 6 , the first estimated brightness value is Y, the intrinsic brightness value of a pixel on the R channel is R, and the difference U is RY. The image denoising device extracts the difference U between the intrinsic brightness value of a pixel on the R channel and the first estimated brightness value to obtain a first color noise sub-image, such as Figure 7 shown.

[0071] S304: performing weighted averaging on pixel points on the G channel adjacent to a pixel point on the B channel in the image to be denoised, to obtain a first estimated brightness value of the pixel point on the B channel.

[0072] Based on the same considerations as in S302, the image denoising device extracts image information on the B channel of the image to be denoised, and specifically estimates the brightness value of the pixel point on the B channel using the pixel points on the G channel adjacent to the pixel point on the B channel. That is, the pixel points on the G channel adjacent to a pixel point on the B channel in the image to be denoised are weighted averaged to obtain a first estimated brightness value of a pixel point on the B channel.

[0073] S305: Calculate the difference between the own brightness value of a pixel point on the B channel and the first estimated brightness value to obtain a second color noise sub-image.

[0074] The image noise reduction device calculates the difference between the self-brightness value of a pixel point on the B channel and the first estimated brightness value based on the first estimated brightness value obtained in S304. Figure 6 , the first estimated brightness value of a pixel on the B channel is Y, and the intrinsic brightness value of a pixel on the B channel is B, then the difference V is BY. The image denoising device extracts the difference V between the intrinsic brightness value of a pixel on the B channel and the first estimated brightness value, and obtains a second color noise sub-image, such as Figure 8 shown.

[0075] In the above scheme, the image denoising device extracts the image information of the image to be denoised on the G channel, R channel and B channel respectively, and obtains the bright noise sub-image, the first color noise sub-image and the second color noise sub-image, which can avoid the influence of chromaticity on brightness during the image denoising process; the first estimated brightness value of the R channel and the B channel is estimated by using the pixel points of the G channel adjacent to a pixel point of the R channel and the B channel, which fully considers the correlation between the image channels, so that the color noise can be removed cleanly and the color cast is avoided.

[0076] Please continue reading Fig. 9 , Fig. 9 yes Figure 1 The flowchart of S104 in the method for image noise reduction is shown in FIG. Based on the above embodiment, S104 further includes the following steps:

[0077] S401: Arrange the filtered sub-image groups according to the image to be denoised to obtain a first target image.

[0078] Based on the above-mentioned sub-image group after the filtering process, the image denoising device of this embodiment arranges the sub-image group according to the image to be denoised in the Bayer format to obtain a first target image.

[0079] S402: performing weighted averaging on pixel points on the G channel adjacent to a pixel point on the R channel in the first target image to obtain a second estimated brightness value of the pixel point on the R channel.

[0080] In order to obtain the brightness value of the pixel on the R channel in the RAW image after noise reduction processing, the image noise reduction device of this embodiment estimates the second estimated brightness value of the pixel on the R channel using the pixel on the G channel adjacent to the pixel on the R channel in the first target image. Specifically, the second estimated brightness value of the pixel on the R channel is obtained by weighted averaging the pixel on the G channel adjacent to the pixel on the R channel in the first target image.

[0081] S403: Calculate the sum of the difference between the own brightness value of a pixel point on the R channel and the first estimated brightness value and the second estimated brightness value to obtain the actual brightness value of the pixel point on the R channel in the target image.

[0082] Based on the second estimated brightness value of a pixel on the R channel obtained in S402, the image denoising device calculates the sum of the difference between the own brightness value of the pixel on the R channel and the first estimated brightness value and the second estimated brightness value to obtain the actual brightness value of the pixel on the R channel in the target image.

[0083] S404: performing weighted averaging on pixel points on the G channel adjacent to a pixel point on the B channel in the first target image to obtain a second estimated brightness value of the pixel point on the B channel.

[0084] In order to obtain the brightness value of the pixel on the B channel in the BAW image after noise reduction, the image noise reduction device of this embodiment estimates the second estimated brightness value of the pixel on the B channel using the pixel on the G channel adjacent to the pixel on the B channel in the first target image. Specifically, the second estimated brightness value of the pixel on the B channel is obtained by weighted averaging the pixel on the G channel adjacent to the pixel on the B channel in the first target image.

[0085] S405: Calculate the sum of the difference between the own brightness value of a pixel point on the B channel and the first estimated brightness value and the second estimated brightness value to obtain the actual brightness value of the pixel point on the B channel in the target image.

[0086] Based on the second estimated brightness value of a pixel on the B channel obtained in S404, the image denoising device calculates the sum of the difference between the own brightness value of the pixel on the B channel and the first estimated brightness value and the second estimated brightness value to obtain the actual brightness value of the pixel on the B channel in the target image.

[0087] S406: Obtain the target image using the actual brightness values ​​of the pixels on the B channel, the actual brightness values ​​of the pixels on the R channel, and the actual brightness values ​​of the pixels on the G channel in the target image.

[0088] In the above scheme, the image denoising device arranges the denoised bright noise sub-image, the first color noise sub-image and the second color noise sub-image according to the image to be denoised in the Bayer format, and estimates the second estimated brightness values ​​of the pixels on the R channel and the B channel, so as to perform a transformation operation through the second estimated brightness values ​​of the pixels on the R channel and the B channel to obtain the denoised target image.

[0089] In order to implement the image noise reduction method of the above embodiment, the present application proposes an electronic device, which is specifically referred to as Fig.10 , Fig.10 It is a structural schematic diagram of an embodiment of an electronic device provided by the present application.

[0090] The electronic device 100 includes a memory 11 and a processor 12 , wherein the memory 11 and the processor 12 are coupled.

[0091] The memory 11 is used to store program data, and the processor 12 is used to execute the program data to implement the image noise reduction method of the above embodiment.

[0092] In this embodiment, the processor 12 may also be referred to as a CPU (Central Processing Unit). The processor 12 may be an integrated circuit chip having signal processing capabilities. The processor 12 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. A general-purpose processor may be a microprocessor or the processor 12 may also be any conventional processor, etc.

[0093] The present application also provides a computer storage medium, such as Fig.11 As shown, the computer storage medium 1100 is used to store program data 110. When the program data 110 is executed by the processor, it is used to implement the image noise reduction method described in the method embodiment of the present application.

[0094] The method involved in the embodiment of the image denoising method of the present application, when implemented in the form of a software functional unit and sold or used as an independent product, can be stored in a device, such as a computer-readable storage medium. According to this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, an abnormality detection device of a card slot device, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

[0095] The above description 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 using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. An image denoising method, characterized in that: The method comprises: Processing the image to be denoised to obtain a sub-image group, wherein each sub-image in the sub-image group corresponds to each channel of the image to be denoised; Extracting features from the sub-images to obtain a feature sub-image group, wherein each feature sub-image in the feature sub-image group corresponds to each of the sub-images; Performing filtering processing on the sub-image group using the segmentation threshold of the characteristic sub-image; Transform the filtered sub-image group to obtain a target image; The step of filtering the sub-image group using the segmentation threshold of the characteristic sub-image comprises: Calculating a segmentation threshold for each characteristic sub-image; Calculating the noise reduction intensity of the target pixel in each characteristic sub-image; Calculating the regional noise reduction strength by using the ratio of the feature of the target pixel point in each feature sub-image to the segmentation threshold and the noise reduction strength of the target pixel point in each feature sub-image, and performing filtering processing on the corresponding area of ​​each sub-image by using the regional noise reduction strength; The regional noise reduction intensity satisfies the following formula: Among them, map(i,j) / T is the ratio of the feature of the target pixel in the feature sub-image to the segmentation threshold, table is the preset parameter table, the input of table is the ratio of the feature of the target pixel in the feature sub-image to the segmentation threshold, Whigh is the strong noise reduction strength of the target pixel, and Wlow is the weak noise reduction strength of the target pixel.

2. The method according to claim 1, characterized in that The step of calculating the segmentation threshold of each characteristic sub-image comprises: Obtaining the minimum pixel value and the maximum pixel value of each characteristic sub-image; Selecting a pixel value within the range of the minimum pixel value and the maximum pixel value as a preset segmentation threshold; Comparing the feature value in each feature sub-image with the preset segmentation threshold to obtain a first classification set and a second classification set; Calculating the variance between the first classification set and the second classification set; The above process is repeated until the variance corresponding to any pixel value within the range of the minimum pixel value and the maximum pixel value is obtained; The variances corresponding to all pixel values ​​within the range of the minimum pixel value and the maximum pixel value are compared, so as to take the pixel value corresponding to the maximum variance as the final segmentation threshold.

3. The method according to claim 1, characterized in that The step of calculating the noise reduction intensity of the target pixel point in each characteristic sub-image comprises: Calculating the regional difference between the region where the target pixel point is located and other regions in each characteristic sub-image, wherein the other regions are the same size as the region where the target pixel point is located; The noise reduction intensity of the target pixel point in the characteristic sub-image is calculated using the ratio between the square of the regional difference and the square of the preset noise reduction parameter.

4. The method according to claim 1, characterized in that: The step of extracting features from the sub-images to obtain a feature sub-image group comprises: Traversing the sub-image using a preset window, calculating the standard deviation of the pixels in the window in turn, and using the standard deviation as the feature of the central pixel of the window; Each characteristic sub-image is determined using the central pixel feature to obtain the characteristic sub-image group.

5. The method according to claim 4, characterized in that The denoised image includes an R channel, a G channel and a B channel. The step of processing the image to be denoised to obtain a sub-image group includes: Extracting image information of the image to be denoised on the G channel to obtain a bright noise sub-image; Extracting image information of the image to be denoised on the R channel to obtain a first color noise sub-image; Image information of the image to be denoised on channel B is extracted to obtain a second color noise sub-image.

6. The method according to claim 5, characterized in that The step of extracting image information of the image to be denoised on the R channel to obtain a first color noise sub-image comprises: Performing weighted averaging on pixel points on the G channel adjacent to a pixel point on the R channel in the image to be denoised, to obtain a first estimated brightness value of the pixel point on the R channel; Calculate the difference between the own brightness value of a pixel point on the R channel and the first estimated brightness value to obtain a first color noise sub-image; The step of extracting image information of the image to be denoised on the B channel to obtain a second color noise sub-image comprises: Performing weighted averaging on pixel points on the G channel adjacent to a pixel point on the B channel in the image to be denoised, to obtain a first estimated brightness value of the pixel point on the B channel; The difference between the own brightness value of a pixel point on the B channel and the first estimated brightness value is calculated to obtain a second color noise sub-image.

7. The method according to claim 6, characterized in that The step of transforming the filtered sub-image group to obtain a target image comprises: Arrange the filtered sub-image group according to the image to be denoised to obtain a first target image; Performing weighted averaging on pixel points on the G channel adjacent to a pixel point on the R channel in the first target image to obtain a second estimated brightness value of the pixel point on the R channel; Calculate the sum of the difference between the self brightness value of a pixel point on the R channel and the first estimated brightness value and the second estimated brightness value to obtain the actual brightness value of the pixel point on the R channel in the target image; Performing weighted averaging on pixel points on the G channel adjacent to a pixel point on the B channel in the first target image to obtain a second estimated brightness value of the pixel point on the B channel; Calculate the sum of the difference between the own brightness value of a pixel point on the B channel and the first estimated brightness value and the second estimated brightness value to obtain the actual brightness value of the pixel point on the B channel in the target image; The target image is obtained by using the actual brightness values ​​of the pixels on the B channel, the actual brightness values ​​of the pixels on the R channel, and the actual brightness values ​​of the pixels on the G channel in the target image.

8. An electronic device, characterized in that: The device includes a memory and a processor coupled to the memory; The memory is used to store program data, and the processor is used to execute the program data to implement the image denoising method according to any one of claims 1 to 7.

9. A computer storage medium, characterized in that The computer storage medium is used to store program data, and when the program data is executed by the processor, it is used to implement the image denoising method according to any one of claims 1 to 7.