Utility function to integrate a vector field and create a deformation field.

integrateVectorField(
  referenceImage,
  vectorFieldFileName,
  deformationFieldFileName,
  lowerTime = 0,
  upperTime = 1,
  deltaTime = 0.01
)

Arguments

referenceImage

defines the image domain

vectorFieldFileName

the vector field exists on disk.

deformationFieldFileName

the deformation field output file name.

lowerTime

the starting time, usually zero for forward transformation and one for the inverse transformation.

upperTime

the ending time, usually one for forward transformation and zero for the inverse transformation.

deltaTime

the integration time step

Author

Avants BB

Examples

if (FALSE) { # \dontrun{
set.seed(1234)
fi <- (ri(1))
mi <- (ri(2))
mytx2 <- antsRegistration(fixed = fi, mi, typeofTransform = "SyN")
integrateVectorField(fi, mytx2$velocityfield, "/tmp/def.nii.gz")
} # }