I want to branch extract(remove)

I am using Python and would like to remove the short branches from the aorta in the image below. My goal is to obtain a clean, tubular representation of the aorta. The purpose is to eliminate noise in order to calculate the cross-sectional area of the aorta in the Python code. Below is the current implementation, which includes the centerline and curved lines.

As far as I know, the branch clipper module is not yet available for implementation in Python. What extensions or libraries would you recommend for this task? Any guidance on the methods to achieve this would be greatly appreciated.

image

You may instantiate the logic of any loadable module very simply in Python. In this case:

l = slicer.modules.branchclipper.logic()

Check the ‘Guided artery segmentation’ module of SlicerVMTK. It can output a result like below:

aorta_arch_clean

Hey did you ever figure out how to do this?