Skip to content

Add own transform and save result with new key in Dataset #2700

Answered by Nic-Ma
BailiangJ asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @BailiangJ ,

Thanks for your interest and experiments with MONAI.
I think you can refer to the SplitChanneld transform, it saves every channel into a new key:
https://github.com/Project-MONAI/MONAI/blob/dev/monai/transforms/utility/dictionary.py#L340

Thanks.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BailiangJ
Comment options

Answer selected by BailiangJ
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