20 from __future__
import print_function
24 import SimpleITK
as sitk
29 for y
in range(0, xImg.GetSize()[1]):
30 for x
in range(0, xImg.GetSize()[0]):
31 xImg.SetPixel(x, y, x)
37 yImg = yImg - yImg.GetSize()[1] / 2
39 gaussianImg =
sitk.Exp(-1 * (xImg ** 2 + yImg ** 2) / (2.0 * sigma ** 2))
41 if (
"SITK_NOSHOW" not in os.environ):