A Bayesian image denoising method based on distribution constraints of noisy images

Through the Bayesian method based on the distribution of noisy images, the distance cost function of the noise-free image distribution is calculated, and the discriminative neural network and the generative adversarial network are used for unsupervised denoising, which solves the problem of dependence on noise-free data sets in the existing technology. , achieving efficient and accurate image denoising effect.

CN111932468BActive Publication Date: 2024-08-23TSINGHUA UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010696129.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-20
Publication Date
2024-08-23
Estimated Expiration
2040-07-20

AI Technical Summary

Technical Problem

Existing technologies rely on noise-free data sets in the image denoising process, which are expensive to obtain and difficult to implement. Especially in real applications, the effectiveness of deep learning methods is limited by the hard requirement of noise-free data.

Method used

A Bayesian image denoising method based on noisy image distribution constraints is proposed. By calculating the distance cost function of the noise-free image distribution, the discriminative neural network and the generative adversarial network method are used to estimate the noise-free image distribution from the noisy image. Implementing unsupervised image denoising.

Benefits of technology

This method learns the noise-free image distribution through the noisy image distribution when the additive noise distribution is known, avoiding the need for noise-free data sets by traditional methods, improving the accuracy and flexibility of image denoising, and reducing the cost of image denoising. The amount of operation and time of the iterative process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111932468B
    Figure CN111932468B
Patent Text Reader

Abstract

The present invention belongs to the field of digital image processing and computer vision technology, and in particular, relates to a Bayesian image denoising method based on the distribution constraints of noisy images. According to the Bayesian posterior probability theory, the method estimates the noise-free image from the noisy image and relies on the modeling of the prior distribution of the noise-free image. The present invention first proposes a method for learning the distribution of noise-free images from noisy image samples when the additive noise distribution model is known. The method converts the constraints of the prior distribution of the noise-free image into the constraints of the prior distribution of the noisy image for Bayesian denoising, and implements the Bayesian denoising method by training the image denoising neural network in an unsupervised manner. The inventive method can make full use of the noisy image samples to accurately learn the implicit distribution characteristics of the noise-free image, thereby achieving efficient image denoising.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of digital image processing and computer vision, and in particular relates to a Bayesian image denoising method based on distribution constraints of noisy images. Background Art

[0002] In the image acquisition process of photography, public security monitoring, medical imaging, microscopic imaging, etc., due to the random characteristics of physical signals, environmental interference, and the state changes of the system itself, the collected images inevitably contain noise, which significantly affects the image quality. Image denoising methods are an important method and technology in image processing, which aims to reduce the random noise components in the image and restore the effective information of the image.

[0003] Classic image denoising methods include mean filtering, median filtering, Gaussian low-pass filtering and other filtering methods. These filters limit the noise-related components in the image to achieve the effect of removing noise. The filtering method can be implemented in the image domain or in the transform domain after the image has undergone a specific transformation, such as the frequency domain, wavelet domain, etc. However, the filtering method has inherent disadvantages in preserving image details. In addition to analytical filtering methods, the image iterative optimization method based on the Bayesian posterior probability distribution is another type of image denoising method. This type of method achieves the purpose of removing noise by introducing additional penalty terms such as total variation minimization and Markov random field potential energy function minimization. The Bayesian posterior estimation method can produce a more accurate noise-free image estimate, but its result depends significantly on the penalty term applied.

[0004] In recent years, with the development of artificial neural networks and deep learning technology, the application of deep learning methods to image denoising has significantly improved the effect of image denoising. Compared with classical methods, it can restore image detail information more accurately while removing noise. Although diverse neural networks have shown powerful image denoising and image restoration capabilities in many applications, they all rely on a large number of training data sets. Supervised learning requires paired noisy images and noise-free images as true values ​​to jointly train the network. Generative adversarial learning can extract the distribution law and characteristics of noise-free images from unpaired noise-free image datasets, and then perform image denoising, eliminating the requirement for data pairing. However, in most applications, real noise-free data is often difficult to obtain or the cost of obtaining is high, which brings difficulties to the application of deep learning in image denoising. Summary of the invention

[0005] The purpose of the present invention is to propose a Bayesian image denoising method based on the distribution constraint of noisy images, which uses the actual noisy data set and the noise model to infer the distribution characteristics of the noise-free image, and then uses the noise-free image distribution to estimate the noise-free image and complete the denoising of the noisy image.

[0006] The Bayesian image denoising method based on noisy image distribution constraint proposed in the present invention comprises the following steps:

[0007] (1) Calculate the distance cost function of the noise-free image distribution based on the noisy image distribution;

[0008] (2) Perform Bayesian denoising on the noisy image according to the distance cost function of the noise-free image distribution in step (1).

[0009] In step (1) of the above method, the distance cost function of the noise-free image distribution is calculated according to the distribution of the noisy image. For an image whose distribution can be accurately or approximately expressed analytically, a method based on a feature function is used to estimate the distance cost function of the noise-free image distribution, comprising the following steps:

[0010] (1) The random vector of the noisy image generated by the imaging system is denoted as Z, and the probability density function f of the random vector of the noisy image Z is estimated analytically: Z , let the additive noise random vector contained in the noisy image random vector Z be N, and estimate the probability density function f of the additive noise random vector N in an analytical form N ;

[0011] (2) For the probability density function f in step (1) Z and f N Perform Fourier transform respectively to obtain the characteristic function of random vector of noisy image and the characteristic function of the additive noise random vector

[0012] (3) The noise-free image random vector generated by the imaging system is denoted as S, and the characteristic function of the noisy image random vector in step (2) is Characteristic function of random vector with additive noise Divide them to get the characteristic function of the random vector S of the noise-free image

[0013]

[0014] Or: Through the method of target optimization, according to and The consistency of the noise-free image random vector is obtained. Estimated value of

[0015]

[0016] Where Φ(·,·) is the distance measure between the characteristic functions of two random vectors, and argmin represents the parameter that minimizes the objective function.

