Joint denoising and demosaicing method and system based on distributed learning

By relaxing the supervision image into a multivariate Gaussian distribution and introducing a noise estimation module, the problem of conflict between denoising and demosaicing operations in traditional image signal processors is solved, the performance of the joint denoising and demosaicing model is improved, and visual artifacts are reduced. Improved image processing effects.

CN113658060BActive Publication Date: 2024-09-27ZHONGKE FANGCUN ZHIWEI (NANJING) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110850331.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-27
Publication Date
2024-09-27
Estimated Expiration
2041-07-27

AI Technical Summary

Technical Problem

Denoising and demosaicing operations conflict with each other in traditional image signal processors, resulting in visual artifacts. The performance of joint denoising and demosaicing models in the existing technology is insufficient, mainly due to ignoring the importance of training data.

Method used

A method based on distribution learning is used to relax the supervised image into a multivariate Gaussian distribution, and a noise estimation module is introduced to derive a closed solution as a loss function through variational inference technology to improve the performance of the joint denoising and demosaicing model.

Benefits of technology

By paying attention to the tolerance and noise estimation of training data, the performance of the joint denoising and demosaicing model is improved, visual artifacts are reduced, and the effect of image processing is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113658060B
    Figure CN113658060B
Patent Text Reader

Abstract

The embodiment of the present invention proposes a joint denoising and demosaicing method and system based on distribution learning, wherein the method specifically includes: step one, establishing a task model for denoising and demosaicing; step two, constructing a training data set for the task model; step three, using the training data set to train the task model to obtain a JDD task model; the JDD task model is a trained task model; step four, inputting the image data to be processed into the JDD task model; step five, the JDD task model processes and outputs the received image data. According to the uniqueness of the tolerance of the training data, the present invention adopts an operation mode of relaxing the supervised image into a multivariate Gaussian distribution, and at the same time introduces a noise estimation module to predict the noise, so as to further improve the performance of the joint denoising and demosaicing model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a joint denoising and demosaicing method and system based on distribution learning, and in particular to the technical field of image data processing. Background Art

[0002] The camera's image signal processor processing flow is divided into two stages: image restoration and image enhancement. Image demosaicing is an indispensable part of the image signal processor processing flow, which is used to reconstruct a three-channel full-resolution RGB image from the color filter array of the single-channel original image.

[0003] In traditional ISP processing, demosaicing and denoising are usually performed independently and sequentially, however, denoising is to discard high-frequency noise, while demosaicing is to find the lost information, especially high-frequency components such as edge information. These two conflicting operations can easily bring visual artifacts such as false color, zipper and moiré in the final output of the ISP processing pipeline.

[0004] In the prior art, joint demosaicing and denoising are proposed, that is, directly feeding the noisy CFA into a hand-crafted joint demosaicing and denoising model and outputting a full-size RGB image. However, these traditional techniques are greatly limited by the hand-designed features. On the other hand, for data-driven methods, neural networks are designed and trained in a regression manner. However, attention is mainly focused on designing joint demosaicing and denoising models, ignoring the importance of training data, resulting in insufficient performance of joint demosaicing and denoising models. Summary of the invention

[0005] Purpose of the invention: To propose a joint denoising and demosaicing method and system based on distribution learning, which solves the above-mentioned problems existing in the prior art by relaxing the supervised image into a multivariate Gaussian distribution.

[0006] Technical solution: In the first aspect, a joint denoising and demosaicing method based on distribution learning is proposed, which specifically includes the following steps:

[0007] Step 1: Establish a task model for denoising and demosaicing;

[0008] Step 2: construct a training data set for the task model;

[0009] Step 3: Use the training data set to train the task model to obtain a JDD task model; the JDD task model is a trained task model;

[0010] Step 4: input the image data to be processed into the JDD task model;

[0011] Step 5: The JDD task model processes and outputs the received image data.

[0012] In some implementations of the first aspect, the process of establishing the task model in step 1 is further as follows:

[0013] Step 1.1: Establish a basic model, the expression is:

[0014] y=M(x+n)

[0015] Where y represents the color filter array with noise; M represents the mosaic operation; x represents the linear RGB image; n represents the noise;

[0016] Step 1.2: Use a single pixel to correct the basic model. The expression is:

[0017] y i =M i (x i +n i )

[0018] Where i represents the subscript of the pixel;

[0019] Step 1.3, introduce an intermediate variable and use Gaussian distribution to model it. The intermediate variable expression is:

[0020]

[0021] The modeling expression after introducing Gaussian distribution is:

[0022]

[0023] In the formula, represents the variance associated with the signal;

