Gaussian filter for ndarrays
An FFT based Gaussian filter for ndarrays.
var lena = require"luminance"require"lena"var savePixels = require"save-pixels"var blur = require"ndarray-gaussian-filter"savePixelsblurlena 5 "png"pipeprocessstdout
Writes the following png to stdout:
npm install ndarray-gaussian-filter
Filters an ndarray using a Gaussian filter.
arrayis an ndarray
sigmais the radius of the Gaussian filter. Can be either a scalar or array
wrapis checks whether the filter is applied as a circular convolution or uses
0boundary. Default is
false. Can be set as an array to select boundary conditions independently for each axis.
(c) 2014 Mikola Lysenko. MIT License