Distance between structures

Feb 2 at 8:13 PM

I am trying to perform the Hausdorff distance,

H(S,S' )=max⁡(h(S,S' ),h(S',S))

between a structure (e.g. GTV) on a planning CT and it's corresponding instance after DIR on a given CBCT. I am somewhat new to ESAPI and am having difficulty with the MeshGeometry functionality. Preferably I would do this with SmartAdapt scripting.

Any help would be greatly appreciated. Thanks!
Feb 3 at 5:33 PM
I think if you can obtain the voxel in question, then this should be easy. I would search the API help that is (usually) distributed with the Eclipse software. A quick search yielded the information you would seem to need:

Get the target structure ID from the PlanSetup:
public string TargetVolumeID { get; }

Find the matching structure in the structure set:
public StructureSet StructureSet { get; }

Get the centerpoint (or other point from the structure):
public VVector CenterPoint { get; }

And calculate your distance:
public static double Distance( VVector left, VVector right )