UNPKG

node-itk

Version:

ITK is an open-source, cross-platform system that provides developers with an extensive suite of software tools for image analysis. Among them, Node-ITK is a node.js wrapper which built on top of ITK, intended to facilitate its use in rapid prototyping, education, and web servies for Medical Image Processing.Its Origins by My master thesis--jolly, a new Framework for Medical Image Processing

20 lines (16 loc) 521 B
var node_itk = require('node-itk'); var image = new node_itk.NodeImage('rgb',2); console.log('pixel:'+image.GetPixelType()); console.log(image.GetDimension()); image.Read('rgb',2,'./Data/Desert.jpg'); image.Write('rgb.jpg'); image.Cast('uchar'); image.Write('uchar.tiff'); image.ScaleCast('rgb'); image.Write('rgb2.tiff'); image.ReadSeriesRE('rgb','vew00[1-9].jpg', 0, './'); image.Write('s.tiff'); image.ScaleCast('short'); image.Write('s2.tiff'); image.ScaleCast('uchar'); image.Write('s3.tiff');