[0017] (4) The characteristic function of the random vector of the noise-free image in step (3) or characteristic function Estimated value of Perform inverse Fourier transform to obtain the probability density function f of the random vector of the noise-free image S , that is, the distribution of the random vector S of the noise image is obtained;

[0018] (5) For a set of noisy image samples z1, z2, z3, ..., z n Perform analytical filtering denoising or Bayesian iterative denoising to obtain estimated noise-free image samples The initial value of The collection is

[0019] (6) According to the distribution distance function D, the noise-free image sample estimated in step (5) is calculated Collection The distribution distance between the random vector S of the noise-free image obtained in step (4) The expression of is the distance cost function of the noise-free image distribution, where the distribution distance The method is a method for discriminating the neural network distribution distance function, comprising the following steps:

[0020] (6-1) Assume that the distribution distance function D contains a discriminant neural network Ω D As a distribution distance operator, the discriminant neural network Ω D The parameter set is θ D ;

[0021] (6-2) Inputting the estimated noise-free image sample described in step (5) of claim 2 into the distribution distance function D Collection and the noise-free image random vector S obtained in step (4) of claim 2, using the discriminant neural network Ω in step (1) D Calculating Collections The cross entropy distance between the random vector S and the noise-free image is:

[0022]

[0023] Or the Wasserstein distance:

[0024]

[0025] The above s1,s2,s3,...,s n is the n samples of the random vector S of the noise-free image;

[0026] Or use the discriminant neural network Ω in step (1) D The discriminant network distribution distance cost function in the generative adversarial network method in the computing field. The generative adversarial network method includes any one of SGAN, RSGAN, RaSGAN, LSGAN, RaLSGAN, HingeGAN, WGAN-GP, RSGAN-GP or RaSGAN-GP.

[0027] In step (1) of the above method, the distance cost function of the noise-free image distribution is calculated according to the noisy image distribution. For the case where the distribution is difficult to express analytically or the distribution calculation is too complicated, the distance cost function of the noise-free image distribution is estimated by an indirect distribution distance constraint method, which includes the following steps:

[0028] (1) For a set of noisy image samples z1, z2, z3, ..., z n Perform analytical filtering denoising or Bayesian iterative denoising to obtain estimated noise-free image samples The initial value of

[0029] (2) Set the noisy image samples z1, z2, z3, ..., z in step (1) n The additive noise random vector contained in is N, and the probability density function f of the additive noise random vector N is estimated in an analytical form N , and collect the same number of noise samples as the noisy image samples from the distribution of the additive noise random vector N

[0030] Or: Collect noise samples of the imaging system when there is no signal and obtain

[0031] (3) The noise sample of step (2) The noise-free image sample estimated in step (1) Add together to get the estimated noisy image sample

[0032] in,

[0033] (4) Let z1, z2, z3, ..., z in step (1) be the noisy image samples n The set of Z is Z, and the estimated noisy image samples in step (3) are The collection is According to the distribution distance function D, the discrete estimated noisy image sample set is calculated The distribution distance between the real discrete noisy image distribution Z The distribution distance The expression of is the distance cost function of the noise-free image distribution; where the distribution distance is calculated The method is a method for discriminating the neural network distribution distance function, comprising the following steps:

[0034] (4-1) Assume that the distribution distance function D contains a discriminant neural network Ω D As a distribution distance operator, the discriminant neural network Ω D The parameter set is θ D ;

[0035] (4-2) Input the discrete estimated noisy image sample set into the distribution distance function D and the real discrete noisy image distribution Z, using the discriminant neural network Ω in step (1) D Computes a discrete estimate of the set of noisy image samples The cross entropy distance with the real discrete noisy image distribution Z is:

[0036]

[0037] Or the Wasserstein distance:

[0038]

[0039] Or use the discriminant neural network Ω in step (1) D Calculate the discriminant network distribution distance cost function in the generative adversarial network method, where the discriminant network distribution distance cost function in the generative adversarial network method is any one of SGAN, RSGAN, RaSGAN, LSGAN, RaLSGAN, HingeGAN, WGAN-GP, RSGAN-GP or RaSGAN-GP.

[0040] The probability density function f of the additive noise random vector N is estimated analytically. N According to the physical law of the imaging system, the distribution form of the additive noise random vector N is obtained, and then the distribution parameters of the additive noise random vector N are measured through simulation or actual experiment to obtain the probability density function f of the additive noise random vector N. N Or use the mixed Gaussian distribution to fit the unknown distribution. First, assume that the additive noise random vector N conforms to the mixed Gaussian distribution. Through simulation or actual experiment, measure the parameters of the mixed Gaussian distribution and obtain the probability density function f of the additive noise random vector N. N .

[0041] The probability density function f of the additive noise random vector N is estimated analytically NThe method is: for non-additive noise distribution, it can be converted into approximate additive noise through specific mathematical transformation, and then the probability density function f of the additive noise random vector N is obtained N .

[0042] In the above method, the probability density function f of the random vector Z of the noisy image is estimated in an analytical form Z The method includes: obtaining the probability density function f of the random vector Z of the noisy image by frequency statistics of a large number of noisy image samples Z Alternatively, the probability density function f of the random vector Z of the noisy image can be estimated analytically: Z The method is as follows: use the distribution model hypothesis in the field to obtain the distribution form of the random vector Z of the noisy image, measure the distribution parameters of the random vector Z of the noisy image through simulation or actual experiment, and estimate the probability density function f of the random vector Z of the noisy image Z .

[0043] The method for performing Bayesian denoising on a noisy image according to the distance cost function of the noise-free image distribution in step (2) of the above method comprises the following steps:

[0044] (1) For noisy image samples z1, z2, z3, ..., z n And estimate the noise-free image sample Construct a Bayesian posterior distribution cost function ψ:

[0045]

