Documentation/Labs/Segmentations
From Slicer Wiki
Revision as of 13:36, 15 July 2015 by Blowekamp (talk | contribs) (→Module selectors that expect a labelmap volume should be changed)
Home < Documentation < Labs < Segmentations
Contents
Motivation
See
- https://www.assembla.com/spaces/slicerrt/wiki/Segmentation
- http://www.na-mic.org/Wiki/index.php/2014_Project_Week_Breakout_Session:_Contours
- http://www.na-mic.org/Wiki/index.php/2015_Winter_Project_Week_Segmentations_Breakout
Features
- TODO
Design and implementation
- TODO
Code
Segmentation modules is part of the SlicerRT extension during development and will be moved to trunk when the developments are complete:
https://subversion.assembla.com/svn/slicerrt/branches/SegmentationObject/
Slicer core changes
https://github.com/SlicerRT/Slicer/tree/segmentation-node
Future features
- TODO
Issues
- TODO
Topics to discuss
- TODO
Notes
- TODO
vtkMRMLLabelMapVolumeNode integration
Slicer core updated, see this commit: https://github.com/Slicer/Slicer/commit/e4ffa1f6dcfafc1ca8f0015ecf02a0c23a8bd503
Module update instructions
Module selectors that expect a labelmap volume should be changed
From:
self.outputSelector.nodeTypes = ( ("vtkMRMLScalarVolumeNode"), "" ) self.outputSelector.addAttribute( "vtkMRMLScalarVolumeNode", "LabelMap", 1)
to
self.outputSelector.nodeTypes = ["vtkMRMLLabelMapVolumeNode"]
From:
self.outputSelector.nodeTypes = ( ("vtkMRMLScalarVolumeNode"), "" ) self.outputSelector.addAttribute( "vtkMRMLScalarVolumeNode", "LabelMap", 0)
to
self.outputSelector.nodeTypes = ["vtkMRMLScalarVolumeNode"]
- Note: This changes the value assigned to nodeTypes from a Tuple with 2 elements to a List with only one element. Additional information on the Tuple syntax can be found here: https://wiki.python.org/moin/TupleSyntax
CLI modules
CLI modules are not impacted. No change is needed in interface definition XML files or in the module implementation.