Learn R Programming

FIACH (version 0.1.2)

dilate: Separable Flat dilation

Description

This function dilates data with a flat kernel in up to three dimensions.

Usage

dilate(input,k)

Arguments

input
A vector/matrix or 3D array.
k
Window width. Note that the window is symmetric around the i^th element with a total of 2*k+1 elements.

Value

returns the dilated array

Examples

Run this code
arr<-array(rnorm(30*30*30), dim=c(30,30,30))
d<-dilate(arr, k=1)

Run the code above in your browser using DataLab