Slicer 4.2
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Functions | Variables
sitkUtils Namespace Reference

Functions

def AddNodeToMRMLScene
def checkVolumeNodeType
def CloneSlicerNode
def CreateNewDisplayNode
def CreateNewVolumeNode
def EnsureRegistration
def GetSlicerITKReadWriteAddress
 This assumes that you have already loaded the 'MRHead1' data from the informatics module.
def PullFromSlicer
def PushBackground
def PushForeground
def PushLabel
def PushToSlicer
def removeOldMRMLNode
def slicerNotes_UnitTest
 The real work starts here.

Variables

list __sitk__VOLUME_TYPES__ = [ 'Scalar' ]

Function Documentation

def sitkUtils::AddNodeToMRMLScene (   newNode,
  nodeName = 'default',
  overwrite = False 
)

Definition at line 70 of file sitkUtils.py.

def sitkUtils::checkVolumeNodeType (   nodeType)
Raise an error if the node type is not a recognized volume node

Definition at line 29 of file sitkUtils.py.

def sitkUtils::CloneSlicerNode (   NodeName,
  NewNodeNamePrefix 
)
Create a new node in slicer by cloning
        from an exising node.

Definition at line 18 of file sitkUtils.py.

def sitkUtils::CreateNewDisplayNode (   nodeName = 'default')
Create a new node from scratch

Definition at line 45 of file sitkUtils.py.

def sitkUtils::CreateNewVolumeNode (   nodeName,
  nodeType = 'vtkMRMLScalarVolumeNode',
  overwrite = False 
)
Create a new node from scratch

Definition at line 36 of file sitkUtils.py.

def sitkUtils::EnsureRegistration ( )
This is a complete hack, but attempting to read
a dummy file with AddArchetypeVolume
has a side effect of registering
the MRMLImageIO file reader.

Definition at line 79 of file sitkUtils.py.

def sitkUtils::GetSlicerITKReadWriteAddress (   NodeName)

This assumes that you have already loaded the 'MRHead1' data from the informatics module.

This function will return the ITK FileIO formatted text address
        so that the image can be read directly from the MRML scene

Definition at line 7 of file sitkUtils.py.

def sitkUtils::PullFromSlicer (   NodeName)
Given a slicer MRML image name, return the SimpleITK
        image object.

Definition at line 88 of file sitkUtils.py.

def sitkUtils::PushBackground (   sitkImage,
  nodeName,
  overwrite = False 
)

Definition at line 148 of file sitkUtils.py.

def sitkUtils::PushForeground (   sitkImage,
  nodeName,
  overwrite = False 
)

Definition at line 151 of file sitkUtils.py.

def sitkUtils::PushLabel (   sitkImage,
  nodeName,
  overwrite = False 
)

Definition at line 154 of file sitkUtils.py.

def sitkUtils::PushToSlicer (   sitkimage,
  NodeName,
  compositeView = 0,
  overwrite = False 
)
Given a SimpleITK image, push it back to slicer for viewing
===============================================================
Viewing options
---------------
bit 0: Set as background image
bit 1: Set as foreground image
bit 2: Set as label image

Definition at line 97 of file sitkUtils.py.

def sitkUtils::removeOldMRMLNode (   node)
Overwrite a MRML node with the same name and class as the given node

Definition at line 54 of file sitkUtils.py.

def sitkUtils::slicerNotes_UnitTest ( )

The real work starts here.

Definition at line 160 of file sitkUtils.py.


Variable Documentation

list sitkUtils::__sitk__VOLUME_TYPES__ = [ 'Scalar' ]

Definition at line 27 of file sitkUtils.py.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines