Due to the processing difficulty i thought of a work around like in the video attached for my purpose. The script @Juicy @lassoan help with do the trick by automating the process but i takes lot of time.
The way i think of working this out was,
- first segment the implant
- Exported it to Blender as stl.
- Get the center of object and made a cylinder with know dimensions.
these cylinder were the size of what we were trying to grow which took lot of time.
reimported them to Slicer
Calculate the volume
to threshold the bone only, used thresholding only insde that segment.
This is superfast but I just want to know is this has any effect on calculations compare to growing the margins ? Is this a correct method or completely wrong way of going about this ?
The entire process depend on accurate alignment of the first cylinder and Bledner came in becuase i could not deduce how to get the center of segment with GetMesh().GetCenter() and also i think it calculates the center of the bounding box which might not be what i want here.
When i did get the some kind of values for center and when i try to create the cylinder it was embarrassingly out of sync.
- Provided the method is accurate, is it possible to get the center of my segment and then create a cylinder along the long axis or is there a way of putting a fiducial to the center of the segment and then i can just draw a circle from that ?