ami.js

2018-08-12 admin

ami.js是什么

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

ami.js介绍、ami.js使用

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.


Content

  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!

Features

<g-emoji class=“g-emoji” alias=“white_check_mark” fallback-src=“https://assets-cdn.github.com/images/icons/emoji/unicode/2705.png”>✅</g-emoji>READY<g-emoji class=“g-emoji” alias=“large_orange_diamond” fallback-src=“https://assets-cdn.github.com/images/icons/emoji/unicode/1f536.png”>🔶</g-emoji>IN PROGRESS OR LIMITED SUPPORT<g-emoji class=“g-emoji” alias=“x” fallback-src=“https://assets-cdn.github.com/images/icons/emoji/unicode/274c.png”>❌</g-emoji>ON ROADMAP

Capabilities Volumes Meshes Widgets
<g-emoji class=“g-emoji” alias=“white_check_mark” fallback-src=“https://assets-cdn.github.com/images/icons/emoji/unicode/2705.png”>✅</g-emoji>2D Visulization <g-emoji class=“g-emoji” alias=“white_check_mark” fallback-src=“https://assets-cdn.github.com/images/icons/emoji/unicode/2705.png”>✅</g-emoji>Dicom <g-emoji class=“g-emoji” alias=“white_check_mark” fallback-src=“https://assets-cdn.github.com/images/icons/emoji/unicode/2705.png”>✅</g-emoji>VTK (THREEJS) <g-emoji class=“g-emoji” alias=“large_orange_diamond” fallback-src=“https://assets-cdn.github.com/images/icons/emoji/unicode/1f536.png”>🔶</g-emoji>Handle (2D/3D)
<g-emoji class=“g-emoji” alias=“white_check_mark” fallback-src=“https://assets-cdn.github.com/images/icons/emoji/unicode/2705.png”>✅</g-emoji>3D Visualization <g-emoji class=“g-emoji” alias=“white_check_mark” fallback-src=“https://assets-cdn.github.com/images/icons/emoji/unicode/2705.png”>✅</g-emoji>NRRD <g-emoji class=“g-emoji” alias=“white_check_mark” fallback-src=“https://assets-cdn.github.com/images/icons/emoji/unicode/2705.png”>✅</g-emoji>STL (THREEJS) <g-emoji class=“g-emoji” alias=“large_orange_diamond” fallback-src=“https://assets-cdn.github.com/images/icons/emoji/unicode/1f536.png”>🔶</g-emoji>Probe (2D/3D)
<g-emoji class=“g-emoji” alias=“white_check_mark” fallback-src=“https://assets-cdn.github.com/images/icons/emoji/unicode/2705.png”>✅</g-emoji>Volume Rendering <g-emoji class=“g-emoji” alias=“white_check_mark” fallback-src=“https://assets-cdn.github.com/images/icons/emoji/unicode/2705.png”>✅</g-emoji>Nifti <g-emoji class=“g-emoji” alias=“white_check_mark” fallback-src=“https://assets-cdn.github.com/images/icons/emoji/unicode/2705.png”>✅</g-emoji>TRK <g-emoji class=“g-emoji” alias=“large_orange_diamond” fallback-src=“https://assets-cdn.github.com/images/icons/emoji/unicode/1f536.png”>🔶</g-emoji>Ruler (2D/3D)
<g-emoji class=“g-emoji” alias=“white_check_mark” fallback-src=“https://assets-cdn.github.com/images/icons/emoji/unicode/2705.png”>✅</g-emoji>Lookup Tables <g-emoji class=“g-emoji” alias=“white_check_mark” fallback-src=“https://assets-cdn.github.com/images/icons/emoji/unicode/2705.png”>✅</g-emoji>MHD/(Z)RAW <g-emoji class=“g-emoji” alias=“white_check_mark” fallback-src=“https://assets-cdn.github.com/images/icons/emoji/unicode/2705.png”>✅</g-emoji>FSM <g-emoji class=“g-emoji” alias=“large_orange_diamond” fallback-src=“https://assets-cdn.github.com/images/icons/emoji/unicode/1f536.png”>🔶</g-emoji>Orientation (2D/3D)
<g-emoji class=“g-emoji” alias=“large_orange_diamond” fallback-src=“https://assets-cdn.github.com/images/icons/emoji/unicode/1f536.png”>🔶</g-emoji>Label Maps <g-emoji class=“g-emoji” alias=“white_check_mark” fallback-src=“https://assets-cdn.github.com/images/icons/emoji/unicode/2705.png”>✅</g-emoji>MGH/MGZ <g-emoji class=“g-emoji” alias=“x” fallback-src=“https://assets-cdn.github.com/images/icons/emoji/unicode/274c.png”>❌</g-emoji>CURV <g-emoji class=“g-emoji” alias=“large_orange_diamond” fallback-src=“https://assets-cdn.github.com/images/icons/emoji/unicode/1f536.png”>🔶</g-emoji>Angle (2D/3D)
<g-emoji class=“g-emoji” alias=“x” fallback-src=“https://assets-cdn.github.com/images/icons/emoji/unicode/274c.png”>❌</g-emoji>JPEG

Usage

Pre-requisites

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

<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r81/three.js"></script>

Yarn

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!!');

ami.js

Check-out the lessons to get started quickly.

Add AMI in your index.html after THREEJS.

<!-- index.html -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r81/three.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ami.js/0.0.12/ami.min.js"></script>
<script src="app.js"></script>

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

Developer corner

Get the source code and related packages.

$> git clone https://github.com/FNNDSC/ami.git
$> 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

Tests

Documentation

Build and deploy dist/ to gh-pages

Find out more about the API.

Credits

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

Citations

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-37777.html

文章标题:ami.js

回到顶部