filler: Image Mask Filler

View source: R/filler.R

fillerR Documentation

Image Mask Filler

Description

Fills in a binary image using iMath, using dilation erosion but with zero padding built in.

Usage

filler(img, fill_size = 7, verbose = TRUE, dilate = TRUE, erode = TRUE)

Arguments

img

Object of class nifti or antsImage

fill_size

Size of fill (in voxels)

verbose

Output diagnostic values

dilate

should the image be dilated. This and erode allows for the function to perform erosion/dilation only with zero-padding.

erode

should the image be eroded This and dilate allows for the function to perform erosion/dilation only with zero-padding.

Value

Filled object with same class as img


neuroconductor-devel/extrantsr documentation built on July 3, 2025, 10:57 p.m.