Image loading and requirement for transpose() #1086
-
Hi everyone, I have two questions regarding
I guess some of it could be based on the Nifty format and how each axis contributes to one spatial dimension, with the BraTS images having a bad format? Thanks for any help, python: 3.9 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi |
Beta Was this translation helpful? Give feedback.
-
We need to make a choice for the internal voxel order (nibabel or stik) . The specific choice either on or the other is arbitrary. But once you made a choice you need to stay coherent and add this transpose when needed ... |
Beta Was this translation helpful? Give feedback.
-
I think the idea is that Regarding the array dims order, see "The order of index and dimensions need careful attention during conversion" in https://simpleitk.org/SimpleITK-Notebooks/01_Image_Basics.html |
Beta Was this translation helpful? Give feedback.
I think the idea is that
ensure4d
tries its best to make to load images and convert the shape into the appropriate one, whereas when you pass a tensor directly as an arg, you have full control of what's being passed and it's your responsibility to use the appropriate shape. Does that make sense?Regarding the array dims order, see "The order of index and dimensions need careful attention during conversion" in https://simpleitk.org/SimpleITK-Notebo…