vmtk
Recent Changes - Search:

vmtk

projects

links

edit SideBar

VmtkScripts / Vmtkimageshiftscale

vmtkimageshiftscale

Description

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

Input arguments

ArgumentVariableTypeLengthRangeDefaultDescription
idIdint1 0script id
handleSelfself1  handle to self
disabledDisabledbool1 0disable execution and piping
iImagevtkImageData1  the input image
ifileImageInputFileNamestr1  filename 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
clampClampOverflowOnbool1 1Whith ClampOverflow On, the data is thresholded so that the output value does not exceed the max or min of the data type
shiftShiftfloat1 0.0the shift value
scaleScalefloat1 1.0the scale value
maprangesMapRangesbool1 0toggle 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
ofileImageOutputFileNamestr1  filename for the default Image writer

Output arguments

ArgumentVariableTypeLengthRangeDefaultDescription
idIdint1 0script id
handleSelfself1  handle to self
oImagevtkImageData1  the output image
Edit - History - Print - Recent Changes - Search
Page last modified on September 05, 2010, at 12:50 PM