[0024] Step 1.4: Use relaxed supervision to convert the original true value x i Relax to a Gaussian distribution and transform the modeling expression as follows:

[0025]

[0026] In the formula, is a manually tuned hyperparameter.

[0027] Step 1.5: Use variational inference technology to derive a closed-form solution and use it as the loss function of the JDD task model. Its expression is:

[0028]

[0029] Where μ represents the mean value predicted by the JDD model; Σ2 represents the variance predicted by the JDD model; is the noise predicted by the noise estimation module; w represents the width of the input image; h represents the height of the input image.

[0030] In some implementations of the first aspect, the JDD task model outputs 6 channels, the first three channels are mean μ, and the last three channels are variance ∑ 2 .

[0031] The JDD task model also includes a noise estimation network for predicting noise. The noise estimation network is a fully convolutional neural network with a preset number of layers, using LeakyReLU as an activation function and without a normalization layer.

[0032] When the image data to be processed is input into the JDD task model, the original image data to be processed enters the noise estimation network for noise prediction and outputs the prediction result.

[0033] The image data to be processed and the prediction results of the noise estimation network are combined and input into the JDD task model together, and trained using the loss function in step 1.5. In the formula, is a manually tuned hyperparameter.

[0034] In some implementations of the first aspect, when training the task model in step three, distribution learning is used to relax the true value into a Gaussian multivariate distribution.

[0035] Secondly, a joint denoising and demosaicing system based on distribution learning is proposed, which specifically includes:

[0036] The first module is used to establish a denoising and demosaicing task model;

[0037] A second module for constructing the task model training data set;

[0038] The third module is used to obtain the JDD task model;

[0039] A fourth module for inputting image data to be processed into the JDD task model;

[0040] The fifth module is used for processing and outputting the received image data.

[0041] In some implementations of the second aspect, the JDD task model is a trained task model; the model output channels are 6 channels, which are divided in half, one half is set to output mean, and the other half is set to output variance. The JDD task model also includes a noise estimation module; the noise estimation module is set to estimate noise and output it.

[0042] Beneficial effect: The present invention proposes a joint denoising and demosaicing method and system based on distribution learning. In view of the shortcomings in the prior art, the present invention adopts the operation mode of relaxing the supervised image into a multivariate Gaussian distribution according to the uniqueness of the tolerance of training data, and introduces a noise estimation module to predict the noise, so as to further improve the performance of the joint denoising and demosaicing model. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 The figure is a schematic diagram of simplified data processing of an image signal processor in the prior art.

[0044] Figure 2 The figure is a flow chart of a method according to an embodiment of the present invention.

[0045] Figure 3 Schematic diagram of a noise estimation network according to an embodiment of the present invention.

[0046] Figure 4 Schematic diagram of the JDD task model output channel according to an embodiment of the present invention.

[0047] Figure 5 This is a comparison chart of experimental data of the embodiments of the present invention. DETAILED DESCRIPTION

[0048] In the following description, a large number of specific details are provided to provide a more thorough understanding of the present invention. However, it is apparent to those skilled in the art that the present invention can be implemented without one or more of these details. In other examples, in order to avoid confusion with the present invention, some technical features well known in the art are not described.

[0049] The camera image signal processor process can be roughly divided into two processes: image restoration and image enhancement, such as Figure 1 As shown in the figure. The first stage of image restoration is to restore the noisy color filter array and output an RGB image with a high dynamic range, that is, a linear RGB image. The joint denoising and demosaicing (JDD) task is in this stage. The second image enhancement stage is to make the output image of the previous stage more beautiful, so as to perform operations such as detail enhancement and color adjustment. After the above two stages of processing, the image signal processor outputs the final sRGB image.

[0050] Embodiment 1

[0051] The applicant believes that in the traditional image signal processor process, demosaicing and denoising are usually performed independently and sequentially. However, denoising is to discard high-frequency noise, while demosaicing is to find lost information, especially high-frequency components such as edges. These two conflicting operations can easily bring visual artifacts such as pseudo color, zipper and moiré in the final output of the image signal processor. Therefore, a joint demosaicing and denoising is proposed, that is, directly feeding the noisy color filter array into a hand-made denoising and demosaicing model, and outputting a full-size RGB image. However, these traditional techniques are greatly limited by hand-designed features. Recently, deep learning-based methods have shown their excellent performance in joint demosaicing and denoising. For these data-driven methods, they designed neural networks and trained them in a regression manner. However, the methods in the prior art mainly focus on designing denoising and demosaicing models, while ignoring the importance of training data. In response to the problems in the prior art, the present invention proposes a joint denoising and demosaicing method and system based on distribution learning. By utilizing the unique attribute of training data, namely "tolerance", it is proposed to relax the supervised image into a multivariate Gaussian distribution to further improve the performance of the existing JDD model.

