# 4D NifTi flipped and rotated about 90-deg

**URL:** https://discourse.slicer.org/t/4d-nifti-flipped-and-rotated-about-90-deg/48056
**Category:** Support
**Created:** [September 3, 2026, 1:39pm UTC](https://discourse.slicer.org/t/4d-nifti-flipped-and-rotated-about-90-deg/48056 "2026-09-03T13:39:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![SeunO](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@SeunO](https://discourse.slicer.org/u/SeunO)
#### Post date: [September 3, 2026, 1:39pm UTC](https://discourse.slicer.org/t/4d-nifti-flipped-and-rotated-about-90-deg/48056/1 "2026-09-03T13:39:41Z")

</div>

Hi everyone,

Whilst working with some NifTi files, all regular `3D`Nifti’s seem to match between my application and 3D-Slicer. However, I noticed that the 4D NifTi file I’m working with seems to be flipped in 3D-Slicer rather awkwardly (flipped + rotated). It’s worth mentioning that I was curious and I tried the same 4D NifTi in `ITK-SNAP` and it did line up with mine (albeit reversed coordinate system). Any idea why this is the case?

`Regular Nifti comparison with 3D-Slicer`

 ![d99_bs](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/6/462cf28e04a813cc9af34b159d00573e2a52c44d.jpeg)

- next is 3D slicer

 ![d99_3ds](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/d/fd24312ff14e407a82c5064df2531cbb05654f96.jpeg)

Here is another regular comparison.

 ![sripley_bs](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/1/81240b5340ab214af45ff528f99af0cf07a5f9a6.jpeg)

 ![sripley_3ds](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/e/7e392e8f9ebe6cf27e27e758de9125e76d49b249.jpeg)

and another

 ![tala_bs](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/f/9ffcb34d0213083f1aa542715ed282d2736572a4.png)

--

 ![tala_3ds](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/9/b9e54bb3cdd45d3e0051ac49d318d19ed479d317.jpeg)

- Here is the 4D comparison I find awkward

 ![alana_3ds](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/e/dea56a3e6e426152574f308e307be27664133ff0.jpeg)

- here is what `ITK-SNAP` produced, which is a lot similar to mine.

 ![alana_itks](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/c/6ccd50821883129d1ad6398ad9771b06c237a0ce.jpeg)

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [September 4, 2026, 7:02pm UTC](https://discourse.slicer.org/t/4d-nifti-flipped-and-rotated-about-90-deg/48056/2 "2026-09-04T19:02:01Z")

</div>

Nifti is a complex format and the details of how transforms are encoded are sometimes abiguous and interpreted differently by different software packages (the documentation for various neuroimaging tools describe this well). 4D is especially challenging, and we don’t frankly see a lot of 4D nifti in the Slicer community. But we would like to be interoperable with any standards, so if you can find an authoritative document that describes how the header fields should be interpreted someone would probably be able to implement that (in the past, no such document could be found).

---

<div class="post-metadata">

### Author: ![SeunO](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@SeunO](https://discourse.slicer.org/u/SeunO)
#### Post date: [September 8, 2026, 12:09pm UTC](https://discourse.slicer.org/t/4d-nifti-flipped-and-rotated-about-90-deg/48056/3 "2026-09-08T12:09:25Z")

</div>

Hi Steve,

Pardon the late reply. I guess I was expecting 3D slicer to at least produce results consistent with other NifTi files I had tried with it which produced great results but was thrown aback by the flipped results. However, I do acknowledge that NifTi is indeed complex in nature and my file being 4D probably doesn’t make it any easier to deal with. I’ll try to investigate a bit more regarding how `the header fields should be interpreted` for whatever it’s worth, if I happen to stumble upon something positive I’ll post it back here. Thanks for the detailed and informative response.
