Name: cornerstone-nifti
Owner: OHSU QIN
Description: Cornerstone NIfTI loader demo
Created: 2016-06-06 19:16:56.0
Updated: 2016-06-07 16:52:29.0
Pushed: 2016-06-07 16:52:28.0
Homepage: null
Size: 109
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Displays a NIfTI image using the Cornerstone library.
npm install
.npm start
.The input NIfTI file is a small volume consisting of two slices. The first slice is displayed. The image is a cylinder viewed on its side, thus showing up as a bar.
This demo uses a Cornerstone fork which extends Cornerstone for NIfTI support.
Cornerstone requires two DICOM tag values WindowWidth
and WindowCenter
which do not have a NIfTI equivalent. These values are set in run.js
.
This example uses RequireJS to load the modules. jQuery is loaded as a Cornerstone peer dependency, but is not otherwise used.
The npm build
script compiles display.coffee
and parse.coffee
into JavaScript.