node-maxmin-filter
Max-Min filter of image implemented in JavaScript. Both in Node.js and browser.
Install
$ npm install maxmin-filter
Usage
I made it as an ndarray module. So, the simplest usage is with get-pixels and save-pixels as below.
const fs = const savePixels = const getPixels = const maxminFilter =
API
maxminFilter(pixels[, options])
Returns a thresholded ndarray.
pixels
- an ndarray whose shape is [width, height, channels].options.size
- the filter size.