Add gaussianNoise to getPrnuShownAsSuch but applies on the whole PRNU image

This commit is contained in:
Benjamin_Loison committed 2024-03-29 13:16:50 +01:00
1 parent 2d96bdc225
commit ec7c5c6688
2 files changed
+9 -5

No files matched your search

@@ -32,7 +32,10 @@ IMAGE_SIZE_SHAPE = [dimension // SPLIT_N_X_N for dimension in (704, 469)]
np.random.seed(0)
#prnuNpArray = 255 * randomGaussianImage(scale = PRNU_FACTOR, size = IMAGE_SIZE_SHAPE)
prnuNpArray = getPrnuShownAsSuch(IMAGE_SIZE_SHAPE) * PRNU_FACTOR
prnuNpArray = getPrnuShownAsSuch(IMAGE_SIZE_SHAPE, 100) * PRNU_FACTOR
showImageWithMatplotlib(prnuNpArray)
##
def isIn256Range(x):
return 0 <= x and x <= 255