integrateVectorField.Rd
Utility function to integrate a vector field and create a deformation field.
integrateVectorField(
referenceImage,
vectorFieldFileName,
deformationFieldFileName,
lowerTime = 0,
upperTime = 1,
deltaTime = 0.01
)
defines the image domain
the vector field exists on disk.
the deformation field output file name.
the starting time, usually zero for forward transformation and one for the inverse transformation.
the ending time, usually one for forward transformation and zero for the inverse transformation.
the integration time step
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")
} # }