# Mean radius per branch + plot radius along branch

**URL:** <https://discourse.slicer.org/t/mean-radius-per-branch-plot-radius-along-branch/20399>\
**Category:** VMTK\
**Created:** [October 28, 2021, 7:35am UTC](https://discourse.slicer.org/t/mean-radius-per-branch-plot-radius-along-branch/20399 "2021-10-28T07:35:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ames](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ames/32/8989_2.png) [@ames](https://discourse.slicer.org/u/ames)\
**Post date:** [October 28, 2021, 7:35am UTC](https://discourse.slicer.org/t/mean-radius-per-branch-plot-radius-along-branch/20399/1 "2021-10-28T07:35:24Z")

</div>

Dear all,

I am processing a surface model of the LIMA-LAD bypass in VMTK. I managed to split the domain in separate regions using VMTKBranchExtractor and VMTKBranchClipper, as shown in the figure. For each branch I want to compute its length and its mean radius and I would like to plot the radius along the length of each branch. Using VMTKBranchGeometry I can obtain the length of each branch, but I can’t find how to obtain the radius values for each branch separately.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/a/ea7572ce8d6f17f2e37cf39fa96486e5705074c4.png)

Can someone help me with either using VMTK functions or working with VTK PolyData in obtaining the radius for each branch? I am developing my workflow in Python

Thanks in advance for any suggestions!

---

<div class="post-metadata">

**Author:** ![kayarre](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/kayarre/32/3606_2.png) [@kayarre](https://discourse.slicer.org/u/kayarre)\
**Post date:** [November 4, 2021, 9:02pm UTC](https://discourse.slicer.org/t/mean-radius-per-branch-plot-radius-along-branch/20399/2 "2021-11-04T21:02:10Z")

</div>

I have thought about this. The solution I came up with is to divide the volume of the region by the centerline and that would give then average area of the vessel.

steps would be:

- extract each vessel region
- close the surface and compute the volume (straight forward for triangular surface mesh)
- extract the vessel region centerline
- calculate the length of vessel centerline
- divide volume by the centerline length and viola average vessel area.

Another thing you could do:  
The centerlines already have the radius values so convert the centerlines to a a graph and split the network at the junction locations. then plot each centerline.

---

<div class="post-metadata">

**Author:** ![ames](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ames/32/8989_2.png) [@ames](https://discourse.slicer.org/u/ames)\
**Post date:** [November 10, 2021, 3:23pm UTC](https://discourse.slicer.org/t/mean-radius-per-branch-plot-radius-along-branch/20399/3 "2021-11-10T15:23:09Z")

</div>

Thanks Kurt for your suggestions, interesting approach! I managed to read the VTP-files in Python and get the desired output.
