# Extraction of the centerlines

**URL:** <https://discourse.slicer.org/t/extraction-of-the-centerlines/1865>\
**Category:** Support\
**Tags:** vmtk, centerlines\
**Created:** [January 18, 2018, 8:43am UTC](https://discourse.slicer.org/t/extraction-of-the-centerlines/1865 "2018-01-18T08:43:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![giuseppe.cardone](https://avatars.discourse-cdn.com/v4/letter/g/a88e57/32.png) [@giuseppe.cardone](https://discourse.slicer.org/u/giuseppe.cardone)\
**Post date:** [January 18, 2018, 8:43am UTC](https://discourse.slicer.org/t/extraction-of-the-centerlines/1865/1 "2018-01-18T08:43:07Z")

</div>

Hi,  
I would like to extract the centerlines of a vein model that I obtained from the segmentation. When I fix the fiducial points the model of the centerline is empty, in fact if I see the information there is written that the centerline has 0 points. I use the version 4.8.1 of 3D slicer so the vmtk module change from the previous versions and I can’t find tutorial about this topic.  
Second question: If I want to import the centerline like a curve in Solidworks, Can I do it? If not, There is a way to record the coordinate x, y, z of the centerline?

Thank you.

---

<div class="post-metadata">

**Author:** ![giuseppe.cardone](https://avatars.discourse-cdn.com/v4/letter/g/a88e57/32.png) [@giuseppe.cardone](https://discourse.slicer.org/u/giuseppe.cardone)\
**Post date:** [January 18, 2018, 9:23am UTC](https://discourse.slicer.org/t/extraction-of-the-centerlines/1865/2 "2018-01-18T09:23:53Z")

</div>

PS  
I want to use the points in solidworks to recreate a sketch of the curve.

---

<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:** [January 18, 2018, 9:54pm UTC](https://discourse.slicer.org/t/extraction-of-the-centerlines/1865/3 "2018-01-18T21:54:27Z")

</div>

You can use `Extract skeleton` module to create a text file (id, x, y, z) file directly from a binary labelmap.

You can use VMTK extension’s Centerline Computation module for more complex shapes (for example for extracting complete vessel trees) or if you prefer to get output as a VTK polydata file.

---

<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:** [January 19, 2018, 6:07am UTC](https://discourse.slicer.org/t/extraction-of-the-centerlines/1865/4 "2018-01-19T06:07:04Z")

</div>

A post was split to a new topic: [DBS electrode reconstruction](https://discourse.slicer.org/t/dbs-electrode-reconstruction/1872)

---

<div class="post-metadata">

**Author:** ![giuseppe.cardone](https://avatars.discourse-cdn.com/v4/letter/g/a88e57/32.png) [@giuseppe.cardone](https://discourse.slicer.org/u/giuseppe.cardone)\
**Post date:** [January 19, 2018, 6:58am UTC](https://discourse.slicer.org/t/extraction-of-the-centerlines/1865/5 "2018-01-19T06:58:52Z")

</div>

I will try with extract skeleton!  
Thank you!
