Personal tools
  • Help

brains:Scripting Help

From NITRC Wiki

Jump to: navigation, search

Return to brains:MainPage


Contents

Loading TCL Wrapping

For fast starting BRAINS does not load the ITK wrapping. If the user wants the ITK wrapping then the BrainsGlue package needs to be loaded

 brains3% package require BrainsGlue


Finding an ITK Command

 brains3% info command itk*ImageFilterISS3*_New

If you know the name of the ITK filter and simply want to know what types have been wrapped the following command will work

 brains3% info command itk<FilterName>I*_New

If you want to what methods exist for an ITK filter, then use something similar to the following command. The exact instantiation will depend on the filter that you are interested in.

 brains3% set filter [itkBinaryThresholdImageFilterIF2IUC2_New]
 brains3% $filter Help

Custom BRAINS ITK Commands

itkBrainsTransformFileReader itkBrainsLabelStatisticsImageFilter itkBrainsScalarImageToHistogramGenerator

Executable Name

brains3% info nameofexecutable

Determine Shared Library Extension

brains3% info sharedlibextension

Display Objects in BRAINSTracer

  • Display an image
 brains3% BTSetITKImage $Image
  • Display an ROI
 brains% set tracer [vtkBRAINSTracer ListInstances]
 brains% $tracer LoadROI "Axial" "/tmp/tt.xml"
  • Display a Surface
 brains% set tracer [vtkBRAINSTracer ListInstances]
 brains% $tracer LoadSurface "/tmp/brain.vtk"


  • Display a Talairach Grid
 brains% set tracer [vtkBRAINSTracer ListInstances]
 brains% $tracer LoadTalairach "/tmp/brain_tal_box.vtk"

Determine Existing VTK/KWWidgets Objects in TCL

 brains3% set notebooks [vtkKWNotebook ListInstances]
Powered by MediaWiki
  • This page was last modified 18:33, 15 May 2010.
  • This page has been accessed 1,698 times.
  •