code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
from module_mixins import simpleVTKClassModuleBase import vtk import vtkdevide class imageBorderMask(simpleVTKClassModuleBase): def __init__(self, module_manager): simpleVTKClassModuleBase.__init__( self, module_manager, vtkdevide.vtkImageBorderMask(), 'Creating border mask.', ...
[ [ 1, 0, 0.0714, 0.0714, 0, 0.66, 0, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.1429, 0.0714, 0, 0.66, 0.3333, 665, 0, 1, 0, 0, 665, 0, 0 ], [ 1, 0, 0.2143, 0.0714, 0, ...
[ "from module_mixins import simpleVTKClassModuleBase", "import vtk", "import vtkdevide", "class imageBorderMask(simpleVTKClassModuleBase):\n\n def __init__(self, module_manager):\n simpleVTKClassModuleBase.__init__(\n self, module_manager,\n vtkdevide.vtkImageBorderMask(), 'Crea...
# $Id$ import fixitk as itk import gen_utils from module_base import ModuleBase import module_utils import module_utilsITK from module_mixins import ScriptedConfigModuleMixin class hessianDoG(ScriptedConfigModuleMixin, ModuleBase): """Calculates Hessian matrix of volume by convolution with second and cross de...
[ [ 1, 0, 0.0349, 0.0116, 0, 0.66, 0, 362, 0, 1, 0, 0, 362, 0, 0 ], [ 1, 0, 0.0465, 0.0116, 0, 0.66, 0.1667, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.0581, 0.0116, 0, ...
[ "import fixitk as itk", "import gen_utils", "from module_base import ModuleBase", "import module_utils", "import module_utilsITK", "from module_mixins import ScriptedConfigModuleMixin", "class hessianDoG(ScriptedConfigModuleMixin, ModuleBase):\n \"\"\"Calculates Hessian matrix of volume by convolutio...
# EmphysemaViewerFrame by Corine Slagboom & Noeska Smit # Description # # Based on SkeletonAUIViewerFrame: # Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. import cStringIO from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractor import wx # wxPython 2.8....
[ [ 1, 0, 0.0326, 0.0036, 0, 0.66, 0, 764, 0, 1, 0, 0, 764, 0, 0 ], [ 1, 0, 0.0362, 0.0036, 0, 0.66, 0.25, 201, 0, 1, 0, 0, 201, 0, 0 ], [ 1, 0, 0.0399, 0.0036, 0, 0....
[ "import cStringIO", "from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractor", "import wx", "if wx.Platform == \"__WXGTK__\":\n from external import PyAUI\n wx.aui = PyAUI\nelse:\n import wx.aui", " from external import PyAUI", " wx.aui = PyAUI", " import wx.aui", ...
class EmphysemaViewer: kits = ['vtk_kit'] cats = ['Viewers'] help = """Module to visualize lungemphysema from a CT-thorax scan and a lung mask. EmphysemaViewer consists of a volume rendering and two linked slice-based views; one with the original data and one with an emphysema overlay. The volume rende...
[ [ 3, 0, 0.5185, 1, 0, 0.66, 0, 628, 0, 0, 0, 0, 0, 0, 0 ], [ 14, 1, 0.0741, 0.037, 1, 0.7, 0, 190, 0, 0, 0, 0, 0, 5, 0 ], [ 14, 1, 0.1111, 0.037, 1, 0.7, 0.5, ...
[ "class EmphysemaViewer:\n kits = ['vtk_kit']\n cats = ['Viewers']\n help = \"\"\"Module to visualize lungemphysema from a CT-thorax scan and a lung mask.\n\n EmphysemaViewer consists of a volume rendering and two linked slice-based views; one with the original data and one with an emphysema overlay. The...
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. # --------------------------------------- # Edited by Corine Slagboom & Noeska Smit to add possibility of adding overlay to the sliceviewer and some special synching. # And by edited we mean mutilated :) from module_kits.vtk_...
[ [ 1, 0, 0.0137, 0.0017, 0, 0.66, 0, 901, 0, 1, 0, 0, 901, 0, 0 ], [ 1, 0, 0.0154, 0.0017, 0, 0.66, 0.2, 616, 0, 1, 0, 0, 616, 0, 0 ], [ 1, 0, 0.0172, 0.0017, 0, 0.6...
[ "from module_kits.vtk_kit.utils import DVOrientationWidget", "import operator", "import vtk", "import wx", "class SyncSliceViewers:\n \"\"\"Class to link a number of CMSliceViewer instances w.r.t.\n camera.\n\n FIXME: consider adding option to block certain slice viewers from\n participation. I...
from module_mixins import simpleVTKClassModuleBase import vtktud class imageKnutssonMapping(simpleVTKClassModuleBase): """This is the minimum you need to wrap a single VTK object. This __doc__ string will be replaced by the __doc__ string of the encapsulated VTK object, i.e. vtkStripper in this case. ...
[ [ 1, 0, 0.0526, 0.0526, 0, 0.66, 0, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.1053, 0.0526, 0, 0.66, 0.5, 328, 0, 1, 0, 0, 328, 0, 0 ], [ 3, 0, 0.6053, 0.8421, 0, 0.6...
[ "from module_mixins import simpleVTKClassModuleBase", "import vtktud", "class imageKnutssonMapping(simpleVTKClassModuleBase):\n \"\"\"This is the minimum you need to wrap a single VTK object. This\n __doc__ string will be replaced by the __doc__ string of the encapsulated\n VTK object, i.e. vtkStrippe...
import gen_utils from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import vtktud class MyGlyph3D(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, mod...
[ [ 1, 0, 0.0125, 0.0125, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.025, 0.0125, 0, 0.66, 0.1667, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0375, 0.0125, 0, 0...
[ "import gen_utils", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "import vtktud", "class MyGlyph3D(ScriptedConfigModuleMixin, ModuleBase):\n\n def __init__(self, module_manager):\n # initialise our base class\...
# $Id: module_index.py 1894 2006-02-23 08:55:45Z cpbotha $ class MyGaussian: kits = ['vtk_kit'] cats = ['User','Optic Flow'] keywords = ['gaussian', 'source']
[ [ 3, 0, 0.5625, 0.5, 0, 0.66, 0, 751, 0, 0, 0, 0, 0, 0, 0 ], [ 14, 1, 0.5, 0.125, 1, 0.87, 0, 190, 0, 0, 0, 0, 0, 5, 0 ], [ 14, 1, 0.625, 0.125, 1, 0.87, 0.5, ...
[ "class MyGaussian:\n kits = ['vtk_kit']\n cats = ['User','Optic Flow']\n keywords = ['gaussian', 'source']", " kits = ['vtk_kit']", " cats = ['User','Optic Flow']", " keywords = ['gaussian', 'source']" ]
# dummy __init__ so that this dir will be seen as package.
[]
[]
from module_mixins import simpleVTKClassModuleBase import vtktud class imageExtentUnionizer(simpleVTKClassModuleBase): """This is the minimum you need to wrap a single VTK object. This __doc__ string will be replaced by the __doc__ string of the encapsulated VTK object, i.e. vtkStripper in this case. ...
[ [ 1, 0, 0.0526, 0.0526, 0, 0.66, 0, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.1053, 0.0526, 0, 0.66, 0.5, 328, 0, 1, 0, 0, 328, 0, 0 ], [ 3, 0, 0.6053, 0.8421, 0, 0.6...
[ "from module_mixins import simpleVTKClassModuleBase", "import vtktud", "class imageExtentUnionizer(simpleVTKClassModuleBase):\n \"\"\"This is the minimum you need to wrap a single VTK object. This\n __doc__ string will be replaced by the __doc__ string of the encapsulated\n VTK object, i.e. vtkStrippe...
# $Id$ from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtktud class gaussianKernel(ScriptedConfigModuleMixin, ModuleBase): """First test of a gaussian implicit kernel $Revision: 1.1 $ """ def __init__(self, module_manager): ...
[ [ 1, 0, 0.0345, 0.0115, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.046, 0.0115, 0, 0.66, 0.25, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0575, 0.0115, 0, 0.6...
[ "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtktud", "class gaussianKernel(ScriptedConfigModuleMixin, ModuleBase):\n \"\"\"First test of a gaussian implicit kernel\n \n $Revision: 1.1 $\n \"\"\"\n\n def __init__(s...
from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import wx class myImageClip(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(self, module_manager) self._clipper = vtk.vtkImageClip()...
[ [ 1, 0, 0.0149, 0.0149, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0299, 0.0149, 0, 0.66, 0.2, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0448, 0.0149, 0, 0.6...
[ "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "import wx", "class myImageClip(ScriptedConfigModuleMixin, ModuleBase):\n def __init__(self, module_manager):\n ModuleBase.__init__(self, module_manager)\n\n s...
# $Id$ class simplestVTKExample: kits = ['vtk_kit'] cats = ['User'] class isolated_points_check: kits = ['vtk_kit'] cats = ['User'] class testModule: kits = ['vtk_kit'] cats = ['User']
[ [ 3, 0, 0.2667, 0.2, 0, 0.66, 0, 969, 0, 0, 0, 0, 0, 0, 0 ], [ 14, 1, 0.2667, 0.0667, 1, 0.03, 0, 190, 0, 0, 0, 0, 0, 5, 0 ], [ 14, 1, 0.3333, 0.0667, 1, 0.03, ...
[ "class simplestVTKExample:\n kits = ['vtk_kit']\n cats = ['User']", " kits = ['vtk_kit']", " cats = ['User']", "class isolated_points_check:\n kits = ['vtk_kit']\n cats = ['User']", " kits = ['vtk_kit']", " cats = ['User']", "class testModule:\n kits = ['vtk_kit']\n cats = ...
from module_mixins import simpleVTKClassModuleBase import vtktud class imageCopyPad(simpleVTKClassModuleBase): """This is the minimum you need to wrap a single VTK object. This __doc__ string will be replaced by the __doc__ string of the encapsulated VTK object, i.e. vtkStripper in this case. With th...
[ [ 1, 0, 0.0526, 0.0526, 0, 0.66, 0, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.1053, 0.0526, 0, 0.66, 0.5, 328, 0, 1, 0, 0, 328, 0, 0 ], [ 3, 0, 0.6053, 0.8421, 0, 0.6...
[ "from module_mixins import simpleVTKClassModuleBase", "import vtktud", "class imageCopyPad(simpleVTKClassModuleBase):\n \"\"\"This is the minimum you need to wrap a single VTK object. This\n __doc__ string will be replaced by the __doc__ string of the encapsulated\n VTK object, i.e. vtkStripper in thi...
from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtktud import wx class imageSepConvolution(ScriptedConfigModuleMixin, ModuleBase): """ lksajflksjdf """ def __init__(self, module_manager): # initialise our base class ...
[ [ 1, 0, 0.0132, 0.0132, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0263, 0.0132, 0, 0.66, 0.2, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0395, 0.0132, 0, 0.6...
[ "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtktud", "import wx", "class imageSepConvolution(ScriptedConfigModuleMixin, ModuleBase):\n \"\"\"\n lksajflksjdf\n \"\"\"\n \n def __init__(self, module_manage...
import gen_utils from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtktud class imageCurvatureMagnitude(ModuleBase, NoConfigModuleMixin): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_manag...
[ [ 1, 0, 0.0143, 0.0143, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.0286, 0.0143, 0, 0.66, 0.2, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0429, 0.0143, 0, 0.6...
[ "import gen_utils", "from module_base import ModuleBase", "from module_mixins import NoConfigModuleMixin", "import module_utils", "import vtktud", "class imageCurvatureMagnitude(ModuleBase, NoConfigModuleMixin):\n\n def __init__(self, module_manager):\n # initialise our base class\n Modul...
import gen_utils from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class DilateExample(ScriptedConfigModuleMixin, ModuleBase): """Performs a greyscale 3D dilation on the input. $Revision: 1.2 $ """ def __init__(self, module_...
[ [ 1, 0, 0.0116, 0.0116, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.0233, 0.0116, 0, 0.66, 0.2, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0349, 0.0116, 0, 0.6...
[ "import gen_utils", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "class DilateExample(ScriptedConfigModuleMixin, ModuleBase):\n\n \"\"\"Performs a greyscale 3D dilation on the input.\n \n $Revision: 1.2 $\n \"...
# $Id: module_index.py 1894 2006-02-23 08:55:45Z cpbotha $ class DilateExample: kits = ['vtk_kit'] cats = ['User','Cartilage3D']
[ [ 3, 0, 0.8, 0.6, 0, 0.66, 0, 481, 0, 0, 0, 0, 0, 0, 0 ], [ 14, 1, 0.8, 0.2, 1, 0.27, 0, 190, 0, 0, 0, 0, 0, 5, 0 ], [ 14, 1, 1, 0.2, 1, 0.27, 1, 533, 0...
[ "class DilateExample:\n kits = ['vtk_kit']\n cats = ['User','Cartilage3D']", " kits = ['vtk_kit']", " cats = ['User','Cartilage3D']" ]
from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase import vtk class simplestVTKExample(SimpleVTKClassModuleBase): """This is the minimum you need to wrap a single VTK object. This __doc__ string will be replaced by the __doc__ string of the encapsulated VTK object, i.e. vtkStripper in this ca...
[ [ 1, 0, 0.0455, 0.0455, 0, 0.66, 0, 67, 0, 1, 0, 0, 67, 0, 0 ], [ 1, 0, 0.0909, 0.0455, 0, 0.66, 0.5, 665, 0, 1, 0, 0, 665, 0, 0 ], [ 3, 0, 0.5227, 0.7273, 0, 0.66,...
[ "from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase", "import vtk", "class simplestVTKExample(SimpleVTKClassModuleBase):\n \"\"\"This is the minimum you need to wrap a single VTK object. This\n __doc__ string will be replaced by the __doc__ string of the encapsulated\n VTK object, i.e. vt...
# $Id$ from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtktud class cubicBCSplineKernel(ScriptedConfigModuleMixin, ModuleBase): """First test of a cubic B-Spline implicit kernel $Revision: 1.1 $ """ def __init__(self, module_manag...
[ [ 1, 0, 0.0333, 0.0111, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0444, 0.0111, 0, 0.66, 0.25, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0556, 0.0111, 0, 0....
[ "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtktud", "class cubicBCSplineKernel(ScriptedConfigModuleMixin, ModuleBase):\n \"\"\"First test of a cubic B-Spline implicit kernel\n \n $Revision: 1.1 $\n \"\"\"\n\n def...
import gen_utils from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import wx import vtk class myTubeFilter(ScriptedConfigModuleMixin, ModuleBase): """Simple demonstration of ScriptedConfigModuleMixin-based wrapping of a single VTK object. It would ...
[ [ 1, 0, 0.012, 0.012, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.0241, 0.012, 0, 0.66, 0.1667, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0361, 0.012, 0, 0.66...
[ "import gen_utils", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import wx", "import vtk", "class myTubeFilter(ScriptedConfigModuleMixin, ModuleBase):\n\n \"\"\"Simple demonstration of ScriptedConfigModuleMixin-based\n wrappin...
import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import math class BSplineRegistration(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(self, module_manager) ...
[ [ 1, 0, 0.0083, 0.0083, 0, 0.66, 0, 77, 0, 1, 0, 0, 77, 0, 0 ], [ 1, 0, 0.0165, 0.0083, 0, 0.66, 0.2, 452, 0, 1, 0, 0, 452, 0, 0 ], [ 1, 0, 0.0248, 0.0083, 0, 0.66,...
[ "import itk", "import module_kits.itk_kit as itk_kit", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import math", "class BSplineRegistration(ScriptedConfigModuleMixin, ModuleBase):\n def __init__(self, module_manager):\n ModuleBase.__init__(self, ...
# dumy __init__ so this directory can function as a package
[]
[]
# surfaceToDistanceField copyright (c) 2004 by Charl P. Botha cpbotha.net # $Id$ import gen_utils from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class surfaceToDistanceField(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_ma...
[ [ 1, 0, 0.0494, 0.0123, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.0617, 0.0123, 0, 0.66, 0.2, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0741, 0.0123, 0, 0.6...
[ "import gen_utils", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "class surfaceToDistanceField(ScriptedConfigModuleMixin, ModuleBase):\n\n def __init__(self, module_manager):\n # initialise our base class\n ...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import input_array_choice_mixin # need this for constants reload(input_array_choice_mixin) from input_array_...
[ [ 1, 0, 0.0485, 0.0097, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0583, 0.0097, 0, 0.66, 0.1429, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.068, 0.0097, 0, 0...
[ "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "import input_array_choice_mixin # need this for constants", "reload(input_array_choice_mixin)", "from input_array_choice_mixin import InputArrayChoiceMixin", "class warpPo...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class ICPTransform(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ...
[ [ 1, 0, 0.0543, 0.0109, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0652, 0.0109, 0, 0.66, 0.25, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0761, 0.0109, 0, 0....
[ "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "class ICPTransform(ScriptedConfigModuleMixin, ModuleBase):\n\n def __init__(self, module_manager):\n ModuleBase.__init__(self, module_manager)\n\n # this has no...
import gen_utils from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtk class appendPolyData(NoConfigModuleMixin, ModuleBase): _numInputs = 5 def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, ...
[ [ 1, 0, 0.0127, 0.0127, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.0253, 0.0127, 0, 0.66, 0.2, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.038, 0.0127, 0, 0.66...
[ "import gen_utils", "from module_base import ModuleBase", "from module_mixins import NoConfigModuleMixin", "import module_utils", "import vtk", "class appendPolyData(NoConfigModuleMixin, ModuleBase):\n _numInputs = 5\n \n def __init__(self, module_manager):\n # initialise our base class\n ...
import gen_utils from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class imageGreyDilate(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_mana...
[ [ 1, 0, 0.0139, 0.0139, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.0278, 0.0139, 0, 0.66, 0.2, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0417, 0.0139, 0, 0.6...
[ "import gen_utils", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "class imageGreyDilate(ScriptedConfigModuleMixin, ModuleBase):\n\n def __init__(self, module_manager):\n # initialise our base class\n Modu...
from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class ShephardMethod(ScriptedConfigModuleMixin, ModuleBase): """Apply Shepard Method to input. """ def __init__(self, module_manager): # initialise our base class ...
[ [ 1, 0, 0.0137, 0.0137, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0274, 0.0137, 0, 0.66, 0.25, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0411, 0.0137, 0, 0....
[ "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "class ShephardMethod(ScriptedConfigModuleMixin, ModuleBase):\n\n \"\"\"Apply Shepard Method to input.\n \n \"\"\"\n \n def __init__(self, module_manager):\n ...
import gen_utils from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtk class polyDataNormals(NoConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_manager) ...
[ [ 1, 0, 0.0156, 0.0156, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.0312, 0.0156, 0, 0.66, 0.2, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0469, 0.0156, 0, 0.6...
[ "import gen_utils", "from module_base import ModuleBase", "from module_mixins import NoConfigModuleMixin", "import module_utils", "import vtk", "class polyDataNormals(NoConfigModuleMixin, ModuleBase):\n def __init__(self, module_manager):\n # initialise our base class\n ModuleBase.__init_...
import gen_utils from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import wx import vtk class imageFlip(NoConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_manage...
[ [ 1, 0, 0.0145, 0.0145, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.029, 0.0145, 0, 0.66, 0.1667, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0435, 0.0145, 0, 0...
[ "import gen_utils", "from module_base import ModuleBase", "from module_mixins import NoConfigModuleMixin", "import module_utils", "import wx", "import vtk", "class imageFlip(NoConfigModuleMixin, ModuleBase):\n\n \n def __init__(self, module_manager):\n # initialise our base class\n M...
import gen_utils from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class imageGreyErode(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_mana...
[ [ 1, 0, 0.0139, 0.0139, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.0278, 0.0139, 0, 0.66, 0.2, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0417, 0.0139, 0, 0.6...
[ "import gen_utils", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "class imageGreyErode(ScriptedConfigModuleMixin, ModuleBase):\n\n def __init__(self, module_manager):\n # initialise our base class\n Modul...
import gen_utils from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk OPS = ['add', 'subtract', 'multiply', 'divide', 'invert', 'sin', 'cos', 'exp', 'log', 'abs', 'sqr', 'sqrt', 'min', 'max', 'atan', 'atan2', 'multiply by k', 'add c', 'conj...
[ [ 1, 0, 0.0091, 0.0091, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.0182, 0.0091, 0, 0.66, 0.125, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0273, 0.0091, 0, 0...
[ "import gen_utils", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "OPS = ['add', 'subtract', 'multiply', 'divide', 'invert',\n 'sin', 'cos', 'exp', 'log', 'abs', 'sqr', 'sqrt', 'min',\n 'max', 'atan', 'atan2', ...
from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtk class transformImageToTarget(NoConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_manager) ...
[ [ 1, 0, 0.0079, 0.0079, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0157, 0.0079, 0, 0.66, 0.25, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0236, 0.0079, 0, 0....
[ "from module_base import ModuleBase", "from module_mixins import NoConfigModuleMixin", "import module_utils", "import vtk", "class transformImageToTarget(NoConfigModuleMixin, ModuleBase):\n def __init__(self, module_manager):\n # initialise our base class\n ModuleBase.__init__(self, module_...
import gen_utils from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import wx import vtk class imageGradientMagnitude(NoConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module...
[ [ 1, 0, 0.0147, 0.0147, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.0294, 0.0147, 0, 0.66, 0.1667, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0441, 0.0147, 0, ...
[ "import gen_utils", "from module_base import ModuleBase", "from module_mixins import NoConfigModuleMixin", "import module_utils", "import wx", "import vtk", "class imageGradientMagnitude(NoConfigModuleMixin, ModuleBase):\n\n def __init__(self, module_manager):\n # initialise our base class\n ...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class RegionGrowing(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ...
[ [ 1, 0, 0.0345, 0.0069, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0414, 0.0069, 0, 0.66, 0.25, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0483, 0.0069, 0, 0....
[ "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "class RegionGrowing(ScriptedConfigModuleMixin, ModuleBase):\n\n def __init__(self, module_manager):\n ModuleBase.__init__(self, module_manager)\n\n self._image_...
import gen_utils from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class opening(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_manager) ...
[ [ 1, 0, 0.012, 0.012, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.0241, 0.012, 0, 0.66, 0.2, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0361, 0.012, 0, 0.66, ...
[ "import gen_utils", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "class opening(ScriptedConfigModuleMixin, ModuleBase):\n\n def __init__(self, module_manager):\n # initialise our base class\n ModuleBase._...
from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import vtkdevide class extractGrid(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(self, module_manager) self._config.sampleRate = (...
[ [ 1, 0, 0.0156, 0.0156, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0312, 0.0156, 0, 0.66, 0.2, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0469, 0.0156, 0, 0.6...
[ "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "import vtkdevide", "class extractGrid(ScriptedConfigModuleMixin, ModuleBase):\n def __init__(self, module_manager):\n ModuleBase.__init__(self, module_manager)\n\n ...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtk import numpy class FitEllipsoidToMask(NoConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ...
[ [ 1, 0, 0.0314, 0.0063, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0377, 0.0063, 0, 0.66, 0.1667, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.044, 0.0063, 0, 0...
[ "from module_base import ModuleBase", "from module_mixins import NoConfigModuleMixin", "import module_utils", "import vtk", "import numpy", "class FitEllipsoidToMask(NoConfigModuleMixin, ModuleBase):\n def __init__(self, module_manager):\n # initialise our base class\n ModuleBase.__init__...
# imageGaussianSmooth copyright (c) 2003 by Charl P. Botha cpbotha@ieee.org # $Id: resampleImage.py 3229 2008-09-04 17:06:13Z cpbotha $ # performs image smoothing by convolving with a Gaussian import gen_utils from module_base import ModuleBase from module_mixins import IntrospectModuleMixin import module_utils...
[ [ 1, 0, 0.034, 0.0068, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.0408, 0.0068, 0, 0.66, 0.2, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0476, 0.0068, 0, 0.66...
[ "import gen_utils", "from module_base import ModuleBase", "from module_mixins import IntrospectModuleMixin", "import module_utils", "import vtk", "class resampleImage(IntrospectModuleMixin, ModuleBase):\n\n def __init__(self, module_manager):\n ModuleBase.__init__(self, module_manager)\n\n ...
from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import vtkdevide class extractHDomes(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(self, module_manager) self._imageMath...
[ [ 1, 0, 0.0104, 0.0104, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0208, 0.0104, 0, 0.66, 0.2, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0312, 0.0104, 0, 0.6...
[ "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "import vtkdevide", "class extractHDomes(ScriptedConfigModuleMixin, ModuleBase):\n\n def __init__(self, module_manager):\n \n ModuleBase.__init__(self, module_...
import input_array_choice_mixin from input_array_choice_mixin import InputArrayChoiceMixin from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk INTEG_TYPE = ['RK2', 'RK4', 'RK45'] INTEG_TYPE_TEXTS = ['Runge-Kutta 2', 'Runge-Kutta 4', 'Runge-Kutta 45'] IN...
[ [ 1, 0, 0.0086, 0.0086, 0, 0.66, 0, 680, 0, 1, 0, 0, 680, 0, 0 ], [ 1, 0, 0.0172, 0.0086, 0, 0.66, 0.0909, 680, 0, 1, 0, 0, 680, 0, 0 ], [ 1, 0, 0.0259, 0.0086, 0, ...
[ "import input_array_choice_mixin", "from input_array_choice_mixin import InputArrayChoiceMixin", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "INTEG_TYPE = ['RK2', 'RK4', 'RK45']", "INTEG_TYPE_TEXTS = ['Runge-Kutta 2'...
# $Id$ from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class extractImageComponents(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(self, module_manager) self._extract = vtk....
[ [ 1, 0, 0.0288, 0.0096, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0385, 0.0096, 0, 0.66, 0.25, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0481, 0.0096, 0, 0....
[ "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "class extractImageComponents(ScriptedConfigModuleMixin, ModuleBase):\n \n def __init__(self, module_manager):\n ModuleBase.__init__(self, module_manager)\n\n ...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import input_array_choice_mixin reload(input_array_choice_mixin) from input_array_choice_mixin import InputA...
[ [ 1, 0, 0.0298, 0.006, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0357, 0.006, 0, 0.66, 0.0667, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0417, 0.006, 0, 0.6...
[ "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "import input_array_choice_mixin", "reload(input_array_choice_mixin)", "from input_array_choice_mixin import InputArrayChoiceMixin", "ARRAY_IDX = 1", "glyphScaleMode = ['...
import gen_utils from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import vtktudoss class FastSurfaceToDistanceField(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBas...
[ [ 1, 0, 0.011, 0.011, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.022, 0.011, 0, 0.66, 0.1667, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.033, 0.011, 0, 0.66, ...
[ "import gen_utils", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "import vtktudoss", "class FastSurfaceToDistanceField(ScriptedConfigModuleMixin, ModuleBase):\n\n def __init__(self, module_manager):\n # initia...
from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import vtkdevide class selectConnectedComponents(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # call parent constructor ModuleBase.__init__(self, mo...
[ [ 1, 0, 0.0078, 0.0078, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0155, 0.0078, 0, 0.66, 0.2, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0233, 0.0078, 0, 0.6...
[ "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "import vtkdevide", "class selectConnectedComponents(ScriptedConfigModuleMixin, ModuleBase):\n\n def __init__(self, module_manager):\n\n # call parent constructor\n ...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import vtk DEFAULT_SELECTION_STRING = 'Default active array' class InputArrayChoiceMixin: def __init__(self): self._config.vectorsSelection = DEFAULT_SELECTION_STRING self._config.input_array_names = [] ...
[ [ 1, 0, 0.0463, 0.0093, 0, 0.66, 0, 665, 0, 1, 0, 0, 665, 0, 0 ], [ 14, 0, 0.0648, 0.0093, 0, 0.66, 0.5, 636, 1, 0, 0, 0, 0, 3, 0 ], [ 3, 0, 0.5278, 0.8981, 0, 0.66...
[ "import vtk", "DEFAULT_SELECTION_STRING = 'Default active array'", "class InputArrayChoiceMixin:\n\n def __init__(self):\n self._config.vectorsSelection = DEFAULT_SELECTION_STRING\n self._config.input_array_names = []\n self._config.actual_input_array = None\n\n def iac_logic_to_confi...
from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtk IMAGE_DATA = 0 POLY_DATA = 1 class StreamerVTK(NoConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(self, module_manager) self._image_data_streamer ...
[ [ 1, 0, 0.0137, 0.0137, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0274, 0.0137, 0, 0.66, 0.1667, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0411, 0.0137, 0, ...
[ "from module_base import ModuleBase", "from module_mixins import NoConfigModuleMixin", "import module_utils", "import vtk", "IMAGE_DATA = 0", "POLY_DATA = 1", "class StreamerVTK(NoConfigModuleMixin, ModuleBase):\n def __init__(self, module_manager):\n ModuleBase.__init__(self, module_manager)\...
from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtk class transformVolumeData(NoConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_manager) self._imageR...
[ [ 1, 0, 0.0135, 0.0135, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.027, 0.0135, 0, 0.66, 0.25, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0405, 0.0135, 0, 0.6...
[ "from module_base import ModuleBase", "from module_mixins import NoConfigModuleMixin", "import module_utils", "import vtk", "class transformVolumeData(NoConfigModuleMixin, ModuleBase):\n def __init__(self, module_manager):\n # initialise our base class\n ModuleBase.__init__(self, module_man...
import gen_utils from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import wx import vtk class closing(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, mod...
[ [ 1, 0, 0.0119, 0.0119, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.0238, 0.0119, 0, 0.66, 0.1667, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0357, 0.0119, 0, ...
[ "import gen_utils", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import wx", "import vtk", "class closing(ScriptedConfigModuleMixin, ModuleBase):\n\n \n def __init__(self, module_manager):\n # initialise our base class\...
# this one was generated with: # for i in *.py; do n=`echo $i | cut -f 1 -d .`; \ # echo -e "class $n:\n kits = ['vtk_kit']\n cats = ['Filters']\n" \ # >> blaat.txt; done class appendPolyData: kits = ['vtk_kit'] cats = ['Filters'] help = """DeVIDE encapsulation of the vtkAppendPolyDataFilter that ...
[ [ 3, 0, 0.0174, 0.0147, 0, 0.66, 0, 238, 0, 0, 0, 0, 0, 0, 0 ], [ 14, 1, 0.0128, 0.0018, 1, 0.48, 0, 190, 0, 0, 0, 0, 0, 5, 0 ], [ 14, 1, 0.0147, 0.0018, 1, 0.48, ...
[ "class appendPolyData:\n kits = ['vtk_kit']\n cats = ['Filters']\n help = \"\"\"DeVIDE encapsulation of the vtkAppendPolyDataFilter that\n enables us to combine multiple PolyData structures into one.\n\n DANGER WILL ROBINSON: contact the author, this module is BROKEN.\n \"\"\"", " kits = ['vt...
import gen_utils from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtk class clipPolyData(NoConfigModuleMixin, ModuleBase): """Given an input polydata and an implicitFunction, this will clip the polydata. All points that are inside the implicit fun...
[ [ 1, 0, 0.0137, 0.0137, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.0274, 0.0137, 0, 0.66, 0.2, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0411, 0.0137, 0, 0.6...
[ "import gen_utils", "from module_base import ModuleBase", "from module_mixins import NoConfigModuleMixin", "import module_utils", "import vtk", "class clipPolyData(NoConfigModuleMixin, ModuleBase):\n \"\"\"Given an input polydata and an implicitFunction, this will clip\n the polydata.\n\n All poi...
# Modified by FrancoisMalan 2011-12-06 so that it can handle an input with larger # extent than its source. Changes constitute the padder module and pad_source method import gen_utils from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtk class prob...
[ [ 1, 0, 0.0345, 0.0086, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.0431, 0.0086, 0, 0.66, 0.2, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0517, 0.0086, 0, 0.6...
[ "import gen_utils", "from module_base import ModuleBase", "from module_mixins import NoConfigModuleMixin", "import module_utils", "import vtk", "class probeFilter(NoConfigModuleMixin, ModuleBase):\n def __init__(self, module_manager):\n # initialise our base class\n ModuleBase.__init__(se...
from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import vtkdevide class imageFillHoles(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(self, module_manager) self._imageBorderMask =...
[ [ 1, 0, 0.0094, 0.0094, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0189, 0.0094, 0, 0.66, 0.2, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0283, 0.0094, 0, 0.6...
[ "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "import vtkdevide", "class imageFillHoles(ScriptedConfigModuleMixin, ModuleBase):\n def __init__(self, module_manager):\n ModuleBase.__init__(self, module_manager)\n\...
# imageGaussianSmooth copyright (c) 2003 by Charl P. Botha cpbotha@ieee.org # $Id$ # performs image smoothing by convolving with a Gaussian import gen_utils from module_base import ModuleBase from module_mixins import IntrospectModuleMixin import module_utils import vtk class imageGaussianSmooth(IntrospectModuleMixin...
[ [ 1, 0, 0.0427, 0.0085, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.0513, 0.0085, 0, 0.66, 0.2, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0598, 0.0085, 0, 0.6...
[ "import gen_utils", "from module_base import ModuleBase", "from module_mixins import IntrospectModuleMixin", "import module_utils", "import vtk", "class imageGaussianSmooth(IntrospectModuleMixin, ModuleBase):\n\n def __init__(self, module_manager):\n ModuleBase.__init__(self, module_manager)\n\n...
import gen_utils from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class seedConnect(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # call parent constructor ModuleBase.__init__(self, module_manager)...
[ [ 1, 0, 0.0078, 0.0078, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.0155, 0.0078, 0, 0.66, 0.2, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0233, 0.0078, 0, 0.6...
[ "import gen_utils", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "class seedConnect(ScriptedConfigModuleMixin, ModuleBase):\n\n def __init__(self, module_manager):\n\n # call parent constructor\n ModuleBa...
# dumy __init__ so this directory can function as a package
[]
[]
# dumy __init__ so this directory can function as a package
[]
[]
from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class imageMask(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_manager) # se...
[ [ 1, 0, 0.0093, 0.0093, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0187, 0.0093, 0, 0.66, 0.25, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.028, 0.0093, 0, 0.6...
[ "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "class imageMask(ScriptedConfigModuleMixin, ModuleBase):\n\n \n def __init__(self, module_manager):\n # initialise our base class\n ModuleBase.__init__(self, ...
import gen_utils from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class morphGradient(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_manager...
[ [ 1, 0, 0.008, 0.008, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.016, 0.008, 0, 0.66, 0.2, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.024, 0.008, 0, 0.66, ...
[ "import gen_utils", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "class morphGradient(ScriptedConfigModuleMixin, ModuleBase):\n def __init__(self, module_manager):\n # initialise our base class\n ModuleBa...
from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class wsMeshSmooth(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_manager) ...
[ [ 1, 0, 0.0097, 0.0097, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0194, 0.0097, 0, 0.66, 0.25, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0291, 0.0097, 0, 0....
[ "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "class wsMeshSmooth(ScriptedConfigModuleMixin, ModuleBase):\n def __init__(self, module_manager):\n # initialise our base class\n ModuleBase.__init__(self, modul...
# dumy __init__ so this directory can function as a package
[]
[]
__author__ = 'Francois' # PerturbPolyPoints.py by Francois Malan - 2012-12-06 # Randomly perturbs each polydata vertex by a uniformly sampled magnitude and random direction from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import vtk import numpy import math import rando...
[ [ 14, 0, 0.0108, 0.0108, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0645, 0.0108, 0, 0.66, 0.1429, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0753, 0.0108, 0, 0...
[ "__author__ = 'Francois'", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import vtk", "import numpy", "import math", "import random", "class PerturbPolyPoints(ScriptedConfigModuleMixin, ModuleBase):\n\n def __init__(self, module_manager):\n # i...
# DicomAligner.py by Francois Malan - 2011-06-23 # Revised as version 2.0 on 2011-07-07 from module_base import ModuleBase from module_mixins import NoConfigModuleMixin from module_kits.misc_kit import misc_utils import wx import os import vtk import itk import math import numpy class DICOMAligner( NoConfigModule...
[ [ 1, 0, 0.0233, 0.0058, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0291, 0.0058, 0, 0.66, 0.1111, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0349, 0.0058, 0, ...
[ "from module_base import ModuleBase", "from module_mixins import NoConfigModuleMixin", "from module_kits.misc_kit import misc_utils", "import wx", "import os", "import vtk", "import itk", "import math", "import numpy", "class DICOMAligner(\n NoConfigModuleMixin, ModuleBase):\n\n def __init__...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. from module_base import ModuleBase from module_mixins import IntrospectModuleMixin import module_kits.vtk_kit import module_utils import vtk import wx from module_kits.misc_kit.devide_types import MedicalMetaData class EditM...
[ [ 1, 0, 0.0211, 0.0042, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0253, 0.0042, 0, 0.66, 0.1429, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0295, 0.0042, 0, ...
[ "from module_base import ModuleBase", "from module_mixins import IntrospectModuleMixin", "import module_kits.vtk_kit", "import module_utils", "import vtk", "import wx", "from module_kits.misc_kit.devide_types import MedicalMetaData", "class EditMedicalMetaData(IntrospectModuleMixin, ModuleBase):\n ...
import gen_utils from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtk import vtkdevide class greyReconstruct(NoConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_...
[ [ 1, 0, 0.0141, 0.0141, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.0282, 0.0141, 0, 0.66, 0.1667, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0423, 0.0141, 0, ...
[ "import gen_utils", "from module_base import ModuleBase", "from module_mixins import NoConfigModuleMixin", "import module_utils", "import vtk", "import vtkdevide", "class greyReconstruct(NoConfigModuleMixin, ModuleBase):\n def __init__(self, module_manager):\n # initialise our base class\n ...
import gen_utils from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtk class transformPolyData(NoConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_manager) ...
[ [ 1, 0, 0.0161, 0.0161, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.0323, 0.0161, 0, 0.66, 0.2, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0484, 0.0161, 0, 0.6...
[ "import gen_utils", "from module_base import ModuleBase", "from module_mixins import NoConfigModuleMixin", "import module_utils", "import vtk", "class transformPolyData(NoConfigModuleMixin, ModuleBase):\n def __init__(self, module_manager):\n # initialise our base class\n ModuleBase.__ini...
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class ImageLogic(ScriptedConfigModuleMixin, ModuleBase): # get these values from vtkImageMathematic...
[ [ 1, 0, 0.0442, 0.0088, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0531, 0.0088, 0, 0.66, 0.25, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0619, 0.0088, 0, 0....
[ "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "class ImageLogic(ScriptedConfigModuleMixin, ModuleBase):\n\n\n # get these values from vtkImageMathematics.h\n _operations = ('AND', 'OR', 'XOR', 'NAND', 'NOR', 'NOT', 'NO...
# todo: # * vtkVolumeMapper::SetCroppingRegionPlanes(xmin,xmax,ymin,ymax,zmin,zmax) from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class MIPRender( ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # ini...
[ [ 1, 0, 0.0286, 0.0071, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0357, 0.0071, 0, 0.66, 0.25, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0429, 0.0071, 0, 0....
[ "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "class MIPRender(\n ScriptedConfigModuleMixin, ModuleBase):\n\n def __init__(self, module_manager):\n # initialise our base class\n ModuleBase.__init__(self, ...
import gen_utils from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class imageMedian3D(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_m...
[ [ 1, 0, 0.0143, 0.0143, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.0286, 0.0143, 0, 0.66, 0.2, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0429, 0.0143, 0, 0.6...
[ "import gen_utils", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "class imageMedian3D(ScriptedConfigModuleMixin, ModuleBase):\n \n def __init__(self, module_manager):\n # initialise our base class\n Mo...
import gen_utils from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk EMODES = { 1:'Point seeded regions', 2:'Cell seeded regions', 3:'Specified regions', 4:'Largest region', 5:'All regions', 6:'Closest po...
[ [ 1, 0, 0.0079, 0.0079, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.0159, 0.0079, 0, 0.66, 0.1667, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0238, 0.0079, 0, ...
[ "import gen_utils", "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "EMODES = { \n 1:'Point seeded regions',\n 2:'Cell seeded regions',\n 3:'Specified regions',\n 4:'Largest region',\n 5:'A...
import operator from module_base import ModuleBase from module_mixins import IntrospectModuleMixin import module_utils import vtk import vtkdevide import wx from module_mixins import ColourDialogMixin class shellSplatSimple(IntrospectModuleMixin, ColourDialogMixin, ModuleBase): def __init_...
[ [ 1, 0, 0.0033, 0.0033, 0, 0.66, 0, 616, 0, 1, 0, 0, 616, 0, 0 ], [ 1, 0, 0.0066, 0.0033, 0, 0.66, 0.125, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0099, 0.0033, 0, 0...
[ "import operator", "from module_base import ModuleBase", "from module_mixins import IntrospectModuleMixin", "import module_utils", "import vtk", "import vtkdevide", "import wx", "from module_mixins import ColourDialogMixin", "class shellSplatSimple(IntrospectModuleMixin,\n Colo...
# glenoidMouldDesigner.py copyright 2003 Charl P. Botha http://cpbotha.net/ # $Id$ # devide module that designs glenoid moulds by making use of insertion # axis and model of scapula # this module doesn't satisfy the event handling requirements of DeVIDE yet # if you call update on the output PolyData, this module won'...
[ [ 1, 0, 0.021, 0.0016, 0, 0.66, 0, 526, 0, 1, 0, 0, 526, 0, 0 ], [ 1, 0, 0.0226, 0.0016, 0, 0.66, 0.2, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0242, 0.0016, 0, 0.66...
[ "import math", "from module_base import ModuleBase", "from module_mixins import NoConfigModuleMixin", "import operator", "import vtk", "class glenoidMouldDesign(ModuleBase, NoConfigModuleMixin):\n\n drillGuideInnerDiameter = 3\n drillGuideOuterDiameter = 5\n drillGuideHeight = 10\n\n def __ini...
# __init__.py by Charl P. Botha <cpbotha@ieee.org> # $Id$ # used to be module list, now dummy file
[]
[]
# $Id: BMPRDR.py 1853 2006-02-01 17:16:28Z cpbotha $ from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import wx class BMPReader(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(self, mo...
[ [ 1, 0, 0.0297, 0.0099, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0396, 0.0099, 0, 0.66, 0.2, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0495, 0.0099, 0, 0.6...
[ "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "import wx", "class BMPReader(ScriptedConfigModuleMixin, ModuleBase):\n \n def __init__(self, module_manager):\n ModuleBase.__init__(self, module_manager)\n\n ...
# $Id$ from module_base import ModuleBase from module_mixins import FilenameViewModuleMixin import module_utils import vtk class vtpRDR(FilenameViewModuleMixin, ModuleBase): def __init__(self, module_manager): # call parent constructor ModuleBase.__init__(self, module_manager) self._read...
[ [ 1, 0, 0.0435, 0.0145, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.058, 0.0145, 0, 0.66, 0.25, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0725, 0.0145, 0, 0.6...
[ "from module_base import ModuleBase", "from module_mixins import FilenameViewModuleMixin", "import module_utils", "import vtk", "class vtpRDR(FilenameViewModuleMixin, ModuleBase):\n def __init__(self, module_manager):\n\n # call parent constructor\n ModuleBase.__init__(self, module_manager)...
# $Id$ from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import wx class metaImageRDR(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(self, module_manager) self._reader = vtk....
[ [ 1, 0, 0.0395, 0.0132, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0526, 0.0132, 0, 0.66, 0.2, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0658, 0.0132, 0, 0.6...
[ "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "import wx", "class metaImageRDR(ScriptedConfigModuleMixin, ModuleBase):\n \n def __init__(self, module_manager):\n ModuleBase.__init__(self, module_manager)\n\n ...
# $Id$ from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import wx class pngRDR(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(self, module_manager) self._reader = vtk.vtkPNG...
[ [ 1, 0, 0.03, 0.01, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.04, 0.01, 0, 0.66, 0.2, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.05, 0.01, 0, 0.66, 0.4, ...
[ "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "import wx", "class pngRDR(ScriptedConfigModuleMixin, ModuleBase):\n \n def __init__(self, module_manager):\n ModuleBase.__init__(self, module_manager)\n\n ...
from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import wx class JPEGReader(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(self, module_manager) self._reader = vtk.vtkJPEGRea...
[ [ 1, 0, 0.0102, 0.0102, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0204, 0.0102, 0, 0.66, 0.2, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0306, 0.0102, 0, 0.6...
[ "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin", "import module_utils", "import vtk", "import wx", "class JPEGReader(ScriptedConfigModuleMixin, ModuleBase):\n \n def __init__(self, module_manager):\n ModuleBase.__init__(self, module_manager)\n\n ...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. from module_base import ModuleBase from module_kits.misc_kit import misc_utils from module_mixins import \ IntrospectModuleMixin import module_utils import gdcm import vtk import vtkgdcm import wx from module_kits.misc_...
[ [ 1, 0, 0.0152, 0.003, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0182, 0.003, 0, 0.66, 0.1, 909, 0, 1, 0, 0, 909, 0, 0 ], [ 1, 0, 0.0228, 0.0061, 0, 0.66,...
[ "from module_base import ModuleBase", "from module_kits.misc_kit import misc_utils", "from module_mixins import \\\n IntrospectModuleMixin", "import module_utils", "import gdcm", "import vtk", "import vtkgdcm", "import wx", "from module_kits.misc_kit.devide_types import MedicalMetaData", "clas...
# $Id$ from module_base import ModuleBase from module_mixins import FilenameViewModuleMixin import module_utils import vtk class plyRDR(FilenameViewModuleMixin, ModuleBase): def __init__(self, module_manager): # call parent constructor ModuleBase.__init__(self, module_manager) self._re...
[ [ 1, 0, 0.0423, 0.0141, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0563, 0.0141, 0, 0.66, 0.25, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0704, 0.0141, 0, 0....
[ "from module_base import ModuleBase", "from module_mixins import FilenameViewModuleMixin", "import module_utils", "import vtk", "class plyRDR(FilenameViewModuleMixin, ModuleBase):\n\n def __init__(self, module_manager):\n\n # call parent constructor\n ModuleBase.__init__(self, module_manage...
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. class BMPReader: kits = ['vtk_kit'] cats = ['Readers'] help = """Reads a series of BMP files. Set the file pattern by making use of the file browsing dialog. Replace the increasing index by a %d format s...
[ [ 3, 0, 0.0656, 0.075, 0, 0.66, 0, 439, 0, 0, 0, 0, 0, 0, 0 ], [ 14, 1, 0.0375, 0.0063, 1, 0.82, 0, 190, 0, 0, 0, 0, 0, 5, 0 ], [ 14, 1, 0.0437, 0.0063, 1, 0.82, ...
[ "class BMPReader:\n kits = ['vtk_kit']\n cats = ['Readers']\n help = \"\"\"Reads a series of BMP files.\n\n Set the file pattern by making use of the file browsing dialog. Replace\n the increasing index by a %d format specifier. %03d can be used for\n example, in which case %d will be replaced b...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import gen_utils from module_kits.misc_kit import misc_utils import os from module_base import ModuleBase from module_mixins import \ IntrospectModuleMixin, FileOpenDialogModuleMixin import module_utils import stat impo...
[ [ 1, 0, 0.0161, 0.0032, 0, 0.66, 0, 714, 0, 1, 0, 0, 714, 0, 0 ], [ 1, 0, 0.0194, 0.0032, 0, 0.66, 0.0909, 909, 0, 1, 0, 0, 909, 0, 0 ], [ 1, 0, 0.0226, 0.0032, 0, ...
[ "import gen_utils", "from module_kits.misc_kit import misc_utils", "import os", "from module_base import ModuleBase", "from module_mixins import \\\n IntrospectModuleMixin, FileOpenDialogModuleMixin", "import module_utils", "import stat", "import wx", "import vtk", "import vtkdevide", "impor...
# dumy __init__ so this directory can function as a package
[]
[]
# dumy __init__ so this directory can function as a package
[]
[]
# dumy __init__ so this directory can function as a package
[]
[]
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin, WX_OPEN import module_utils import vtk class TIFFReader(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_mana...
[ [ 1, 0, 0.0526, 0.0105, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0632, 0.0105, 0, 0.66, 0.25, 676, 0, 2, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0737, 0.0105, 0, 0....
[ "from module_base import ModuleBase", "from module_mixins import ScriptedConfigModuleMixin, WX_OPEN", "import module_utils", "import vtk", "class TIFFReader(ScriptedConfigModuleMixin, ModuleBase):\n \n def __init__(self, module_manager):\n ModuleBase.__init__(self, module_manager)\n\n se...
# $Id$ from module_base import ModuleBase from module_mixins import FilenameViewModuleMixin import module_utils import vtk class vtiRDR(FilenameViewModuleMixin, ModuleBase): def __init__(self, module_manager): # call parent constructor ModuleBase.__init__(self, module_manager) self._re...
[ [ 1, 0, 0.0375, 0.0125, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.05, 0.0125, 0, 0.66, 0.25, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0625, 0.0125, 0, 0.66...
[ "from module_base import ModuleBase", "from module_mixins import FilenameViewModuleMixin", "import module_utils", "import vtk", "class vtiRDR(FilenameViewModuleMixin, ModuleBase):\n\n def __init__(self, module_manager):\n\n # call parent constructor\n ModuleBase.__init__(self, module_manage...
# $Id$ from module_base import ModuleBase from module_mixins import FilenameViewModuleMixin import module_utils import vtk class vtkStructPtsRDR(FilenameViewModuleMixin, ModuleBase): def __init__(self, module_manager): # call parent constructor ModuleBase.__init__(self, module_manager) ...
[ [ 1, 0, 0.0435, 0.0145, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.058, 0.0145, 0, 0.66, 0.25, 676, 0, 1, 0, 0, 676, 0, 0 ], [ 1, 0, 0.0725, 0.0145, 0, 0.6...
[ "from module_base import ModuleBase", "from module_mixins import FilenameViewModuleMixin", "import module_utils", "import vtk", "class vtkStructPtsRDR(FilenameViewModuleMixin, ModuleBase):\n\n def __init__(self, module_manager):\n\n # call parent constructor\n ModuleBase.__init__(self, modu...
# snippet to save polydata of all selected objects to disc, transformed with # the currently active object motion for that object. This snippet should be # run within a slice3dVWR introspection context. # $Id$ import os import tempfile import vtk className = obj.__class__.__name__ if className == 'slice3dVWR': ...
[ [ 1, 0, 0.1304, 0.0217, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1522, 0.0217, 0, 0.66, 0.25, 516, 0, 1, 0, 0, 516, 0, 0 ], [ 1, 0, 0.1739, 0.0217, 0, 0....
[ "import os", "import tempfile", "import vtk", "className = obj.__class__.__name__", "if className == 'slice3dVWR':\n\n # find all polydata objects\n so = obj._tdObjects._getSelectedObjects()\n polyDatas = [pd for pd in so if hasattr(pd, 'GetClassName') and\n pd.GetClassName() == 'vt...
import vtk className = obj.__class__.__name__ if className == 'slice3dVWR': rw = obj.threedFrame.threedRWI.GetRenderWindow() rw.SetStereoTypeToCrystalEyes() #rw.SetStereoTypeToRedBlue() rw.SetStereoRender(1) rw.Render() else: print "This snippet must be run from a slice3dVWR introspection win...
[ [ 1, 0, 0.0769, 0.0769, 0, 0.66, 0, 665, 0, 1, 0, 0, 665, 0, 0 ], [ 14, 0, 0.2308, 0.0769, 0, 0.66, 0.5, 131, 7, 0, 0, 0, 0, 0, 0 ], [ 4, 0, 0.6923, 0.6923, 0, 0.66...
[ "import vtk", "className = obj.__class__.__name__", "if className == 'slice3dVWR':\n rw = obj.threedFrame.threedRWI.GetRenderWindow()\n rw.SetStereoTypeToCrystalEyes()\n #rw.SetStereoTypeToRedBlue()\n rw.SetStereoRender(1)\n rw.Render()\n\nelse:", " rw = obj.threedFrame.threedRWI.GetRenderWi...
# $Id$ # to use a shader on an actor, do this first before export: # a = vtk.vtkRIBProperty() # a.SetVariable('Km', 'float') # a.SetParameter('Km', '1') # a.SetDisplacementShader('dented') # actor.SetProperty(a) import os import tempfile import vtk className = obj.__class__.__name__ if className == 'slice3dVWR': ...
[ [ 1, 0, 0.3226, 0.0323, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.3548, 0.0323, 0, 0.66, 0.25, 516, 0, 1, 0, 0, 516, 0, 0 ], [ 1, 0, 0.3871, 0.0323, 0, 0....
[ "import os", "import tempfile", "import vtk", "className = obj.__class__.__name__", "if className == 'slice3dVWR':\n rw = obj._threedRenderer.GetRenderWindow()\n\n e = vtk.vtkRIBExporter()\n e.SetRenderWindow(rw)\n tempdir = tempfile.gettempdir()\n outputfilename = os.path.join(tempdir, 'slic...
# this is an extremely simple example of a DeVIDE snippet # Open the Python shell (under Window in the Main Window), click on the # "Load Snippet" button and select this file. # it will print the directory where devide is installed and then show # the main application help print devideApp.get_appdir() devideApp.showH...
[ [ 8, 0, 0.8889, 0.1111, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 2 ], [ 8, 0, 1, 0.1111, 0, 0.66, 1, 840, 3, 0, 0, 0, 0, 0, 1 ] ]
[ "print(devideApp.get_appdir())", "devideApp.showHelp()" ]
# this snippet will rotate the camera in the slice3dVWR that you have # selected whilst slowly increasing the isovalue of the marchingCubes that # you have selected and dump every frame as a PNG to the temporary directory # this is ideal for making movies of propagating surfaces in distance fields # 1. right click on ...
[ [ 1, 0, 0.24, 0.02, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.26, 0.02, 0, 0.66, 0.1667, 516, 0, 1, 0, 0, 516, 0, 0 ], [ 1, 0, 0.28, 0.02, 0, 0.66, 0....
[ "import os", "import tempfile", "import vtk", "import wx", "sv = devideApp.ModuleManager.getMarkedModule('slice3dVWR')", "mc = devideApp.ModuleManager.getMarkedModule('marchingCubes')", "if sv and mc:\n # bring the window to the front\n sv.view()\n # make sure it actually happens\n wx.Yield(...
# convert old-style (up to DeVIDE 8.5) to new-style DVN network files # # usage: # load your old network in DeVIDE 8.5, then execute this snippet in # the main Python introspection window. To open the main Python # introspection window, select from the main DeVIDE menu: "Window | # Python Shell". In the window ...
[ [ 1, 0, 0.1358, 0.0123, 0, 0.66, 0, 272, 0, 1, 0, 0, 272, 0, 0 ], [ 1, 0, 0.1481, 0.0123, 0, 0.66, 0.1667, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1605, 0.0123, 0, ...
[ "import ConfigParser", "import os", "import wx", "conn_trans = {\n 'sourceInstanceName' : 'source_instance_name',\n 'inputIdx' : 'input_idx',\n 'targetInstanceName' : 'target_instance_name',\n 'connectionType' : 'connection_type',\n 'outputIdx' : 'output_idx'\n }", ...
import vtk import wx className = obj.__class__.__name__ if className == 'slice3dVWR': sds = obj.sliceDirections.getSelectedSliceDirections() if len(sds) > 0: opacityText = wx.GetTextFromUser( 'Enter a new opacity value (0.0 to 1.0) for all selected ' 'slices.') o...
[ [ 1, 0, 0.0286, 0.0286, 0, 0.66, 0, 665, 0, 1, 0, 0, 665, 0, 0 ], [ 1, 0, 0.0571, 0.0286, 0, 0.66, 0.3333, 666, 0, 1, 0, 0, 666, 0, 0 ], [ 14, 0, 0.1143, 0.0286, 0, ...
[ "import vtk", "import wx", "className = obj.__class__.__name__", "if className == 'slice3dVWR':\n\n sds = obj.sliceDirections.getSelectedSliceDirections()\n \n if len(sds) > 0:\n\n opacityText = wx.GetTextFromUser(\n 'Enter a new opacity value (0.0 to 1.0) for all selected '", " ...
# $Id$ import os import tempfile import vtk className = obj.__class__.__name__ if className == 'slice3dVWR': rw = obj._threedRenderer.GetRenderWindow() try: e = vtk.vtkGL2PSExporter() except AttributeError: print "Your VTK was compiled without GL2PS support." else: e.S...
[ [ 1, 0, 0.1, 0.0333, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1333, 0.0333, 0, 0.66, 0.25, 516, 0, 1, 0, 0, 516, 0, 0 ], [ 1, 0, 0.1667, 0.0333, 0, 0.66,...
[ "import os", "import tempfile", "import vtk", "className = obj.__class__.__name__", "if className == 'slice3dVWR':\n rw = obj._threedRenderer.GetRenderWindow()\n try:\n e = vtk.vtkGL2PSExporter()\n except AttributeError:\n print(\"Your VTK was compiled without GL2PS support.\")\n ...
# snippet to be ran in the introspection window of a slice3dVWR to # export the whole scene as a RIB file. Before you can do this, # both BACKGROUND_RENDERER and GRADIENT_BACKGROUND in slice3dVWR.py # should be set to False. obj._orientation_widget.Off() rw = obj._threedRenderer.GetRenderWindow() re = vtk.vtkRIBExp...
[ [ 8, 0, 0.5455, 0.0909, 0, 0.66, 0, 420, 3, 0, 0, 0, 0, 0, 1 ], [ 14, 0, 0.6364, 0.0909, 0, 0.66, 0.2, 273, 3, 0, 0, 0, 454, 10, 1 ], [ 14, 0, 0.7273, 0.0909, 0, 0....
[ "obj._orientation_widget.Off()", "rw = obj._threedRenderer.GetRenderWindow()", "re = vtk.vtkRIBExporter()", "re.SetRenderWindow(rw)", "re.SetFilePrefix('/tmp/slice3dVWR')", "re.Write()" ]
# EXPERIMENTAL. DO NOT USE UNLESS YOU ARE JORIK. (OR JORIS) import vtk className = obj.__class__.__name__ if className == 'slice3dVWR': ipw = obj.sliceDirections._sliceDirectionsDict.values()[0]._ipws[0] if ipw.GetInput(): mins, maxs = ipw.GetInput().GetScalarRange() else: mins, maxs...
[ [ 1, 0, 0.1111, 0.037, 0, 0.66, 0, 665, 0, 1, 0, 0, 665, 0, 0 ], [ 14, 0, 0.1852, 0.037, 0, 0.66, 0.5, 131, 7, 0, 0, 0, 0, 0, 0 ], [ 4, 0, 0.6111, 0.8148, 0, 0.66, ...
[ "import vtk", "className = obj.__class__.__name__", "if className == 'slice3dVWR':\n ipw = obj.sliceDirections._sliceDirectionsDict.values()[0]._ipws[0]\n \n if ipw.GetInput():\n mins, maxs = ipw.GetInput().GetScalarRange()\n else:\n mins, maxs = 1, 1000000", " ipw = obj.sliceDire...
# to use this code: # 1. load into slice3dVWR introspection window # 2. execute with ctrl-enter or File | Run current edit # 3. in the bottom window type lm1 = get_lookmark() # 4. do stuff # 5. to restore lookmark, do set_lookmark(lm1) # keep on bugging me to: # 1. fix slice3dVWR # 2. build this sort of functionality ...
[ [ 2, 0, 0.1429, 0.0714, 0, 0.66, 0, 881, 0, 0, 1, 0, 0, 0, 7 ], [ 14, 1, 0.127, 0.0079, 1, 0.39, 0, 929, 0, 0, 0, 0, 0, 5, 0 ], [ 6, 1, 0.1468, 0.0317, 1, 0.39, ...
[ "def get_plane_infos():\n # get out all plane orientations and normals\n plane_infos = []\n for sd in obj.sliceDirections._sliceDirectionsDict.values():\n # each sd has at least one IPW\n ipw = sd._ipws[0]\n plane_infos.append((ipw.GetOrigin(), ipw.GetPoint1(), ipw.GetPoint2(), ipw.Get...