Calculating margin between two superimposed segments


I was wondering if there is a way to find the smallest margin between two superimposed 3D-segments, especially in an automatic fashion?

Thank you!

You can use the Hausdorff distances in Segment Comparison module in the SlicerRT extension. You can get the average, maximum, and 95th percentile distance from the GUI, and you can get the histogram through python, which will give you the minimum. Although I find the minimum to be an unusual metric, because usually they intersect at some point, so the minimum will be 0.

1 Like