Displays an ndarray as an image, either in the browser console or as a pop up when run from node. This works both in node.js and the browser via browserify.
var lena =var imshow =
npm install ndarray-imshow
Displays an ndarray as an image. In node, this will open a window, while in the browser the image will be displayed in the debug console.
array is an ndarray
options is an object containing a set of optional arguments
minis the minimum bound on the intensity range for the image
maxis the maximum bound on the intensity range for the image
colormapis a colormap, as defined by the
grayis a flag which if set converts
rgbimages to grayscale first
(c) 2014 Mikola Lysenko. MIT License