Lot_to_learn
Lot_to_learn

Reputation: 622

Unable to load .mha files in ITK

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:

Unable to Load .mha Files

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:Unable to call supporting Libraries

This happen with all ITK supporting libraries. So how to get rid of this problem.

Thanks.

Upvotes: 0

Views: 1635

Answers (1)

Danny Lessio
Danny Lessio

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

Related Questions