Tuesday, October 23, 2018

Installing Standalone Viewer of OHIF


You can install an OHIF Simple Viewer by following the below steps:

1) Install Meteor
$ curl https://install.meteor.com/ | sh


2) Clone the Viewers repository
$ git clone https://github.com/OHIF/Viewers.git

 
3) Go to the SimpleViewer directory
$ cd Viewers/StandaloneViewer/StandaloneViewer/


4) Run the Standalone viewer
$ METEOR_PACKAGE_DIRS="../../Packages" meteor --settings ../../config/dcm4cheeDIMSE.json

Make sure that your JSON file consisting of the URLs of DICOM images (i.e., series instances) is placed inside the directory Viewers/StandaloneViewer/StandaloneViewer/public
as in
Viewers/StandaloneViewer/StandaloneViewer/public/big.json
 
5) Access the viewer from the browser.
You may access it from localhost:3000 followed by the url of a JSON file consisting of Dicom images.
http://localhost:3000/?url=https://raw.githubusercontent.com/OHIF/Viewers/master/StandaloneViewer/StandaloneViewer/private/testData/PTCTStudy.json
or access your local json files consisting of the DICOM instances, as in,
http://localhost:3000/?url=big.json

5 comments:

  1. Is any idea to install OHIF viewer on windows?

    ReplyDelete
    Replies
    1. I have never tried that. Last year there was no installer for Windows. I am sorry.
      https://github.com/OHIF/Viewers/issues/176

      Delete
  2. I am getting the the error:

    [[[[[ /Viewers/StandaloneViewer/StandaloneViewer ]]]]]

    => Started proxy.
    ohif:measurements: updating npm dependencies -- ajv, url, jspdf...
    => A patch (Meteor 1.7.0.5) for your current release is available!
    Update this project now with 'meteor update --patch'.
    => Started MongoDB.
    => Errors prevented startup:

    While building package ohif:measurements:
    error: couldn't install npm package jspdf@1.3.3: Command failed:
    /root/.meteor/packages/meteor-tool/.1.7.0_3.1w1d6or.xpqkk++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm install
    jspdf@1.3.3
    npm ERR! code 128
    npm ERR! Command failed: /usr/bin/git clone -q git://github.com/chick307/adler32cs.js.git git-clone-6e41e8b9
    npm ERR! fatal: Could not change back to '/root/.npm/_cacache/tmp': Permission denied
    npm ERR!

    npm ERR! A complete log of this run can be found in:
    npm ERR! /root/.npm/_logs/2019-04-17T13_57_59_422Z-debug.log
    npm ERR! code 128
    npm ERR! Command failed: /usr/bin/git clone -q git://github.com/chick307/adler32cs.js.git git-clone-6e41e8b9
    npm ERR! fatal: Could not change back to '/root/.npm/_cacache/tmp': Permission denied
    npm ERR!

    npm ERR! A complete log of this run can be found in:
    npm ERR! /root/.npm/_logs/2019-04-17T13_57_59_422Z-debug.log


    => Your application has errors. Waiting for file change.


    Any idea? Whats happen?

    ReplyDelete
  3. Hi i´m trying to install debian 9, but error: curl: (22) The requested URL returned error: 416
    Retrying download in 5 seconds...

    ReplyDelete
  4. Hi ,I am trying to install using above steps, But cannot find certain directories and structures on cloning the project .
    -StandaloneViewer
    -Viewers/StandaloneViewer/StandaloneViewer/
    -Viewers/StandaloneViewer/StandaloneViewer/public/big.json
    Also would like to know if .VSI files can be rendered using this or not .
    Any help is appreciated .

    ReplyDelete

You are welcome to provide your opinions in the comments. Spam comments and comments with random links will be deleted.