I just tried to load the nifti2 test data as a diffusion-eighted image. The corresponding reader for dMRI nifti image simply uses the itkImageFileReader internally and exits with the following, slightly more expressive, error message:
Exception occured when reading file nifti2.nii.gz: /mitk/mitk/Modules/DiffusionImaging/DiffusionCore/autoload/IO/mitkDiffusionImageNiftiReaderService.cpp:337: /mitk/debug/ep/src/ITK/Modules/IO/NIFTI/src/itkNiftiImageIO.cxx:1016: itk::ERROR: NiftiImageIO(0x55555ae73bc0): nifti2.nii.gz is not recognized as a NIFTI file Do you know if itk is supposed to support NIFTI2? Cheers, Peter ________________________________ Von: Neher, Peter Gesendet: Mittwoch, 19. Juni 2019 13:07 An: Nil Goyette Betreff: AW: [mitk-users] Nifti2 Dear Nil, I am currently out of office, but I can check it out when I am back. Could you enter a phabricator task for this? https://phabricator.mitk.org/ Cheers, Peter Von: Nil Goyette <[email protected]> Gesendet: Montag, 10. Juni 2019 19:00 An: [email protected] Betreff: [mitk-users] Nifti2 Hi all, I tried opening a Nifti2 image in MITK 2018.04 and it seems I can't. 3526.53 core.mod.core.ioUtil ERROR: No reader available for 'C:/Users/Nil/Desktop/nifti2.nii.gz' I created my images with this python code import numpy as np import nibabel as nib data = np.random.rand(4, 5, 6, 7).astype(np.float64) affine = np.eye(4) nib.save(nib.Nifti1Image(data, affine), 'nifti1.nii.gz') nib.save(nib.Nifti2Image(data, affine), 'nifti2.nii.gz') I know that VTK supports it since 6.2. Is it supposed to work? Nil Goyette
_______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