[0046] Among them, ψ is the Bayesian posterior distribution cost function, and the first term in the Bayesian posterior distribution cost function is for z1, z2, z3,...,z n and The data fidelity term between them, and the second term D is the distribution distance Or distribution distance term, λ is a hyperparameter, which adjusts the distribution distance The intensity of the effect;

[0047] (2) Minimize and optimize the Bayesian posterior distribution cost function ψ of step (1) to obtain the final estimated noise-free image Image denoising is achieved. The method for minimizing the Bayesian posterior distribution cost function ψ is a commonly used classical mathematical optimization method, such as any one of the Lagrange multiplier method, the alternating iteration method, the alternative conjugate least squares method or the gradient optimization algorithm.

[0048] The method for minimizing the Bayesian posterior distribution cost function ψ can also be a neural network optimization method, including the following steps:

[0049] (1) Construct an image denoising neural network Ω E As an image denoising operator where θ E is the parameter group of the neural network for image denoising.

[0050] (2) The Bayesian posterior distribution cost function ψ is used as the training cost function of the image denoising neural network, and a large number of noisy image sample data sets are used to train the image denoising neural network.

[0051] (3) The noisy image sample is used as the input of the image denoising neural network, and the output is an estimated noise-free image. This noise-free image is the image obtained after minimization optimization of the neural network.

[0052] The distribution distance function D in the above method is an analytical explicit distribution distance function, and the analytical explicit distribution distance function includes a KL divergence explicit distribution distance function or a JS divergence explicit distribution distance function.

[0053] The Bayesian image denoising method based on noisy image distribution constraint proposed in the present invention has the following advantages:

[0054] 1. The method of learning the distribution of noise-free images based on the distribution of noisy images of the present invention can indirectly estimate the distribution of noise-free images through the estimation of the distribution of noisy images when the distribution of additive noise independent of the signal is known. This distribution constraint transformation avoids the need for noise-free image data sets in traditional noise-free image distribution modeling, such as dictionary learning methods, making noise-free image distribution modeling easy to implement.

[0055] 2. The image prior constraints involved in the method of the present invention are derived from the data set rather than artificially set, so they are flexible and data-specific. Compared with the artificially imposed constraints in the traditional Bayesian estimation method, the image prior constraints of the method of the present invention are more accurate and can estimate the noise-free image more accurately.

[0056] 3. The method of the present invention networks the distribution distance constraint and the Bayesian estimation process, making full use of the powerful processing and characterization capabilities of the neural network for images, making it easy to implement the image distribution constraint. At the same time, after the network is trained, it can denoise the image end-to-end in an analytical manner, thereby greatly reducing the amount of calculation and operation time of the iterative process of the Bayesian estimation method. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 Schematic diagram of the image denoising neural network and its cost function in the second embodiment of the present invention.

[0058] Figure 2It is a schematic diagram of the implementation of the specific neural network structure involved in Example 2 and Example 3 of the present invention, wherein (a) is an image denoising neural network and (b) is a discriminant neural network.

[0059] Figure 3 It is a schematic diagram of the image denoising neural network, the discriminant neural network and the cost functions of the two in Example 3 of the present invention. DETAILED DESCRIPTION

[0060] The present invention proposes a Bayesian image denoising method based on noisy image distribution constraints

[0061] (1) Calculate the distance cost function of the noise-free image distribution based on the noisy image distribution;

[0062] (2) Perform Bayesian denoising on the noisy image according to the distance cost function of the noise-free image distribution in step (1).

[0063] In step (1) of the above method, the distance cost function of the noise-free image distribution is calculated according to the distribution of the noisy image. For an image whose distribution can be accurately or approximately expressed analytically, a method based on a feature function is used to estimate the distance cost function of the noise-free image distribution, comprising the following steps:

[0064] (1) The random vector of the noisy image generated by the imaging system used in this method is denoted as Z, and the probability density function f of the random vector of the noisy image Z is estimated in analytical form: Z , let the additive noise random vector contained in the noisy image random vector Z be N, and estimate the probability density function f of the additive noise random vector N in an analytical form N ;

[0065] (2) For the probability density function f in step (1) Z and f N Perform Fourier transform respectively to obtain the characteristic function of random vector of noisy image and the characteristic function of the additive noise random vector

[0066] (3) The noise-free image random vector generated by the imaging system used in this method is denoted as S, and the characteristic function of the noisy image random vector in step (2) is Characteristic function of random vector with additive noise Divide them to get the characteristic function of the random vector S of the noise-free image

[0067]

[0068] Or: Through the method of target optimization, according to and The consistency of the noise-free image random vector is obtained. Estimated value of

[0069]

[0070] Where Φ(·,·) is the distance measure between the characteristic functions of two random vectors, and argmin represents the parameter that minimizes the objective function.

[0071] (4) The characteristic function of the random vector of the noise-free image in step (3) or characteristic function Estimated value of Perform inverse Fourier transform to obtain the probability density function f of the random vector of the noise-free image S , that is, the distribution of the random vector S of the noise image is obtained;

[0072] (5) For a group of noisy image samples z1, z2, z3, ..., z that need to be denoised by this method, n Perform analytical filtering denoising or Bayesian iterative denoising to obtain estimated noise-free image samples The initial value of The collection is

[0073] (6) According to the distribution distance function D, the noise-free image sample estimated in step (5) is calculated Collection The distribution distance between the random vector S of the noise-free image obtained in step (4) The expression of is the distance cost function of the noise-free image distribution; where the distribution distance The method is a method for discriminating the neural network distribution distance function, comprising the following steps:

[0074] (6-1) Assume that the distribution distance function D contains a discriminant neural network Ω D As a distribution distance operator, the discriminant neural network Ω D The parameter set is θ D ;

[0075] (6-2) Inputting the estimated noise-free image sample described in step (5) of claim 2 into the distribution distance function D Collection and the noise-free image random vector S obtained in step (4) of claim 2, using the discriminant neural network Ω in step (1) D Calculating Collections The cross entropy distance between the random vector S and the noise-free image is:

