$ npm install adaptive-threshold
const fs =const savePixels =const getPixels =const adaptiveThreshold =
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.