# How to use VMTK split the vessel tree's branch?

**URL:** <https://discourse.slicer.org/t/how-to-use-vmtk-split-the-vessel-trees-branch/15667>\
**Category:** Development\
**Created:** [January 26, 2021, 3:18am UTC](https://discourse.slicer.org/t/how-to-use-vmtk-split-the-vessel-trees-branch/15667 "2021-01-26T03:18:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![RayCui](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/raycui/32/4517_2.png) [@RayCui](https://discourse.slicer.org/u/RayCui)\
**Post date:** [January 26, 2021, 11:32am UTC](https://discourse.slicer.org/t/how-to-use-vmtk-split-the-vessel-trees-branch/15667/2 "2021-01-26T11:32:40Z")

</div>

What’s the difference of _vtkvmtkPolyDataNetworkExtraction()_ and _vtkvmtkPolyDataCenterlines()_ ?  
I find that:

1. speed. The _vtkvmtkPolyDataNetworkExtraction()_ is faster than _vtkvmtkPolyDataCenterlines()_ , and sametime, the number of points in centerline network is less than in centerline polydata. Does _vtkvmtkPolyDataNetworkExtraction()_ only contain the endpoints of each line？How can I resample the centerline network(vtkPolyData) to get the centerline volume that’s size is consistent with the original mask?

2. accuracy. _vtkvmtkPolyDataNetworkExtraction()_ seems to be less accurate than _vtkvmtkPolyDataCenterlines()_ in blood vessels. But the _vtkvmtkPolyDataCenterlines()_ can easily get the flying centerlines(out of vessel) on small blood veesels. So, I prefer the _vtkvmtkPolyDataNetworkExtraction()_.

flying centerlines example from [How to obtain the complete center lines using VMTK?](https://discourse.slicer.org/t/how-to-obtain-the-complete-center-lines-using-vmtk/14068)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/3/e38f3dca10a5f5264ce7b7359d85d99e44f1e795.jpeg) ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/0/f0227b2a98245e232e353dd0ea8c605952db3658.jpeg)

---

_[View the full topic](https://discourse.slicer.org/t/how-to-use-vmtk-split-the-vessel-trees-branch/15667)._
