ResampleVolumeLinear
This function resamples a floating volume into a fixed volume after applying a linear transformation to its geometry.
Syntax
Result = ResampleVolumeLinear(FixedArray, FixedFrame, FloatArray, FloatFrame, FloatXform)
Arguments
FixedArray
A 3D array of numeric type containing the reference image.
FixedFrame
A coordinate frame (see FrameVolume) defining the target geometry.
FloatArray
A 3D array of numeric type containing the floating image.
FloatFrame
A coordinate frame defining the initial geometry of the floating image.
FloatXForm
Optional 4 x 4 matrix describing a homogeneous linear transform (created by CreateLinearTransform) to be applied to the geometry of the floating image.
Keywords
None.
Examples
fixedArray = FltArr(64,64,64)
floatArray = FIndGen(64,64,64)
fixedFrame = FrameVolume(fixedArray,VOXEL=[3,3,3])
floatFrame = FrameVolume(floatArray,VOXEL=[3,3,3],ROTATE=[0,0,90])
xform = CreateLinearTransform(ROTATE=[90,0,0])
result = ResampleVolumeLinear($
fixedArray, fixedFrame, floatArray, floatFrame, xform)