Can I save to .nii.gz by torchio easily after preprocess? #731
-
I have loaded a Nifti format file and applied some transform to this. Now, I want to save this transformed image to Nifit format to check whether my transform is right. But I don't know how to do this easily by Torchio. The compromise I'm using now is to save it with Nibabel package (load image by Nibabel and replace the data with transformed image), but I think it's a little clunky. Can you tell me how to save transformed images by Torchio easily? For example, my code is following:
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Hi
|
Beta Was this translation helpful? Give feedback.
-
When I read the document, I have a new question, and the above solution did not work The following code is from the document, and I want to know how to save the output image
Thanks! |
Beta Was this translation helpful? Give feedback.
When I read the document, I have a new question, and the above solution did not work
The following code is from the document, and I want to know how to save the output image