Difference between revisions of "Documentation/Nightly/ScriptRepository"

From Slicer Wiki
Jump to: navigation, search
Line 8: Line 8:
 
* [https://subversion.assembla.com/svn/slicerrt/trunk/SlicerRt/sandbox/FillRoiModule/FillRoi.py 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.
 
* [https://subversion.assembla.com/svn/slicerrt/trunk/SlicerRt/sandbox/FillRoiModule/FillRoi.py 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.
  
==Registration==
+
=Community-contributed examples=
  
==Quantification==
+
Copy-paste the .py file contents into Python console.
 
 
=Community-contributed examples=
 
  
 
==Capture==
 
==Capture==
Line 18: Line 16:
 
   img = qt.QPixmap.grabWidget(slicer.util.mainWindow()).toImage()
 
   img = qt.QPixmap.grabWidget(slicer.util.mainWindow()).toImage()
 
   img.save('c:/tmp/test.png')
 
   img.save('c:/tmp/test.png')
* Rotating3dViewCapture: Capture a video of the scene rotating in the 3D view
+
* [https://subversion.assembla.com/svn/slicerrt/trunk/SlicerRt/sandbox/CaptureRotationVideo/CaptureRotationVideo.py CaptureRotationVideo.py]: Capture a video of the scene rotating in the 3D view

Revision as of 22:42, 2 August 2013

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')