# Different approach for centerline extraction

**URL:** https://discourse.slicer.org/t/different-approach-for-centerline-extraction/34036
**Category:** Development
**Tags:** python
**Created:** [January 30, 2024, 2:57am UTC](https://discourse.slicer.org/t/different-approach-for-centerline-extraction/34036 "2024-01-30T02:57:14Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![wesselk](https://avatars.discourse-cdn.com/v4/letter/w/ac8455/32.png) [@wesselk](https://discourse.slicer.org/u/wesselk)
#### Post date: [January 30, 2024, 5:13pm UTC](https://discourse.slicer.org/t/different-approach-for-centerline-extraction/34036/2 "2024-01-30T17:13:02Z")

</div>

From my understanding of the [documentation](https://slicer.readthedocs.io/en/latest/developer_guide/python_faq.html) and [this comment](https://discourse.slicer.org/t/slicer-no-main-window-python-script-in-windows-command-prompt-not-working/6481/25) from the man himself, yes unless you need the slicer modules. SlicerPython is like a prepackaged virtual environment, it includes vmtk and can be run from cmd but you’ll need to have the user interface open for access to slicer.app, slicer.mrmlScene, slicer.modules, slicer.moduleNames. You can also use other flags to help your automation routine like --no-main-window and --exit-after-startup.

---

_[View the full topic](https://discourse.slicer.org/t/different-approach-for-centerline-extraction/34036)._
