GCP-Net icon indicating copy to clipboard operation
GCP-Net copied to clipboard

# About the SNR of an image

Open syujung opened this issue 2 years ago • 7 comments
trafficstars

Hello,thanks for your great job! In this paper,you demonstrated the Green channel SNR of an Bayter image is higher than Red and Blue channel, I wonder if this law exists in sRGB image? By the way , how to compute the SNR of an image in SIDD? Looking forward to your reply !

syujung avatar Apr 12 '23 08:04 syujung

@GuoShi28

syujung avatar Apr 12 '23 08:04 syujung

Thank you. The green channels have higher SNR than other channels. In sRGB space, it's maybe more complicated effected by the ISP process. In SIDD dataset, you can use the noise image and the corresponding ground-truth image to calculate SNR. The SNR function can use snr() in matlab or simple write by yourself.

GuoShi28 avatar Apr 13 '23 02:04 GuoShi28

OK,Thanks for your reply!

syujung avatar Apr 13 '23 07:04 syujung

Hello,in your GCP_Net ,the input should be concat of image and noise map , i want to know if i captured raw burst , how can i get the noise map ? In your code , you provided the raw data and the organized data , can you provide the code of organizing the not processed raw image ?
Looking forward to your reply! Thanks again for your great work! @GuoShi28

syujung avatar Apr 17 '23 07:04 syujung

For the raw image, the noise levels are in the metadata of raw data. It exists in raw format. If you can not obtain the noise level, you can directly remove the noise map in the input. I'm not fully understand "can you provide the code of organizing the not processed raw image ?". For the ISP and inverse ISP, the code is provided in the process.py and unprocess.py files.

GuoShi28 avatar Apr 17 '23 10:04 GuoShi28

In your test_real.py file , the raw image has been processed and saved as ".mat" file , and the meta data has been saved in ".mat" file, and the captured raw file is end with "DNG", i wonder how to process the DNG file to the ".mat" file ? Specificly, there are a lot of tags in DNG file , I do not know which one is the noise level .

syujung avatar Apr 18 '23 01:04 syujung

@GuoShi28

syujung avatar Apr 18 '23 01:04 syujung