Segmentation

In [1]:
import JupyterNotebooksLib as slicernb

# Set image viewer size to 50% (fill half of a cell)
slicernb.AppWindow.setWindowSize(scale=0.5)
# Hide patient information from slice view
slicernb.showSliceViewAnnotations(False)

Automatic tumor segmentation from seeds

In [3]:
# Clear scene
slicer.mrmlScene.Clear(False)

# Load from local file
volume = slicer.util.loadVolume('data/MRBrainTumor1.nrrd')

# Lightbox view
slicernb.ViewLightboxDisplay("Red", rangeShrink=[45,50])
Out[3]: