This function wraps ANTsR bias field corrections and returns nifti objects
bias_correct( file, correction = c("N3", "N4", "n3", "n4"), outfile = NULL, retimg = TRUE, reorient = FALSE, shrinkfactor = "4", mask = NULL, verbose = TRUE, ... ) bias_correct_ants( file, correction = c("N3", "N4", "n3", "n4"), shrinkfactor = "4", mask = NULL, verbose = TRUE, ... )
file | (character) image to be manipulated |
---|---|
correction | (character) N3 or N4 correction? |
outfile | (character) resultant image name (optional) |
retimg | (logical) return image of class nifti |
reorient | (logical) If retimg, should file be reoriented when read in?
Passed to |
shrinkfactor | Shrink factor passed to
|
mask | Mask to pass to |
verbose | print diagnostic output. |
... | additional arguments passed to
|
If retimg
then object of class nifti. Otherwise,
Result from system command, depends if intern is TRUE or FALSE.