chestrays / cornerstone_widget

A jupyter widget for the cornerstone library to make showing flashy images with nice tools easier.
Apache License 2.0
26 stars 2 forks source link
binder-ready cornerstonejs ipywidgets jupyter medical-image-computing medical-imaging widgets

cornerstone_widget Build Status codecov Binder

A Jupyter Widget for the Cornerstone Medical Image Viewing Library

Preview

Overview

The widget lets you easily look at medical and similar images in the browser using the CornerstoneJS library. The library offers lots of fancy functionality like zoom, windowing, panning, regions of interest, painting, polygons and beyond. Currently only a few of these features are implemented but feel free to make pull-requests or issues with suggestions

Notebooks

The notebooks directory contains demo and tutorial, you can use mybinder to get a quick feeling for what works well.

Installation

To install use pip:

$ pip install git+https://github.com/chestrays/cornerstone_widget
$ jupyter nbextension enable --py --sys-prefix cornerstone_widget

For a development installation (requires npm),

$ git clone https://github.com//cornerstone_widget.git
$ cd cornerstone_widget
$ pip install -e .
$ jupyter nbextension install --py --symlink --sys-prefix cornerstone_widget
$ jupyter nbextension enable --py --sys-prefix cornerstone_widget
$ jupyter labextension install js