This is the Python implementation of realistic noise synthesis on real images, followed by the approximated noise model proposed in CBDNet and Liu et al. The original matlab implementation verison is in here. This version is slightly different with the matlab one. We re-arrange the process order and adjust some incorrect details. This noise synthesis module can be pluged into sRGB noise denoising models, to train deep models with approximated realistic noises.
Given a clean image x
, the realistic noise model can be represented as:
Where y
is the noisy image, f(.)
is the CRF function which converts irradiance L
to x
. M(.)
represents the function that convert sRGB image to Bayer image and M^(-1)(.)
represents the demosaicing function.
If considering denosing on compressed images,
- "Test_Realistic_Noise_Model.py" is the testing script. Users can change the input image path, and adjust the \sigma_s, \sigma_c.
- Python 3
2.Liu et al. Automatic Estimation and Removal of Noise from a Single Image