Reputation: 622
I have successfully installed ITK and VTK with python wrapping and can be imported in python. I have installed them for .mha file processing and even after installing both ITK and VTK, problem still persists. It shows the following error:
So, guys is there any idea how can I load .mha volumetric images in python for further image processing. Or is there any way to process .mha files.
Even I try to call any module related to ITK then it shows the following error:
This happen with all ITK supporting libraries. So how to get rid of this problem.
Thanks.
Upvotes: 0
Views: 1635
Reputation: 627
I was successfully able to load .mha images in Python using SimpleITK.
The installation instructions are listed here, and the documentation can be found here.
After that the .mha image can be easily readed:
import SimpleITK
inputImage = SimpleITK.ReadImage( your_image.mha )
Upvotes: 3