[0052] In one embodiment, a joint denoising and demosaicing method based on distribution learning is proposed, such as Figure 2 As shown, the method specifically comprises the following steps:

[0053] Step 1: Establish a task model for denoising and demosaicing;

[0054] Step 2: construct a training data set for the task model;

[0055] Step 3: Use the training data set to train the task model to obtain a JDD task model; the JDD task model is a trained task model;

[0056] Step 4: input the image data to be processed into the JDD task model;

[0057] Step 5: The JDD task model processes and outputs the received image data.

[0058] Embodiment 2

[0059] In a further embodiment based on Example 1, in order to improve the performance of the task model, the process of establishing the task model in step one is further as follows: first, establish a basic model; second, use a single pixel to correct the basic model; third, introduce intermediate variables and use Gaussian distribution to model them, and introduce Gaussian distribution; third, use relaxed supervision to relax the original true value to a Gaussian distribution; finally, use variational inference technology to derive a closed solution and use it as the loss function of the JDD task model.

[0060] By focusing on the unique property of training data tolerance, we propose to relax the supervised images into a multivariate Gaussian distribution, which further improves the performance of the existing JDD model.

[0061] Specifically, in a further embodiment, the process of establishing the task model in step 1 is as follows:

[0062] Step 1.1: Establish a basic model, the expression is:

[0063] y=M(x+n)

[0064] Wherein, y represents a noisy color filter array; M represents a mosaic operation; x represents a linear RGB image; and n represents noise. In a preferred embodiment, for a specific color filter array, M can be specifically represented as a binary mask; wherein the specific color filter array refers to the RGGB, BGGR, GRBG, and GBRG arrays currently available on the market. Since the joint denoising and demosaicing method proposed in the present application is not limited to the color filter array, it is applicable to a variety of color filter arrays currently available on the market.

[0065] Step 1.2: In order to better describe the model building process between single pixels, a single pixel is used to correct the basic model, and its expression is:

[0066] y i =M i (x i +n i )

[0067] Where i represents the subscript of the pixel;

[0068] Step 1.3: Due to the existence of mosaic operation, for y i The distribution of cannot be modeled explicitly. However, for a specific color filter array, M is fixed, that is, p(M i )=1, so an intermediate variable is introduced and Gaussian distribution is used to model it, where the intermediate variable expression is:

[0069]

[0070] The modeling expression after introducing Gaussian distribution is:

[0071]

[0072] In the formula, represents the variance associated with the signal;

[0073] Step 1.4: After completing the modeling of a single pixel, use relaxed supervision to convert the original true value x i Relaxation is a Gaussian distribution, that is:

[0074]

[0075] And convert the single pixel modeling expression as follows:

[0076]

[0077] In the formula, is a manually tuned hyperparameter.

[0078] Step 1.5: Use variational inference technology to derive a closed-form solution and use it as the loss function of the JDD task model. Its expression is:

[0079]

[0080] Where μ represents the mean value predicted by the JDD model; Σ 2 represents the variance predicted by the JDD model; is the noise predicted by the noise estimation module; w represents the width of the input image; h represents the height of the input image. This loss function is used to optimize the JDD task model, thereby improving the performance of the JDD task model.

[0081] Embodiment 3

[0082] In a further embodiment based on the first embodiment, the JDD task model outputs 6 channels, the first three channels output the mean μ, and the last three channels output the variance Σ 2 , the output value is used as the optimization parameter of the loss function in this application.

[0083] In order to improve the performance of the JDD task model, the JDD task model in this example also includes a noise estimation network G for predicting noise. The noise estimation network is a fully convolutional neural network with a preset number of layers, using LeakyReLU as the activation function and no normalization layer. Its specific structure is as follows Figure 3 As shown, that is:

[0084]

[0085] In the formula, Represents the noise predicted by the noise estimation module.

[0086] like Figure 4 , which is a schematic diagram of the output channel of the JDD task model of this embodiment, and the output channel is divided into the output mean and variance in half.

[0087] When the image data to be processed is input into the JDD task model, the original image data to be processed enters the noise estimation network for noise prediction and outputs the prediction result.

[0088] The image data to be processed and the prediction results of the noise estimation network are combined and input into the JDD task model together, and trained using the loss function in step 1.5. In the formula, is a manually tuned hyperparameter.

[0089] Embodiment 4

