Hello,
I am trying to create an itk image from numpy array. I have,
itkImg = itk.GetImageFromArray(array)
itkImg.SetOrigin([1.0, 1.0, 1.0])
itkImg.SetSpacing([1.0, 2.0, 2.0])
After creating the image, I want to change the origin and spacing of itkImg. I was able to change the origin but I am not able to change the spacing. When I call SetSpacing, the jupyter notebook kernal crashes.
Any suggestions?
Thanks,
Archana