Skip to main content

Plot Dicom ECG Waveforms

Project description

ECG Dicom Convert

Dicom ECG plot

A python tool to plot Dicom ECG.

The DICOM file can also be specified as studyUID seriesUID objectUID and retrieved from your WADO server.

Github repository: here

THE PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT WITHOUT ANY WARRANTY OF ANY KIND.

Online demo

demo site You can convert your own DICOM files or use preloaded sample files from different modality models.

Install

python3 -m venv ecg
. ecg/bin/activate
pip install dicom-ecg-plot

Usage of dicom-ecg-plot tool

dicom-ecg-plot <inputfile> [--layout=LAYOUT] [--output=FILE|--format=FMT] --minor-grid
dicom-ecg-plot <stu> <ser> <obj> [--layout=LAYOUT] [--output=FILE|--format=FMT] --minor-grid
dicom-ecg-plot --help

Examples:

dicom-ecg-plot anonymous_ecg.dcm -o anonymous_ecg.pdf
dicom-ecg-plot anonymous_ecg.dcm --layout 6x2 --output anonymous_ecg.png
dicom-ecg-plot anonymous_ecg.dcm --format svg > anonymous_ecg.svg

The input can be a (dicom ecg) file or the triplet studyUID, seriesUID, objectUID. In the latter case dicom file is downloaded via WADO.

If --output is given the ouput format is deduced from the extension of the FILE. If the output file is not given --format must be defined. Supported output formats are: eps, jpeg, jpg, pdf, pgf, png, ps, raw, rgba, svg, svgz, tif, tiff.

By default the 5mm grid is drawn, --minor-grid add the minor grid (1mm).

The signals are filtered using a lowpass (40 Hz) butterworth filter of order 2.

LAYOUT can be one of: 3x4_1 (that is 3 rows for 4 columns plus 1 row), 3x4, 6x2, 12x1 (default: 3x4_1). New layouts can be defined adding the corresponding matrix in LAYOUT dictionary in config.py.

References

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

dicom_ecg_plot-1.1-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

dicom_ecg_plot-1.1-py2-none-any.whl (11.3 kB view details)

Uploaded Python 2

File details

Details for the file dicom_ecg_plot-1.1-py3-none-any.whl.

File metadata

  • Download URL: dicom_ecg_plot-1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for dicom_ecg_plot-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0cb7bf44d19b190da02b87786737bebae9342c19d805f0be1018c014bf55ac0c
MD5 343c595a409cbc535098630d7f63ca99
BLAKE2b-256 5da51b6e67d82a13b7424576d94e02fdef6f52455af028eb55df52dda7c149c6

See more details on using hashes here.

File details

Details for the file dicom_ecg_plot-1.1-py2-none-any.whl.

File metadata

  • Download URL: dicom_ecg_plot-1.1-py2-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for dicom_ecg_plot-1.1-py2-none-any.whl
Algorithm Hash digest
SHA256 cd51417491a14a14e52b9630da47e81f73dca9ef968348c1222377df96c4205a
MD5 8b439b3c92a024833871008e67e202da
BLAKE2b-256 96de39c193294831e2f6226f039d7bddbd6d7df947ab0b921a74d4882742a56f

See more details on using hashes here.

Supported by

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