[0090] In a further embodiment based on the first embodiment, when training the task model in step three, distribution learning is used to relax the true value into a Gaussian multivariate distribution. Distribution learning is only to relax the true value into a Gaussian multivariate distribution during training, and its variance The proposed loss function is used to replace the traditional L2loss loss function. On the other hand, in the inference stage, only the trained network output μ is required as the result.

[0091] The gains of applying the loss function proposed in this application on the MIT morie and MIT vdp datasets are as follows: Figure 5 As shown, Method is the mainstream denoising and demosaicing model, Regress GT is the result of direct training with the L2 loss function, Regress RS is the result of applying the loss function of this application, and the specific gain values ​​are in parentheses.

[0092] Embodiment 5

[0093] In one embodiment, a joint denoising and demosaicing system based on distribution learning is proposed, and the system specifically includes:

[0094] The first module is used to establish a denoising and demosaicing task model;

[0095] A second module for constructing the task model training data set;

[0096] The third module is used to obtain the JDD task model;

[0097] A fourth module for inputting image data to be processed into the JDD task model;

[0098] The fifth module is used for processing and outputting the received image data.

[0099] In a further embodiment, the JDD task model is a trained task model; the model output channels are 6 channels, which are divided in half, one half is set to output mean, and the other half is set to output variance. The JDD task model also includes a noise estimation module; the noise estimation module is set to estimate noise and output it.

[0100] As described above, although the present invention has been shown and described with reference to specific preferred embodiments, it should not be construed as limiting the present invention itself. Various changes may be made to it in form and detail without departing from the spirit and scope of the present invention as defined in the appended claims.

Claims

1. A joint denoising and demosaicing method based on distribution learning, characterized in that: The specific steps include: Step 1: Establish a task model for denoising and demosaicing, including: Step 1.1: Establish a basic model, the expression is: y=M(x+n) Where y represents the color filter array with noise; M represents the mosaic operation; x represents the linear RGB image; n represents the noise; Step 1.2: Use a single pixel to correct the basic model. The expression is: y i =M i (x i +n i ) In the formula, i represents the subscript of the pixel; Step 1.3, introduce an intermediate variable and use Gaussian distribution to model it. The intermediate variable expression is: The modeling expression after introducing Gaussian distribution is: In the formula, represents the variance associated with the signal; Step 1.4: Use relaxed supervision to convert the original true value x i Relax to a Gaussian distribution and transform the modeling expression as follows: In the formula, is a manually tuned hyperparameter; Step 1.5: Use variational inference technology to derive a closed-form solution and use it as the loss function of the JDD task model. Its expression is: In the formula, μ represents the mean predicted by the JDD model; ∑2 represents the variance predicted by the JDD model; is the noise predicted by the noise estimation module. w represents the width of the input image; h represents the height of the input image; Step 2: construct a training data set for the task model; Step 3: Use the training data set to train the task model to obtain a JDD task model; the JDD task model is a trained task model, and when training the task model, distribution learning is used to relax the true value into a Gaussian multivariate distribution; The JDD task model also includes a noise estimation network for predicting noise. The noise estimation network is a fully convolutional neural network with a preset number of layers, using LeakyReLU as an activation function and without a normalization layer. When the image data to be processed is input into the JDD task model, the original image data to be processed enters the noise estimation network for noise prediction and outputs the prediction result. The image data to be processed and the prediction results of the noise estimation network are combined and input into the JDD task model together, and trained using the loss function in step 1.5; In the formula, is a manually tuned hyperparameter; Step 4: input the image data to be processed into the JDD task model; Step 5: The JDD task model processes and outputs the received image data.

2. The joint denoising and demosaicing method based on distribution learning according to claim 1, characterized in that: The JDD task model has 6 output channels, the first three channels are the mean μ, and the last three channels are the variance ∑ 2 .

3. A joint denoising and demosaicing system based on distributed learning, used to implement any one of the methods in claims 1 to 2, characterized in that: include: The first module is used to establish a denoising and demosaicing task model; A second module for constructing the task model training data set; The third module is used to obtain the JDD task model; A fourth module for inputting image data to be processed into the JDD task model; The fifth module is used for processing and outputting the received image data.

4. The joint denoising and demosaicing system based on distribution learning according to claim 3 is characterized in that: The JDD task model is a trained task model; the model has 6 output channels, which are divided in half, with one half being set to the output mean and the other half being set to the output variance.

5. The joint denoising and demosaicing system based on distribution learning according to claim 3, characterized in that: The JDD task model also includes a noise estimation module; The noise estimation module is configured to estimate noise and output it.