How can I convert NIFTI files to NRRD files in batch mode?


I have approximately 300 MRI images in the NIfTI format which I need to convert to NRRD files so that I can analyse them. I can open each file in 3D-Slicer and save as NRRD, but I am wondering if there is an easier way to do this as I have so many images.

Thank you

You can write a few-line Python script that iterates through all the nifti files in that folder, loads the volume, then saves it as nrrd.

You can find examples in script repository for loading and saving volume. This post can also help (and there were other similar questions here before that you may be able to find):

1 Like