-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gt_image_to_dicom_rt_struct ? #32
Comments
I think it is "kind of possible": for every layer, draw contours around the contiguous islands of "enabled" voxels. There are many ways to do this, probably, each with their pros and cons. The algorithm for identifying the "contiguous islands" is an interesting intellectual exercise, though it probably has been solved many times already in mathematics and in code; it's probably part of lots of pattern recognition algorithms. Maybe the "shapely" module has something to offer here? I wrote "kind of possible" instead of "possible" because the tool will not be an exact inverse of
... then the masks created in step 1 and 3 should be identical. So the original ROI and the new ROI have different contours but are "equivalent" in the sense that they include/exclude the same sets of voxels (only for the "given image", because for other images with different voxel geometry they may not be equivalent, due to the slightly different contours). |
Do we have use cases for this? |
Thank you for you answer, We already have a tool in c++ (the code is here https://github.com/open-vv/vv/blob/master/common/clitkImage2DicomRTStructFilter.txx but it's complicated to install it with an external GDCM) and it use VTK to convert binary image to a mesh. But I wondered if what you implemented in roi_utils.py could be useful to do such a tool in Python. Yes we have use case, usually to put ROI in clinical software we already drew. |
Hi all, Hi @djboersma ,
Do you think it's possible to create a tool converting binary mask to DicomRTStruct; the opposite of gt_dicom_rt_struct_to_image?
Thank you
The text was updated successfully, but these errors were encountered: