vmtk
Recent Changes - Search:

vmtk

projects

links

edit SideBar

VmtkScripts / Vmtkimagereader

vmtkimagereader

Description

read an image and stores it in a vtkImageData object

Input arguments

ArgumentVariableTypeLengthRangeDefaultDescription
idIdint1 0script id
handleSelfself1  handle to self
disabledDisabledbool1 0disable execution and piping
fFormatstr1["vtkxml","vtk","dicom","raw","meta","tiff","png"] file format
guessformatGuessFormatbool1 1guess file format from extension
useitkUseITKIObool1 1use ITKIO mechanism
transformApplyTransformbool1 0apply transform on reading - ITKIO only
iImagevtkImageData1  the input image
ifileInputFileNamestr1  input file name
prefixInputFilePrefixstr1  input file prefix (e.g. foo_)
patternInputFilePatternstr1  input file pattern (e.g. %sd.png)
dInputDirectoryNamestr1  input directory name - dicom only
extentDataExtentint6 [-1, -1, -1, -1, -1, -1]3D extent of the image - raw and png
headersizeHeaderSizeint1(0,)0size of the image header - raw only
spacingDataSpacingfloat3 [1.0, 1.0, 1.0]spacing of the image - raw, tiff, png
originDataOriginfloat3 [0.0, 0.0, 0.0]origin of the image - raw, tiff, png
byteorderDataByteOrderstr1["littleendian","bigendian"]littleendianbyte ordering - raw only
scalartypeDataScalarTypestr1["float","double","int","short","ushort","uchar"]floatscalar type - raw only
filedimensionalityFileDimensionalityint1(2,3)3dimensionality of the file to read - raw only
flipFlipbool3 [0, 0, 0]toggle flipping of the corresponding axis
autoorientdicomAutoOrientDICOMImagebool1 1flip a dicom stack in order to have a left-to-right, posterio-to-anterior, inferior-to-superior image; this is based on the "image orientation (patient)" field in the dicom header
ofileImageOutputFileNamestr1  filename for the default Image writer

Output arguments

ArgumentVariableTypeLengthRangeDefaultDescription
idIdint1 0script id
handleSelfself1  handle to self
oImagevtkImageData1  the output image
rastoijkmatrixRasToIjkMatrixCoefficientsfloat16 [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1] 
rastolocalmatrixRasToLocalMatrixCoefficientsfloat16 [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1] 
Edit - History - Print - Recent Changes - Search
Page last modified on February 05, 2012, at 02:30 PM