dil_ero: Fill image holes with dilation then erosion

Description Usage Arguments Value Note

View source: R/dil_ero.R

Description

This function calls mean_image to dilate an image, then calls it again to erode it.

Usage

1
2
3
4
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,
  ...)

Arguments

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 zero_pad before running.

remove.ends

(logical) Remove top and bottom dilation.

tol

(double) Tolerance for thresholding after fft.

refill

(logical) Run fslfill after dilation/erosion.

retimg

(logical) return image of class nifti

reorient

(logical) If retimg, should file be reoriented when read in? Passed to readNIfTI.

intern

(logical) pass to system

verbose

(logical) print out command before running

...

additional arguments passed to readNIfTI.

Value

character or logical depending on intern

Note

This function binarizes the image before running.


neuroconductor-devel/ichseg documentation built on Sept. 5, 2019, 8:01 p.m.