[0076]

[0077] Or the Wasserstein distance:

[0078]

[0079] The above s1,s2,s3,...,s n is the n samples of the random vector S of the noise-free image;

[0080] Or use the discriminant neural network Ω in step (1) D The discriminant network distribution distance cost function in other common generative adversarial network methods in the computing field, wherein the discriminant network distribution distance cost function in the generative adversarial network method is any one of SGAN, RSGAN, RaSGAN, LSGAN, RaLSGAN, HingeGAN, WGAN-GP, RSGAN-GP or RaSGAN-GP.

[0081] In step (1) of the above method, the distance cost function of the noise-free image distribution is calculated according to the noisy image distribution. For the case where the distribution is difficult to express analytically or the distribution calculation is too complicated, the distance cost function of the noise-free image distribution is estimated by an indirect distribution distance constraint method, which includes the following steps:

[0082] (1) For a set of noisy image samples z1, z2, z3, ..., z that need to be denoised by this method, n Perform analytical filtering denoising or Bayesian iterative denoising to obtain estimated noise-free image samples The initial value of

[0083] (2) Set the noisy image samples z1, z2, z3, ..., z in step (1) n The additive noise random vector contained in is N, and the probability density function f of the additive noise random vector N is estimated in an analytical form N , and collect the same number of simulated noise samples as the noisy image samples from the distribution of the additive noise random vector N

[0084] Or: Collect noise samples of the imaging system when there is no signal and obtain

[0085] (3) The noise sample of step (2) The noise-free image sample estimated in step (1) Add together to get the estimated noisy image sample

[0086] in,

[0087] (4) Record the noisy image samples z1, z2, z3, ..., z in step (1) n The set of Z is Z, and the estimated noisy image samples in step (3) are The collection is According to the distribution distance function D, the discrete estimated noisy image sample set is calculated The distribution distance between the real discrete noisy image distribution Z The distribution distance The expression of is the distance cost function of the noise-free image distribution; where the distribution distance is calculated The method is a method for discriminating the neural network distribution distance function, comprising the following steps:

[0088] (4-1) Assume that the distribution distance function D contains a discriminant neural network Ω D As a distribution distance operator, the discriminant neural network Ω D The parameter set is θ D ;

[0089] (4-2) Input the discrete estimated noisy image sample set into the distribution distance function D and the real discrete noisy image distribution Z, using the discriminant neural network Ω in step (1) D Computes a discrete estimate of the set of noisy image samples The cross entropy distance with the real discrete noisy image distribution Z is:

[0090]

[0091] Or the Wasserstein distance:

[0092]

[0093] Or use the discriminant neural network Ω in step (1) D The discriminant network distribution distance cost function in the generative adversarial network method in the computing field. The generative adversarial network method includes any one of SGAN, RSGAN, RaSGAN, LSGAN, RaLSGAN, HingeGAN, WGAN-GP, RSGAN-GP or RaSGAN-GP.

[0094] The probability density function f of the additive noise random vector N is estimated analytically. N The method is as follows: According to the physical law of the imaging system used in the present invention, the distribution form of the additive noise random vector N is obtained, and then the distribution parameters of the additive noise random vector N are measured through simulation or actual experiment to obtain the probability density function f of the additive noise random vector N. NOr use the mixed Gaussian distribution to fit the unknown distribution. First, assume that the additive noise random vector N conforms to the mixed Gaussian distribution. Through simulation or actual experiment, measure the parameters of the mixed Gaussian distribution and obtain the probability density function f of the additive noise random vector N. N .

[0095] The probability density function f of the additive noise random vector N is estimated analytically N The method is: for non-additive noise distribution, it can be converted into approximate additive noise through specific mathematical transformation, and then the probability density function f of the additive noise random vector N is obtained N .

[0096] In the above method, the probability density function f of the random vector Z of the noisy image is estimated in an analytical form Z The method includes: obtaining the probability density function f of the random vector Z of the noisy image by frequency statistics of a large number of noisy image samples Z Alternatively, the probability density function f of the random vector Z of the noisy image can be estimated analytically: Z The method is as follows: use the distribution model hypothesis in the field to obtain the distribution form of the random vector Z of the noisy image, measure the distribution parameters of the random vector Z of the noisy image through simulation or actual experiment, and estimate the probability density function f of the random vector Z of the noisy image Z .

[0097] The method for performing Bayesian denoising on a noisy image according to the distance cost function of the noise-free image distribution in step (2) of the above method comprises the following steps:

[0098] (1) For a set of noisy image samples z1, z2, z3, ..., z that need to be denoised by this method, n And estimate the noise-free image sample Construct a Bayesian posterior distribution cost function ψ:

[0099]

[0100] Among them, ψ is the Bayesian posterior distribution cost function, and the first term in the Bayesian posterior distribution cost function is for z1, z2, z3,...,z n and The data fidelity term between them, and the second term D is the distribution distance Or distribution distance term, λ is a hyperparameter, which adjusts the distribution distance The intensity of the effect;

[0101] (2) Minimize and optimize the Bayesian posterior distribution cost function ψ of step (1) to obtain the final estimated noise-free image Image denoising is achieved. The method for minimizing the Bayesian posterior distribution cost function ψ is a commonly used classical mathematical optimization method, such as any one of the Lagrange multiplier method, the alternating iteration method, the alternative conjugate least squares method or the gradient optimization algorithm.

[0102] The method for minimizing the Bayesian posterior distribution cost function ψ can also be a neural network optimization method, including the following steps:

[0103] (1) Construct an image denoising neural network Ω E As an image denoising operator where θ E is the parameter group of the neural network for image denoising.

[0104] (2) The Bayesian posterior distribution cost function ψ is used as the training cost function of the image denoising neural network, and a large number of noisy image sample data sets are used to train the image denoising neural network.

[0105] (3) The noisy image sample is used as the input of the image denoising neural network, and the output is an estimated noise-free image. This noise-free image is the image obtained after minimization optimization of the neural network.

