This function performs registration to a template
using ANTsR and will run fslswapdim
reg_flip_img( t1, register = TRUE, native = TRUE, template.file = file.path(fsldir(), "data", "standard", paste0("MNI152_T1_1mm", ifelse(is.null(mask), "", "_brain"), ".nii.gz")), typeofTransform = c("Rigid", "Affine"), interpolator = "LanczosWindowedSinc", t1.outfile = NULL, other.files = NULL, other.outfiles = NULL, mask = NULL, mask.outfile = NULL, verbose = TRUE, flipx = FALSE, flipy = FALSE, flipz = FALSE, reproducible = TRUE, seed = 1, ... )
t1 | filename (or nifti objects) of T1 image |
---|---|
register | Register image to template file |
native | If images are registered, should the native space normalized image be returned? |
template.file | Filename of template to warp to |
typeofTransform | type of transformed used, passed to
|
interpolator | Interpolation to be performed, passed to
|
t1.outfile | Output filename of normalized T1 image |
other.files | Character filenames or list of nifti objects to normalize. In the same space as T1. |
other.outfiles | Character filenames for output normalized files. |
mask | File or nifti image of brain mask |
mask.outfile | Character filename for output brain mask. |
verbose | Print Diagnostic Messages |
flipx | Option for flipping x domain in |
flipy | Option for flipping y domain in |
flipz | Option for flipping z domain in |
reproducible | Sets the seed and
|
seed | will execute
|
... | arguments to |
List of nifti objects or character filenames