applyTransform(transform, x, interpolation = 3L, nearest = FALSE)
TRUE
and x
contains points,
the nearest voxel centre location in target space will be returned.
Otherwise a more precise subvoxel location will be given.The method is to first convert the control points to a deformation field
(cf. deformationField
), which encodes the location of each
target space voxel in the source space. The target voxel closest to the
requested location is found by searching through this deformation field, and
returned if nearest
is TRUE
or it coincides exactly with the
requested location. Otherwise, a block of four voxels in each dimension
around the point of interest is extracted from the deformation field, and
the final location is estimated by local cubic spline regression.
niftyreg.linear
, niftyreg.nonlinear