This function calls fslmaths -ero
after inverting the image
to dilate an image with either
the default FSL kernel or the kernel specified in kopts
. The function
either saves the image or returns an object of class nifti.
fsl_dilate(..., outfile = tempfile(fileext = ".nii.gz"), retimg = FALSE)
fsldilate(
file,
outfile = NULL,
retimg = TRUE,
reorient = FALSE,
intern = FALSE,
kopts = "",
opts = "",
verbose = TRUE,
...
)
... | additional arguments passed to |
---|---|
outfile | (character) resultant dilated image name |
retimg | (logical) return image of class nifti |
file | (character) image to be dilated |
reorient | (logical) If retimg, should file be reoriented when read in?
Passed to |
intern | (logical) to be passed to |
kopts | (character) options for kernel |
opts | (character) additional options to be passed to fslmaths |
verbose | (logical) print out command before running |
Result from system command, depends if intern is TRUE or FALSE. If retimg is TRUE, then the image will be returned.
Functions with underscores have different defaults and will return an output filename, so to be used for piping