mask for image (3D). If not provided, estimated from data.
fixed
Fixed image to register all timepoints to. If not provided, mean image is used.
moreaccurate
strategy desired for motion correction. One of 0 (test)
1 (high-res only), 2 (multi-level inter-subject), 3 (FIXME), or a special
method for intraSubjectBOLD.
txtype
Type of transform. One of "Affine", "Rigid", or
"SyN".
framewise
Calculate framewise displacement?
verbose
enables verbose output.
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.
tsDisplacement Time-series displacement image.
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))
# for real data, use simimg <- antsImageRead(getANTsRData('pcasl'), 4)antsMotionCalculation(simimg,moreaccurate=0)
# }