# New module: Extract Centerline (in SlicerVMTK extension)

**URL:** <https://discourse.slicer.org/t/new-module-extract-centerline-in-slicervmtk-extension/12117>\
**Category:** Support\
**Tags:** feature\
**Created:** [June 19, 2020, 4:45pm UTC](https://discourse.slicer.org/t/new-module-extract-centerline-in-slicervmtk-extension/12117 "2020-06-19T16:45:30Z")\
**Posts on this page:** 20\
**Page:** 1

<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 19, 2020, 4:45pm UTC](https://discourse.slicer.org/t/new-module-extract-centerline-in-slicervmtk-extension/12117/1 "2020-06-19T16:45:30Z")

</div>

We added a completely new module that makes vessel (or airway or any other tree structure) centerline extraction much faster, flexible, and robust. It can quickly extract a network, determine branch endpoints automatically, allows editing of endpoints, computing centerlines, branches, and quantitative metrics (radius, curvature, torsion, etc). The new “Extract Centerline” module is available in SlicerVMTK extension for latest Slicer-4.11 release (it replaces the old “Centerline Computation” module).

Video demonstrating vessel segmentation, centerline extraction, centerline curve editing, curved planar reformatting (straightening), branch extraction and quantification:

[![](https://img.youtube.com/vi/yi07mjr3JeU/maxresdefault.jpg "New vessel branch extraction module for 3D Slicer") ](https://www.youtube.com/watch?v=yi07mjr3JeU)

The video uses these modules:

- SlicerVMTK extension (for “Extract Centerline” module)
- SegmentEditorExtraEffects extension (for “Local threshold” Segment Editor effect)
- Sandbox extension (for “Curved Planar Reformat” module)

---

<div class="post-metadata">

**Author:** ![Romeo\_Guevara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/romeo_guevara/32/3539_2.png) [@Romeo\_Guevara](https://discourse.slicer.org/u/Romeo_Guevara)\
**Post date:** [June 20, 2020, 2:56am UTC](https://discourse.slicer.org/t/new-module-extract-centerline-in-slicervmtk-extension/12117/2 "2020-06-20T02:56:25Z")

</div>

wonderful but the “sandbox” extension does not appear to me in the Slicer version 4.11.0 2020-06-17

---

<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 20, 2020, 3:00am UTC](https://discourse.slicer.org/t/new-module-extract-centerline-in-slicervmtk-extension/12117/3 "2020-06-20T03:00:19Z")

</div>

Sandbox extension shows up in Examples category. You only need that if you want to use the Curved Planar Reformatting module.

---

<div class="post-metadata">

**Author:** ![Romeo\_Guevara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/romeo_guevara/32/3539_2.png) [@Romeo\_Guevara](https://discourse.slicer.org/u/Romeo_Guevara)\
**Post date:** [June 21, 2020, 4:16am UTC](https://discourse.slicer.org/t/new-module-extract-centerline-in-slicervmtk-extension/12117/4 "2020-06-21T04:16:32Z")

</div>

Fabulous, the “curved planar reformat” and “extract centerline” modules are the best, but there is some way to make the “fudicial” that are placed in the “curved planar reformat” be recognized or appear in the centerline of the segmentation ?, this in order to have more accurate measurements, as there are cases in which I need to perform the centerline from the lowest renal artery and for that I rely on the “curved planar reformat” but the fudicials do not appear in the centerline of the segmentation to be able to use the automatic centerline modules with branch recognition.

---

<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 21, 2020, 4:59pm UTC](https://discourse.slicer.org/t/new-module-extract-centerline-in-slicervmtk-extension/12117/5 "2020-06-21T16:59:12Z")

</div>

These should be doable. Can you describe with a bit more details and sketches or screenshots about what exactly you would like to show and measure? Create a new topic.

---

<div class="post-metadata">

**Author:** ![jguy-aiu](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@jguy-aiu](https://discourse.slicer.org/u/jguy-aiu)\
**Post date:** [July 2, 2020, 6:09pm UTC](https://discourse.slicer.org/t/new-module-extract-centerline-in-slicervmtk-extension/12117/6 "2020-07-02T18:09:37Z")

</div>

I followed this video step by step and got stuck at making the centerline. I was unable to select a surface input in the Extract Centerline module. I believe it has something to do with the endpoints and centerline curve shown at [1:02](https://youtu.be/yi07mjr3JeU?t=62). Can anyone care to explain what step I’m missing? I’m using 3d Slicer 4.11.0-2020-06-27 on Windows 10 and I have MarkupsToModel, SegementEditorExtraEffects, and SlicerVMTK extentions installed.

 ![greyed_endpoints.PNG](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/3/b30ff185159f91e48ff8c6e30dd5f9eb2037c2cd.jpeg)  
 ![no_endpoints.PNG](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/b/1b62c77fc4f42feff6bd6d4acfdfe84219836da8.jpeg)  
 ![installed_extentions](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/b/db075b92a2b366e28ca7d432aca08e10447627d4.png)

---

<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 2, 2020, 6:54pm UTC](https://discourse.slicer.org/t/new-module-extract-centerline-in-slicervmtk-extension/12117/7 "2020-07-02T18:54:31Z")

</div>

I have been working on this module in the last couple of days. Please install the latest Slicer Preview Release (4.11.0-2020-06-30) and let me know if you run into any issues with this version.

---

<div class="post-metadata">

**Author:** ![jguy-aiu](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@jguy-aiu](https://discourse.slicer.org/u/jguy-aiu)\
**Post date:** [July 6, 2020, 5:01pm UTC](https://discourse.slicer.org/t/new-module-extract-centerline-in-slicervmtk-extension/12117/8 "2020-07-06T17:01:42Z")

</div>

I downloaded the 4.11.0-2020-07-04 preview release and now Extract Centerline is working as expected, thank you.

---

<div class="post-metadata">

**Author:** ![Andreas](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Andreas](https://discourse.slicer.org/u/Andreas)\
**Post date:** [July 7, 2020, 7:14pm UTC](https://discourse.slicer.org/t/new-module-extract-centerline-in-slicervmtk-extension/12117/9 "2020-07-07T19:14:03Z")

</div>

Dear Mr. Lasso,  
I would like to have tested the newest module with the newest 3D-Slicer version (4.11.0), unfortunately the program keeps crashing immediately after starting. I have reinstalled it several times and tested it on different computers (Windows 10).  
I hope you can help me.

best regards

---

<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 7, 2020, 7:15pm UTC](https://discourse.slicer.org/t/new-module-extract-centerline-in-slicervmtk-extension/12117/10 "2020-07-07T19:15:20Z")

</div>

Yes, sorry, today’s build is corrupted, it’ll be fixed by tomorrow. See more information and workaround here:

> [@Issues running latest preview on macOS/Windows 10](https://discourse.slicer.org/t/issues-running-latest-preview-on-macos-windows-10/12424/2):
>
> Sure, you can access previous releases by specifying a date or number of days to go back. See details [here](https://www.slicer.org/wiki/Documentation/Nightly/FAQ/General#Where_can_I_download_Slicer.3F). Good news: I can reproduce the problem, so it will be fixed by tomorrow.

---

<div class="post-metadata">

**Author:** ![Andreas](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Andreas](https://discourse.slicer.org/u/Andreas)\
**Post date:** [July 11, 2020, 5:42pm UTC](https://discourse.slicer.org/t/new-module-extract-centerline-in-slicervmtk-extension/12117/11 "2020-07-11T17:42:07Z")

</div>

Thank you very much, I can now open the latest version of the 3D-Slicer (4.11.0), but I cannot load my CT-dataset with this version, although I do nothing else than with the stable version (4.10.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 11, 2020, 5:57pm UTC](https://discourse.slicer.org/t/new-module-extract-centerline-in-slicervmtk-extension/12117/12 "2020-07-11T17:57:44Z")

</div>

Use the DICOM module to import and then load the CT. If it does not work then post the details (how did you try to load the data, what error message is displayed, etc) in a new topic.

---

<div class="post-metadata">

**Author:** ![cherrygirl](https://avatars.discourse-cdn.com/v4/letter/c/3d9bf3/32.png) [@cherrygirl](https://discourse.slicer.org/u/cherrygirl)\
**Post date:** [March 9, 2022, 6:45am UTC](https://discourse.slicer.org/t/new-module-extract-centerline-in-slicervmtk-extension/12117/13 "2022-03-09T06:45:14Z")

</div>

Excuse me, I have used this method to measure the vessel related morphology, and I feel it is very great. However, I have a question, does the radius measured here refer to the average radius of the vessel in this segment?

---

<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:** [March 13, 2022, 5:48am UTC](https://discourse.slicer.org/t/new-module-extract-centerline-in-slicervmtk-extension/12117/14 "2022-03-13T05:48:11Z")

</div>

I had a quick look at the code and it seems the radius in the “Centerline properties” table is computed as the mean of the maximum inscribed sphere radii in the branch.

---

<div class="post-metadata">

**Author:** ![cherrygirl](https://avatars.discourse-cdn.com/v4/letter/c/3d9bf3/32.png) [@cherrygirl](https://discourse.slicer.org/u/cherrygirl)\
**Post date:** [March 14, 2022, 6:50am UTC](https://discourse.slicer.org/t/new-module-extract-centerline-in-slicervmtk-extension/12117/16 "2022-03-14T06:50:28Z")

</div>

Thank you very much!

---

<div class="post-metadata">

**Author:** ![tsinesh](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tsinesh/32/16670_2.png) [@tsinesh](https://discourse.slicer.org/u/tsinesh)\
**Post date:** [July 14, 2022, 6:16pm UTC](https://discourse.slicer.org/t/new-module-extract-centerline-in-slicervmtk-extension/12117/17 "2022-07-14T18:16:40Z")

</div>

Hello to the community,

how are the “Curvature, Torsion, Tortuosity and StartPointPosition” defined in the “Extract Centerline” module? Which formula is the basis for the measured values?  
Unfortunately, I have not found this in my research.

Greetings  
Tamu

---

<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 14, 2022, 7:31pm UTC](https://discourse.slicer.org/t/new-module-extract-centerline-in-slicervmtk-extension/12117/18 "2022-07-14T19:31:05Z")

</div>

These are all computed by VMTK library. You can find detailed description of all the algorithms in [Luca Antiga’s PhD thesis](http://lantiga.github.io/media/AntigaPhDThesis.pdf).

---

<div class="post-metadata">

**Author:** ![mikbuch](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mikbuch/32/69022_2.png) [@mikbuch](https://discourse.slicer.org/u/mikbuch)\
**Post date:** [November 10, 2022, 4:32pm UTC](https://discourse.slicer.org/t/new-module-extract-centerline-in-slicervmtk-extension/12117/20 "2022-11-10T16:32:32Z")

</div>

Hi, it seems that “Extract Centerline” has many more options than “Centerline Computation”. Is there a new/updated video available somewhere, presenting the functionalities, and a minimal use-case of the “Extract Centerline” module? I found only a video where “Centerline Computation” is used: [Vessel segmentation and centerline extraction using 3D Slicer and VMTK - YouTube](https://youtu.be/caEuwJ7pCWs?t=137) . I also asked this question in the section comments of the YouTube video as some people having similar problems may first find the video, then this post/message on the forum.

In short, my problem is that I have what seems like a legitimate segment, but I was unable to generate/extract a centerline.

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [November 10, 2022, 4:47pm UTC](https://discourse.slicer.org/t/new-module-extract-centerline-in-slicervmtk-extension/12117/21 "2022-11-10T16:47:45Z")

</div>

> [@mikbuch](#):
>
> Is there a new/updated video available somewhere

Yes, there is this good video showing the workflow which works fine:

[![](https://img.youtube.com/vi/yi07mjr3JeU/maxresdefault.jpg "New vessel branch extraction module for 3D Slicer") ](https://www.youtube.com/watch?v=yi07mjr3JeU&t=91s)

---

<div class="post-metadata">

**Author:** ![mikbuch](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mikbuch/32/69022_2.png) [@mikbuch](https://discourse.slicer.org/u/mikbuch)\
**Post date:** [November 10, 2022, 6:00pm UTC](https://discourse.slicer.org/t/new-module-extract-centerline-in-slicervmtk-extension/12117/22 "2022-11-10T18:00:47Z")

</div>

Thank you Rudolf. I followed the video and everything worked for my segment. 👍

[Next page](https://discourse.slicer.org/t/new-module-extract-centerline-in-slicervmtk-extension/12117.md?page=2)
