vmtkimageshiftscale

Description

shift and scale the intensity of an image and cast it to a specified type

Input arguments

ArgumentVariableTypeLengthRangeDefaultDescription
idIdstr10script id
handleSelfself1handle to self
disabledDisabledbool10disable execution and piping
iImagevtkImageData1the input image
ifileImageInputFileNamestr1filename for the default Image reader
typeOutputTypestr1["unchanged","float","double","uchar","char","ushort","short","long","ulong","int","uint"]unchangedthe output image type - use "unchanged", the default, to keep same type as input
clampClampOverflowOnbool11Whith ClampOverflow On, the data is thresholded so that the output value does not exceed the max or min of the data type
shiftShiftfloat10.0the shift value
scaleScalefloat11.0the scale value
maprangesMapRangesbool10toggle mapping of input range to output range instead of simple shift scale
inputrangeInputRangefloat2[0.0, 0.0]the input range that will be mapped in the output range - leave default or set to 0.0 0.0 for using input image scalar range as input range
outputrangeOutputRangefloat2[0.0, 0.0]the output range into which the input range will be mapped
ofileImageOutputFileNamestr1filename for the default Image writer

Output arguments

ArgumentVariableTypeLengthRangeDefaultDescription
idIdstr10script id
handleSelfself1handle to self
oImagevtkImageData1the output image