[0106] The distribution distance function D in the above method is an analytical explicit distribution distance function, and the analytical explicit distribution distance function includes a KL divergence explicit distribution distance function or a JS divergence explicit distribution distance function.

[0107] Deep learning has shown good performance in image denoising applications and has achieved significant improvement in effect compared to classical filtering denoising methods, but deep learning methods are heavily dependent on noise-free image datasets. The rigid requirement for noise-free datasets limits the implementation effect and application scope of deep learning in real image denoising problems. In Bayesian posterior probability theory, estimating noise-free images from noisy images depends on modeling the prior distribution of noise-free images. The present invention first proposes a method for learning the distribution of noise-free images from noisy image samples when the additive noise distribution model is known. The present invention further converts the constraints of the prior distribution of noise-free images into constraints of the prior distribution of noisy images for Bayesian denoising. The present invention further proposes a Bayesian denoising implementation method for training image denoising neural networks in an unsupervised manner. The inventive point of the present invention is to make full use of noisy image samples to accurately learn the implicit distribution characteristics of noise-free images, thereby achieving efficient image denoising.

[0108] The image in the method of the present invention refers to a general two-dimensional or three-dimensional signal, including general visible light images, clinical medical imaging images, microscopic images, etc. The method can be applied to photography, public security imaging, medical imaging, microscopic imaging, and other fields.

[0109] The following describes embodiments of the method of the present invention:

[0110] Example 1: Denoising a noisy handwritten digital image

[0111] The imaging system used in this method is: handwritten digital acquisition system

[0112] The noisy image is: a noisy handwritten digital image with an image resolution of 28*28

[0113] The noise-free image is: a noise-free handwritten digital image with an image resolution of 28*28

[0114] (1) Calculate the distance cost function of the noise-free handwritten digital image distribution based on the noisy handwritten digital image distribution;

[0115] (1-1) The random vector of the noisy handwritten digital image generated by the handwritten digital acquisition system is denoted as Z, and the probability density function f of the random vector Z of the noisy handwritten digital image is estimated in analytical form Z :

[0116] (1-2) 70,000 noisy handwritten digit images were collected from the handwritten digit collection system. The probability density function f of the random vector Z of the noisy handwritten digit image was obtained by frequency statistics of these 70,000 noisy image samples. Z .

[0117] (1-3) The additive noise random vector contained in the random vector Z of the noisy handwritten digital image is denoted as N, and the probability density function f of the additive noise random vector N is estimated in an analytical form: N :

[0118] (1-4) Use the mixed Gaussian distribution to fit the additive noise distribution. First, assume that each pixel of the additive noise random vector N conforms to the five-dimensional mixed Gaussian distribution. Obtain noise samples from the signal-free part of the noisy handwritten digital image, and use these noise samples to estimate the parameters of the five-dimensional mixed Gaussian distribution by the maximum likelihood method. The probability density function f of the additive noise random vector N is obtained. N .

[0119] (1-5) For the probability density function f Z and f N Perform Fourier transform respectively to obtain the characteristic function of random vector of noisy handwritten digital image and the characteristic function of the additive noise random vector

[0120] (1-6) The random vector of the noise-free handwritten digital image generated by the handwritten digital acquisition system is denoted as S, and the characteristic function of the random vector of the noisy handwritten digital image is denoted as Characteristic function of random vector with additive noise Divide them to get the characteristic function of the random vector S of the noise-free handwritten digital image

[0121] (2) Characteristic function of random vectors of noise-free handwritten digit images Perform inverse Fourier transform to obtain the probability density function f of the random vector of the noise-free handwritten digital image S , that is, the distribution of the random vector S of the noise-free handwritten digital image is obtained, including the following steps:

[0122] (2-1) Now, for a set of noisy handwritten digital image samples z1, z2, z3, ..., z that need to be denoised by this method, n Perform analytical filtering and denoising to obtain estimated noise-free handwritten digital image samples The initial value of The collection is

[0123] (2-2) According to the KL distribution distance function D, the noise-free handwritten digital image sample is calculated and estimated Collection The distribution distance between the random vector S of the noise-free handwritten digital image The expression is:

[0124]

[0125] (3) A method based on a feature function is used to estimate the distance cost function of the distribution of the noise-free handwritten digital image, and Bayesian denoising is performed on the noisy handwritten digital image, including the following steps:

[0126] (3-1) For the group of noisy handwritten digital image samples z1, z2, z3, ..., z that need to be denoised by this method, n and the corresponding estimated noise-free handwritten digit image samples Construct a Bayesian posterior distribution cost function ψ:

[0127]

[0128] Among them, ψ is the Bayesian posterior distribution cost function, and the first term in the Bayesian posterior distribution cost function is for z1, z2, z3,...,z n and The data fidelity term between them, the second term D is λ is a hyperparameter that adjusts the distribution distance The intensity of the effect;

[0129] (3-2) The Bayesian posterior distribution cost function ψ is minimized using the gradient optimization algorithm to obtain the final estimated noise-free handwritten digital image Implement image denoising.

[0130] Example 2: Denoising of nighttime camera images:

[0131] The imaging system used in this method is: camera

[0132] The noisy image is: a noisy photographic image block with an image resolution of 512*512

[0133] The noise-free image is: a noise-free photographic image block, with an image resolution of 512*512

[0134] The resolution of the original noisy photographic image is usually greater than 512*512. Noisy photographic image blocks of 512*512 can be gradually captured from the original noisy photographic image, and each noisy photographic image block can be denoised to obtain an estimated noise-free photographic image block. The noise-free photographic image blocks are spliced ​​together to obtain an estimated noise-free photographic image.

[0135] (1) calculating the distance cost function of the noise-free photographic image block distribution according to the distribution of the noisy photographic image blocks, wherein the distance cost function of the noise-free photographic image block distribution is estimated by using an indirect distribution distance constraint method, comprising the following steps:

