1

I am finding an inconsistency in my image between the header and the data:

>>> im = nib.load('image.nii')
>>> im.shape
(512, 512, 112)
>>> im.get_data().shape
(112, 512, 512)

Is this expected? Can I ask Nibabel to supply the data in an orientation consistent with the header? Or how can I determine which dimension is which?

Thank you very much for your advice :)

Gilly
  • 1,739
  • 22
  • 30

0 Answers0