vmtkimagereslice

Description

reslice an image based on user-specified parameters or on a reference image

Input arguments

ArgumentVariableTypeLengthRangeDefaultDescription
idIdstr10script id
handleSelfself1handle to self
disabledDisabledbool10disable execution and piping
iImagevtkImageData1the input image
ifileImageInputFileNamestr1filename for the default Image reader
rReferenceImagevtkImageData1the reference image
rfileReferenceImageInputFileNamestr1filename for the default ReferenceImage reader
spacingOutputSpacingfloat3[]the output spacing
originOutputOriginfloat3[]the output origin
extentOutputExtentint6[]the output extent
interpolationInterpolationstr1["nearestneighbor","linear","cubic"]linearinterpolation during reslice
castCastbool11toggle cast image to float type
backgroundBackgroundLevelfloat10.0the output image background
matrix4x4Matrix4x4vtkMatrix4x41the input transform matrix
matrixMatrixCoefficientsfloat16[]coefficients of transform matrix
invertInvertMatrixbool10invert matrix before applying transformation
rotationRotationfloat3[0.0, 0.0, 0.0]rotations around the x-,y- and z-axis
translationTranslationfloat3[0.0, 0.0, 0.0]translation in the x-,y- and z-directions
scalingScalingfloat3[1.0, 1.0, 1.0]scaling of the x-,y- and z-directions
transforminputsamplingTransformInputSamplingbool11transform spacing, origin and extent of the Input (or the InformationInput) according to the direction cosines and origin of the ResliceAxes before applying them as the default output spacing, origin and extent
ofileImageOutputFileNamestr1filename for the default Image writer

Output arguments

ArgumentVariableTypeLengthRangeDefaultDescription
idIdstr10script id
handleSelfself1handle to self
oImagevtkImageData1the output image