Add RMS computation

This commit is contained in:
2024-03-29 01:35:48 +01:00
parent f297060f42
commit 3ccec5bbd0
2 changed files with 13 additions and 5 deletions

View File

@@ -5,7 +5,9 @@ from matplotlib import pyplot as plt
def randomGaussianImage(scale, size):
return np.random.normal(loc = 0, scale = scale, size = size)
def showImageWithMatplotlib(npArray):
def showImageWithMatplotlib(npArray, title = None):
if title is not None:
plt.title(title)
plt.imshow(npArray)
plt.show()