vmtkNumpyToImage

Description

Takes a dictionary of numpy arrays specifying dimensions, origin, spacing, and the image point data and returns a vtkImageData object.

Input arguments

ArgumentVariableTypeLengthRangeDefaultDescription
idIdstr10script id
handleSelfself1handle to self
disabledDisabledbool10disable execution and piping
iArrayDictdict1the input array dictionary
ifileArrayDictInputFileNamestr1filename for the default ArrayDict reader
ofileImageOutputFileNamestr1filename for the default Image writer

Output arguments

ArgumentVariableTypeLengthRangeDefaultDescription
idIdstr10script id
handleSelfself1handle to self
oImagevtkImageData1the output image