This function calls mean_image
to dilate an image, then calls
it again to erode it.
dil_ero( file, outfile = NULL, nvoxels = 3, zeropad = TRUE, remove.ends = FALSE, tol = .Machine$double.eps^0.5, refill = TRUE, retimg = FALSE, reorient = FALSE, intern = TRUE, verbose = TRUE, ... )
file | (character) filename of image to be filled |
---|---|
outfile | (character) name of resultant filled file |
nvoxels | (integer) Number of voxels to smooth over, creates vxvxv box. |
zeropad | (logical) Perform |
remove.ends | (logical) Remove top and bottom dilation. |
tol | (double) Tolerance for thresholding after |
refill | (logical) Run |
retimg | (logical) return image of class nifti |
reorient | (logical) If retimg, should file be reoriented when read in?
Passed to |
intern | (logical) pass to |
verbose | (logical) print out command before running |
... | additional arguments passed to |
character or logical depending on intern
This function binarizes the image before running.