View source: R/antsrMotionCalculation.R
antsrMotionCalculation | R Documentation |
Correct time-series data for motion.
antsrMotionCalculation(
img,
fixed,
mask,
typeofTransform = c("Rigid", "QuickRigid", "BOLDRigid", "Affine", "AffineFast",
"BOLDAffine", "SyN", "SyNOnly"),
getMotionDescriptors = TRUE,
verbose = FALSE,
num_threads = 1,
seed = NULL,
...
)
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 |
getMotionDescriptors |
computes dvars and framewise displacement. May take additional memory. |
verbose |
enables verbose output. |
num_threads |
will execute
|
seed |
will execute
|
... |
extra parameters passed to antsRegistration |
List containing:
Motion corrected time-series image.
Data frame of translation parameters.
Average motion-corrected image.
Mask used to calculate framewise displacement.
Time-series mean and max displacements.
DVARS, derivative of frame-wise intensity changes.
For reproducible results, you should run
Sys.setenv(ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS = 1)
,
which is what the num_threads = 1
flag will do.
See https://github.com/ANTsX/ANTs/wiki/antsRegistration-reproducibility-issues
and https://github.com/ANTsX/ANTsR/issues/210#issuecomment-377511054
for discussion
BB Avants, Benjamin M. Kandel, JT Duda, Jeffrey S. Phillips
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.