This function calls fslmaths
to dilate an image, then calls
it again to erode it.
fslfill2(file, outfile = NULL, kopts = "", remove.ends = TRUE,
refill = TRUE, retimg = TRUE, reorient = FALSE, intern = FALSE,
verbose = TRUE, ...)
(character) filename of image to be filled
(character) name of resultant filled file
(character) Options passed for kernel before erosion/dilation
(logical) Remove top and bottom dilation.
(logical) Run fslfill
after dilation/erosion.
(logical) return image of class nifti
(logical) If retimg, should file be reoriented when read in?
Passed to readnii
.
(logical) pass to system
(logical) print out command before running
additional arguments passed to readnii
.
character or logical depending on intern