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

This commit is contained in:
2024-03-28 16:32:38 +01:00
parent 70ccb094d5
commit 82e7026264
2 changed files with 16 additions and 10 deletions

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()