Replies: 1 comment 2 replies
-
Hi @kretes, as Wenqi said, the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have Nifti data converted from dicom using dicom2niftii with default settings. This means that the data is converted to LAS orientation as per
https://github.com/icometrix/dicom2nifti/blob/dfc18475eb506885a065fe212e8c18791fbc8b04/dicom2nifti/convert_dicom.py#L64
Now, when I read this scan using MONAI - what I get is that the space gets set to 'RAS'
(either by NibabelReader
MONAI/monai/data/image_reader.py
Line 936 in c4ff70b
affine_lps_to_ras=True
in ITKReader)At the same time my affine matrix is sth like:
so the orientation of LAS. while
img.meta['space']
says 'RAS'.I think this is all intended, as I dig up an old comment #4790 (comment) by @wyli saying that
img.meta['space']
isn'torientation
.I wonder if it is safe to say that
space
is areader_space
(as mentioned in the PR) as it can't be altered for a loaded image, right?For a clearer picture - should there be an
orientation
field in the image, which gets calculated from theaffine
, like mentioned in #4224 ?Wondering about places in MONAI's codebase when there is a check of two images being co-registered. I understand that
space
isn't important there, as theaffine
does define the img2world transformation and the images need to have the same `affine, Right?Beta Was this translation helpful? Give feedback.
All reactions