Displays a NIfTI image using the Cornerstone library.
- Clone this git repository.
- Run
npm install
.
- Run
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
andWindowCenter
which do not have a NIfTI equivalent. These values are set inrun.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 compilesdisplay.coffee
andparse.coffee
into JavaScript.