Replies: 1 comment 1 reply
-
that's correct @MMelQin, if you only use the ITKReader backend, the default is LPS and there's no need to consult the parameter |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I saw the enums defined for SpaceKeys,
RAS
andLPS
, and the code comment atMONAI/monai/utils/enums.py
Line 499 in 77fd5f4
Needless to say, the
LPS
is used for human to interpret radiology images and relate to the patient anatomies, but there are a whole set of other metadata to indicate patient orientation, patient position, anatomical orientation type, as well as the image position (patient) and image orientation (patient), with the later two used to calculate the voxel world coordinates and the others help to interpret the image. Questions are thenSpaceKey.LPS
, unless told to flip the image withaffine_lps_to_ras
. How does a creator of this class know to flip or not, based on the requirement of the model and input data combination? e.g. if my OWN ImageReader class, similar to ITKReader, only deals with DICOM input, can it stick toLPS
and expect the downstream pre-processing transform to deal with the flipping, e.g.OrientationD
affine_lps_to_ras
inLoadImageD
. How would one expect this option be passed toImageReader
thtoughLoadImageD
, via**kwargs
throughLoadImageD
?I plan to stick to
LPS
in my code as right now it does not useLoadImage
and it does not parse theLoadImageD
specified in inference.json.@Nic-Ma @wyli
Beta Was this translation helpful? Give feedback.
All reactions