Skip to content
Discussion options

You must be logged in to vote

One way to implement it is to make sure the image/mask have the same spatial size and concatenate them at dim=0:

monai.transforms.ConcatItemsD(keys=['img1', 'img2'], name='img12', dim=0),

for example, this is used in the tutorial: https://github.com/Project-MONAI/tutorials/blob/main/deep_atlas/deep_atlas_tutorial.ipynb

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gkrisp98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants