Learn R Programming

FIACH (version 0.1.2)

erode: Separable Flat Erosion

Description

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

Usage

erode(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 eroded array

Examples

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

Run the code above in your browser using DataLab