Method for constructing more real noise distribution

By photographing white paper under the D65 light source, estimating noise parameters and constructing a noise model, the problem of poor denoising effect in the RAW domain is solved, simplifying the construction of noise data, reducing the need for environmental control, and achieving more realistic noise data generation and removal. Noise effect.

CN118628381APending Publication Date: 2024-09-10HEFEI JUNZHENG TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310238982.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-08
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

The existing technology has poor denoising effect in the RAW domain, and because noisy data sets are difficult to obtain, traditional methods need to strictly control the acquisition environment, resulting in the loss of denoising details.

Method used

By taking pictures of white paper under D65 light source, the noise parameters of the camera are estimated, and parameters are randomly generated within a certain range, and noise models of Poisson and Gaussian distributions are constructed to generate synthetic noise data sets, reducing reliance on real data and environmental control.

Benefits of technology

It achieves the generation of more realistic noise data in the RAW domain, simplifies the noise data construction process, reduces labor collection and labeling costs, improves the denoising effect, and avoids estimation deviations caused by light disturbance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628381A
    Figure CN118628381A
Patent Text Reader

Abstract

The invention provides a method for constructing more real noise distribution, which comprises the following steps: carrying out noise modeling on a camera needing to be estimated in a white paper shooting manner, in the estimation process, placing the camera in a lamp box, turning on a D65 light source, ensuring that light is irradiated on a wall pasted with white paper to meet the condition of ensuring light uniformity, and in addition, when high-sensitivity ISO is shot, carrying out noise modeling on the camera. The illumination is ensured to be 300lux; after a noise parameter is estimated, in order to prevent estimation deviation, the parameter is controlled within a range of [-0.001, 0.001] to randomly generate a number, and the number is added to the parameter. Through the method, a large amount of noise data can be obtained, and a large amount of manpower for data acquisition and labeling is not needed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of RAW domain 2D image denoising, and in particular relates to a method for constructing a more realistic noise distribution. Background Art

[0002] In recent years, with the rapid development of science and technology, image processing technology has become more mature. In the existing technology, due to the fact that a large number of camera devices are under conditions such as insufficient light or obstruction, the captured images often contain noise to varying degrees. Especially at night, the captured image noise is particularly large, resulting in poor image quality and cannot be used by the photographer. At present, a large number of denoising studies are based on the RGB image domain. In this way, the image obtained by the photosensitive components becomes an unknown distribution after ISP processing. Therefore, some noise modeling methods result in poor image denoising effects. In order to generate noise closer to the real noise and denoise it, some denoising studies are currently conducted in the RAW domain.

[0003] At present, most noise modeling methods directly model the noise of the image as a single additive Gaussian distribution noise, and then directly superimpose it on the image. As researchers delve deeper into photosensitive components, they decompose the noise into Poisson distribution and Gaussian distribution, and then estimate the parameters of the two distributions respectively. Finally, when modeling, the noise is modeled as a Gaussian distribution with heteroscedastic distribution.

[0004] The defects of the prior art are:

[0005] Since noise is generated by factors such as the randomness of photons, heating of components, and quantization when photons hit photosensitive components, research has found that these noises mainly obey Poisson distribution and Gaussian distribution in the RAW domain. However, the noise of RGB domain images is unknown, and it is impossible to model the noise well and remove it through the network. Therefore, denoising in the RAW domain is very worthy of study. However, paired denoising data sets are currently difficult to obtain. Traditional methods require strict control of the acquisition environment, such as lighting, camera angle, etc. If an object moves in front of the lens, then when synthesizing a clean image, the denoising details will be lost due to misalignment problems. Therefore, it is very necessary to construct a synthetic noise data set through relevant algorithms.

[0006] Common technical terms in the prior art:

[0007] ISO: Sensitivity is a measure of the film's sensitivity to light and is generally adjusted by changing the camera's analog gain.

[0008] RAW image: An arrangement of images containing data processed from the image sensor of a digital camera, scanner, or film scanner.

[0009] ISP: Image signal processing, which performs a series of processing on the original RAW image.

[0010] Shading: When shooting with a camera, the image appears brighter in the center and darker around it.

[0011] Lux: A unit of measurement for light intensity. Summary of the invention

[0012] For denoising in the RAW domain, paired clean-noise images are difficult to obtain, resulting in poor performance of data-driven deep learning methods in denoising tasks and inability to meet specific task requirements. In order to solve the above problems, the purpose of this application is to: the proposed method solves the problem of noise data construction. A large amount of noise data can be obtained through this method without spending a lot of manpower on data collection and labeling.

