Remove debugging
This commit is contained in:
parent
3a4100b779
commit
025f8d0bee
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user