ndarray-gaussian-filter
v1.0.0
Published
Gaussian filter for ndarrays
Downloads
20
Readme
ndarray-gaussian-filter
An FFT based Gaussian filter for ndarrays.
Example
var baboon = require("luminance")(require("baboon-image"))
var savePixels = require("save-pixels")
var blur = require("ndarray-gaussian-filter")
savePixels(blur(baboon, 5), "png").pipe(process.stdout)
Output
Install
Install using npm:
npm install ndarray-gaussian-filter
API
require("ndarray-gaussian-filter")(array,radius[,wrap])
Filters an ndarray using a Gaussian filter.
array
is an ndarray.sigma
is the radius of the Gaussian filter. Can be either a scalar or an array.wrap
is checks whether the filter is applied as a circular convolution or uses0
boundary. Default isfalse
. Can be set as an array to select boundary conditions independently for each axis.
Returns array
License
(c) 2014 Mikola Lysenko. MIT License