This function calls epi_reg
, designed to
register EPI images (typically functional or diffusion) to structural
(e.g. T1-weighted) image.
fslepi_reg(
epi,
t1,
t1_brain,
outfile = NULL,
retimg = TRUE,
reorient = FALSE,
intern = FALSE,
fmap = NULL,
fmap_mag = NULL,
fmap_mag_brain = NULL,
echo_spacing = NA,
phase_enc_dir = c("x", "y", "z", "-x", "-y", "-z"),
weight = NULL,
verbose = TRUE,
opts = "",
...
)
fsl_epi_reg(..., outfile = tempfile(fileext = ".nii.gz"), retimg = FALSE)
epi_reg(..., outfile = tempfile(fileext = ".nii.gz"), retimg = FALSE)
EPI image, character or nifti object
whole head T1 image , character or nifti object
brain extracted T1 image
output registered image filename
(logical) return image of class nifti
(logical) If retimg, should file be reoriented when read in?
Passed to readnii
.
(logical) to be passed to system
fieldmap image (in rad/s)
fieldmap magnitude image - whole head extracted
fieldmap magnitude image - brain extracted
Effective EPI echo spacing (sometimes called dwell time) - in seconds
phase encoding direction, dir = x/y/z/-x/-y/-z
weighting image (in T1 space)
(logical) print out command before running
(character) operations to be passed to fslmaths
additional arguments passed to readnii
.
If retimg
then object of class nifti. Otherwise,
Result from system command, depends if intern is TRUE or FALSE.
Functions with underscores have different defaults and will return an output filename, so to be used for piping