Learn R Programming

ocean (version 0.1-0)

filter2d: 2D Gaussian Filter

Description

Applies a Gaussian blur to a 2D matrix. The matrix is first convoluted with the filter along rows, then along columns.

Usage

filter2d(mat, r)

Arguments

mat
The matrix to filter.
r
The standard deviation of the filter in matrix cells.

Value

  • The filtered matrix.