node-adaptive-threshold
Adaptive Threshold in JavaScript. Both in Node.js and browser.
Install
$ npm install adaptive-threshold
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 adaptiveThreshold =
API
adaptiveThreshold(pixels[, options])
Returns a thresholded ndarray.
pixels
- an ndarray whose shape is [width, height, channels].options.size
- the size of neighbourhood area.options.compensation
- a constant which is subtracted from the mean.