ELD icon indicating copy to clipboard operation
ELD copied to clipboard

How to generate low-light clean image in the step of Noisy Image Synthesis

Open ProNoobLi opened this issue 4 years ago • 10 comments

According to the paper, synthetic low-light clean images are from long exposure and divided by low light factors. Is it an appropriate approach or is there any method supporting it? image When I check the distribution of one pair of raw images from short and long exposure separately(exposure ratio=250). image The distribution of short raw lies on [500, 600] around; while that of long raw lies on [500, 10000]. Then, long exposure / 250 lies around [2, 40], which definitely doesn't fit for the low-light distribution. Thus, the sythetic noisy images generated by such inaccurate low-light clean + generated noise doesn't make sense.

Is my understanding correct? Please point out the wrong things I made.

ProNoobLi avatar Jul 14 '20 09:07 ProNoobLi

The distribution of short raw lies on [500, 600] around

How many images you used?

Vandermode avatar Jul 14 '20 10:07 Vandermode

According to the paper, synthetic low-light clean images are from long exposure and divided by low light factors. Is it an appropriate approach or is there any method supporting it?

Yes, it's indeed a valid assumption. If there is no noise, the recorded image intensity increases linearly during exposure in raw space as raw is radiometrically calibrated (See [1] for details). That's one of the reason to model noise in raw space.

[1] S. J. Kim, H. T. Lin, Z. Lu, S. Süsstrunk, S. Lin, and M. S. Brown, “A new in-camera imaging model for color computer vision and its application,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 34, no. 12, pp. 2289–2302, 2012.

To help you understand more things about raw space (and ISP), I would recommend the excellent tutorial by Michael Brown

Vandermode avatar Jul 14 '20 10:07 Vandermode

Hi, thanks for your reply. I just check one image to verify that assumption. However, could you please explain why the long_range / ratio doesn't match the short range? I mean it is far from the distribution. Should I do long_raw / ratio directly or (long_raw - black_level) / ratio?

ProNoobLi avatar Jul 14 '20 14:07 ProNoobLi

Thanks for your recommendation of the tutorial. I just want to clarify if my understanding is correct image image image For the first image, the intensities of images are nonlinear to the irradiance ex, and the nonlinear function f which including some unknown tone-mapping. However, the RAW is proportional to the irradiance ex and the number of collected photons thus could be linear to the exposure ratio k as well. The key points here is that RAW pixel isn't the intensity. Is my understanding correct??

ProNoobLi avatar Jul 15 '20 03:07 ProNoobLi

For the first image, the intensities of images are nonlinear to the irradiance ex, and the nonlinear function f which including some unknown tone-mapping. However, the RAW is proportional to the irradiance ex and the number of collected photons thus could be linear to the exposure ratio k as well. The key points here is that RAW pixel isn't the intensity. Is my understanding correct??

Yes, you are right.

Besides, before 2014, there were few cameras providing the raw image accessibility for users. So the researchers had to work on sRGB space. This leads to the study on radiometric calibration, with the goal to recover raw response that is proportional to the scene irradiance

Vandermode avatar Jul 15 '20 11:07 Vandermode

To calibrate the K in your paper, should I refer to this part, 3.2 Evaluation of constant K in [32]?? image I notice that the K in your paper is with the unit DU/electrons; while the K from [32] is at electrons/DU. Right?

ProNoobLi avatar Jul 17 '20 03:07 ProNoobLi

Yes, please. But, as a reminder, I'm unable to provide more implementation details of our methods beyond the paper

Vandermode avatar Jul 17 '20 03:07 Vandermode

Hello?I have the same question. The raw data mostly is 14-bit(16383). So if you use an factor in[100,300], then the maximum of the simulated low_light raw should be about [55, 163]?

XinYu-Andy avatar Oct 22 '20 17:10 XinYu-Andy

simulated low_light raw should be about [55, 163]?

Yup. From my experience, the datasets I processed are smartphone pictures in 10bits which ranges from 0 to 1023. The raw values of some real extreme dark images might be around 65(while the black level is 64).

ProNoobLi avatar Nov 04 '20 10:11 ProNoobLi

hi, i have a question, the low-light clean images are from long exposure and divided by low light factors, why the sythetic noisy images need Multiplied by the low light factors, when the low-light clean images add the generated noise , i think this step maybe change noise distribution.

fm123a avatar Jun 14 '22 09:06 fm123a