Error opening Nifti files

Hi,

I downloaded the most recent version of Paraview, and I’m unable to open nifti files (.nii.gz) that I can open with FSLeyes and ITKsnap. First, I open the folder and select “All files(*)” because otherwise I can’t even see them. Then, when I click on the files, I try to open them with “Nifti Volume Reader”. Afterwards, I get the following error:

** ERROR (nifti_image_read): failed to find header file for ‘/path/to/file.nii.gz’
( 21.219s) [paraview ] vtkNIfTIReader.cxx:203 ERR| vtkNIfTIReader (0x5dabd40): Read failed

Is there any way I can solve this? Thank you very much.

Hi @mdk82jd

Please share your data

Best,

Hi,

I had problems with any .nii.gz. For example, https://github.com/richardbeare/nifti_paraview/blob/master/MNI152_T1_0.5mm.nii.gz

You need to extract it first

gunzip MNI152_T1_0.5mm.nii.gz

Hi,

You’re right. Unzipped nifti files can be open by paraview.

Is there any way to open .nii.gz files directly? I need to open files that, compressed, are 12GB.

Thanks!

I’m afraid not, see this discussion though:

1 Like