This function performs registration to a template
using ANTsR and will run fslswapdim
reg_flip( 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, a = "-x", b = "y", c = "z", 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 |
| a | Option for x domain in |
| b | Option for y domain in |
| c | Option for z domain in |
| reproducible | Sets the seed and
|
| seed | will execute
|
| ... | arguments to |
List of nifti objects or character filenames