"pixdim" and "affine" not updated by Spacingd transform #5795
kate-sann5100
started this conversation in
General
Replies: 1 comment
-
Hi @kate-sann5100, meta_dict is deprecated in this transform since 0.9.0, so the meta_dict won't be updated. MONAI/monai/transforms/spatial/dictionary.py Lines 323 to 324 in 97918e4 You can get the new affine by using data.affine .Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
The current version of Spacingd did not update the "pixdim" and "affine" (so "affine" equals "original")in metadict. This could be confusing.
To Reproduce
N/A
Expected behavior
"pixdim" and "affine" should be updated.
Screenshots
N/A
Environment
N/A
Additional context
monai 0.9.0 with the following implementation does not have this issue.
Beta Was this translation helpful? Give feedback.
All reactions