[Insight-users] Fwd: SimpleITK and DTI

Francois Budin fbudin at unc.edu
Thu Jun 6 10:43:03 EDT 2013


Hello,

I was trying to open a Diffusion Tensor Image (DTI) file using SimpleITK 
(in a python console) and I got the following error: 
========================================================= [30]: 
image=sitk.ReadImage( 
"/rodent/FAS_sulik/DTI2013/Processing/N50848/2-Registration/N50848_dwi_MFcorrected_shuffled_dti_f_reg.nrrd") 
--------------------------------------------------------------------------- 
RuntimeError Traceback (most recent call last) 
<ipython-input-30-99f941f49428> in <module>() ----> 1 
image=sitk.ReadImage( 
"/rodent/FAS_sulik/DTI2013/Processing/N50848/2-Registration/N50848_dwi_MFcorrected_shuffled_dti_f_reg.nrrd") 
/NIRAL/devel/linux/Python/ThirdParty/SimpleITK-0.6.1-py2.6-linux-x86_64.egg/SimpleITK.pyc 
in ReadImage(*args) 4388 4389 """ -> 4390 return 
_SimpleITK.ReadImage(*args) 4391 class HashImageFilter(_object): 4392 
""" RuntimeError: Exception thrown in SimpleITK ReadImage: 
/scratch/blowekamp/dashboards/Ubuntu10-release/SimpleITK/Code/IO/src/sitkImageReaderBase.cxx:104: 
sitk::ERROR: Unknown PixelType: 9 
==============================================
Is there a way to read DTI with SimpleITK? It reads well Diffusion 
Weighted Images (DWI) which are vector images.

Sincerely,

Francois



More information about the Insight-users mailing list