Remove debugging

This commit is contained in:
Benjamin Loison 2024-07-24 00:20:45 +02:00
parent 3a4100b779
commit 025f8d0bee
Signed by: Benjamin_Loison
SSH Key Fingerprint: SHA256:BtnEgYTlHdOg1u+RmYcDE0mnfz1rhv5dSbQ2gyxW8B8

View File

@ -31,14 +31,11 @@ def getPrnuShownAsSuch(size, gaussianNoise = 0):
# Center vertically, especially in the case `HEIGHT` > `WIDTH`.
draw.text((0, HEIGHT // 2 - fontSize // 2), TEXT, 255, font = font)
imageNpArray = np.array(imagePil, dtype = np.float64)
#print(imageNpArray.dtype)
#exit(1)
gaussianNoiseNpArray = randomGaussianImage(gaussianNoise, size[::-1])
#prnuShownAsSuch = imageNpArray + gaussianNoiseNpArray
prnuShownAsSuch = imageNpArray
for y in range(HEIGHT):
for x in range(WIDTH):
if prnuShownAsSuch[y, x] != 0:
#print(prnuShownAsSuch[y, x])
prnuShownAsSuch[y, x] = gaussianNoiseNpArray[y, x]
return prnuShownAsSuch
return prnuShownAsSuch