Replies: 1 comment 2 replies
-
Hi @tao558, you could try to use MONAI/monai/transforms/meta_utility/dictionary.py Lines 89 to 94 in 1a55ba5 Hope it can help you, thanks! |
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.
-
I'm using a dataloader with the
LoadImaged
transform (withimage_only=True
) to read inMetaTensor
objects. The data dictionary yielded by the data loader looks like the following, for example:Where the
tensor
is aMetaTensor
that contains other metadata such as the affine, etc. Is there any way to combine theother_meta
dictionary with the metadata inMetaTensor.meta
using transforms? There are no overlapping keys between the two dictionaries.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions