Computerhead Fusion Package IDL Library

MergeVolumesRigid

This function merges two oriented volumes after modifying one of the pair using a rigid body transformation described by a parameter vector supplied by the client.

Syntax

Result = MergeVolumesRigid(TargetArray, TargetFrame, SourceArray, SourceFrame, Parameters)

Arguments

TargetArray

A 3D array of numeric type containing the image that will be sampled into.

TargetFrame

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

SourceArray

A 3D array of numeric type containing the image that will be sampled from.

SourceFrame

A coordinate frame defining the initial geometry of the source image.

Parameters

A vector describing the rigid body transformation to be applied to the source image geometry.

Keywords

INVERT

If this keyword is set, the routine will invert the transform described by the parameter vector before applying it to the source image.

Examples

This sample loads two arrays with 3 mm voxels and samples from the source into the target, applying an inverted rigid body transform to the source array before proceeding.
	Read_Interfile, 'target.img', targetArray
	targetFrame = FrameVolume(targetArray, VOXEL=[3,3,3])

	Read_Interfile, 'source.img', sourceArray
	sourceFrame = FrameVolume(sourceArray, VOXEL=[3,3,3])

	parameters = [30,0,0,0,0,15]
	fusedArray = MergeVolumesRigid( $
		targetArray, targetFrame, sourceArray, sourceFrame, parameters, /REVERSE) 

Erin McKay 2006-12-10