| Computerhead | Fusion Package | IDL Library |
This function creates a coordinate frame for a specified 3D array. A coordinate frame is a 3D conformal transformation in homogeneous coordinates that maps pixel indices into locations (points) in a global frame of reference. The inverse of a coordinate frame maps global coordinates into pixel indices.
The origin of a coordinate frame is assumed to lie at the geometric centre of the array that it describes, and its 3 orthogonal basis vectors are directed along the array dimensions, and have length equal to the voxel size in the respective direction.
Result = FrameVolume(A)
fixedArray = FIndGen(64, 64, 64) fixedFrame = FrameVolume(fixedArray,VOXEL=[3,3,3],$ ROTATE=[90,0,0],TRANSLATE=[5,2,0]) Print, fixedFrame
| Erin McKay | 2006-12-10 |