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

27 lines (18 loc) 795 B
var node_itk = require('node-itk'); var image = new node_itk.NodeImage('uchar',3); image.Read('short', 3, './Data/src1', 'dicom'); console.log(image.GetImageIO()); console.log(image.FindDicomTag("0010|0010")); console.log(image.FindDicomTag("0010|0020")); console.log(image.FindDicomTag("0010|0040")); console.log(image.FindDicomTag("0010|1010")); console.log(image.FindDicomTag("0008|0020")); console.log(image.FindDicomTag("0008|0060")); console.log(image.FindDicomTag("0008|0070")); console.log(image.FindDicomTag("0008|0080")); console.log(image.FindDicomTag("0008|1090")); image.ChangeDicomTagValue("0010|0010", "qiu wenfeng") image.ChangeDicomTagValue("0008|0080", 'qiu wenfeng hosiptal') image.Write('y', 'dicom') image2 = image; image2.Write('t.tiff');