dicom-contour icon indicating copy to clipboard operation
dicom-contour copied to clipboard

nifti to dicom rtstruct

Open wanderine opened this issue 4 years ago • 1 comments

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.

wanderine avatar Jun 05 '20 12:06 wanderine

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

KeremTurgutlu avatar Jun 06 '20 09:06 KeremTurgutlu