# Open and visualize a 4D niftii file?

**URL:** <https://discourse.slicer.org/t/open-and-visualize-a-4d-niftii-file/38083>\
**Category:** Support\
**Created:** [August 28, 2024, 12:28pm UTC](https://discourse.slicer.org/t/open-and-visualize-a-4d-niftii-file/38083 "2024-08-28T12:28:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![theanega](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/theanega/32/70107_2.png) [@theanega](https://discourse.slicer.org/u/theanega)\
**Post date:** [August 28, 2024, 12:28pm UTC](https://discourse.slicer.org/t/open-and-visualize-a-4d-niftii-file/38083/1 "2024-08-28T12:28:04Z")

</div>

Hi all!

I’m having trouble opening a 4D NIfTI file in 3D Slicer. The file contains 6 concatenated 3D voxelwise maps of a segmented tumor, created using nibabel in Python.  
The file I’m trying to open has dimensions (x, y, z, 6) because it contains 6 voxelwise maps (ADC, AKC, T2, etc.) so there are 6 volumes.

While I can view it properly in FSLeyes, Slicer doesn’t recognize it as a 4D volume.  
I’ve tried loading it normally and using the MultiVolume Explorer module, but Slicer is not recognizing it. Is there a specific way to load 4D NIfTIs in Slicer that I’m missing?

Any guidance would be greatly appreciated. Thanks!

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [August 28, 2024, 12:51pm UTC](https://discourse.slicer.org/t/open-and-visualize-a-4d-niftii-file/38083/2 "2024-08-28T12:51:44Z")

</div>

I’m working on an improvement to Slicer that will be able to handle higher dimension volumes and load them as a sequence.

> **[GitHub - cpinter/Slicer at volume-sequence-io-5D](https://github.com/cpinter/Slicer/tree/volume-sequence-io-5D)**
>
> volume-sequence-io-5D

The only difference from your use case is that this work expects to support 5D images, where the voxel values are not simple scalars but vectors (e.g. displacement vector or RGBA)

I assume loading into a sequence will be acceptable to you. If so, can you please share this file so that I can see if this reader I’m working on can handle it and if not, what would be needed?
