dchen
(Dave Chen)
2
There’s a corresponding function itk.GetImageViewFromArray
that converts a numpy array to an ITK image. Here’s a blog post about that:
To get from a VTK image to NumPy array you can use the vtk_to_numpy
in numpy_support
. Here’s stackoverflow thread describing that process:
I wrote a function that goes from VTK to SimpleITK that is essentially the same thing:
2 Likes