Create a new node in slicer by cloning from an exising node.
Create a new volume node from scratch.
This is a complete hack, but attempting to read a dummy file with AddArchetypeVolume has a side effect of registering the MRMLImageIO file reader.
This function will return the ITK FileIO formatted text address so that the image can be read directly from the MRML scene
Given a slicer MRML image name, return the SimpleITK image object.
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
Raise an error if the node type is not a recognized volume node.