Description Usage Arguments Value
View source: R/ants_regwrite2.R
This function performs registration using ANTsR, carries out the transformation on other images, and can back-transform image in registered space to the native space of the original image. Returns the transforms
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | registration(
filename,
skull_strip = FALSE,
correct = FALSE,
correction = "N4",
retimg = TRUE,
outfile = NULL,
template.file = file.path(fsldir(), "data", "standard", "MNI152_T1_1mm_brain.nii.gz"),
interpolator = "Linear",
other_interpolator = interpolator,
other.files = NULL,
other.outfiles = NULL,
other.init = NULL,
invert_interpolator = interpolator,
invert.native.fname = NULL,
invert.file = NULL,
typeofTransform = "SyN",
remove.warp = FALSE,
outprefix = NULL,
bet.opts = "-B -f 0.1 -v",
betcmd = "bet",
copy_origin = TRUE,
verbose = TRUE,
reproducible = TRUE,
seed = 1,
force_registration = TRUE,
...
)
|
filename |
filename of image to be registered |
skull_strip |
do skull stripping with FSL BET |
correct |
do bias correction on the filename |
correction |
N3 or N4 correction, see |
retimg |
return a nifti object from function |
outfile |
output filename should have .nii or .nii.gz extension |
template.file |
Filename of image to warp to |
interpolator |
interpolation done for
|
other_interpolator |
interpolation done for
|
other.files |
Filenames of other iamges to be transformed with the T1 |
other.outfiles |
Output filenames of |
other.init |
Initial transformation lists (same length as |
invert_interpolator |
interpolation done for
|
invert.native.fname |
filename of output native file, must have
same length as |
invert.file |
Filename of image to invert to native space |
typeofTransform |
type of transformed used, passed to
|
remove.warp |
(logical) Should warping images be deleted? |
outprefix |
Character path of where the warp files should be stored.
Required if |
bet.opts |
Options passed to |
betcmd |
BET command used, passed to |
copy_origin |
Copy image origin from t1, using |
verbose |
Print diagnostic messages |
reproducible |
Sets the seed and
|
seed |
will execute
|
force_registration |
If |
... |
arguments to |
List of the output filenames and transformations
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.