Skip to content

Why this transformation is not invertible? #7818

Answered by KumoLiu
alfaevc asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @alfaevc, thanks for your interest here.

Invertible transforms are often be useful to return them to their original space after. You might, for example, want to use a network to segment an image, and then you'll want that segmented image in the same space as the input so that you can compare them. You could then save them to file and compare them in your favourite medical image viewer.

You can double check with isinstance(x, InvertibleTransform).

So in your preprocessing, all the transforms are not InvertibleTransform since no spacing-related transforms.

BTW, you can refer to this tutorials for more information: https://github.com/Project-MONAI/tutorials/blob/main/modules/inverse_trans…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alfaevc
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