Add algorithms/image_utils/image_utils.py and move there randomGaussianImage and showImageWithMatplotlib

This commit is contained in:
Benjamin_Loison committed 2024-03-28 16:32:38 +01:00
1 parent 70ccb094d5
commit 82e7026264
2 files changed
+16 -10

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
from PIL import Image
import numpy as np
from matplotlib import pyplot as plt
def randomGaussianImage(scale, size):
return np.random.normal(loc = 0, scale = scale, size = size)
def showImageWithMatplotlib(npArray):
plt.imshow(npArray)
plt.show()