npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ami-visualizer

v0.1.1

Published

Viewer developed using AMI JS library for medical image visualization on the Web (based on THREE.js) (https://github.com/FNNDSC/ami ). Can be downloaded and installer as an npm package using `npm install ami-visualizer` ___

Downloads

7

Readme

AMI Viewer v0.1

Viewer developed using AMI JS library for medical image visualization on the Web (based on THREE.js) (https://github.com/FNNDSC/ami ). Can be downloaded and installer as an npm package using npm install ami-visualizer


AMIViewer Object

The AMIViewer object is the one exported by our library to be used externally. Its constructor is:

AMIViewer(container,'Tractography',filenames);
  • Container: The HTML DOM Element to place the viewer
  • Type: Type of the viewer.
    • Slices: Shows an MPR view and includes the Editor to paint segmentations. Loads a labelmap (.nii) and NIFTI/DICOM data.
    • Tractography: Shows an MPR View + a 3D view with fibers.
  • Filenames: Structure that contains the URL to the data. It allows the data, labelmap and fibers field, e.g:
var filenames = {
  data: 'https://cdn.rawgit.com/YorkeUtopy/ami-viewerData/05384dc0/T1stripvolume.nii.gz',
  labelmap: 'https://cdn.rawgit.com/YorkeUtopy/ami-viewerData/05384dc0/labels.nii.gz'
};

Controls

  • Move the volume / crosshair with the primary mouse button
  • Zoom in/out with the secondary mouse button and dragging
  • Scroll through slices with the mouse wheel.
  • R resets the view.
  • Press and hold E to activate the editor.

Editor

  • Primary mouse button draws the current label.
  • secondary mouse button erases segmentations.
  • S saves the current segmentation state.
  • C reverts to the last segmentation saved state.
  • You can add and select a label with the GUI, and also reset to its initial state

Tractography Type

  • A: Toggle Axial plane
  • S: Toggle Sagittal plane
  • C: Toggle Coronal plane
  • F: Toggle Fibers.

Development

The application uses Browserify/Babelify and UglifyJS to create the builds that are stored on the build directory:

To serve the files use:

npm run serve

To build the library use:

npm run build

A example on how you would use the library to create a viewer would be:

var container = document.getElementById('container');

var filenames = {
  data: 'https://cdn.rawgit.com/YorkeUtopy/ami-viewerData/05384dc0/T1stripvolume.nii.gz',
  fibers: 'https://cdn.rawgit.com/aalises/ami-viewerData/d754e35e/streamline_downsampledDavid.trk',
  labelmap: 'https://cdn.rawgit.com/YorkeUtopy/ami-viewerData/05384dc0/labels.nii.gz'
};

let theViewer = new AMIViewer(container,'Tractography',filenames);