is there any possibility to mark the center of the femoral head? In planning softwares you can draw a circle around the contour of the femoral head, but i see no possibility to draw a circle and mark its center.
Thank you for your help!
I am not sure how you define the contour of the femoral head, but if you are planning in 3D view, you can easily trace it via the closed curve markups tool and calculate its centroid.
We provide general tools in Slicer and you can easily handcraft your specialized tools using Python scripting. For example, you can specify a sphere using markups fiducials, either directly determining the optimal sphere from multiple points and/or manually positioning a sphere by adjusting a few control points.
You can get a best-fit sphere if you place a couple of markups fiducial points on the femur head surface (either in slice views or in 3D) then copy-paste this code snippet into the Python console: https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Specify_a_sphere_by_multiple_of_markups_points
If you prefer interactive adjustment then you can place one fiducial in the sphere’s center, one at the sphere’s boundary and copy-paste this code snippet in the Python console: https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#How_to_define.2Fedit_a_circular_region_of_interest_in_a_slice_viewer.3F
You can make out a Slicer module from these code snippets (and anything else you need to do in your workflow) - see tutorials here.
thank you for your help! do you know how to calculate the center of a 2d circle segmentation and get a center point?
thank you very much! works good but i can´t remove the circle once it´s set. How can i remove it?
You can use Segment Statistics module to get bounding box center and size. You can use the GUI or this script: https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Get_size.2C_position.2C_and_orientation_of_each_segment
What kind of data do you work with? What would you like to achieve?
You can remove the node or hide it or not even create a model node for displaying the sphere.