Documentation/Nightly/ScriptRepository

From Slicer Wiki
Revision as of 22:42, 2 August 2013 by Lasso (talk | contribs)
Jump to: navigation, search
Home < Documentation < Nightly < ScriptRepository


For the latest Slicer documentation, visit the read-the-docs.



Community-contributed modules

Segmentation

  • FillRoi.py: Use this module to fill a ROI with a constant value. It can be used after an automatic segmentation for removing certain regions of a scalar or labelmap volume.

Community-contributed examples

Copy-paste the .py file contents into Python console.

Capture

  • ScreenCapture: Capture the full Slicer screen into a file
 img = qt.QPixmap.grabWidget(slicer.util.mainWindow()).toImage()
 img.save('c:/tmp/test.png')