I have two questions.
I am using Slicer 4.6.2, and the SlicerRT toolkit is installed as well. However, when I import a DICOM file and load it, I receive an error that says Could not load RTPLAN as a RT. How are we able to load RTPLAN in Slicer?
Also, by using information in RTPLAN, such as the coordinates of catheters used in a brachytherapy prostate, I want to calculate the Hausdorff distance between the “dwell positions” on certain catheters and the rectum. I know that by suing SlicerRT–>Segment Comparison, we are able to calculate Hausdorff distance metrics between different segments. However, is it possible to calculate Hausdorff distance between selected points (dwell positions) and a segment (rectum) ?
RTPLAN import was not available at all in 4.6.2, and does not support brachy plans even in the current version. For your application, you probably can workaround this limitation using dcmdump and grep
Regarding your second question, what it sounds like you are wanting is not the Hausdorff distance between segments, but rather distance from a point to a segment. This can be accomplished by creating a distance map to the segment, and then probing its value at the location of interest.
If you have some experience in Python, then you could also implement a simple importer that parses data using pydicom (already bundled with Slicer) and create markup fiducial or model nodes from the dwell positions. Let us know if you were interested in working on this and we’ll help getting you started.
Although Greg’s suggestion to dump the tags and use them directly sounds simpler, it is a one-time solution for a problem you may need very often, so it’s better to add the import feature.
If you’re willing to spend some time with adding brachy plan support to SlicerRT, that would be really great! Many from the community would be happy to have this feature. And I’d be happy to help with the implementation, with giving you pointers about where to start and what to use, etc.
Distance maps can be calculated in the Simple Filters module by selecting the SignedMaurerDistanceMapImageFilter filter.