We have now extended that file format to support a variety of objects that occur in medicine such a tubes (for vessels, needles, etc.), blobs (for arbitrary shaped objects), cubes, spheres, etc. Reason: No module named itk.īut I do have SimpleITK now. MetaImage is the text-based tagged file format for medical images that resulted. mha/.raw) requires a third-party module that could not be encountered. Image_data, image_header = load('/home/bianca/Documents/PythonProcessing/result-Edep.mhd')įile "medpy/io/load.py", line 201, in loadĭependencyError: Loading images of type Itk/Vtk MetaImage (.mhd. MetaImage requires anatomical orientations with letters that refer to where each axis. Itk::ERROR: MetaImageIO(0x3a84280): File cannot be read: /home/bianca/Documents/PythonProcessing/result-Edep.mhd for reading.Įven with medpy from medpy.io import load ITK-Snap uses anatomical orientation codes in which the letters refer to where each axis ORIGINATES FROM. img = io.imread('/home/bianca/Documents/PythonProcessing/result-Edep.mhd', plugin='simpleitk')īut I'm also getting an error message RuntimeError: Exception thrown in SimpleITK ReadImage: /tmp/SimpleITK-build/ITK/Modules/IO/Meta/src/itkMetaImageIO.cxx:483: Itk::ERROR: MetaImageIO(0x3a83730): File cannot be read: /home/bianca/Documents/PythonProcessing/result-Edep.mhd for reading. I'm trying the function described here Reading *.mhd/*.raw format in python: load_itk('/home/bianca/Documents/PythonProcessing/result-Edep.mhd')īut it is not reading the image: RuntimeError: Exception thrown in SimpleITK ReadImage: /tmp/SimpleITK-build/ITK/Modules/IO/Meta/src/itkMetaImageIO.cxx:483: I'm here again with another question regarding SimpleITK in python.
0 Comments
Leave a Reply. |