Replies: 1 comment 14 replies
-
yes, that utility function always extracts the upper left 2x2, you can normalise the spatial orientation with MONAI/monai/transforms/spatial/dictionary.py Lines 393 to 395 in 422cc6d |
Beta Was this translation helpful? Give feedback.
14 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I've 2d slices nifti files, generated from 3d with nibabel. These files are not axial, I've sagittal or coronal data.
The 3d affine is correct. I would like to extract the 2d affine with the to_affine_nd() function.
I wonder if this function works when data are not in axial orientation, because it takes the top left 2x2 elements of the 3d affine,
but I think it's only for axial orientation. Is that correct ?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions