# Vessel centerline extraction and metrics

**URL:** <https://discourse.slicer.org/t/vessel-centerline-extraction-and-metrics/34488>\
**Category:** Support\
**Created:** [February 23, 2024, 2:51am UTC](https://discourse.slicer.org/t/vessel-centerline-extraction-and-metrics/34488 "2024-02-23T02:51:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sampadsengupta](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sampadsengupta/32/69449_2.png) [@sampadsengupta](https://discourse.slicer.org/u/sampadsengupta)\
**Post date:** [February 23, 2024, 2:51am UTC](https://discourse.slicer.org/t/vessel-centerline-extraction-and-metrics/34488/1 "2024-02-23T02:51:33Z")

</div>

Hi,

I have CFD results for vascular flow which I am processing and want to correlate geometric factors with haemodynamic metrics.

Is it possible to:  
a) automate the computation of a centerline through a vessel for a large number of cases at once?  
b) Non-dimenionalise the centerline and then calculate the cross-sectional area along the centerline at regular intervals?

Many thanks in advance for all of your help!

Thanks

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 23, 2024, 2:54am UTC](https://discourse.slicer.org/t/vessel-centerline-extraction-and-metrics/34488/2 "2024-02-23T02:54:53Z")

</div>

Yes, you can compute centerline and get cross-sectional area using modules in VMTK extension.

All features of all modules are available in Python, so you can automate any processing using Puthon scripting.

---

<div class="post-metadata">

**Author:** ![sampadsengupta](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sampadsengupta/32/69449_2.png) [@sampadsengupta](https://discourse.slicer.org/u/sampadsengupta)\
**Post date:** [February 23, 2024, 12:26pm UTC](https://discourse.slicer.org/t/vessel-centerline-extraction-and-metrics/34488/3 "2024-02-23T12:26:10Z")

</div>

@lassoan Thank you for your response!

Could you possibly guide me in the direction of the code which would allow for calculating the cross-sectional area along the centerline? I have been using vmtk on PypePad but I want to transition to using it via scripting, especially since I need to work on it for a large dataset. Also, the vmtkcenterlinesections command continues to result in errors on PypePad, so ineed to try something else.

Thanks in advance!
