Learn R Programming

RNiftyReg (version 1.1.5)

getDeformationField: Calculate the deformation field for a transformation

Description

This function is used to calculate the deformation field corresponding to a specified linear or nonlinear transformation. The deformation field gives the location in source image space corresponding to the centre of each voxel in target space.

Usage

getDeformationField(target, affine = NULL, controlPointImage = NULL,
    jacobian = TRUE)

Arguments

target
A "nifti" object representing the target image for the transformation.
affine
A 4x4 matrix representing an affine matrix, using the "niftyreg" convention. Either this or a control point image must be specified.
controlPointImage
A "nifti" object representing the control points for a nonlinear transformation. Either this or an affine matrix must be specified.
jacobian
A logical value: if TRUE, a Jacobian determinant map is also calculated and returned.

Value

  • A list with components
  • deformationFieldAn object of class "nifti" representing the deformation field.
  • jacobianAn object of class "nifti" representing the Jacobian determinant map, if requested. Otherwise this element is not present.

See Also

niftyreg.linear, niftyreg.nonlinear