Learn R Programming

mmand (version 1.2.0)

meanFilter: Apply a filter to an array

Description

These functions apply mean or median filters to an array.

Usage

meanFilter(x, kernel)

medianFilter(x, kernel)

Arguments

x
An object that can be coerced to an array, or for which a morph method exists.
kernel
A kernel array, indicating the scope of the filter.

Value

  • A morphed array with the same dimensions as the original array.

See Also

morph for the function underlying this operation, and kernels for kernel-generating functions.