GetSeparatedPartsOfStructure
The Structure Class have a method to GetNumberOfSeparatedParts.
Do anyone know an optimal way of getting the segment volumes itself of those separated parts?
I mean, we can get the contour groups in each plane, but how can I, in a radiosurgery with multiple lesions get the Sum of the PTVs and make them different PTVs?
Or at least get the center point of each separated contours in the plan that they're continuous.
Thanks @larpra I already had this loop in my code; My doubt is how can I, known that plane z, had 3 contours and plane z+1 had 2 contours and plane z+2 had 3 contours again, separate them? Would I need to follow their centroids , create a fancy logic or there is a simpler approach.