Mathematical morphology and filtering operations
dilate(image, kernel = NULL, ..., max = FALSE, nonzero = TRUE)dilateall(image, kernel = NULL, ...)
erode(image, kernel = NULL, ..., min = FALSE)
filter_median(image, kernel = NULL, ...)
filter_mean(image, kernel = NULL, ..., norm = TRUE)
smooth_gauss(image, sigma)
subsample(image, offset = FALSE)
An updated pipeline.
An image object or pipeline.
A suitable kernel function (see kernels
). If
NULL
, the most recently set kernel in the pipeline is used, if any,
otherwise the default kernel (kernel_3d
).
Additional arguments to the kernel function, if any.
Logical value: if TRUE
, maximum filtering is used for
dilation; otherwise mean filtering is used. Mean filtering is always used
by dilateall
.
Logical value: if TRUE
, the default, dilation is only
applied to nonzero pixels/voxels. Otherwise it is applied everywhere (and
maximum filtering is always used).
Logical value: if TRUE
, minimum filtering is used for
erosion; otherwise nonzero voxels overlapping with the kernel are simply
zeroed.
Logical value indicating whether the mean filter will be normalised or not.
Numeric value giving the standard deviation of the Gaussian smoothing kernel.
Logical value indicating whether subsampled pixels should be offset from the original locations or not.