Skip to main content

Grassroots DICOM runtime libraries

Project description

Python-GDCM

Unoficial GDCM packages for Python.

Grassroots DiCoM is a C++ library for DICOM medical files. It is automatically wrapped to python/C#/Java (using swig). It supports RAW,JPEG (lossy/lossless),J2K,JPEG-LS, RLE and deflated. It also comes with DICOM Part 3,6 & 7 of the standard as XML files.

Installation

Using PIP

pip install python-gdcm

From source

  • Install building dependencies
  • Build and install python-gdcm
    • If cmake isn't in $PATH export the env variable CMAKE_EXE to its path
      $ export CMAKE_EXE=/CMAKE/PATH
      
    • If swig isn't in $PATH export the env variable SWIG_EXE to its path
      $ export SWIG_EXE=/SWIG/PATH
      
    • Build and install
      $ python setup.py install
      

Usage

Reading a DICOM image file

import gdcm
reader = gdcm.ImageReader()
reader.SetFileName("dicom_image_file.dcm")
ret = reader.Read()
if not ret:
    print("It was not possible to read your DICOM file")

Other Examples

See here https://github.com/malaterre/GDCM/tree/master/Examples/Python

Download files

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

Files for python-gdcm, version 3.0.9.1
Filename, size File type Python version Upload date Hashes
Filename, size python_gdcm-3.0.9.1-cp310-cp310-macosx_10_9_x86_64.whl (7.0 MB) File type Wheel Python version cp310 Upload date Hashes View
Filename, size python_gdcm-3.0.9.1-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl (9.5 MB) File type Wheel Python version cp310 Upload date Hashes View
Filename, size python_gdcm-3.0.9.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.4 MB) File type Wheel Python version cp310 Upload date Hashes View
Filename, size python_gdcm-3.0.9.1-cp36-cp36m-macosx_10_9_x86_64.whl (7.0 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size python_gdcm-3.0.9.1-cp36-cp36m-manylinux_2_17_i686.manylinux2014_i686.whl (9.5 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size python_gdcm-3.0.9.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.4 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size python_gdcm-3.0.9.1-cp36-cp36m-win32.whl (3.1 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size python_gdcm-3.0.9.1-cp36-cp36m-win_amd64.whl (3.5 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size python_gdcm-3.0.9.1-cp37-cp37m-macosx_10_9_x86_64.whl (7.0 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size python_gdcm-3.0.9.1-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl (9.5 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size python_gdcm-3.0.9.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.4 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size python_gdcm-3.0.9.1-cp37-cp37m-win32.whl (3.1 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size python_gdcm-3.0.9.1-cp37-cp37m-win_amd64.whl (3.5 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size python_gdcm-3.0.9.1-cp38-cp38-macosx_10_9_x86_64.whl (7.0 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size python_gdcm-3.0.9.1-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl (9.5 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size python_gdcm-3.0.9.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.4 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size python_gdcm-3.0.9.1-cp38-cp38-win32.whl (3.1 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size python_gdcm-3.0.9.1-cp38-cp38-win_amd64.whl (3.5 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size python_gdcm-3.0.9.1-cp39-cp39-macosx_10_9_x86_64.whl (7.0 MB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size python_gdcm-3.0.9.1-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl (9.5 MB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size python_gdcm-3.0.9.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.4 MB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size python_gdcm-3.0.9.1-cp39-cp39-win32.whl (3.1 MB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size python_gdcm-3.0.9.1-cp39-cp39-win_amd64.whl (3.5 MB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size python-gdcm-3.0.9.1.tar.gz (3.5 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page