GuoShi28 / CBDNet

Code for "Toward Convolutional Blind Denoising of Real Photographs", CVPR 2019

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

question about the difference between matlab code and python code of isp process

PeeBar opened this issue · comments

commented

Thanks for provide the python code of isp process, I just find that you add Poisson-Gaussian noise before mosaic_bayer in the matlab code, but you add the noise after mosaicing and inver white balancing in the python code. Is this difference reasonable?

Mosaic can treat as linear pixel sampling. So adding noise before and after this step is the same for the final training data. Adding noise after mosaic_bayer is more explainable.

commented

Thank you very much.

commented

Hello! I am sorry to interrupt you again cause I find that there is a small difference between the CRF_Map.m file and the CRF_Map function in python. In the CRF_Map.m file, comp2=temp-B(index-1), but it becomes to temp-I_temp(index-1) in Python.Can you tell me which one is right?
Thank you!

I check the code and find the python code may be right. I update the Matlab code. Thank you for pointing it out.
image

commented

Thanks for your response!