You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm interested in using highdicom to convert a DICOM Segmentation object to a nifti file (one per segment). I know that there are other converters available (dcmqi segimage2itkimage, pydicom-seg), but wanted to know if this was also an option using highdicom.
I've tried this from the documentation:
,but this does not return numpy arrays of the same dimensions as the underlying image data. It seems like I would have to extract any orientation information for each slice of the segmentation and create the volume myself in order for it to align with the image data.
Thanks!
Deepa
The text was updated successfully, but these errors were encountered:
deepakri201
changed the title
conversion of DICOM Segmentation object to nifti file
conversion of DICOM Segmentation object to nifti file
Mar 6, 2023
Hi @deepakri201, highdicom cannot convert directly to nifti but you should be able to do this via numpy and then nibabel/sitk.
You are using an old API for getting segments out of the segmentation dataset. Please refer to this similar issue for some hints on how to do this now: #202
Hi,
I'm interested in using
highdicom
to convert a DICOM Segmentation object to a nifti file (one per segment). I know that there are other converters available (dcmqi segimage2itkimage
,pydicom-seg
), but wanted to know if this was also an option usinghighdicom
.I've tried this from the documentation:
,but this does not return numpy arrays of the same dimensions as the underlying image data. It seems like I would have to extract any orientation information for each slice of the segmentation and create the volume myself in order for it to align with the image data.
Thanks!
Deepa
The text was updated successfully, but these errors were encountered: