Difference between revisions of "Documentation/Labs/Segmentations"
From Slicer Wiki
(→Code) |
|||
Line 31: | Line 31: | ||
= Notes = | = Notes = | ||
* TODO | * TODO | ||
+ | |||
+ | = vtkMRMLLabelMapVolumeNode integration = | ||
+ | |||
+ | == 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"), "" ) | ||
+ | |||
+ | == CLI modules == | ||
+ | |||
+ | CLI modules are not impacted. No change is needed in interface definition XML files or in the module implementation. |
Revision as of 19:53, 29 May 2015
Home < Documentation < Labs < SegmentationsContents
Motivation
- TODO
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
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"), "" )
CLI modules
CLI modules are not impacted. No change is needed in interface definition XML files or in the module implementation.