[0136] (1-1) For a set of noisy photographic image block samples z1, z2, z3, ..., z that need to be denoised by this method, n Perform analytical filtering and denoising to obtain estimated noise-free photographic image block samples The initial value of .

[0137] (1-2) Assume that the noisy photographic image block samples z1, z2, z3, ..., z n The additive noise random vector contained in is N, and the probability density function f of the additive noise random vector N is estimated in an analytical form N :

[0138] (1-3) Use the mixed Gaussian distribution to fit the additive noise distribution. First, assume that each pixel of the additive noise random vector N conforms to the five-dimensional mixed Gaussian distribution. Measure the noise samples when the camera lens is completely blocked, and use these noise samples to estimate the parameters of the five-dimensional mixed Gaussian distribution by the maximum likelihood method. The additive noise random vector f is obtained. N The probability density function of .

[0139] (1-4) and collect the same number of simulated noise samples as the noisy image samples from the distribution of the additive noise random vector N

[0140] The noise sample and estimate noise-free photographic image patch samples Add together to get the estimated noisy photographic image block sample

[0141] in,

[0142] Let the noisy photographic image block samples z1, z2, z3, ..., z n The set of Z is Z, and the estimated noisy image samples in step (3) are The collection is Using the JS distribution distance function D, we calculate the discrete estimated noisy photographic image block sample set The distribution distance between the real discrete noisy photographic image patch distribution Z The expression is:

[0143] First, the probability density function f of the random vector Z of the noisy photographic image block is estimated analytically Z :Use the joint Gaussian distribution model hypothesis in the field to obtain the distribution form of the random vector Z of the noisy photographic image block. The random vector Z of the noisy photographic image block is generated by a linear transformation of a 500-dimensional independent standard Gaussian distribution. The distribution parameters of the random vector Z of the noisy photographic image block, that is, the linear transformation coefficient, are obtained by the maximum likelihood method to obtain the probability density function f of the random vector Z of the noisy image Z .

[0144] Similarly, the random vector of a noisy photographic image block is estimated analytically The probability density function of

[0145] but:

[0146]

[0147] It is the distance cost function of the noise-free image distribution.

[0148] (2) Based on the distance cost function of the noise-free photographic image block distribution, Bayesian denoising is performed on the noisy photographic image blocks:

[0149] (2-1) For the group of noisy photographic image block samples z1, z2, z3, ..., z that need to be denoised by this method, n and the corresponding estimated noise-free photographic image patch samples Construct a Bayesian posterior distribution cost function ψ:

[0150]

[0151] Among them, ψ is the Bayesian posterior distribution cost function, and the first term in the Bayesian posterior distribution cost function is for z1, z2, z3,...,z n and The data fidelity term between them, the second term D is λ is a hyperparameter that adjusts the distribution distance The intensity of the effect;

[0152] (2-2) The Bayesian posterior distribution cost function ψ is optimized by a neural network to obtain the final estimated noise-free handwritten digital image Implement image denoising:

[0153] Construct an image denoising neural network Ω E As an image denoising operator where θ E is the parameter group of the image denoising neural network; the Bayesian posterior distribution cost function ψ is used as the training cost function of the image denoising neural network, and a large number of noisy image sample data sets are used to train the image denoising neural network:

[0154]

[0155] The noisy photographic image block is used as the input of the image denoising neural network, and the estimated noise-free photographic image block is output. The noise-free photographic image block is the image obtained after minimization optimization of the neural network.

[0156] Image denoising neural network and its cost function are as follows Figure 1 As shown in the figure, the specific structure of the image denoising neural network is as follows Figure 2 (a) shown.

[0157] Example 3: X-ray CT projection image

[0158] The imaging system used in this method is: X-ray CT

[0159] The noisy image is: noisy projection image, image resolution 1024*720

[0160] The noise-free image is: noise-free projection image, image resolution 1024*720

[0161] (1) According to the distribution of the noisy projection image, the distance cost function of the noise-free projection image distribution is calculated, wherein the distance cost function of the noise-free projection image distribution is estimated by an indirect distribution distance constraint method. The specific steps are as follows:

[0162] (1-1) For a set of noisy projection image samples z1, z2, z3, ..., z that need to be denoised by this method, nPerform Bayesian iterative denoising to obtain estimated noise-free projection image block samples The initial value of .

[0163] (1-2) The noise contained in the noisy projection image is not additive. For the noisy projection images z1, z2, z3, ..., z n Perform exponential transformation and generalized Anscombe transform to obtain the noisy Anscombe projection image sample z A1 , z A2 , z A3 , ..., z An :

[0164]

[0165] Where Ι0 is the X-ray CT signal value when there is no signal, γ is the contribution value of each photon received by the X-ray CT detector to the electrical signal, and σ e 2 is the electronic noise variance. Ι0,γ,σ e 2 All are measured through actual experiments.

[0166] (1-3) Suppose the noisy Anscombe projection image sample z A1 , z A2 , z A3 , ..., z An The additive noise random vector is N. According to the physical law, each pixel of N obeys the standard Gaussian distribution, so f N The probability density function of is a 1024*720-dimensional independent standard Gaussian distribution probability density function, and the same number of simulated noise samples as the noisy image samples are collected from the distribution of the additive noise random vector N.

[0167] (1-4) Estimation of noise-free photographic image block samples Perform exponential transformation and generalized Anscombe transform to obtain noise-free Anscombe projection image samples The noise sample with estimated noise-free Anscombe projection image samples Add together to get the estimated noisy Anscombe projection image sample

[0168] in,

[0169] (1-5) Let the noisy Anscombe projection image sample z A1 , z A2 , z A3 , ..., zAn The set of Z A , denoted by estimating the noisy Anscombe projection image sample The collection is Using the discriminant neural network distance function D, we can calculate the discrete estimated noisy Anscombe image sample set. The distribution Z of the real discrete noisy Anscombe projection image A The distribution distance between The expression is:

