diff --git a/datasets/raise/extract_noise.py b/datasets/raise/extract_noise.py index edf04e5..3b330c2 100755 --- a/datasets/raise/extract_noise.py +++ b/datasets/raise/extract_noise.py @@ -54,7 +54,7 @@ def treatImage(imageFileName, computeExtremes = False): if maxColor is None or greenRawImageVisibleMax > maxColor: maxColor = greenRawImageVisibleMax return - imageNpArray = (greenRawImageVisible - minGreen) / (maxGreen - minGreen) + imageNpArray = (greenRawImageVisible - minColor) / (maxColor - minColor) # Pay attention to range of values expected by the denoiser. # Indeed if provide the thousands valued raw image, then the denoiser only returns values between 0 and 1 and making the difference between both look pointless. else: