Whilst working with some NifTi files, all regular 3DNifti’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?
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).
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.