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, ...)
fslfill
after dilation/erosion.readNIfTI
.system
readNIfTI
.