# VMTK

**URL:** https://discourse.slicer.org/c/community/vmtk/28.md

[Latest](https://discourse.slicer.org/latest.md) · [Categories](https://discourse.slicer.org/categories.md) · [Tags](https://discourse.slicer.org/tags.md)

---

## [About the VMTK category](https://discourse.slicer.org/t/about-the-vmtk-category/13977)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Replies:** 0\
**Last updated:** [October 10, 2020, 6:03pm UTC](https://discourse.slicer.org/t/about-the-vmtk-category/13977 "2020-10-10T18:03:56Z")

</div>

This is the new home of the Vascular Modeling Toolkit (VMTK) community. It replaces the old VMTK Google Groups. VMTK is an open source project where people from all over the world can contribute their work, with everyon…

---

## [How to compute bifurcation angles in Slicer?](https://discourse.slicer.org/t/how-to-compute-bifurcation-angles-in-slicer/25577)

<div class="topic-metadata">

**Author:** [@tim](https://discourse.slicer.org/u/tim)\
**Replies:** 2\
**Last updated:** [September 4, 2026, 7:39pm UTC](https://discourse.slicer.org/t/how-to-compute-bifurcation-angles-in-slicer/25577 "2026-09-04T19:39:48Z")

</div>

Hi, my goal is to compute centerlines, diameters and bifurcation angles of a vascular tree using Slicer and its Python interactor. I managed to compute both centerlines and diameters using the vmtk scripted modules. H…

---

## [Automatation of Centerline](https://discourse.slicer.org/t/automatation-of-centerline/30318)

<div class="topic-metadata">

**Author:** [@Charlie\_Hayward](https://discourse.slicer.org/u/Charlie_Hayward)\
**Replies:** 3\
**Last updated:** [May 25, 2026, 1:40pm UTC](https://discourse.slicer.org/t/automatation-of-centerline/30318 "2026-05-25T13:40:13Z")

</div>

Hi all, I am looking to automate the vmtkcenterlines function in order to be able to run it on a server. It seems that my option is to have open profiles and use seed selector. This causes an issue because I need the ent…

---

## [Create centerlines in multiple tubes?](https://discourse.slicer.org/t/create-centerlines-in-multiple-tubes/46585)

<div class="topic-metadata">

**Author:** [@Morgenstern](https://discourse.slicer.org/u/Morgenstern)\
**Replies:** 1\
**Last updated:** [March 26, 2026, 10:15pm UTC](https://discourse.slicer.org/t/create-centerlines-in-multiple-tubes/46585 "2026-03-26T22:15:46Z")

</div>

Hey, I have a structure consisting of many closed, not connected tubes. I would like to know if it is possible to detect the centerlines of multiple tubes at once. I was only able to create the centerline for one tube at…

---

## [Regarding radius of centerline curve](https://discourse.slicer.org/t/regarding-radius-of-centerline-curve/46113)

<div class="topic-metadata">

**Author:** [@Mudrika](https://discourse.slicer.org/u/Mudrika)\
**Replies:** 2\
**Last updated:** [February 11, 2026, 12:09pm UTC](https://discourse.slicer.org/t/regarding-radius-of-centerline-curve/46113 "2026-02-11T12:09:24Z")

</div>

Hello everyone! I am extracting centerline curves from a 3D model of coronary arteries and further through centerline quantiifcation, radius of the arteries is calculated. Can someone please tell, is it the average radi…

---

## [How to get metrics for centerline pieces?](https://discourse.slicer.org/t/how-to-get-metrics-for-centerline-pieces/44252)

<div class="topic-metadata">

**Author:** [@abitrolly](https://discourse.slicer.org/u/abitrolly)\
**Replies:** 5\
**Last updated:** [August 31, 2025, 1:56pm UTC](https://discourse.slicer.org/t/how-to-get-metrics-for-centerline-pieces/44252 "2025-08-31T13:56:37Z")

</div>

How to split extracted centerline into pieces to get curvature, torsion and tortuosity for each piece? I feel like I miss something obvious, but after hours of trying I haven’t found how to do this through UI. If it is …

---

## [Dicom images fail to read](https://discourse.slicer.org/t/dicom-images-fail-to-read/43765)

<div class="topic-metadata">

**Author:** [@MLPPD](https://discourse.slicer.org/u/MLPPD)\
**Replies:** 6\
**Last updated:** [July 21, 2025, 7:49pm UTC](https://discourse.slicer.org/t/dicom-images-fail-to-read/43765 "2025-07-21T19:49:07Z")

</div>

Hello all, I’m a new user of VMTK, trying to read in a set of processed DICOM images with the command “vmtkimagereader -ifile C:\\Users\\Admin\\Documents\\s0.5-10\\1 -f dicom”. When I do so, it produces the following error: …

---

## [Mapping and patching error in VMTK](https://discourse.slicer.org/t/mapping-and-patching-error-in-vmtk/43002)

<div class="topic-metadata">

**Author:** [@marina\_de\_santis](https://discourse.slicer.org/u/marina_de_santis)\
**Replies:** 0\
**Last updated:** [May 19, 2025, 1:39pm UTC](https://discourse.slicer.org/t/mapping-and-patching-error-in-vmtk/43002 "2025-05-19T13:39:29Z")

</div>

Hello everyone, I’m having some trouble with the mapping and patching tutorial. I’ve followed all the steps, but at the end when I try to visualize the plane and angular subdivision, the grid shows some holes. I’ve trie…

---

## [How does automatic endpoint detection work in VMTK Slicer Extension?](https://discourse.slicer.org/t/how-does-automatic-endpoint-detection-work-in-vmtk-slicer-extension/42752)

<div class="topic-metadata">

**Author:** [@bfosso](https://discourse.slicer.org/u/bfosso)\
**Replies:** 2\
**Last updated:** [April 30, 2025, 10:55pm UTC](https://discourse.slicer.org/t/how-does-automatic-endpoint-detection-work-in-vmtk-slicer-extension/42752 "2025-04-30T22:55:11Z")

</div>

Hi, the title pretty much says it all. I am wondering how endpoints are ‘auto-detected’ in the ExtractCenterline extension module to Slicer. It seems to work really well and I am curious how it is done. I Googled for an…

---

## [SlicerVMTK not building for SlicerPreview on cdash](https://discourse.slicer.org/t/slicervmtk-not-building-for-slicerpreview-on-cdash/42605)

<div class="topic-metadata">

**Author:** [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Replies:** 6\
**Last updated:** [April 18, 2025, 2:37pm UTC](https://discourse.slicer.org/t/slicervmtk-not-building-for-slicerpreview-on-cdash/42605 "2025-04-18T14:37:56Z")

</div>

SlicerVMTK is not building on cdash for SlicerPreview while it does build for SlicerStable. The error messages relate to the VMTK library itself. FYI, hoping for an investigation.

---

## [Mesh tube with non circular cross sections](https://discourse.slicer.org/t/mesh-tube-with-non-circular-cross-sections/41404)

<div class="topic-metadata">

**Author:** [@Paula\_Feldman](https://discourse.slicer.org/u/Paula_Feldman)\
**Replies:** 1\
**Last updated:** [April 3, 2025, 9:24pm UTC](https://discourse.slicer.org/t/mesh-tube-with-non-circular-cross-sections/41404 "2025-04-03T21:24:15Z")

</div>

Hi! I´m using vmtkCenterlineModeller and vmtkMarchingCubes to mesh a tubular centerline. Now instead of circular cross sections I have several radius values(a spline) for each centerline point. is there a vmtk script to …

---

## [Coronary arteries Asessment](https://discourse.slicer.org/t/coronary-arteries-asessment/41941)

<div class="topic-metadata">

**Author:** [@Alberto\_Menini](https://discourse.slicer.org/u/Alberto_Menini)\
**Replies:** 0\
**Last updated:** [March 3, 2025, 2:01pm UTC](https://discourse.slicer.org/t/coronary-arteries-asessment/41941 "2025-03-03T14:01:55Z")

</div>

Hello… Are there any advances in MSCT Coronary arteres asessment?. I mean asessment of coronary stenosis, thickness and remodelation wall analysis using Curved multiplanar reconstruction and calcium scoring (I know an o…

---

## [VMTK centerline merge does not work](https://discourse.slicer.org/t/vmtk-centerline-merge-does-not-work/36634)

<div class="topic-metadata">

**Author:** [@tomo-akiyama](https://discourse.slicer.org/u/tomo-akiyama)\
**Replies:** 2\
**Last updated:** [February 27, 2025, 8:35pm UTC](https://discourse.slicer.org/t/vmtk-centerline-merge-does-not-work/36634 "2025-02-27T20:35:34Z")

</div>

Hello, everyone I am encountering an issue while merging centerlines using VMTK, and I would appreciate some assistance. I used the “Extract Centerlines” module in 3D Slicer to extract centerlines from a cerebral vascu…

---

## [How to export centerline model as .vtp files in slicer](https://discourse.slicer.org/t/how-to-export-centerline-model-as-vtp-files-in-slicer/40871)

<div class="topic-metadata">

**Author:** [@pc666nice](https://discourse.slicer.org/u/pc666nice)\
**Replies:** 0\
**Last updated:** [December 27, 2024, 2:56pm UTC](https://discourse.slicer.org/t/how-to-export-centerline-model-as-vtp-files-in-slicer/40871 "2024-12-27T14:56:46Z")

</div>

Dear all: I used the python code that has been proposed by https://discourse.slicer.org/t/automatic-centerline/14829/23?u=pc666nice, but I can only generate the centerline curve, how I can generate centerline model and …

---

## [How to work on vmtk](https://discourse.slicer.org/t/how-to-work-on-vmtk/40582)

<div class="topic-metadata">

**Author:** [@Vivin](https://discourse.slicer.org/u/Vivin)\
**Replies:** 0\
**Last updated:** [December 9, 2024, 3:04pm UTC](https://discourse.slicer.org/t/how-to-work-on-vmtk/40582 "2024-12-09T15:04:03Z")

</div>

Greetings, first of all I am new to the 3D slicer I just got to know about the basics of segmentation. I have segmented the carotid artery now I want to make the blood flow passage by labelling inlet and outlet how to do…

---

## [vmtkbranchclipper error:vtkFloatArray](https://discourse.slicer.org/t/vmtkbranchclipper-error-vtkfloatarray/39854)

<div class="topic-metadata">

**Author:** [@SARA\_DOSSENA](https://discourse.slicer.org/u/SARA_DOSSENA)\
**Replies:** 0\
**Last updated:** [October 25, 2024, 3:28am UTC](https://discourse.slicer.org/t/vmtkbranchclipper-error-vtkfloatarray/39854 "2024-10-25T03:28:39Z")

</div>

Hi! I’m trying to follow the guide ‘Mapping and Patching’ on vmtk (Mapping and Patching | vmtk - the Vascular Modelling Toolkit). When I run the the code 'vmtkbranchclipper -ifile aorta.vtp -centerlinesfile aorta\_cl.v…

---

## [Unable to factor lineal system](https://discourse.slicer.org/t/unable-to-factor-lineal-system/39607)

<div class="topic-metadata">

**Author:** [@Sofia\_Gonzalez](https://discourse.slicer.org/u/Sofia_Gonzalez)\
**Replies:** 3\
**Last updated:** [October 15, 2024, 11:36pm UTC](https://discourse.slicer.org/t/unable-to-factor-lineal-system/39607 "2024-10-15T23:36:10Z")

</div>

Hello everyone, I’m trying to compute the centerline of a carotid and it’s a .stil file. Someone knows why is saying that error? Is because of the mesh?

---

## [Unable to Install VMTK Using Conda or Binary](https://discourse.slicer.org/t/unable-to-install-vmtk-using-conda-or-binary/34749)

<div class="topic-metadata">

**Author:** [@adhar](https://discourse.slicer.org/u/adhar)\
**Replies:** 1\
**Last updated:** [October 9, 2024, 8:10am UTC](https://discourse.slicer.org/t/unable-to-install-vmtk-using-conda-or-binary/34749 "2024-10-09T08:10:01Z")

</div>

Hello folks, I am trying to install vmtk 1.5 in order to run some custom Pypes scripts. I was previously able to use conda to install an earlier version, however, after uninstalling the previous version, no matter what …

---

## [Inverted growth ratio in Boundary Layer generation](https://discourse.slicer.org/t/inverted-growth-ratio-in-boundary-layer-generation/36857)

<div class="topic-metadata">

**Author:** [@fil\_ita](https://discourse.slicer.org/u/fil_ita)\
**Replies:** 1\
**Last updated:** [September 23, 2024, 9:01pm UTC](https://discourse.slicer.org/t/inverted-growth-ratio-in-boundary-layer-generation/36857 "2024-09-23T21:01:07Z")

</div>

Good morning, I am trying to use VMTK to genera the boundary layer of some TPMS geometries, as it is the only software that seems to have a good BL creation algorithm. However, I have noticed that along my geometry, th…

---

## [Flat inlet/outlet](https://discourse.slicer.org/t/flat-inlet-outlet/38098)

<div class="topic-metadata">

**Author:** [@iketomomaya](https://discourse.slicer.org/u/iketomomaya)\
**Replies:** 0\
**Last updated:** [August 28, 2024, 8:42pm UTC](https://discourse.slicer.org/t/flat-inlet-outlet/38098 "2024-08-28T20:42:06Z")

</div>

Dear all, It might be a long shot, but we are facing some issue with VMTK where the inlet/outlet surface is not flat even with flow extensions. For example, even with simple cylinder, we can see that normal vector is no…

---

## [Extract centerline from the hollow vessels](https://discourse.slicer.org/t/extract-centerline-from-the-hollow-vessels/37245)

<div class="topic-metadata">

**Author:** [@Djoumessi](https://discourse.slicer.org/u/Djoumessi)\
**Replies:** 2\
**Last updated:** [August 4, 2024, 4:49am UTC](https://discourse.slicer.org/t/extract-centerline-from-the-hollow-vessels/37245 "2024-08-04T04:49:41Z")

</div>

Dear all, I don’t know if this subject has already been dealt with here, but I’ve read a lot of answers and haven’t found one that satisfies me. In fact I want to extract the centerline of a deformed hollow tube. but t…

---

## [VMTK Mapping and Patching Error](https://discourse.slicer.org/t/vmtk-mapping-and-patching-error/37684)

<div class="topic-metadata">

**Author:** [@Michael\_C](https://discourse.slicer.org/u/Michael_C)\
**Replies:** 0\
**Last updated:** [August 3, 2024, 3:13pm UTC](https://discourse.slicer.org/t/vmtk-mapping-and-patching-error/37684 "2024-08-03T15:13:52Z")

</div>

Dear all, I am trying to map the surface of an aortic arch (in a .vtp format, as acquired from a SimVascular Simulation) onto the same parametric space, using VMTK’s Mapping and Patching. The splitting and grouping see…

---

## [Seeking Clarification on VMTK Level Set Segmentation Parameters and Behavior](https://discourse.slicer.org/t/seeking-clarification-on-vmtk-level-set-segmentation-parameters-and-behavior/37307)

<div class="topic-metadata">

**Author:** [@tuingc159](https://discourse.slicer.org/u/tuingc159)\
**Replies:** 0\
**Last updated:** [July 10, 2024, 2:47pm UTC](https://discourse.slicer.org/t/seeking-clarification-on-vmtk-level-set-segmentation-parameters-and-behavior/37307 "2024-07-10T14:47:40Z")

</div>

Hi all, I am currently working with VMTK for level set segmentation on ultrasound data and have encountered several issues and questions regarding parameter adjustments and their impact. I implemented my workflow in Pyt…

---

## [Access to Error Metric during VMTK Level Set Evolution in Python](https://discourse.slicer.org/t/access-to-error-metric-during-vmtk-level-set-evolution-in-python/37306)

<div class="topic-metadata">

**Author:** [@tuingc159](https://discourse.slicer.org/u/tuingc159)\
**Replies:** 0\
**Last updated:** [July 10, 2024, 2:47pm UTC](https://discourse.slicer.org/t/access-to-error-metric-during-vmtk-level-set-evolution-in-python/37306 "2024-07-10T14:47:20Z")

</div>

Hi all, I have implemented the vmtkLevelSetSegmentation module in Python for my segmentation tasks using VMTK. During the evolution of level sets, I am interested in accessing the error metric (such as RMS error) to mon…

---

## [How to set Segmentation for a .stl while BranchClipper in VMTK?](https://discourse.slicer.org/t/how-to-set-segmentation-for-a-stl-while-branchclipper-in-vmtk/36747)

<div class="topic-metadata">

**Author:** [@gpu](https://discourse.slicer.org/u/gpu)\
**Replies:** 1\
**Last updated:** [July 1, 2024, 3:30pm UTC](https://discourse.slicer.org/t/how-to-set-segmentation-for-a-stl-while-branchclipper-in-vmtk/36747 "2024-07-01T15:30:24Z")

</div>

how to set Segmentation for a .stl while BranchClipper in VMTK? load a .stl file into 3D Slicer; Extract Centerlines by VMTK; while Branch Clipper, it’s not able to set the Segmentation which seems must be set. Thanks…

---

## ['Quit renderer' for a long time WITHOUT result after call 'vmtkcenterlines' after 'source vmtk\_env.sh' in Ubuntu](https://discourse.slicer.org/t/quit-renderer-for-a-long-time-without-result-after-call-vmtkcenterlines-after-source-vmtk-env-sh-in-ubuntu/36751)

<div class="topic-metadata">

**Author:** [@gpu](https://discourse.slicer.org/u/gpu)\
**Replies:** 0\
**Last updated:** [June 13, 2024, 9:11am UTC](https://discourse.slicer.org/t/quit-renderer-for-a-long-time-without-result-after-call-vmtkcenterlines-after-source-vmtk-env-sh-in-ubuntu/36751 "2024-06-13T09:11:24Z")

</div>

‘Quit renderer’ for a long time WITHOUT result after call ‘vmtkcenterlines’ after ‘source vmtk\_env.sh’ in Ubuntu. However, it’s very quick to Extract Centerlines in 3D Slicer with VMTK extention with the same .stl file …

---

## [Issue with VMTK in 3D Slicer C++ Loadable Plugin - BranchClipper Build](https://discourse.slicer.org/t/issue-with-vmtk-in-3d-slicer-c-loadable-plugin-branchclipper-build/36749)

<div class="topic-metadata">

**Author:** [@petit223](https://discourse.slicer.org/u/petit223)\
**Replies:** 0\
**Last updated:** [June 13, 2024, 8:31am UTC](https://discourse.slicer.org/t/issue-with-vmtk-in-3d-slicer-c-loadable-plugin-branchclipper-build/36749 "2024-06-13T08:31:42Z")

</div>

Hi guys, I am currently developing a C++ loadable plugin for 3D Slicer and am incorporating VMTK into this project. I’ve successfully built and loaded plugins that do not use VMTK into Slicer without any issues. However…

---

## [ModuleNotFoundError: No module named 'vmtk' while running ./vmtkimagereader in Ubuntu](https://discourse.slicer.org/t/modulenotfounderror-no-module-named-vmtk-while-running-vmtkimagereader-in-ubuntu/36695)

<div class="topic-metadata">

**Author:** [@gpu](https://discourse.slicer.org/u/gpu)\
**Replies:** 0\
**Last updated:** [June 11, 2024, 12:18pm UTC](https://discourse.slicer.org/t/modulenotfounderror-no-module-named-vmtk-while-running-vmtkimagereader-in-ubuntu/36695 "2024-06-11T12:18:21Z")

</div>

ModuleNotFoundError: No module named ‘vmtk’ while running ./vmtkimagereader in Ubuntu, under dir: vmtk/build/Install/bin

---

## [RFC: Branch clipper module](https://discourse.slicer.org/t/rfc-branch-clipper-module/27234)

<div class="topic-metadata">

**Author:** [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Replies:** 13\
**Last updated:** [June 3, 2024, 8:21am UTC](https://discourse.slicer.org/t/rfc-branch-clipper-module/27234 "2024-06-03T08:21:09Z")

</div>

@coredevs @lassoan I hereby draw your attention to ‘Branch clipper’ module newly written in C++. It splits a bifurcated vascular segmentation using its centerline model as produced by ‘Extract centerline’ module. I be…

---

## [Is there a way to significantly reduce the time for calculating centerlines?](https://discourse.slicer.org/t/is-there-a-way-to-significantly-reduce-the-time-for-calculating-centerlines/36313)

<div class="topic-metadata">

**Author:** [@tomo-akiyama](https://discourse.slicer.org/u/tomo-akiyama)\
**Replies:** 10\
**Last updated:** [June 2, 2024, 11:46pm UTC](https://discourse.slicer.org/t/is-there-a-way-to-significantly-reduce-the-time-for-calculating-centerlines/36313 "2024-06-02T23:46:45Z")

</div>

Hello, everyone, I’m interested in smoothing the centerlines of the cerebral arteries. I segmented the MRA images and extracted the voxels of arteries. Using VTK’s marching cubes, I created a mesh and further performed…

[Next page](https://discourse.slicer.org/c/community/vmtk/28.md?page=1)
