UNPKG

paraview-glance

Version:

Web application for Visualizing Scientific and Medical datasets

22 lines (18 loc) 567 B
"use strict"; const ImageType = require('./ImageType.js'); const Matrix = require('./Matrix.js'); const Image = function (imageType = new ImageType()) { this.imageType = imageType; this.name = 'Image'; const dimension = imageType.dimension; this.origin = new Array(dimension); this.origin.fill(0.0); this.spacing = new Array(dimension); this.spacing.fill(1.0); this.direction = new Matrix(dimension, dimension); this.direction.setIdentity(); this.size = new Array(dimension); this.size.fill(0); this.data = null; }; module.exports = Image;