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

    50

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • mikolalysenko
    • rreusser
    • planeshifter
    • jaspervdg
    • hughsk
    • substack