Skip to content

saving nifti segmentation back to original(before transformation) #1397

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

You must be logged in to vote

Hi @janetkok ,

Thanks for your interest here.
Currently, not all the transforms update the affine matrix, so we can't revert all the transforms, we will work on it soon, tracking: #365
For your case, can you only use spacingd and orientationd transforms then save_nifti with meta_data? refer to:
https://github.com/Project-MONAI/tutorials/blob/master/3d_segmentation/torch/unet_evaluation_dict.py#L96

Thanks.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@Nic-Ma
Comment options

@janetkok
Comment options

@janetkok
Comment options

@janetkok
Comment options

@Nic-Ma
Comment options

Answer selected by janetkok
Comment options

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