# Binary segmentation mask to centerline polydata using a python script

**URL:** https://discourse.slicer.org/t/binary-segmentation-mask-to-centerline-polydata-using-a-python-script/36523
**Category:** Support
**Tags:** segmentation, centerlines, vmtk-centerline
**Created:** [May 31, 2024, 4:46pm UTC](https://discourse.slicer.org/t/binary-segmentation-mask-to-centerline-polydata-using-a-python-script/36523 "2024-05-31T16:46:04Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![RomanStriker](https://avatars.discourse-cdn.com/v4/letter/r/c37758/32.png) [@RomanStriker](https://discourse.slicer.org/u/RomanStriker)
#### Post date: [June 4, 2024, 10:53am UTC](https://discourse.slicer.org/t/binary-segmentation-mask-to-centerline-polydata-using-a-python-script/36523/5 "2024-06-04T10:53:12Z")

</div>

The code for saving the network curve with required folder structure is linked [here](https://discourse.slicer.org/t/save-a-tree-of-centerline-curves-to-json-files-using-python/36574/2).

---

_[View the full topic](https://discourse.slicer.org/t/binary-segmentation-mask-to-centerline-polydata-using-a-python-script/36523)._
