CompareVolumesRigidMutualInformation
This function transforms one of a pair of byte arrays and then evaluates the mutual information cost function between the two.
Syntax
Result = CompareVolumesRigidMutualInformation(FixedArray, FixedFrame, FloatArray, FloatFrame, Parameters)
Arguments
FixedArray
A 3D array of byte type containing the reference image.
FixedFrame
A coordinate frame (see FrameVolume) defining the target geometry.
FloatArray
A 3D array of byte type containing the floating image.
FloatFrame
A coordinate frame defining the initial geometry of the floating image.
Parameters
A 6-tuple representing a rigid transformation in a 3D space [X, Y, Z axis rotation, X, Y, Z axis translation].
Keywords
None.
Examples
This example examines the profile of the Mutual Information metric in parameter space along the direction of Z rotation.
Read_Interfile, 'target.hdr', fixedArray
fixedArray = BytScl(fixedArray, MIN=0)
fixedFrame = FrameVolume(fixedArray, VOXEL=[3,3,3])
floatArray = fixedArray
floatFrame = fixedFrame
FOR i=-10,10 DO BEGIN
cost = CompareVolumesRigidMutualInformation($
fixedArray, fixedFrame, floatArray, floatFrame, [0,0,i,0,0,0])
Print, i, cost
END