alexlaurence / NIfTI-Image-Converter

🖼 A lightweight neuroimaging .nii to .png converter for Matlab and Python users
https://alexlaurence.github.io/NIfTI-Image-Converter/
MIT License
117 stars 39 forks source link

nibabel.filebasedimages.ImageFileError: Cannot work out file type of #8

Closed StudentRepresentative closed 4 years ago

StudentRepresentative commented 4 years ago

Why i got this error?

Traceback (most recent call last): File "nii2png.py", line 157, in main(sys.argv[1:]) File "nii2png.py", line 38, in main image_array = nibabel.load(inputfile).get_data() File "C:\Users\rit\Anaconda3\lib\site-packages\nibabel\loadsave.py", line 56, in load filename) nibabel.filebasedimages.ImageFileError: Cannot work out file type of

alexlaurence commented 4 years ago

Hi, could you let me know what path you are inputting in?

https://github.com/nipy/nibabel/issues/620