npm

Bring the best of OSS JavaScript development to your projects with npm Orgs - private packages & team management tools.Learn more »

ndarray-gaussian-filter

1.0.0 • Public • Published

ndarray-gaussian-filter

An FFT based Gaussian filter for ndarrays.

build status

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

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 uses 0 boundary. Default is false. Can be set as an array to select boundary conditions independently for each axis.

Returns array

License

(c) 2014 Mikola Lysenko. MIT License

install

npm i ndarray-gaussian-filter

Downloadsweekly downloads

179

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability