Image denoising method, system, device and storage medium
By combining wavelet transform and deep learning in the image denoising model, feature extraction is performed in the spatial domain and wavelet domain respectively, which solves the problem of poor image denoising effect in the existing technology and achieves effective recovery and restoration of image texture and edge information. Noise removal improves image signal-to-noise ratio.
Patent Information
- Application Number
- CN202110014887.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-06
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-01-06
AI Technical Summary
Existing image denoising methods have shortcomings in restoring the complex structure and details of the image, especially when the image has multi-texture details. The denoising effect is poor, and the model-driven method requires manual design of the model, making it difficult to characterize complex structures and optimize them. difficulty.
An image denoising model based on dual-domain network is used, combined with wavelet transform and deep learning, to extract features in the spatial domain and wavelet domain respectively and complement each other. The model is trained by constructing a loss function, including mean square error loss in the wavelet domain and spatial domain. Function to restore image texture and edge information.
It effectively removes image noise, improves the image signal-to-noise ratio, and restores the texture and edge details of the image. It achieves better subjective and objective effects, which is better than traditional and existing deep learning methods, especially under high noise levels.
Smart Images

Figure CN112801889B
Abstract
Description
Background Art
[0002] In real scenes, there are many factors that affect image quality, such as errors introduced during data acquisition and transmission, and environmental interference. Image noise is the most common factor that causes image degradation, which not only reduces the image signal-to-noise ratio and resolution, resulting in a significant reduction in visual experience, but also affects subsequent image analysis and understanding.
[0003] Existing image denoising methods can be roughly divided into traditional model-driven denoising methods and deep learning-based denoising methods. Traditional methods include denoising methods based on partial differential equations, non-local mean denoising methods, denoising methods based on wavelet transforms, and methods based on sparse representation and low-rank approximation. Among them, Dabov et al. proposed a three-dimensional block matching (BM3D) denoising algorithm by utilizing non-local self-similarity and sparsity priors. This method not only achieves relatively outstanding results in both subjective and objective evaluations, but also simplifies the algorithm to a certain extent. However, since these traditional methods only involve the global structural characteristics of the image and do not involve local geometric modeling of the image, they still cannot achieve satisfactory results for the restoration of image edges and detail structures.
[0004] In recent years, with the breakthrough of GPU technology, the development of deep learning is very good, and many image denoising methods based on convolutional neural networks have emerged. Generally speaking, traditional methods always actively select features and design models, while methods based on deep learning can directly learn adaptively from a large amount of training data to obtain image denoising models. In 2017, Zhang et al. proposed a residual learning strategy for feedforward denoising convolutional neural network (DnCNN) to accelerate training and improve performance. In 2018, Yang et al. proposed a generative adversarial network with Wasserstein distance and perceptual loss for image denoising. These methods have high computational efficiency and have achieved good results. However, since they only use feature information in the spatial domain of the image, there are problems such as lost edges and blurred details in the denoised image.
[0005] The most advanced model-driven denoising method currently uses the non-local self-similarity of images for modeling. Although this type of method has made great achievements in the field of image denoising, there are still many problems. First, the model-driven method requires feature analysis of the image and then manually designing the denoising model. It is not only difficult to characterize the complex image structure, but also takes a lot of time and effort in feature analysis and extraction. Furthermore, this method of modeling based on image prior information often produces a non-convex model, which will bring great challenges to subsequent model optimization. It is also quite difficult to achieve the best denoising performance of the model by manually adjusting the parameters.
[0006] Unlike model-driven methods, deep learning methods can automatically learn rich image prior information from initial data. The success of convolutional neural networks in image denoising is mainly attributed to their powerful modeling capabilities and their continuous progress in network design and training. However, the original convolutional neural network methods have the problems of poor robustness and insufficient flexibility. In response to these shortcomings, Zhang et al. proposed a fast and flexible convolutional neural network denoising method (FFDNet). This method performs orthogonal regularization on the convolution filter during network training and adopts batch normalization and residual learning strategies. By processing the downsampled sub-images, FFDNet greatly speeds up the training and testing speed and expands the receptive field. However, the existing convolutional neural network denoising methods still need to be improved in restoring the complex structure and details of the image. When the image has more texture details, the denoising effect will deteriorate. Summary of the invention
[0007] In view of the problems in the prior art, the object of the present invention is to provide an image denoising method, system, device and storage medium to improve the image signal-to-noise ratio and improve the image quality problem.
[0008] The embodiment of the present invention provides an image denoising method, comprising the following steps:
[0009] Constructing an image denoising model, wherein the image denoising model is used to perform feature mapping in the wavelet domain and feature mapping in the spatial domain on the input noisy image to obtain a denoised image;
[0010] Training the image denoising model;
[0011] The image to be processed is input into the trained image denoising model to obtain a denoised image output by the image denoising model.
[0012] In some embodiments, the image denoising model includes:
[0013] A convolution and activation module, comprising a spatial domain convolution and activation unit for spatial domain feature mapping and a wavelet domain convolution and activation unit for wavelet domain feature mapping;
[0014] The fusion output reconstruction module is used to fuse the mapped spatial domain feature map output by the spatial domain convolution and activation unit and the mapped wavelet domain feature map output by the wavelet domain convolution and activation unit to obtain an output image with noise removed.
[0015] In some embodiments, the image denoising model further includes:
[0016] A feature extraction module is used to extract features from the input image to be processed to obtain a noisy feature map;
[0017] The spatial domain convolution and activation unit is used to perform spatial domain feature mapping on the noisy feature map, and the wavelet domain convolution and activation unit is used to perform wavelet domain feature mapping on the noisy feature map.
[0018] In some embodiments, the convolution and activation module further includes:
[0019] A wavelet transform unit, used for performing wavelet transform on the noisy feature map to obtain a noisy wavelet domain feature map, and inputting the noisy wavelet domain feature map into the wavelet domain convolution and activation unit;
[0020] The inverse wavelet transform unit is used to perform inverse wavelet transform on the mapped wavelet domain feature map output by the wavelet domain convolution and activation unit, and then input the result into the fusion output reconstruction module.
[0021] In some embodiments, the spatial domain convolution and activation unit includes multiple spatial domain convolution and activation layers, each of which includes a convolution layer, a batch processing layer and an activation function layer.
[0022] In some embodiments, the spatial domain convolution and activation unit also includes a short connection between the input and the output.
[0023] In some embodiments, the wavelet domain convolution and activation unit includes a plurality of wavelet domain convolution and activation layers, and each of the wavelet domain convolution and activation layers includes a convolution layer and an activation function layer.
[0024] In some embodiments, the activation function layer includes a ReLU function layer, a hole convolution layer, a depth-separable convolution layer, a convolution layer, a batch processing layer and a Gaussian function layer connected in series in sequence.
[0025] In some embodiments, the activation function layer includes two of the hole convolution layers and two of the depthwise separable convolution layers, and the outputs of the two depthwise separable convolution layers are fused and input into the convolution layer.
[0026] In some embodiments, training the image denoising model comprises the following steps:
[0027] Constructing a loss function, wherein the loss function includes a wavelet domain image loss function and a spatial domain image loss function;
[0028] The image denoising model is trained based on the constructed loss function.
[0029] In some embodiments, the wavelet domain image loss function is a mean square error loss function in the wavelet domain, and the spatial domain image loss function is a mean square error loss function in the spatial domain.
[0030] The embodiment of the present invention further provides an image denoising system for implementing the image denoising method, the system comprising:
[0031] A model building module is used to build an image denoising model, wherein the image denoising model is used to perform feature mapping in the wavelet domain and feature mapping in the spatial domain on the input noisy image to obtain a denoised image;
[0032] A model training module, used for training the image denoising model to obtain a trained image denoising model;
[0033] The image denoising module is used to input the image to be processed into the trained image denoising model to obtain the denoised image output by the image denoising model.
[0034] The embodiment of the present invention further provides an image denoising device, comprising:
[0035] processor;
[0036] a memory storing executable instructions of the processor;
[0037] The processor is configured to perform the steps of the image denoising method by executing the executable instructions.
[0038] An embodiment of the present invention further provides a computer-readable storage medium for storing a program, wherein the program implements the steps of the image denoising method when executed by a processor.
[0039] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
[0040] The image denoising method, system, device and storage medium of the present invention have the following beneficial effects:
[0041] In response to the problems of blurred edges and lost details of denoised images existing in most of the current deep learning-based image denoising algorithms, the present invention proposes a novel image denoising model based on a dual-domain network. As a combination of the traditional time-frequency domain analysis method wavelet transform and the current hot deep learning algorithm, the model will simultaneously perform feature extraction in the spatial domain and the wavelet domain and complement each other. It can effectively remove image noise and improve the image signal-to-noise ratio while restoring the image's texture, edge and other detail information, with better subjective and objective effects, thereby obtaining a more ideal image denoising effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Other features, objectives and advantages of the present invention will become more apparent from a reading of the detailed description of non-limiting embodiments made with reference to the following accompanying drawings.
[0043] Figure 1 is a flow chart of an image denoising method according to an embodiment of the present invention;
[0044] Figure 2 is a structural schematic diagram of an image denoising model according to an embodiment of the present invention;
[0045] Figure 3 is a schematic diagram of an MsU activation function layer according to an embodiment of the present invention;
[0046] Figure 4 is a schematic structural diagram of an image denoising system according to an embodiment of the present invention;
[0047] Figure 5 is a schematic structural diagram of an image denoising device according to an embodiment of the present invention;
[0048] Figure 6 It is a schematic diagram of the structure of a computer-readable storage medium according to an embodiment of the present invention. DETAILED DESCRIPTION
[0049] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0050] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0051] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the steps. For example, some steps may be decomposed, while some steps may be combined or partially combined. Therefore, the actual execution order may be changed according to the actual situation.
[0052] like Figure 1 As shown, an embodiment of the present invention provides an image denoising method, comprising the following steps:
[0053] S100: constructing an image denoising model, wherein the image denoising model is used to perform feature mapping in the wavelet domain and feature mapping in the spatial domain on the input noisy image to obtain a denoised image;
[0054] S200: training the image denoising model;
[0055] S300: Inputting the image to be processed into the trained image denoising model to obtain a denoised image output by the image denoising model.
[0056] By adopting the image denoising method of the present invention, firstly, a novel image denoising model based on a dual-domain network is constructed through step S100, and the model is trained through step S200. The image denoising model is a combination of the traditional time-frequency domain analysis method wavelet transform and the current hot deep learning algorithm. The model will simultaneously perform feature extraction in the spatial domain and the wavelet domain and complement each other. When the trained image denoising model is used to denoise the image through step S300, it can effectively remove image noise and improve the image signal-to-noise ratio while restoring the image's texture, edge and other detail information, with better subjective and objective effects, thereby obtaining a more ideal image denoising effect.
[0057] like Figure 2 As shown, in this embodiment, the image denoising model includes:
[0058] A convolution and activation module, comprising a spatial domain convolution and activation unit for spatial domain feature mapping and a wavelet domain convolution and activation unit for wavelet domain feature mapping;
[0059] The fusion output reconstruction module is used to fuse the mapped spatial domain feature map output by the spatial domain convolution and activation unit and the mapped wavelet domain feature map output by the wavelet domain convolution and activation unit to obtain an output image with noise removed.
[0060] exist Figure 2 In the figure, Input represents input, Output represents output, and Contat+Conv represents a fusion output reconstruction module using a fusion function and a convolution layer. The convolution and activation module includes two branches from the input to the fusion output reconstruction module. The spatial domain convolution and activation unit corresponds to the upper branch, and the wavelet domain convolution and activation unit corresponds to the lower branch.
[0061] In this embodiment, the image denoising model further includes:
[0062] The feature extraction module is used to extract features from the input image to be processed to obtain a noisy feature map. Specifically, the noisy image y=x+η is used as the input of the image denoising model, first input to the feature extraction module, and then f k net ×k net ×c filters can generate n ffeature maps to complete the feature extraction of noisy images input =Net extract (y).
[0063] The present invention adopts the same residual learning strategy as DnCNN: by training the residual mapping That is, noise, so as to obtain a clean image
[0064] like Figure 2 As shown, in this embodiment, the spatial domain convolution and activation unit includes multiple spatial domain convolution and activation layers, each of which includes a convolution layer Conv, a batch processing layer BN and an activation function layer MsUs. In this embodiment, the spatial domain convolution and activation unit also includes a short connection between the input and the output.
[0065] The spatial domain convolution and activation unit is used to perform the noisy feature map feature input Perform spatial domain feature mapping. Specifically, the extracted feature input Input spatial domain convolution and activation unit, through l layers of network, each layer performs n f k net ×k net ×c size convolution operation, batch processing BN operation and activation function mapping to generate n f feature maps, where l∈{2,…,L spatial-1}, and finally obtain the mapped spatial domain feature map output by the spatial domain convolution and activation unit: feature s-output =Net spatial (feature input ).
[0066] like Figure 2 As shown, the wavelet domain convolution and activation unit includes multiple wavelet domain convolution and activation layers, and each of the wavelet domain convolution and activation layers may include the same structure as the spatial domain convolution and activation layer. Since, after comparison, the effect of not adding a batch processing layer in the wavelet domain is better, the wavelet domain convolution and activation unit may also remove the batch processing layer. That is, each of the wavelet domain convolution and activation layers may include a convolution layer Conv and an activation function layer MsUw.
[0067] In this embodiment, the convolution and activation module further includes:
[0068] A wavelet transform unit DWT is used to perform wavelet transform on the noisy feature map to obtain a noisy wavelet domain feature map, which is input into the wavelet domain convolution and activation unit. The feature map after DWT mapping has three parts, which respectively represent the feature maps of three high-frequency spectra obtained by wavelet transform;
[0069] The inverse wavelet transform unit IDWT is used to perform inverse wavelet transform on the mapped wavelet domain feature map output by the wavelet domain convolution and activation unit, and input the result into the fusion output reconstruction module.
[0070] The wavelet domain convolution and activation unit is used to perform wavelet domain feature mapping on the noisy feature map. Specifically, the noisy feature map feature output by the feature extraction layer is input The input wavelet domain feature map feature is formed through Haar wavelet transform wavelet =Transform wavelet (feature input ), and then feature wavelet Input wavelet domain convolution and activation unit, through the convolution and MsU activation function operation to form a l-layer network, where l∈{2,…,L wavelet-1 Finally, the wavelet domain feature map after mapping the wavelet domain convolution and activation unit output is obtained: feature w-output =Net wavelet (feature wavelet ). It should be noted that the MsU activation function operation uses k in the spatial domain and wavelet domain respectively. s1 ×k s1 ×n f , k s2 ×k s2 ×n f and k w1 ×k w1 ×n f , k w2 ×k w2 ×n f The convolution kernel of the size is used to learn the mapping of the non-linear activation function.
[0071] like Figure 3 As shown, it is a schematic diagram of the composition of a new activation function layer MsU proposed in the present invention. The above-mentioned MsUs is an activation function in the spatial domain, and MsUw is an activation function in the wavelet domain. In this embodiment, the activation function layer includes a ReLU function layer, a 2D dilated convolution layer Dilated Conv2d, a depth-separable 2D convolution layer Conv2d Depth-wise, a 2D convolution layer Conv2d, a batch processing layer Batch-Norm and a Gaussian function layer Gaussian, which are connected in series in sequence.
[0072] Furthermore, in this embodiment, the activation function layer includes two of the 2D dilated convolution layers DilatedConv2d and two of the depth-wise separable 2D convolution layers Conv2d Depth-wise, and the outputs of the two depth-wise separable 2D convolution layers Conv2d Depth-wise are fused by a fusion layer Concat and then input into the convolution layer.
[0073] The MsU activation function proposed in the present invention calculates the weights corresponding to each element differently, and uses multi-scale convolution to obtain information on receptive fields of different sizes. Some information can be obtained through a large receptive field, while others need to be obtained on a smaller receptive field. Through MsU, the weight corresponding to each pixel will be obtained by the joint action of peripheral adjacent pixels at different scales, thereby effectively obtaining more information. The use of deep convolution can ensure that the channels do not affect each other, while also achieving the effect of improving computational efficiency and reducing the number of parameters. Finally, the weights after the convolution operation at two different scales are combined to obtain the final activation value of each pixel.
[0074] For the input noisy image y, the image denoising model proposed in this invention aims to learn a residual mapping function That is, predict the noise to get the potential clean image The loss function of the image denoising model continuously learns and updates the model parameters Θ by minimizing the mean square error (MSE) between the noisy image block and the clean image block.
[0075] Specifically, in this embodiment, the step S200: training the image denoising model includes the following steps:
[0076] Constructing a loss function, wherein the loss function includes a high-frequency loss and a spatial domain image loss, wherein the high-frequency loss is a mean square error loss function in the wavelet domain, and the spatial domain image loss is a mean square error loss function in the spatial domain;
[0077] The image denoising model is trained based on the constructed loss function until the loss function is less than a preset loss function threshold, thereby obtaining the trained image denoising model, that is, the image denoising model is trained until convergence.
[0078] The network loss function of the present invention continuously learns and updates the model parameters by minimizing the average mean square error between the noisy image block and the clean image block. The present invention proposes two kinds of losses for the network model: high-frequency loss and spatial domain image loss. High-frequency loss is an MSE loss in the wavelet domain, and its purpose is to ensure that texture and detail information can be accurately restored, thereby effectively supplementing the image reconstruction process; spatial domain image loss is a traditional MSE loss in the spatial domain, and its purpose is to strike a balance between smoothness and texture.
[0079] Among them, the MSE loss in the wavelet domain is defined as:
[0080] L wavelet (Θ wavelet )=λ LH L LH (Θ LH )+λ HL L HL (Θ HL )+λ HH L HH (Θ HH ),
[0081] where λ LH ,λ HL and λ HH is the parameter, L LH (Θ LH ), L HL (Θ HL ) and L HH (Θ HH ) is defined as follows:
[0082]
[0083]
[0084]
[0085] in represents N noise-clean image pairs, ||·|| F Represents the F-norm. The high-frequency prediction loss function is constructed using the losses on the three high-frequency bands. This part of the loss is to ensure that the texture and detail information can be accurately restored, thereby effectively supplementing the image reconstruction process.
[0086] The spatial domain image loss is defined as follows:
[0087]
[0088] The total network loss function is defined as follows:
[0089] Ltotal (Θ total )=λ spatial L spatial (Θ spatial )+λ wavelet L wavelet (Θ wavelet )
[0090] where λ spatial and λ wavelet There are two weight parameters used to balance the spatial loss and wavelet loss.
[0091] The present invention compares the proposed dual-domain network-based image denoising method (shown as MWCNN in Table 1) with the prior art methods BM3D, WNNM, DnCNN and FFDNet. Among them, BM3D and WNNM are two typical methods based on non-local self-similar priors, and DnCNN and FFDNet are methods based on deep learning.
[0092] According to the designed noise image model, Gaussian white noise with different noise levels is added to the noise-free test image to generate simulated noise images for training. In order to more comprehensively evaluate the SWCNN algorithm, three different noise levels (σ=15, 35, 50) are set here. Table 1 shows the comparison of PSNR results of different methods on Set12 and BSD68 datasets. It can be seen that the image denoising methods proposed in this invention are superior to other comparison methods, especially under high noise levels.
[0093] Table 1: PSNR comparison of different methods after denoising on Set12 and BSD68 datasets
[0094]
[0095]
[0096] like Figure 4 As shown, an embodiment of the present invention further provides an image denoising system for implementing the image denoising method, the system comprising:
[0097] The model building module M100 is used to build an image denoising model, wherein the image denoising model is used to perform feature mapping in the wavelet domain and feature mapping in the spatial domain on the input noisy image to obtain a denoised image;
[0098] The model training module M200 is used to train the image denoising model to obtain a trained image denoising model;
[0099] The image denoising module M300 is used to input the image to be processed into the trained image denoising model to obtain the denoised image output by the image denoising model.
[0100] By adopting the image denoising method of the present invention, firstly, a new image denoising model based on a dual-domain network is constructed by using a model building module M100, and the model is trained by using a model training module M200. The image denoising model is a combination of the traditional time-frequency domain analysis method wavelet transform and the current hot deep learning algorithm. The model will simultaneously perform feature extraction in the spatial domain and the wavelet domain and complement each other. When the image denoising module M300 is used to perform denoising on the image using the trained image denoising model, it can effectively remove image noise and improve the image signal-to-noise ratio while restoring the image's texture, edge and other detail information, having better subjective and objective effects, thereby obtaining a more ideal image denoising effect.
[0101] In this embodiment, the image denoising model constructed by the model construction module M100 includes:
[0102] A feature extraction module is used to extract features from the input image to be processed to obtain a noisy feature map;
[0103] A convolution and activation module, comprising a spatial domain convolution and activation unit for performing spatial domain feature mapping on the noisy feature map output by the feature extraction module, a wavelet transform unit for performing wavelet transform on the noisy feature map output by the feature extraction module, a wavelet domain convolution and activation unit for performing wavelet domain feature mapping on the noisy wavelet domain feature map output by the wavelet transform unit, and an inverse wavelet transform unit for performing an inverse wavelet transform on the mapped wavelet domain feature map output by the wavelet domain convolution and activation unit;
[0104] The fusion output reconstruction module is used to fuse the mapped spatial domain feature map output by the spatial domain convolution and activation unit and the wavelet domain feature map after inverse wavelet transformation output by the inverse wavelet transformation unit to obtain an output image with noise removed.
[0105] In this embodiment, the spatial domain convolution and activation unit includes a plurality of spatial domain convolution and activation layers, each of which includes a convolution layer, a batch processing layer, and an activation function layer. The wavelet domain convolution and activation unit includes a plurality of wavelet domain convolution and activation layers, each of which includes a convolution layer and an activation function layer. The activation function layer adopts the MsU activation function, including a ReLU function layer, a hole convolution layer, a depth-separable convolution layer, a convolution layer, a batch processing layer, and a Gaussian function layer connected in series in sequence.
[0106] When the model training module M200 trains the image denoising model, it first constructs a total loss function including a wavelet domain image loss function and a spatial domain image loss function; then, the image denoising model is trained based on the constructed loss function until the loss function is less than a preset loss function threshold, thereby obtaining the trained image denoising model, that is, training the image denoising model until convergence. In this embodiment, the wavelet domain image loss function is a mean square error loss function in the wavelet domain, and the spatial domain image loss function is a mean square error loss function in the spatial domain.
[0107] An embodiment of the present invention further provides an image denoising device, comprising a processor; a memory, in which executable instructions of the processor are stored; wherein the processor is configured to perform the steps of the image denoising method by executing the executable instructions.
[0108] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as systems, methods or program products. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, which may be collectively referred to herein as "circuits", "modules" or "platforms".
[0109] Refer to the following Figure 5 The electronic device 600 according to this embodiment of the present invention is described. Figure 5 The electronic device 600 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0110] like Figure 5 As shown, the electronic device 600 is in the form of a general computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different system components (including the storage unit 620 and the processing unit 610), a display unit 640, etc.
[0111] The storage unit stores a program code, which can be executed by the processing unit 610, so that the processing unit 610 performs the steps according to various exemplary embodiments of the present invention described in the above image denoising method section of this specification. For example, the processing unit 610 can perform the following steps: Figure 1 Follow the steps shown in .
[0112] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 6201 and / or a cache memory unit 6202 , and may further include a read-only memory unit (ROM) 6203 .
[0113] The storage unit 620 may also include a program / utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.
[0114] Bus 630 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0115] The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 600, and / or communicate with any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 650. Furthermore, the electronic device 600 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via a bus 630. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0116] In the image denoising device, the program in the memory implements the steps of the image denoising method when executed by the processor. Therefore, the computer storage medium can also obtain the technical effect of the above-mentioned image denoising method.
[0117] The embodiment of the present invention further provides a computer-readable storage medium for storing a program, wherein the program, when executed by a processor, implements the steps of the image denoising method. In some possible implementations, various aspects of the present invention may also be implemented in the form of a program product, which includes a program code, and when the program product is executed on a terminal device, the program code is used to cause the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the above image denoising method section of this specification.
[0118] refer to Figure 6As shown, a program product 800 for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be executed on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.
[0119] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0120] The computer readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by an instruction execution system, an apparatus, or a device or used in combination with it. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
[0121] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0122] When the program in the computer storage medium is executed by the processor, the steps of the image denoising method are implemented. Therefore, the computer storage medium can also obtain the technical effect of the image denoising method.
[0123] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.
Claims
1. An image denoising method, characterized in that: The steps include: Constructing an image denoising model, wherein the image denoising model is used to perform feature mapping in the wavelet domain and feature mapping in the spatial domain on the input noisy image to obtain a denoised image; Training the image denoising model includes: constructing a loss function, the loss function including a wavelet domain image loss function and a spatial domain image loss function, and training the image denoising model based on the constructed loss function; Inputting the image to be processed into the trained image denoising model to obtain a denoised image output by the image denoising model; Wherein, the image denoising model includes: A convolution and activation module, comprising a spatial domain convolution and activation unit for spatial domain feature mapping and a wavelet domain convolution and activation unit for wavelet domain feature mapping; The fusion output reconstruction module is used to fuse the mapped spatial domain feature map output by the spatial domain convolution and activation unit and the mapped wavelet domain feature map output by the wavelet domain convolution and activation unit to obtain an output image with noise removed.
2. The image denoising method according to claim 1, characterized in that: The image denoising model also includes: A feature extraction module is used to extract features from the input image to be processed to obtain a noisy feature map; The spatial domain convolution and activation unit is used to perform spatial domain feature mapping on the noisy feature map, and the wavelet domain convolution and activation unit is used to perform wavelet domain feature mapping on the noisy feature map.
3. The image denoising method according to claim 2, characterized in that: The convolution and activation module also includes: A wavelet transform unit, used for performing wavelet transform on the noisy feature map to obtain a noisy wavelet domain feature map, and inputting the noisy wavelet domain feature map into the wavelet domain convolution and activation unit; The inverse wavelet transform unit is used to perform inverse wavelet transform on the mapped wavelet domain feature map output by the wavelet domain convolution and activation unit, and then input the result into the fusion output reconstruction module.
4. The image denoising method according to claim 1, characterized in that: The spatial domain convolution and activation unit includes a plurality of spatial domain convolution and activation layers, each of which includes a convolution layer, a batch processing layer and an activation function layer.
5. The image denoising method according to claim 4, characterized in that: The spatial domain convolution and activation unit also includes a short connection between the input and the output.
6. The image denoising method according to claim 1, characterized in that: The wavelet domain convolution and activation unit includes a plurality of wavelet domain convolution and activation layers, and each of the wavelet domain convolution and activation layers includes a convolution layer and an activation function layer.
7. The image denoising method according to claim 4 or 6, characterized in that: The activation function layer includes a ReLU function layer, a hole convolution layer, a depth-separable convolution layer, a convolution layer, a batch processing layer and a Gaussian function layer connected in series in sequence.
8. The image denoising method according to claim 7, characterized in that: The activation function layer includes two of the hole convolution layers and two of the depth-wise separable convolution layers, and the outputs of the two depth-wise separable convolution layers are fused and input into the convolution layer.
9. The image denoising method according to claim 1, characterized in that: The wavelet domain image loss function is a mean square error loss function in the wavelet domain, and the spatial domain image loss function is a mean square error loss function in the spatial domain.
10. An image denoising system, used to implement the image denoising method according to any one of claims 1 to 9, characterized in that: The system comprises: A model building module is used to build an image denoising model, wherein the image denoising model is used to perform feature mapping in the wavelet domain and feature mapping in the spatial domain on the input noisy image to obtain a denoised image; A model training module, used for training the image denoising model to obtain a trained image denoising model; The image denoising module is used to input the image to be processed into the trained image denoising model to obtain the denoised image output by the image denoising model.
11. An image denoising device, characterized in that: include: processor; a memory storing executable instructions of the processor; The processor is configured to perform the steps of the image denoising method according to any one of claims 1 to 9 by executing the executable instructions.
12. A computer-readable storage medium for storing a program, characterized in that: When the program is executed by a processor, the steps of the image denoising method according to any one of claims 1 to 9 are implemented.
