# morphology: Mathematical morphology and filtering operations In imbibe: A Pipe-Friendly Image Calculator

## Description

Mathematical morphology and filtering operations

## Usage

 ``` 1 2 3 4 5 6 7 8 9 10 11 12 13``` ```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) ```

## Arguments

 `image` An image object or pipeline. `kernel` 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. `max` Logical value: if `TRUE`, maximum filtering is used for dilation; otherwise mean filtering is used. Mean filtering is always used by `dilateall`. `nonzero` 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). `min` Logical value: if `TRUE`, minimum filtering is used for erosion; otherwise nonzero voxels overlapping with the kernel are simply zeroed. `norm` Logical value indicating whether the mean filter will be normalised or not. `sigma` Numeric value giving the standard deviation of the Gaussian smoothing kernel. `offset` Logical value indicating whether subsampled pixels should be offset from the original locations or not.

## Value

An updated pipeline.

imbibe documentation built on Oct. 26, 2020, 5:08 p.m.