Modules:VMTKLevelSetSegmentation
Return to Slicer 3.6 Documentation
Module Name
VMTKLevelSetSegmentation
General Information
Module Type & Category
Type: Interactive Scripted Module
Category: Segmentation, Extension
Authors, Collaborators & Contact
- Author: Daniel Haehn, University of Heidelberg
- Acknowledgments: Luca Antiga, Mario Negri Institute; Steve Pieper, Isomics Inc.
- Contact: Daniel Haehn, haehn@bwh.harvard.edu
Module Description
This module provides the level-set segmentation process of the Vascular Modeling Toolkit (http://www.vmtk.org) in 3D Slicer. The process targets manual segmentation of tubular and blob-like structures.
Segmentation using level sets consists of an initialization and an evolution step. The initialization step involves the description of a starting model within a region of interest. In the evolution step this initial deformable model then gets inflated to match the contours of the targeted volume.
This work is part of the NA-MIC VMTK Collaboration.
Official project page: http://www.vmtk.org/Main/VmtkIn3DSlicer
Note: This module is deprecated. A successor is the VMTKEasyLevelSetSegmentation module which comes with an easier interface.
Usage
Installation
This module depends on the VmtkSlicerModule: see this page for installation notes.
The VMTKLevelSetSegmentation module can be installed using the 3D Slicer extension wizard. The extension is called VMTKLevelSetSegmentation.
When the module was successfully installed, it is available within 3D Slicer's module selector inside the category Vascular Modeling Toolkit.
Examples, Use Cases & Tutorials
The following screencasts/tutorials show different Use Cases of the VMTKLevelSetSegmentation module. In Use Case #2 and #3 the VMTKVesselEnhancement module is used as a pre-processing step.
- Use Case #1: Branch-by-Branch Segmentation of vessels in an arm using Colliding Fronts
![]() Watch the video.. |
A screencast showing the segmentation of vessels in an arm by using the Colliding Fronts algorithm for branch-by-branch segmentation. 3D seeding is used to place fiducials and the Undo function during the level-set segmentation process is explained as well. Watch the video here. |
- Use Case #2: Extraction of a Coronary Tree inside a cardiac blood-pool MRI by using only one fiducial point and Fast Marching
![]() Watch the video.. |
This screencast shows the extraction of a coronary tree inside a cardiac blood-pool MRI by using a combination of the VMTKVesselEnhancement and the VMTKLevelSetSegmentation modules. Only one fiducial point is used as a source point for the Fast Marching algorithm. Watch the video here. |
- Use Case #3: Segmentation of a Cerebral Aneurysm and its connecting vessels using Colliding Fronts and Fast Marching
![]() Watch the video.. |
The segmentation of a cerebral aneurysm and its connecting vessels is shown in this screencast. The VMTKVesselEnhancement module is used as a pre-processing step and the segmentation of the connecting vessels is performed on the vessel enhanced image with the Colliding Fronts algorithm. The segmentation of the actual aneurysm is performed on the original image. How to switch between these images during the initialization stage easily is explained as well. Watch the video here. |
Quick Tour of Features and Use
The VMTKLevelSetSegmentation has three panels.
- Parameters and I/O panel:
The VMTKLevelSetSegmentation module needs an Original Volume as an input else wise all functions are blocked. The optional Vessel Enhanced Volume can be used to get better initialization results and should be generated using the VMTKVesselEnhancement module.
The status label at the bottom displays information or currently valid actions to the user.
- Initialization panel:
The initialization panel offers different algorithms to perform an initial segmentation. Each initial segmentation can be performed on the Original Volume or on the Vessel Enhanced Volume (which might lead to the loss of image information).
The different initialization methods are described at the Welcome tab. The following methods exist:
- Colliding Fronts: by specifying a source and a target fiducial, single branches get segmented. Side-branches will be ignored and an optional threshold can be specified as well.
- Fast Marching: by specifying source and target fiducials, a region between those gets segmented. This works well for aneurysms. Target points are optional so by using one source fiducial a vessel tree can be extracted. Additionally an optional threshold can be specified.
- Isosurface: an isosurface connects pixels of a specified value.
- Threshold: global segmentation using a lower and an upper threshold.
- Seeds: 3x3 voxels around placed fiducial points get segmented to be able to extract small vascular parts.
After each initialization, a red colored model of the segmentation is displayed in the 3D render window.
The action buttons at the bottom offer the possibility to add another, undo the last or accept the current initialization to enter the evolution stage.
- Evolution panel:
The evolution panel offers different algorithms to inflate the initial level-set. The evolution can be performed based on the Original Volume or a Gradient Based Feature Image.
The different evolution methods are described at the Welcome tab. The following methods exist:
- Geodesic Active Contours
- Curves Evolution
The number of iterations can be specified for each evolution method. Additionally the actual evolving surface can be configured using the following weights:
- Propagation Scaling: a weight for the actual inflation of the evolving surface.
- Curvature Scaling: a weight for the importance of a curved shape of the evolving surface.
- Advection Scaling: a weight for the attraction of the gradient ridges to the evolving surface.
The higher the weight, the more important is its property during each iteration.
After evolution, a blue colored model of the segmentation is displayed in the 3D render window.
The action buttons at the bottom offer the possibility to undo the last or accept the current evolution.
All generated models, generated binary volumes (even of the last step) and used fiducials are saved as MRML nodes in the current MRML scene. Therefore these can be exported or saved.
Development
Dependencies
This module depends on the VMTK libraries which are provided in the VmtkSlicerModule. Therefore the VmtkSlicerModule has to be installed before the VMTKLevelSetSegmentation module can be used.
Known bugs & Usability issues
Follow this link to the VMTK in 3D Slicer bug tracker.
Source code & documentation
VMTKLevelSetSegmentation is a Python Scripted Module. It follows the conventions of the Model View Controller pattern of slicer modules. This implies the separation of logic and GUI.
The class SlicerVMTKLevelSetGUI derives from ScriptedModuleGUI and saves the current user interface state to its own MRML node. The MRML nodes of the used volume and model data are additionally attached. This allows different instances of the level set segmentation module to be run at the same time. The actual calls to the VMTK libraries are only performed in the class SlicerVMTKLevelSetLogic. Several general supporting functions, like handling interaction within 3D Slicer, converting coordinates, undoing and the merging of volumes are outsourced in the class SlicerVMTKLevelSetGUIHelper.
Not only does every initialization and evolution method of the level set segmentation module use its own GUI and widgets but it also provides individual user interaction within 3D Slicer. Separate classes derived from the interface SlicerVMTKAdvancedPageSkeleton were created for each method in order to ensure the possibility of maintenance and extension. The calls to the required methods like UpdateGUI() or UpdateMRML() get forwarded to each individual sub-class to support the modular design and enable code encapsulation.
Additional information and documentation concerning the VMTKLevelSetSegmentation module can be found in this student research project write-up.
The complete source code is available at a NITRC SVN repository.
More Information
Acknowledgment
This work was funded by a grant of the Thomas-Gessmann Foundation part of the Founder Federation for German Science.
References
- Antiga L, Piccinelli M, Botti L, Ene-Iordache B, Remuzzi A and Steinman DA. An image-based modeling framework for patient-specific computational hemodynamics. Medical and Biological Engineering and Computing, 46: 1097-1112, Nov 2008.
- D. Hähn. Integration of the vascular modeling toolkit in 3d slicer. SPL, 04 2009. Available online at http://www.spl.harvard.edu/publications/item/view/1728.
- Piccinelli M, Veneziani A, Steinman DA, Remuzzi A, Antiga L (2009) A framework for geometric analysis of vascular structures: applications to cerebral aneurysms. IEEE Trans Med Imaging. In press.