Transfer .dcm to .nii.gz #5271
Unanswered
YingdiZhang
asked this question in
Q&A
Replies: 2 comments
-
for each input file name or directory, you can run: import monai.transforms as mt
img = mt.LoadImage(image_only=True, ensure_channel_first=True)("input_filename.dcm")
img = mt.SaveImage(output_ext="nii.gz", output_postfix="", resample=False)(img) |
Beta Was this translation helpful? Give feedback.
0 replies
-
@YingdiZhang just a suggestion if you dont want to use monai. You could try this purposed built dcm--> nifti (https://pypi.org/project/nekton/) . it also allows you to got from nifti --> dicomseg too. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks for the great job!
I have some 3d medical images which are stored in dicom format, how to save that in .nii.gz by using MONAI?
Beta Was this translation helpful? Give feedback.
All reactions