[0013] Specifically, the present invention provides a method for constructing a more realistic noise distribution. The method performs noise modeling on a camera to be estimated by photographing white paper. During the estimation process, the camera is placed in a light box, and the D65 light source is turned on to ensure that the light is hit on the wall with the white paper to ensure uniform light. In addition, when shooting at high sensitivity ISO, the illumination is guaranteed to be 300 lux. After the noise parameters are estimated, in order to prevent estimation deviation, the parameters are controlled within the range of [-0.001, 0.001] to randomly generate a number and add it to the parameter.

[0014] The method further comprises the following steps:

[0015] S1: Acquire image data: obtain bright frame and dark frame;

[0016] S2: Perform two-frame summation and two-frame difference processing on the bright frame, as shown in equations (1) and (2), where y1 and y2 represent the two captured images, respectively, and y sum represents the mean of the two images, and y' represents the difference between the two images;

[0017] y sum =(y1+y2) / 2 (1)

[0018] y'=y1-y2 (2)

[0019] S3: For the obtained y sum , y' respectively find the mean y mean and variance std as shown in formulas (3) and (4), and then the slope value k is obtained by using the minimum linear fit according to formula (5). Half of the k value is the parameter of the estimated Poisson distribution, and k / 2 represents the gain parameter related to the iso of the sensor, which is used to generate Poisson distribution noise related to the signal, as shown in formulas (9) and (11);

[0020]

[0021]

[0022] std=k / 2*y mean +b (5)

[0023] S4: Estimate the Gaussian distribution parameters; average the variance std of 10 dark frames img_dark taken at the same ISO dark , as shown in formula (8), where std i ' represents the variance obtained from a dark frame image, as shown in formulas (6) and (7):

[0024]

[0025]

[0026]

[0027] S5: After the above steps, we get the parameters k and std dark In order to reduce the influence of light disturbance on the acquisition process, the following operations, namely formulas (9) and (10), are used to obtain the final results;

[0028] k'=random(0.8*k,k) (9)

[0029] std' dark =random(0.8*std dark ,std dark ) (10)

[0030] S6: Construct a noise image through the above estimated parameters, such as formula (11) and (12), where img_p in formula (11) represents the noise associated with the signal, possion(.) is the distribution in statistics, norm in formula (12) represents the Gaussian distribution in statistics, noise_1 represents the generated noise, and formula (13) represents the final generated noise img_noise:

