Computerhead Fusion Package IDL Library

CreateVolumeProbeLinear

This function creates a 3D array of sampling positions (a probe) by transforming pixel positions from a user-specified target array into a global reference frame and thence into a coordinate frame describing a source array.

Syntax

Result = CreateVolumeProbeLinear(TargetArray, TargetFrame, SourceFrame)

Arguments

TargetArray

A 3D array of byte type containing the target image. The resulting probe will generate an image of the same size.

TargetFrame

A coordinate frame (see FrameVolume) defining the target geometry.

FloatArray

A 3D array of byte type containing the floating image.

SourceFrame

A coordinate frame defining the geometry of the source image.

Keywords

None

Examples

This example creates a volume probe suitable for appling a small magnification to a volume array. This is achieved by setting the voxel size of the target array to be slightly smaller than that of the source.
	tgtArray = FIndGen(64,64,64)
	tgt = FrameVolume(tgtArray,VOXEL=[3.0, 3.0, 3.0])
	src = FrameVolume(tgtArray,VOXEL=[4.0, 4.0, 4.0])
	probe = CreateVolumeProbeLinear(tgtArray, tgt, src)

Erin McKay 2006-12-10