[0170] Assume that the distribution distance function D contains a discriminant neural network Ω D As a distribution distance operator, the discriminant neural network Ω D The parameter set is θ D ; Input the noisy Anscombe projection image sample z into the distribution distance function D A1 , z A2 , z A3 , ..., z An The collection Z A and estimate the noisy Anscombe projection image samples Collection Use the discriminant neural network Ω in step (1) D Calculate the set Z A and collection The cross entropy distance is:

[0171]

[0172] (2) According to the distance cost function of the noise-free projection image distribution, the noisy projection image is subjected to Bayesian denoising:

[0173] (2-1) For the group of noisy projection image samples z1, z2, z3, ..., z that need to be denoised by this method, n and the corresponding estimated noise-free projection image samples Construct a Bayesian posterior distribution cost function ψ:

[0174]

[0175] Among them, ψ is the Bayesian posterior distribution cost function, and the first term in the Bayesian posterior distribution cost function is for z1, z2, z3,...,z n and The data fidelity term between them, the second term D is λ is a hyperparameter that adjusts the distribution distance The intensity of the effect;

[0176] (2-2) The Bayesian posterior distribution cost function ψ is optimized using a neural network optimization method to obtain the final estimated noise-free handwritten digital image Implement image denoising:

[0177] (2-3) Construct an image denoising neural network Ω E As an image denoising operator where θ E is the parameter group θ of the image denoising neural network E ; The Bayesian posterior distribution cost function ψ is used as the training cost function of the image denoising neural network, and a large number of noisy projection image sample data sets are used to alternately train the image denoising neural network Ω E and the discriminant neural network Ω in the distance cost function of the noise-free projection image distribution D :

[0178]

[0179] The noisy projection image sample is used as the input of the image denoising neural network, and the estimated noise-free projection image is output. This noise-free projection image is the image obtained after minimization optimization of the neural network.

[0180] Image denoising neural network, discriminant neural network and their cost functions are as follows Figure 3 As shown in the figure, the specific structure of the image denoising neural network is as follows Figure 2 As shown in (a), the specific structure of the discriminant neural network is as follows Figure 2 (b) as shown.

Claims

1. A Bayesian image denoising method based on distribution constraints of noisy images, characterized by The method comprises the following steps: (1) Calculate the distance cost function of the noise-free image distribution based on the noisy image distribution; (2) performing Bayesian denoising on the noisy image according to the distance cost function of the noise-free image distribution in step (1); The step (1) of calculating the distance cost function of the noise-free image distribution according to the noisy image distribution includes the following steps: For images whose distribution can be accurately or approximately expressed analytically, a method based on a characteristic function is used to estimate the distance cost function of the distribution of the noise-free image, including the following steps: (1) The random vector of the noisy image generated by the imaging system is denoted as Z, and the probability density function f of the random vector of the noisy image Z is estimated analytically. Z , let the additive noise random vector contained in the noisy image random vector Z be N, and estimate the probability density function f of the additive noise random vector N in an analytical form N ; (2) For the probability density function f in step (1) Z and f N Perform Fourier transform respectively to obtain the characteristic function of random vector of noisy image and the characteristic function of the additive noise random vector (3) The noise-free image random vector generated by the imaging system is denoted as S, and the characteristic function of the noisy image random vector in step (2) is Characteristic function of random vector with additive noise Divide and get the characteristic function of the noise-free image random vector S Or: Through the method of target optimization, according to and The consistency of the noise-free image random vector is obtained. Estimated value of Where Φ(·,·) is the distance measure between the characteristic functions of two random vectors, and argmin represents the parameter that minimizes the objective function. (4) The characteristic function of the random vector of the noise-free image in step (3) or characteristic function Estimated value of Perform inverse Fourier transform to obtain the probability density function f of the random vector of the noise-free image S , that is, the distribution of the random vector S of the noise image is obtained; (5) For a set of noisy image samples z1, z2, z3, ..., z n Perform analytical filtering denoising or Bayesian iterative denoising to obtain estimated noise-free image samples The initial value of The collection of (6) According to the distribution distance function D, calculate the noise-free image sample estimated in step (5) Collection The distribution distance between the random vector S of the noise-free image obtained in step (4) The distribution distance The expression of is the distance cost function of the noise-free image distribution; For images where the distribution is difficult to express analytically or the distribution calculation is too complex, an indirect distribution distance constraint method is used to estimate the distance cost function of the noise-free image distribution, which includes the following steps: (1) For a set of noisy image samples z1, z2, z3, ..., z n Perform analytical filtering denoising or Bayesian iterative denoising to obtain estimated noise-free image samples The initial value of (2) Set the noise image samples z1, z2, z3, ..., z in step (1) n The additive noise random vector contained in is N, and the probability density function f of the additive noise random vector N is estimated in an analytical form N , and collect the same number of noise samples as the noisy image samples from the distribution of the additive noise random vector N Or: Collect noise samples of the imaging system when there is no signal, and obtain (3) The noise sample of step (2) The noise-free image sample estimated in step (1) Add together to get the estimated noisy image sample in, (4) Record the noisy image samples z1, z2, z3, ..., z in step (1) n The set of Z is Z, and the estimated noisy image samples in step (3) are The collection of According to the distribution distance function D, the discrete estimated noisy image sample set is calculated The distribution distance between the real discrete noisy image distribution Z The distribution distance The expression of is the distance cost function of the noise-free image distribution.

2. The method according to claim 1, wherein The probability density function f of the additive noise random vector N is estimated analytically. N The method is as follows: according to the physical laws of the imaging system, the distribution form of the additive noise random vector N is obtained, and then the distribution parameters of the additive noise random vector N are measured through simulation or actual experiments to obtain the probability density function f of the additive noise random vector N. N .

