Hello, I am trying to find the radius of vessels using the extract centreline module. From reading previous posts on 3D slicer, I am able to find the radius of vessels if I create a centreline model using the following code:
c = getNode(‘Centerline model’)
points = slicer.util.arrayFromModelPoints(c)
radii = slicer.util.arrayFromModelPointData(c, ‘Radius’)
for i, radius in enumerate(radii):
print(“{0},{1}”.format(points[i],radius))
However, is there any way to do the same but for centreline curves? I see there’s the slicer.util.arrayFromMarkupsCurvePoints() function but no function to find the data from the curve if I’m correct?
My second question is how reliable are these radius values? Maximum accuracy is vital to my project and I was trying to verify if these are the correct radii but to no avail.