NIfTI-Image-Converter icon indicating copy to clipboard operation
NIfTI-Image-Converter copied to clipboard

Support for 2D nifti files?

Open andife opened this issue 3 years ago • 2 comments

Hello, I was trying to use that script for an output image of ANTS. My nifti file is 2D (only has 1 slice). Maybe one can add this functionallty
Thank you

andife avatar Mar 18 '21 09:03 andife

Sorry for the late reply - currently it only supports 3D and 4D images. However, you can modify the code to only convert the single slice to the png. I'll post more about it later if you are still interested...

alexlaurence avatar Jul 28 '21 15:07 alexlaurence

Try this! https://github.com/alexlaurence/NIfTI-Image-Converter/blob/master/python/nii_to_png_converter.py

alexlaurence avatar Jul 28 '21 15:07 alexlaurence