Git Product home page Git Product logo

slicerweb's Introduction

Note This repository was for development of the WebServer feature for 3D Slicer. The feature has been merged into the main repository and is being further developed there.

SlicerWeb

Slicer modules that support web services and web applications.

(Still a work in progress, but starting to be useable)

Installation

This module can now be run from any slicer 4.2 binary download (release or nightly).

Simply run slicer with these arguments:

./path/to/Slicer --additional-module-paths path/to/SlicerWeb/WebServer

where 'path/to' is replaced with the appropriate paths. You could alternatively register the path/to/SlicerWeb/WebServer in the Module paths of the Application Settings dialog.

Usage

Go to the Servers->WebServer module and the server will start.

Access http://localhost:8080 with a web browser.

NOTE: after you select a demo, use the Reload button to trigger it.

NOTE: some demos require a WebGL compatible browser.

Direct API access:

  • get a json dump of the names of all nodes in mrml:

http://localhost:8080/slicer/mrml

  • get a png image of the threeD View

http://localhost:8080/slicer/threeD

  • get a png image of the yellow slice view

http://localhost:8080/slicer/slice?view=yellow

5/24/2012 sp

Can now access image data in nrrd format!

curl -v http://localhost:8070/slicer/volume\&id='MRHead' -o /tmp/local.nrrd

slicerweb's People

Contributors

blezek avatar davetchen avatar pieper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

slicerweb's Issues

Steps to run it in windows machine

Hi @pieper , @davetchen, @blezek

We cloned this and tried to run on our windows machine.

  1. After cloning, we tried running pip install -r SETUP.txt. We got an error - ERROR: Invalid requirement: 'Connecting to the AWS Slicer server' (from line 1 of SETUP.txt)
  2. Running python webserver.py from /WebServer gave an error - ImportError: cannot import name 'vtk' from 'main' (D:\SlicerWeb\WebServer\webserver.py)

Could you please help us with the exact steps to be followed right from the start after cloning to successfully launch it on localhost:80? Any more help on 'This module can now be run from any slicer 4.2 binary download' ?
The folder structure looks a bit different as the ones's mentioned in Readme.

Thanks!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.