Skip to main content

A simple python-based tool based on imgcat for displaying DICOM files in iTerm2.

Project description

DICOMcat

DICOMcat is a simple, pip-installable python package for displaying DICOM files in iTerm2 similar to imgcat for conventional images and niicat for nifti images. This might be useful for quickly viewing DICOMs on a remote server in your terminal.

Usage

DICOMcat can be used, either within a python script or from the terminal

To use in terminal, navigate to the DICOM folder/file and enter

$ dicomcat EXAMPLE_FILE

In a python script, use as follows

import dicomcat path='path/to/dicom' dicomcat.dicomcat(path)

There are additional options to change the number of rows, downscaling, or maximum number of slices shown (when displaying a directory of DICOM slices).

Examples/Testing

There are a number of example DICOMS to test with the repo. To run the examples, run python -m unittest in the package directory

Example Dicom Sources:

  • LumbarDicomExample - Radiopedia.org, Case courtesy of Prof. Frank Galliard source
  • Head - Head CT, courtesy of Visual Human Project source
  • Knee - Knee CT, courtesy of Visual Human Project source
  • BrainExample - Brain MRI, courtesy of Jeff Mather, Mathworks source

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dicomcat-0.1.tar.gz (77.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dicomcat-0.1-py3-none-any.whl (78.0 MB view details)

Uploaded Python 3

File details

Details for the file dicomcat-0.1.tar.gz.

File metadata

  • Download URL: dicomcat-0.1.tar.gz
  • Upload date:
  • Size: 77.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.0

File hashes

Hashes for dicomcat-0.1.tar.gz
Algorithm Hash digest
SHA256 2cedf441903b03a348a2231bf9512a1cc6ad8e1fe6c97a779eac1f7e696d8ed5
MD5 178f28e66a6113a94413e2d9a6bcac77
BLAKE2b-256 b384ba0a141e8c7601ef9359b1ea51f48b675f2e7e36d417be3efafc8e73b080

See more details on using hashes here.

File details

Details for the file dicomcat-0.1-py3-none-any.whl.

File metadata

  • Download URL: dicomcat-0.1-py3-none-any.whl
  • Upload date:
  • Size: 78.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.0

File hashes

Hashes for dicomcat-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1dac2b57241f11580e39eeb71c84371bd0ed596524517fe90351f0294c822012
MD5 fd2f238da2a96e9c55f1ef9a1f089b26
BLAKE2b-256 01c2bbee5d05a97d374bfa0e8f4f4c45a1714c2206601862ad43604042963652

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page