NIfTI-Image-Converter
NIfTI-Image-Converter copied to clipboard
Support for 2D nifti files?
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
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...
Try this! https://github.com/alexlaurence/NIfTI-Image-Converter/blob/master/python/nii_to_png_converter.py