I’m new to Slicer. I want to use this filter: ApproximateSignedDistanceMapImageFilter. to calculate the distance of each point to the boundary after doing segmentation.
How can I get the distance map as a text file to recall it again for other purposes?
Can somebody help please?
You can run that filter through SimpleFilters
You can save the result as an regular volume file that you can reload (in binary not in ascii text, but you could convert it outside slicer if you want text).
Hope that helps,
Also note that you can get Hausdorff distance and even full surface error distribution from Segment Comparison module in SlicerRT extension:
Thank you for respond but what do you mean by
Thank you Lasso.
How can I use the maximum distance value as a radius to draw a sphere?
You can expand your segment by a specified margin in Segment Editor module, using Margin effect.
I have read about the Segment Comparison. it compare between 2 models or segments. but I want to find the max distance for each voxel on tumor to the edge (boundary) of the tumor.
That’s a distance map that you can compute using Simple Filters module as described above.
Why do you need the distance map? For segmentation or registration accuracy assessment?
for drawing spheres based on the distances.
I mean what is the end goal - the clinical problem and the solution that you are working towards?
to define the position of the shot (radiotherapy)