1.0.1 • Published 11 years ago
ndarray-imshow v1.0.1
ndarray-imshow
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.
Example
var lena = require("lena")
var imshow = require("ndarray-imshow")
imshow(lena)Install
npm install ndarray-imshowAPI
require("ndarray-imshow")(array[, options])
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.
arrayis an ndarrayoptionsis an object containing a set of optional argumentsminis the minimum bound on the intensity range for the imagemaxis the maximum bound on the intensity range for the imagecolormapis a colormap, as defined by thecolormappackagegrayis a flag which if set convertsrgbimages to grayscale first
Credits
(c) 2014 Mikola Lysenko. MIT License