2018-08-12 admin


什么是ami.js,AMI Medical Imaging (AMI) JS ToolKit for THREEJS


Build Status Code Climate CDNJS Version NPM Version NPM Downloads per Month Slack

**AMI Alpha** is now available for developer preview.
Please submit pull request, open issues or contact us for any question, feature request, etc.

- <Important Note>
-  Developer preview means that the API might change but you can already build cool apps with AMI.


  1. Hello AMI
  2. Features
  3. Usage
  4. Developer corner
  5. Change log
  6. Credits
  7. Citations

Hello AMI

(more) Advanced demos

Volume rendering, 2D viewer, arbitrary reslicing and more examples and advanced demos there!


<g-emoji class=“g-emoji” alias=“white_check_mark” fallback-src=“”>✅</g-emoji>READY<g-emoji class=“g-emoji” alias=“large_orange_diamond” fallback-src=“”>🔶</g-emoji>IN PROGRESS OR LIMITED SUPPORT<g-emoji class=“g-emoji” alias=“x” fallback-src=“”>❌</g-emoji>ON ROADMAP

Capabilities Volumes Meshes Widgets
<g-emoji class=“g-emoji” alias=“white_check_mark” fallback-src=“”>✅</g-emoji>2D Visulization <g-emoji class=“g-emoji” alias=“white_check_mark” fallback-src=“”>✅</g-emoji>Dicom <g-emoji class=“g-emoji” alias=“white_check_mark” fallback-src=“”>✅</g-emoji>VTK (THREEJS) <g-emoji class=“g-emoji” alias=“large_orange_diamond” fallback-src=“”>🔶</g-emoji>Handle (2D/3D)
<g-emoji class=“g-emoji” alias=“white_check_mark” fallback-src=“”>✅</g-emoji>3D Visualization <g-emoji class=“g-emoji” alias=“white_check_mark” fallback-src=“”>✅</g-emoji>NRRD <g-emoji class=“g-emoji” alias=“white_check_mark” fallback-src=“”>✅</g-emoji>STL (THREEJS) <g-emoji class=“g-emoji” alias=“large_orange_diamond” fallback-src=“”>🔶</g-emoji>Probe (2D/3D)
<g-emoji class=“g-emoji” alias=“white_check_mark” fallback-src=“”>✅</g-emoji>Volume Rendering <g-emoji class=“g-emoji” alias=“white_check_mark” fallback-src=“”>✅</g-emoji>Nifti <g-emoji class=“g-emoji” alias=“white_check_mark” fallback-src=“”>✅</g-emoji>TRK <g-emoji class=“g-emoji” alias=“large_orange_diamond” fallback-src=“”>🔶</g-emoji>Ruler (2D/3D)
<g-emoji class=“g-emoji” alias=“white_check_mark” fallback-src=“”>✅</g-emoji>Lookup Tables <g-emoji class=“g-emoji” alias=“white_check_mark” fallback-src=“”>✅</g-emoji>MHD/(Z)RAW <g-emoji class=“g-emoji” alias=“white_check_mark” fallback-src=“”>✅</g-emoji>FSM <g-emoji class=“g-emoji” alias=“large_orange_diamond” fallback-src=“”>🔶</g-emoji>Orientation (2D/3D)
<g-emoji class=“g-emoji” alias=“large_orange_diamond” fallback-src=“”>🔶</g-emoji>Label Maps <g-emoji class=“g-emoji” alias=“white_check_mark” fallback-src=“”>✅</g-emoji>MGH/MGZ <g-emoji class=“g-emoji” alias=“x” fallback-src=“”>❌</g-emoji>CURV <g-emoji class=“g-emoji” alias=“large_orange_diamond” fallback-src=“”>🔶</g-emoji>Angle (2D/3D)
<g-emoji class=“g-emoji” alias=“x” fallback-src=“”>❌</g-emoji>JPEG



  • ES2015 promises support. (consider using polyfills if needed)
  • Load THREEJS your index.html BEFORE AMI.

<script src=""></script>


Note: you might need to include babel transforms in you build process.

// app.js
const AMI = require('ami.js');
window.console.log('Ready to rock!!');


Check-out the lessons to get started quickly.

Add AMI in your index.html after THREEJS.

<!-- index.html -->
<script src=""></script>
<script src=""></script>
<script src="app.js"></script>

const AMI = AMI;
window.console.log('Ready to rock!!');

Developer corner

Get the source code and related packages.

$> git clone
$> cd ami
$> yarn install

To run examples (browserify/babelify/serve the example)

$> yarn example <examples name>

#run the geometries_slice example
$> yarn example geometries_slice

To run lessons (browserify/babelify/serve the lesson)

$> yarn lesson <lesson number>

# run lesson 00
$> yarn lesson 00

Build standalone library to lib/

Build minified standalone version run



Build and deploy dist/ to gh-pages

Find out more about the API.


AMI would not exist without them:

  • Base components such as Vectors, Matrices and Objects3D.

  • HTML template for example page.

  • Author(s): mrdoob

  • DICOM parsing relies on it.

  • Author(s): chafey

  • Was used to figure out how to use the dicom parser properly.

  • Author(s): chafey

  • Nifti parsing relies on it.

  • Author(s): rii-mango

  • NRRD parsing relies on it.

  • Author(s): jaspervdg

  • JPEG Lossless Decoder for DICOM images

  • Author(s): rii-mango

  • GZ file decompression

  • Author(s): nodeca



转载请注明:文章转载自 JavaScript中文网 []