I have started reading about the orientation of Nifti images and wanted to clarify some concepts. Here are some of the questions:
- When accessing the data of an image:
image.get_fdata()
are the axes of the NumPy array always the same with respect to the anatomical axes? i.e. first axis -> left to right, second axis -> posterior to anterior, third axis -> inferior to superior? - What relation is there between the
qform
and thesform
to the RAS+ scanner orientation? - As per the docs there are 4 types of
qform code
andsform code
that modify the coordinates, what changes between them?
Any further comments on how all the concepts are related are appreciated.