3. The method according to claim 1, wherein The probability density function f of the additive noise random vector N is estimated analytically. N The method is to use the mixed Gaussian distribution to fit the unknown distribution. First, assume that the additive noise random vector N conforms to the mixed Gaussian distribution. Then, measure the parameters of the mixed Gaussian distribution through simulation or actual experiment to obtain the probability density function f of the additive noise random vector N. N .

4. The method according to claim 1, wherein The probability density function f of the additive noise random vector N is estimated analytically. N For non-additive noise distribution, it can be converted into approximate additive noise through a specific mathematical transformation, and then the probability density function f of the additive noise random vector N is obtained according to the method of claim 2 or claim 3. N .

5. The method according to claim 1, wherein The probability density function f of the random vector Z of the noisy image is estimated in an analytical form Z The probability density function f of the random vector Z of the noisy image is obtained by frequency statistics of a large number of noisy image samples. Z .

6. The method according to claim 1, wherein The probability density function f of the random vector Z of the noisy image is estimated in an analytical form Z To: use the distribution model hypothesis in the field to obtain the distribution form of the random vector Z of the noisy image, measure the distribution parameters of the random vector Z of the noisy image through simulation or actual experiment, and estimate the probability density function f of the random vector Z of the noisy image Z .

7. The method according to claim 1, wherein The method for performing Bayesian denoising on a noisy image based on the distance cost function of the noise-free image distribution includes the following steps: (1) For the noisy image samples z1, z2, z3, ..., z n and estimate noise-free image samples Construct a Bayesian posterior distribution cost function ψ: Among them, ψ is the Bayesian posterior distribution cost function, and the first term in the Bayesian posterior distribution cost function is for z1, z2, z3,...,z n and The data fidelity term between them, the second term D is the distribution distance or distribution distance Term, λ is a hyperparameter, adjusting the distribution distance The intensity of the effect; (2) Minimize and optimize the Bayesian posterior distribution cost function ψ in step (1) to obtain the final estimated noise-free image Implement image denoising.

8. The method according to claim 7, wherein In step (2), the method for minimizing the Bayesian posterior distribution cost function ψ is a commonly used classical mathematical optimization method.

9. The method according to claim 8, wherein The method for minimizing the Bayesian posterior distribution cost function ψ is a commonly used classical mathematical optimization method, including any one of the Lagrange multiplier method, the alternating iteration method, the alternative conjugate least squares method or the gradient optimization algorithm.

10. The method according to claim 7, wherein In step (2), the method for minimizing the Bayesian posterior distribution cost function ψ is a neural network optimization method, which includes the following steps: (1) Construct an image denoising neural network Ω E As an image denoising operator where θ E is the parameter group of the image denoising neural network; (2) The Bayesian posterior distribution cost function ψ is used as the training cost function of the image denoising neural network, and a large number of noisy image sample data sets are used to train the image denoising neural network; (3) The noisy image sample is used as the input of the image denoising neural network, and the output is an estimated noise-free image. This noise-free image is the image obtained after minimization optimization of the neural network.

11. The method according to claim 1, wherein The distribution distance function D in step (6) is an analytical explicit distribution distance function.

12. The method according to claim 11, wherein The analytical explicit distribution distance function includes a KL divergence explicit distribution distance function or a JS divergence explicit distribution distance function.

13. The method according to claim 1, wherein The distribution distance function D is used to calculate the distribution distance in step (5). The function method is a method for discriminating the neural network distribution distance function, which includes the following steps: (1) Assume that the distribution distance function D contains a discriminant neural network Ω D As a distribution distance operator, the discriminant neural network Ω D The parameter set is θ D ; (2) Inputting the estimated noise-free image sample described in step (5) of claim 1 into the distribution distance function D Collection and the noise-free image random vector S obtained in step (4) of claim 1, using the discriminant neural network Ω in step (1) D Calculation Set And the cross entropy distance function of the noise-free image random vector S: Or the Wasserstein distance function: In the above formula, s i is the n sampling samples of the noise-free random image vector S.

14. The method according to claim 1, wherein The distribution distance function D is used to calculate the distribution distance in step (5). The function method is a method for discriminating the neural network distribution distance function, which includes the following steps: (1) Assume that the distribution distance function D contains a discriminant neural network Ω D As a distribution distance operator, the discriminant neural network Ω D The parameter set is θ D ; (2) Inputting the estimated noise-free image sample described in step (5) of claim 1 into the distribution distance function D Collection and the noise-free image random vector S obtained in step (4) of claim 1, using the discriminant neural network Ω in step (1) D Distributed distance cost function for discriminative networks in generative adversarial network methods in computing.

15. The method according to claim 1, wherein According to the distribution distance function D, the distribution distance of step (4) is calculated. The function method is a method for discriminating the neural network distribution distance function, which includes the following steps: (1) Assume that the distribution distance function D contains a discriminant neural network Ω D As a distribution distance operator, the discriminant neural network Ω D The parameter set is θ D ; (2) Input the discrete estimated noisy image sample set into the distribution distance function D and the real discrete noisy image distribution Z, using the discriminant neural network Ω in step (1) D Compute the discrete estimated noisy image sample set And the cross entropy distance function of the real discrete noisy image distribution Z: Or the Wasserstein distance function:

16. The method according to claim 1, wherein According to the distribution distance function D, the distribution distance of step (4) is calculated. The method is a method for discriminating the neural network distribution distance function, comprising the following steps: (1) Assume that the distribution distance function D contains a discriminant neural network Ω D As a distribution distance operator, the discriminant neural network Ω D The parameter set is θ D ; (2) Input the discrete estimated noisy image sample set into the distribution distance function D and the real discrete noisy image distribution Z, using the discriminant neural network Ω in step (1) D Distributed distance cost function for discriminative networks in generative adversarial network methods in computing.

17. The method according to claim 14 or 16, characterized in that The generative adversarial network method in the field described in step (2) is any one of SGAN, RSGAN, RaSGAN, LSGAN, RaLSGAN, HingeGAN, WGAN-GP, RSGAN-GP or RaSGAN-GP.