otherwise, read the ants documentation a bit ... the parameters, in
general, control how the metrics are calculated and how the
optimization is performed. if you read the page
Specify the output transform prefix (output format is
.nii.gz ).Optionally, one
can choose to warp the moving image to the fixed space and,
if the inverse
transform exists, one can also output the warped fixed image.
-a, --average-image
Average the input time series image.
-w, --write-displacement
Write the low-dimensional 3D transforms to a 4D displacement field
-h
Print the help menu (short version).
<VALUES>: 0
--help
Print the help menu.
<VALUES>: 1, 0
I typically use AFNI for motion correction (the 3dVolreg function). I simply
register all subsequent volumes to the first volume (instead of using an
average). I have heard that ANTs does a great job with motion correction,
and I would like to use it. I see the example given at https://stnava.github.io/fMRIANTs/ but am having a hard time following it
compared to one-line motion-correction in AFNI. Would somebody be able to
explain what's going on, and what the given arguments in that example mean?
Last edit: Anonymous 2021-05-22
you can use ANTsR for a one line call ... see
antsMotionCalculation
in antsr
http://stnava.github.io/ANTsR/
otherwise, read the ants documentation a bit ... the parameters, in
general, control how the metrics are calculated and how the
optimization is performed. if you read the page
http://stnava.github.io/fMRIANTs/
you will see comments like " change -i parameters to something larger
and Regular, 0.1to Regular, 0.2 for 'real' data."
you can the do:
antsMotionCorr --help
and see below for the result:
COMMAND:
user-level registration
can specify any number
metric; and
level. Specialized for
be the 4D time
OPTIONS:
specified-dimensional image. If
from the input
step size only at
the template image.
CC[fixedImage,movingImage,metricWeight,radius,<samplingstrategy={regular,random}>,<samplingpercentage=[0,1]>]</samplingpercentage=[0,1]></samplingstrategy={regular,random}>
MI[fixedImage,movingImage,metricWeight,numberOfBins,<samplingstrategy={regular,random}>,<samplingpercentage=[0,1]>]</samplingpercentage=[0,1]></samplingstrategy={regular,random}>
Demons[fixedImage,movingImage,metricWeight,radius,<samplingstrategy={regular,random}>,<samplingpercentage=[0,1]>]</samplingpercentage=[0,1]></samplingstrategy={regular,random}>
GC[fixedImage,movingImage,metricWeight,radius,<samplingstrategy={regular,random}>,<samplingpercentage=[0,1]>]</samplingpercentage=[0,1]></samplingstrategy={regular,random}>
Demons: Thirion's
is currently not
multivariate metrics are
GaussianDisplacementField[gradientStep,updateFieldSigmaInPhysicalSpace,totalFieldSigmaInPhysicalSpace]
SyN[gradientStep,updateFieldSigmaInPhysicalSpace,totalFieldSigmaInPhysicalSpace]
orlearningRate
scaled appropriately for
parameters are
the fixed image) at
[outputTransformPrefix,<outputwarpedimage>,<outputaverageimage>]</outputaverageimage></outputwarpedimage>
.nii.gz ).Optionally, one
if the inverse
brian
On Thu, Feb 5, 2015 at 3:59 PM, nobody itsjustnotme@users.sf.net wrote: