Page MenuHomePhabricator

Cannot load DTI from 3M3 Demo Data folder
Closed, ResolvedPublic

Description

During testing loading of
3M3 Demodaten\MITK Diffusion\MITK-DI-Demodaten\Daten\DiffusionImage_dti.dti
fails with:

23.916] Trying to load dti as nrrd ...
!23.918! WARNING: /home/hering/Programming/Bugs/MITK-gcc/Modules/DiffusionImaging/DiffusionIO/mitkNrrdTensorImageReader.cpp:386:
/home/hering/Programming/Bugs/MITK-Superbuild-gcc-release/ITK-src/Modules/IO/NRRD/src/itkNrrdImageIO.cxx:258:
itk::ERROR: NrrdImageIO(0x51d59b0): ReadImageInformation: Error reading /home/cweber/E130-Daten/3M3 Demodaten/MITK Diffusion/MITK-DI-Demodaten/DiffusionImage_dti.dti:
[nrrd] nrrdLoad: trouble reading "/home/cweber/E130-Daten/3M3 Demodaten/MITK Diffusion/MITK-DI-Demodaten/DiffusionImage_dti.dti"
[nrrd] nrrdRead: trouble
[nrrd] _nrrdRead: trouble reading NRRD file
[nrrd] _nrrdFormatNRRD_read: trouble parsing space directions info |none (2,5,0,0) (0,2,5,0) (0,0,2,5)|
[nrrd] _nrrdReadNrrdParse_space_directions: trouble getting space vector 2 of 4
[nrrd] _nrrdSpaceVectorParse: space dimension is 3, but seem to have 4 coefficients

  • ERROR: nifti_convert_nhdr2nim: bad dim[0]

other DTI files can be loaded correctly.

Event Timeline

On OSX it works to load the image - but ** ERROR: nifti_convert_nhdr2nim: bad dim[0] is also thrown. Seems to be a corrupt nifti file.

Replace it wit a new one??

The problem lies with the locale settings:
interpreting

The problem lies with the locale settings:
interpreting a . as , for some configurations of the operating system.
So we shouldn't replace this image as is shows a general problem when loading these images.
@christoph: can you elaborate on the problem?

File actually was corrupted, fixed by correcting the file (replacing , with . at appropriate places).