[0031] img_p=possion(img / k' / 2)*k' / 2 (11)

[0032] noise_1=norm(loc=0,std=std' dark ) (12)

[0033] img_noise=img_p+noise_1 (13).

[0034] The step S1 further comprises:

[0035] S1.1: Prepare the necessary tools: a calibrated camera, a light box or a studio with adjustable brightness, and wrinkle-free white paper. First, place the camera in a D65 light source light box, and place the white paper on a flat background wall.

[0036] S1.2: To prevent the camera from being blocked by shading during shooting, move the camera so that the white paper is at the 1 / 2 position of the lens;

[0037] S1.3: Determine whether to capture bright frames? If yes, open the acquisition device to capture bright frames and set the camera's ISO sensitivity to 2 n , n=0,1,2,......, then, starting from the darkest brightness, change the exposure time and select from [1,1123] with an interval of 5, 1123 is the time-related parameter built into the sensor; at each exposure time, two images are continuously collected and saved; here the illumination is guaranteed to be 300lux; S1.4: Determine whether the image is exposed? If not, return to step S1.3. Each time the ISO is changed, that is, the exposure time is changed by 10, the acquisition is performed. Exposure is required. Images at different exposure times are collected in sequence. After the ISO is changed, step S2 is performed again to collect the corresponding images and perform difference processing. Step S3 is continued. Each time the ISO is changed, (k, std) can be obtained. Because fitting a straight line, as shown in formula (5), requires a lot of (k, std); if yes, proceed to S1.6; S1.5: If not, turn off the light box light source to collect dark frames. The purpose of collecting dark frames is to estimate parameters that are not related to illumination. The parameters related to dark current and noise caused by sensor material are estimated through dark frame estimation, including std dark Parameters, used in formula (12), use black tape to cover the light-sensitive part of the camera and place the camera in a dark room; when shooting, use the shortest exposure time, set the exposure time to 1, where 1 is the parameter value of the debugging exposure time given inside the sensor, and shoot 10 frames or more continuously;

[0038] S1.6: Collection is completed.

[0039] Therefore, the advantages of the present application are: the method of the present application is simple, the noise parameters are estimated by the above method, and the estimated parameters are limited to a certain range to avoid the problem of inaccurate estimated parameters due to light influence. This noise synthesis method can arbitrarily generate the required noise data, reduce the dependence on real data, and do not need to strictly control the environmental factors when collecting images. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The drawings described herein are used to provide a further understanding of the present invention, constitute a part of this application, and do not constitute a limitation of the present invention.

[0041] Figure 1 It is a flow chart of the present application method.

[0042] Figure 2 It is a schematic diagram of the collection in step S1 of the method of this application. DETAILED DESCRIPTION

[0043] In order to more clearly understand the technical content and advantages of the present invention, the present invention is now further described in detail in conjunction with the accompanying drawings.

[0044] The present invention proposes a noise modeling method for generating noise data closer to the real noise data. The acquisition steps are as follows: Figure 1 As shown, the main implementation steps of the method are as follows:

[0045] Step S1: Collect image data: obtain bright frame and dark frame; Figure 2 As shown:

[0046] S1.1: Prepare the necessary tools: a calibrated camera, a light box or a studio with adjustable brightness, and wrinkle-free white paper. First, place the camera in a D65 light source light box, and place the white paper on a flat background wall.

[0047] S1.2: To prevent the camera from being blocked by shading during shooting, move the camera so that the white paper is at the 1 / 2 position of the lens;

[0048] S1.3: Determine whether to capture bright frames? If yes, open the acquisition device to capture bright frames and set the camera's ISO sensitivity to 2 n , n=0,1,2,......, then, starting from the darkest brightness, change the exposure time, select from [1,1123] with an interval of 5, 1123 is the time-related parameter built into the sensor; at each exposure time, continuously collect two images and save them; here, the illumination is guaranteed to be 300lux; S1.4: Determine whether the image is exposed? If not, return to step S1.3, each time the ISO is changed, that is, the exposure time is changed by 10, and the image needs to be exposed. Collect images at different exposure times in turn. After changing the ISO, perform step S2 again to collect the corresponding images and perform difference processing, and continue step S3. Each time the ISO is changed, (y mean ,std), because fitting a straight line, as shown in formula (5), requires a lot of (y mean,std), because when the ISO is fixed, the exposure time is changed to obtain two images. By using formulas (3) and (4), we can get a (y mean ,std), then by changing multiple exposure times, multiple (y mean ,std) data, then a straight line can be fitted through these points; if yes, proceed to S1.6;

[0049] S1.5: If no, turn off the light source of the light box and collect dark frames. The purpose of collecting dark frames is to estimate parameters that are not related to illumination. The parameters related to dark current and noise caused by sensor materials can be estimated through dark frame estimation, including std dark Parameters, used in formula (12), use black tape to cover the light-sensitive part of the camera and place the camera in a dark room; when shooting, use the shortest exposure time, set the exposure time to 1, where 1 is the parameter value of the debugging exposure time given inside the sensor, and shoot 10 frames or more continuously;

[0050] S1.6: Collection is completed.

[0051] Step S2: Perform two-frame summation and two-frame difference processing on the bright frame, as shown in equations (1) and (2).

[0052] In the formula, y1 and y2 represent the two collected images respectively, and y sum represents the mean of the two images, and y' represents the difference between the two images;

[0053] y sum =(y1+y2) / 2 (1)

[0054] y'=y1-y2 (2)

[0055] Step S3: For the obtained y sum , y respectively find the mean y mean and variance std as shown in formulas (3) and (4), and then the slope value k is obtained by using the minimum linear fit according to formula (5). Half of the k value is the parameter of the estimated Poisson distribution, and k / 2 represents the gain parameter related to the iso of the sensor, which is used to generate Poisson distribution noise related to the signal, as shown in formulas (9) and (11);

[0056]

[0057]

[0058] std=k / 2*y mean +b (5)

[0059] Step S4: Estimate the Gaussian distribution parameters; average the variance std of the 10 dark frames img_dark taken at the same ISO dark , as shown in formula (8), where std i ' represents the variance obtained from a dark frame image, as shown in formulas (6) and (7):

[0060]

[0061]

[0062]

[0063] Step S5: After the above steps, the parameters k and std are obtained. dark ,In order to reduce the influence of light disturbance in the acquisition process, the final result is obtained through the following operations;

[0064] k'=random(0.8*k,k) (9)

[0065] std' dark =random(0.8*std dark ,std dark ) (10)

[0066] Step S6: Construct a noise image using the above estimated parameters, as shown in formulas (11) and (12). The img_p in formula (11) represents the noise associated with the signal, possion(.) is the distribution in statistics, the norm in formula (12) represents the Gaussian distribution in statistics, noise_1 represents the generated noise, and formula (13) represents the final generated noise img_noise:

[0067] img_p=possion(img / k' / 2)*k' / 2 (11)

[0068] noise_1=norm(loc=0,std=std' dark ) (12)

[0069] img_noise=img_p+noise_1 (13).

[0070] In summary, the present invention:

[0071] 1. Use a white paper to model the noise of the camera to be estimated. During the estimation process, ensure that the light is basically uniform. In addition, when shooting at high ISO, ensure that the illumination is more than 300 lux.

[0072] 2. After estimating the noise parameters, in order to prevent estimation bias caused by some factors, the parameters are controlled within a certain range.

[0073] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method to construct a more realistic noise distribution, It is characterized in that The method models the noise of the camera to be estimated by photographing white paper. During the estimation process, the camera is placed in a light box, and the D65 light source is turned on to ensure that the light is hit on the wall with the white paper to ensure uniform light. In addition, when shooting at high sensitivity ISO, the illumination is guaranteed to be 300 lux. After the noise parameter is estimated, in order to prevent estimation deviation, the parameter is controlled within the range of [-0.001, 0.001] to randomly generate a number and add it to the parameter.

2. A method for constructing a more realistic noise distribution according to claim 1, It is characterized in that The method further comprises the following steps: S1: Acquire image data: obtain bright frame and dark frame; S2: Perform two-frame summation and two-frame difference processing on the bright frame, as shown in equations (1) and (2), where y 1 ,y 2 Respectively represent the two collected images, y sum represents the mean of the two images, and y' represents the difference between the two images; and sum (and 1 +y 2 ) / 2 (1) and'and 1 -and 2 (2) S3: For the obtained y sum , y′, respectively, find the mean y mean and variance std, as shown in formulas (3) and (4), and then the slope value k is obtained by using the minimum linear fit according to formula (5). Half of the k value is the parameter of the estimated Poisson distribution, and k / 2 represents the gain parameter related to the iso of the sensor, which is used to generate the Poisson distribution noise related to the signal, as shown in formulas (9) and (11); std=k / 2*y mean +b (5) S4: Estimate the Gaussian distribution parameters; average the variance std of 10 dark frames img_dark taken at the same ISO dark , as in formula (8), where std′ i Represents the variance of a dark frame image, as shown in formulas (6) and (7): S5: After the above steps, we get the parameters k and std dark ,In order to reduce the influence of light disturbance on the acquisition process, the final result is obtained through formulas (9) and (10); k'=random(0.8*k,k) (9) std' dark =random(0.8*std dark ,std dark ) (10) S6: Construct a noise image through the above estimated parameters, such as formula (11) and (12), where img_p in formula (11) represents the noise associated with the signal, possion(.) is the distribution in statistics, norm in formula (12) represents the Gaussian distribution in statistics, noise_1 represents the generated noise, and formula (13) represents the final generated noise img_noise: img_p=possion(img / k' / 2)*k' / 2 (11) noise_1=norm(loc=0,std=std' dark ) (12) img_noise=img_p+noise_1 (13).

3. A method for constructing a more realistic noise distribution according to claim 1, It is characterized in that The step S1 further comprises: S1.1: Prepare the necessary tools: a calibrated camera, a light box or a studio with adjustable brightness, and wrinkle-free white paper. First, place the camera in a D65 light source light box, and place the white paper on a flat background wall. S1.2: To prevent the camera from being blocked by shading during shooting, move the camera so that the white paper is in the 1 / 2 position of the lens; S1.3: Determine whether to capture bright frames? If yes, open the acquisition device to capture bright frames and set the camera's ISO sensitivity to 2 n , n=0,1,2,......, then, starting from the darkest brightness, change the exposure time, select from [1,1123] with an interval of 5, 1123 is the time-related parameter built into the sensor; at each exposure time, continuously collect two images and save them; here, the illumination is guaranteed to be 300lux; S1.4: Determine whether the image is exposed? If not, return to step S1.3, each time the ISO is changed, that is, the exposure time is changed by 10, and the image needs to be exposed. Collect images at different exposure times in turn. After changing the ISO, perform step S2 again to collect the corresponding images and perform difference processing, and continue step S3. Each time the ISO is changed, (y mean ,std), because fitting a straight line, as shown in formula (5), requires a lot of (y mean ,std); if yes, proceed to step S1.6; S1.5: If no, turn off the light source of the light box and collect dark frames. The purpose of collecting dark frames is to estimate parameters that are not related to illumination. The parameters related to dark current and noise caused by sensor materials can be estimated through dark frame estimation, including std dark Parameters, used in formula (12), use black tape to cover the light-sensitive part of the camera and place the camera in a dark room; when shooting, use the shortest exposure time, set the exposure time to 1, where 1 is the parameter value of the debugging exposure time given by the sensor, and shoot 10 frames or more continuously; S1.6: Collection is completed.

Citation Information

Patent Citations

  • Poisson-Gaussian joint noise image sequence separation and noise reduction method based on frame averaging and weight adjustment second-order blind recognition

    CN111405206A

  • Raw domain video denoising supervision data set construction method

    CN111724317A

  • Video denoising data set generation method and device, computer equipment and storage medium

    CN115082357A

  • Video noise reduction device, method and terminal

    CN115205731A

  • Noise estimation

    US20220005159A1