powered by
Correct time-series data for motion.
antsrMotionCalculation(img, fixed = NA, mask = NA, typeofTransform = "Rigid", verbose = FALSE)
antsImage, usually ND where D=4.
Fixed image to register all timepoints to. If not provided, mean image is used.
mask for image (ND-1). If not provided, estimated from data.
One of "Affine", "Rigid", '"BOLDAffine", "BOLDRigid", "QuickRigid".
"Affine"
"Rigid"
"BOLDAffine"
"BOLDRigid"
"QuickRigid"
enables verbose output.
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.
# NOT RUN { set.seed(120) simimg<-makeImage(rep(5,4), rnorm(5^4)) antsrMotionCalculation( simimg ) # }
Run the code above in your browser using DataLab