# SlicerVMTK Extract Centerlines Not Creating a Model

**URL:** https://discourse.slicer.org/t/slicervmtk-extract-centerlines-not-creating-a-model/29906
**Category:** Support
**Tags:** vmtk, vmtk-centerline
**Created:** [June 7, 2023, 10:15pm UTC](https://discourse.slicer.org/t/slicervmtk-extract-centerlines-not-creating-a-model/29906 "2023-06-07T22:15:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![darsh](https://avatars.discourse-cdn.com/v4/letter/d/73ab20/32.png) [@darsh](https://discourse.slicer.org/u/darsh)
#### Post date: [June 7, 2023, 10:15pm UTC](https://discourse.slicer.org/t/slicervmtk-extract-centerlines-not-creating-a-model/29906/1 "2023-06-07T22:15:58Z")

</div>

Hi, I started using Slicer recently to create a model of pulmonary arteries and arterioles. After creating my segmentation and cleaning it up, I’m trying to use the SlicerVMTK extension to find centerlines for each vessels. I set a couple of manual endpoints and then use the auto-detect feature. Then, I check the end of each vessel and make sure it has a node. In the Outputs tab, I create a new Centerline model under the ‘Tree’ tab. After applying, Slicer loads for a bit and my segmentation becomes opaque, but no centerlines ever appear. I have also tried different combinations of network curves, network models, tree curves, and tree models, and only the network curves populate centerlines. This doesn’t work for my project since I need to export the centerlines as a .vtp file, which the curves can’t do. Other times, the centerlines miss lots of vessels and branch at random places. Any help is appreciated!

---

<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: [June 7, 2023, 10:24pm UTC](https://discourse.slicer.org/t/slicervmtk-extract-centerlines-not-creating-a-model/29906/2 "2023-06-07T22:24:43Z")

</div>

> [@darsh](#):
>
> I set a couple of manual endpoints and then use the auto-detect feature

If you specify manual endpoints first then run auto-detect, then auto-detect will remove your manually specified endpoints.

Normally you either use auto-detect (and then delete or slightly move endpoints) or you specify endpoints manually.

> [@darsh](#):
>
> After applying, Slicer loads for a bit and my segmentation becomes opaque, but no centerlines ever appear.

If the endpoints are set reasonably then I don’t know why this would happen. We can have a look if you share your data or at least screenshots (make sure that no patient information is shared).

> [@darsh](#):
>
> I have also tried different combinations of network curves, network models, tree curves, and tree models, and only the network curves populate centerlines.

Network models and curves use the same method, so if you can get the result as curves then you can get the result as model as well. Make sure you select unique output nodes (don’t use the same node as input or centerline output or network output).

---

<div class="post-metadata">

### Author: ![darsh](https://avatars.discourse-cdn.com/v4/letter/d/73ab20/32.png) [@darsh](https://discourse.slicer.org/u/darsh)
#### Post date: [June 8, 2023, 12:44pm UTC](https://discourse.slicer.org/t/slicervmtk-extract-centerlines-not-creating-a-model/29906/3 "2023-06-08T12:44:01Z")

</div>

Here is are some pictures after adding endpoints and applying the centerlineModel:

 ![Screenshot 2023-06-08 at 8.23.08 AM](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/3/7302f0ffe22b88dd9971e385b03212cebc12d800.jpeg)

 ![extractCenterlineFrontalPic](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/f/8f387bde110c09e71f03628ecf9b47296c7ba980.jpeg)

 ![posteriorViewEndpointsAfterCenterlines](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/c/fc463a14a6a2138029c887d5299025e83eedfc28.jpeg)  
(I turned the opacity up to better see the endpoints here)

---

<div class="post-metadata">

### Author: ![darsh](https://avatars.discourse-cdn.com/v4/letter/d/73ab20/32.png) [@darsh](https://discourse.slicer.org/u/darsh)
#### Post date: [June 8, 2023, 12:44pm UTC](https://discourse.slicer.org/t/slicervmtk-extract-centerlines-not-creating-a-model/29906/4 "2023-06-08T12:44:31Z")

</div>

![leftViewAfterExtractCenterlines](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/c/5c82fd7536c38b74af8414db1be124f34baacc81.jpeg)

 ![rightViewAfterExtractCenterlines](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/5/f5a1bca65f68d3c00ec999698965df5c1f83d40d.jpeg)
