Giter Club home page Giter Club logo

ctviewer's Introduction


View volumetric (3D) medical images in Jupyter notebooks
PyPI version

CTViewer

This tiny, but very useful utility enables interactive slice-by-slice viewing of 3D images in ipython notebooks. It builds upon ImageSliceViewer3D and is specifically designed for viewing CT images. Key features:

  • Change orientation of 3D images to view them along any of the three possible axes
  • Window CT images. All major presets for window level and window width provided. See the table below for the complete list of presets
  • Window CT images using custom values for window level and window width

Installation

CTViewer can be installed from PyPI with the following command:

  pip install ctviewer

Usage

CTViewer takes as input a 3-dimensional numpy array. For windowing to work as intended, the voxel values should be in Hounsfield Units (HU). Typical usage:

  from ctviewer import CTViewer
  # assuming that volumetric_image is the 3-dimensional numpy array
  CTViewer(volumetric_image)

For a more detailed example of loading a stack of dicom images from disk, converting to HU, and then viewing using CTViewer, check the sample_run.ipynb inside the examples folder

Windowing

The following windows are available as presets, along with custom inputs for window level and window width:

Window Name Window Level Window Width
Bone 500 2000
Lung -600 1600
Abdomen 40 400
Brain 30 70
Soft Tissue 50 350
Liver 60 160
Mediastinum 50 500
Stroke 30 30
CTA 170 600

Example

Support

Reach out to me at one of the following places!

Twitter: @vibhuagrawal
Email: vibhu[dot]agrawal14[at]gmail

ctviewer's People

Contributors

vibhuagrawal14 avatar youyoun avatar

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.