vtkmodules.util.vtkImageImportFromArray¶
vtkImageImportFromArray: a NumPy front-end to vtkImageImport
Load a python array into a vtk image. To use this class, you must have NumPy installed (http://numpy.scipy.org/)
Methods:
SetArray() – set the numpy array to load Update() – generate the output GetOutput() – get the image as vtkImageData GetOutputPort() – connect to VTK pipeline
Methods from vtkImageImport: (if you don’t set these, sensible defaults will be used)
SetDataExtent() SetDataSpacing() SetDataOrigin()
Module Contents¶
Classes¶
API¶
- class vtkmodules.util.vtkImageImportFromArray.vtkImageImportFromArray¶
Initialization
- __typeDict¶
None
- __sizeDict¶
None
- SetConvertIntToUnsignedShort(yesno)¶
- GetConvertIntToUnsignedShort()¶
- ConvertIntToUnsignedShortOn()¶
- ConvertIntToUnsignedShortOff()¶
- Update()¶
- GetOutputPort()¶
- GetOutput()¶
- SetArray(imArray)¶
- GetArray()¶
- SetDataExtent(extent)¶
- GetDataExtent()¶
- SetDataSpacing(spacing)¶
- GetDataSpacing()¶
- SetDataOrigin(origin)¶
- GetDataOrigin()¶