1.0.0 • Published 7 years ago

datacube-image-slicer v1.0.0

Weekly downloads
24
License
-
Repository
github
Last release
7 years ago

datacube-image-slicer

generate 2d slices from 3d data & paint them onto a HTML5 canvas.

npm.io

install

  • npm install --save datacube-image-slicer

usage

const res = await window.fetch('/url/to/brain.json')
const data = await res.json() // 3D array of ints, 0-255
new DatacubeView({
  data,
  node: document.getElementById('#brain-canvas'),
  axis: 'x', // y, or z
  onMouseMove: function (datacubeView) {
    console.log(datacubeView.position)
    otherView.position = datacubeView.position
    otherView.render()
  }
}))

more information is available in the API docs

1.0.0

7 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago