# VMTK vessel centerline network extraction in Slicer

**URL:** <https://discourse.slicer.org/t/vmtk-vessel-centerline-network-extraction-in-slicer/11877>\
**Category:** Support\
**Tags:** feature\
**Created:** [June 5, 2020, 10:43am UTC](https://discourse.slicer.org/t/vmtk-vessel-centerline-network-extraction-in-slicer/11877 "2020-06-05T10:43:00Z")\
**Posts on this page:** 5\
**Page:** 2

<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:** [July 10, 2020, 5:42pm UTC](https://discourse.slicer.org/t/vmtk-vessel-centerline-network-extraction-in-slicer/11877/23 "2020-07-10T17:42:34Z")

</div>

Network extraction gets all branches. To search a path between two points in a network, you can use the method described here:

> [@VMTK Centerline Display by CenterlineId](https://discourse.slicer.org/t/vmtk-centerline-display-by-centerlineid/12418/5):
>
> Choose “Centerline curve” and not “Network curve” to extract centerline between selected endpoints. If you extract all the branches then you can use markups curves to find path between two arbitrary points: go to Markups module, drop two points of a curve on the tree, open Curve Settings section, choose Curve type → “Shortest distance on surface” and Model node → the tree model. See this video: [[Finding shortest path between two points in the bronchial tree] ](https://www.youtube.com/watch?v=UpfDP6ejCjg)

---

<div class="post-metadata">

**Author:** ![Deepa](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/deepa/32/5634_2.png) [@Deepa](https://discourse.slicer.org/u/Deepa)\
**Post date:** [July 11, 2020, 1:52am UTC](https://discourse.slicer.org/t/vmtk-vessel-centerline-network-extraction-in-slicer/11877/24 "2020-07-11T01:52:29Z")

</div>

Thanks a lot for the response. I would like to know if there is a way to remove a branch in the network model by selecting an endpoint and deleting it .

---

<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:** [July 11, 2020, 3:38am UTC](https://discourse.slicer.org/t/vmtk-vessel-centerline-network-extraction-in-slicer/11877/25 "2020-07-11T03:38:08Z")

</div>

If you choose the curve hierarchy representation of the network then you have full control over each point of each branch: you can edit each individual point or remove each branch.

What would you like to achieve?

---

<div class="post-metadata">

**Author:** ![Deepa](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/deepa/32/5634_2.png) [@Deepa](https://discourse.slicer.org/u/Deepa)\
**Post date:** [July 11, 2020, 4:11am UTC](https://discourse.slicer.org/t/vmtk-vessel-centerline-network-extraction-in-slicer/11877/26 "2020-07-11T04:11:22Z")

</div>

> [@lassoan](#):
>
> What would you like to achieve?

 ![Untitled](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/9/a9bc6d70aa56b0c85e0423bf0dfd917e3840951a.png)

Endpoint(glyph) in one of the branches is removed using `Delete point`. Deleting this endpoin has updated the centerline model automatically after hitting apply but the network model has not been updated. I will like to achieve an updated network model(and results displayed in quantification table) as well.

> [@lassoan](#):
>
> If you choose the curve hierarchy representation of the network then you have full control over each point of each branch: you can edit each individual point or remove each branch.

Thank you.  
I could use the hierarchy representation to remove individual branches in the network model. But this doesn’t help in obtaining the corresponding update (i.e deletion of the values in the table) in the quantification results.

---

<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:** [July 11, 2020, 6:02pm UTC](https://discourse.slicer.org/t/vmtk-vessel-centerline-network-extraction-in-slicer/11877/27 "2020-07-11T18:02:18Z")

</div>

You could write a small script that removes rows from the table that don’t have corresponding markup curve. You can get list of children nodes from the subject hierarchy node and the node has the cell index in a custom attribute. You could collect all the indices and create a new properties table, where you would only include those rows that have its index in the list.

[Previous page](https://discourse.slicer.org/t/vmtk-vessel-centerline-network-extraction-in-slicer/11877.md?page=1)
