dicom-contour
dicom-contour copied to clipboard
nifti to dicom rtstruct
Any chance that you can do a function in the opposite direction? When you have done segmentation and stored the mask as a nifti file, you often want to save the segmentation as a DICOM RTstruct file. I can get the contour from the mask using scikit-image, but to save it as a DICOM RTstruct file seems hard.
Currently not, but it would definitely be a good addition, happy to take PRs 😄 Good part is DICOM is a very well defined data structure and it should be easy to add masks arrays to RTStruct seamlessly using the API. https://pydicom.github.io/pydicom/stable/index.html