How can I export 4D volume as DICOM?

Hello! I am fairly new to Slicer and I was hoping for some advice.

I have created a sequence of volumes (4D volume) of PET data. It is for a dynamic PET kinetic modeling application.

I can export the sequence as .seq.nrrd and import it back perfectly fine. But, I can’t export the sequence as a series of DICOM files.

In the Create a DICOM Series Module, it only shows me options of the regular 3D volumes, but not the 4D one.

Incidentally, I can import 4D DICOM serieses as well, but I can’t export such sequences. Could someone help?


We haven’t implemented a 4D exporter. It should not be hard to do it - you simply dump all the slices (all frames of all time points) into a single series - but there was just not a lot of request from users.

If you have Python scripting experience and willing to spend some time with it then we can help you getting started. Alternatively, if you are not ready to start working on this then we can move this topic to the “feature requests” category and if enough people vote on it then we’ll work on it.

Appreciate it! I have some experience with Python Scripting. Could you give me a few pointers as to how I would go about it?

Just to clarify, I already have different "MRMLvolume"s of the exact same dimensions at different time points. How can I go about creating a DICOM series from it?

I was looking for DICOM exporter examples and I’ve found that I actually implemented an exporter for 4D volumes (see source code).

Please test if it works for you. If there is an issue then you can attach a Python debugger and step through the code to see what goes wrong.

Hi Andras,
I want to export the DICOM 4D volume. When I export it using DICOM I can see only one volume and not all the available series. Can Slicer help to view the DICOM 4D volumes with 6-8 frames of cardiac cycles? Any help ? I wan to view like horoas application gives a view for a 4D volume with different frames.


Yes, Slicer can import, visualize, export 4D volumes. If something does not work at you expect then describe what you did (in a way that allows us to reproduce it), what you expected to happen, and what happened instead. Share the data you load (make sure it is anonymized or use publicly available data set) and include screenshots.

Hi Andras,
I do not see the 8 different frames with 246 images each. I can open the 4D volume but don’t see all the frames.

any suggestions?
In horoas application I can view all the 8 frames on the side


Horos probably just shows you a list of 2D slices. In contrast, Slicer reconstruct 3D volumes. If a slice is missing from a volume then the entire volume may be discarded. If you enable detailed logging in Application Settings / DICOM then you may find more details in the application log. If you can share the anonymized data set then I can have a look, too.

1 Like