Convert NRRD to DICOM

Hello there!

I’m new to 3D slicer and I was wondering if there’s an easy way to convert thousands of nrrd images to dicom, I have already tried create a dicom series module but for that I will have to select the input volume one by one for over a thousand time.

Thank you for your time

Yes, you can do that but you need to write a python script. It would be a pretty simple one.

1 Like

Thank you! I was able to find how to load the images using python but I can’t find the function that converts them to dicom

The module to create a dicom series is a Command Line Interface (CLI) that you can run as described in the link below. You can provide the parameters as you would when using the GUI.

https://slicer.readthedocs.io/en/latest/developer_guide/python_faq.html#how-to-run-a-cli-module-from-python

1 Like

Thank you very much, this has solved my problem! :smile: