transformVoxelToWorld: Transform points between voxel and ``world'' coordinates
Description
These functions are used to transform points from dimensionless pixel or voxel coordinates to ``real-world'' coordinates, typically in millimetres, and back.Usage
transformVoxelToWorld(points, image, simple = FALSE, ...)transformWorldToVoxel(points, image, simple = FALSE, ...)
Arguments
points
A vector giving the coordinates of a point, or a matrix with one point per row.
image
The image in whose space the points are given, an object of class "nifti"
.
simple
A logical value: if TRUE
then the transformation is performed simply by rescaling the points according to the voxel dimensions recorded in the image
. Otherwise the full xform matrix is used.
Value
- A vector or matrix of transformed points.