Correct time-series data for motion.

antsrMotionCalculation(
  img,
  fixed,
  mask,
  typeofTransform = c("Rigid", "QuickRigid", "BOLDRigid", "Affine", "AffineFast",
    "BOLDAffine", "SyN", "SyNOnly"),
  getMotionDescriptors = TRUE,
  verbose = FALSE,
  ...
)

Arguments

img

antsImage, usually ND where D=4.

fixed

Fixed image to register all timepoints to. If not provided, mean image is used.

mask

mask for image (ND-1). If not provided, estimated from data.

typeofTransform

One of "Affine", "Rigid", '"BOLDAffine", "BOLDRigid", "QuickRigid".

getMotionDescriptors

computes dvars and framewise displacement. May take additional memory.

verbose

enables verbose output.

...

extra parameters passed to antsRegistration

Value

List containing:

moco_img

Motion corrected time-series image.

moco_params

Data frame of translation parameters.

moco_avg_img

Average motion-corrected image.

moco_mask

Mask used to calculate framewise displacement.

fd

Time-series mean and max displacements.

dvars

DVARS, derivative of frame-wise intensity changes.

Author

BB Avants, Benjamin M. Kandel, JT Duda, Jeffrey S. Phillips