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
- Compiler for you platform (GCC, Clang, MSVC)
- Cmake (https://cmake.org/)
- Swig (http://www.swig.org/)
- Build and install python-gdcm
- If cmake isn't in
$PATH
export the env variableCMAKE_EXE
to its path$ export CMAKE_EXE=/CMAKE/PATH
- If swig isn't in
$PATH
export the env variableSWIG_EXE
to its path$ export SWIG_EXE=/SWIG/PATH
- Build and install
$ python setup.py install
- If cmake isn't in
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python-gdcm-3.0.8.1.tar.gz
(3.5 MB
view hashes)
Built Distributions
Close
Hashes for python_gdcm-3.0.8.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 323cd4c75bd51281939c3f376b12b7530d9a92e45e93ef1ee770961b6c9eab41 |
|
MD5 | 143ad20010cef1d6ad23b408e7acd81a |
|
BLAKE2b-256 | fcc9384d93f88cdedcec2158d66801505e688d3d64f0c2d369cef3e01ae58ee1 |
Close
Hashes for python_gdcm-3.0.8.1-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 646b7f7d4e89bd58cbd1c7afcfb8dfd29da766d210775fae6ca7644aa502339c |
|
MD5 | e87102a61a36217e00d62faa6f375eec |
|
BLAKE2b-256 | a34ababe1e9aff161527f2964287629d990276f4d2283ef3d36debca47a083d8 |
Close
Hashes for python_gdcm-3.0.8.1-cp39-cp39-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3a589b951e867198ef7140e7b5f2c385d1b7cff170728a7e79dc27d00185f9f |
|
MD5 | d7f5d0acb4396f88a48944c94c5177e4 |
|
BLAKE2b-256 | 2b4f20f50d20a7dac128a9ebae70b9ae8486ba22645cc7fc0bb31f78bd8f68a5 |
Close
Hashes for python_gdcm-3.0.8.1-cp39-cp39-manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f2bf67d07e73d65a40dd0886731b5284a6e2b9f2b3762599995441dde44fd2f |
|
MD5 | d2e4dcec9a37c116a889adb3a462ac48 |
|
BLAKE2b-256 | 5de9a9542b9cf2dabb71caefe121f3216f4260c166d52904b7902663f7f73ebb |
Close
Hashes for python_gdcm-3.0.8.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 515543ecb9644e929ae190fc38f7918e416eb5de51d7a13b7e7b413f559d28bf |
|
MD5 | 9503ca9cab59c9de48ea0347f12ec8dc |
|
BLAKE2b-256 | d34566b8d9467cd71d8bc5a39818922b4eb569d0d90020c23bedcb2420531e8f |
Close
Hashes for python_gdcm-3.0.8.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12277b25c0fd9f5a9b285731b2d2e08a7c1a79e139f47f292a0f4de18de9c147 |
|
MD5 | 0d079726d627b0df11c2430e8eef508d |
|
BLAKE2b-256 | b7474990e01542377d941827fad3882030eb19463d302844e0f238e9a7c9342d |
Close
Hashes for python_gdcm-3.0.8.1-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81b03432c11c80f4df2f38d33f3b93b85cb4bf9488aaa8528f18b21270054344 |
|
MD5 | 77bd1c1dd037eaec011f275229ce2a87 |
|
BLAKE2b-256 | 90ccb0a0877acc56a1e03a0b2fa0a34ba5f16838889ceb7a8605ee667fcdca76 |
Close
Hashes for python_gdcm-3.0.8.1-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7c35b553977a5d17d8a7cca954ccbee1704f703689bdf3657f463c3771a34bb |
|
MD5 | e3594dc56bdaacf35ac28f5d1c075e67 |
|
BLAKE2b-256 | 00119c44365d2bae520092a2b865e87b1fc98115c13a907f270db61465cd74a0 |
Close
Hashes for python_gdcm-3.0.8.1-cp38-cp38-manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9cdd6a5b399dd9a78887fe572b4e7899321afebcbd5196908bebc8c0d0908fc |
|
MD5 | 3b7a8be77e5efc5be5c9fd8191e910b7 |
|
BLAKE2b-256 | 552aa997f04ad334901ffc989782297e30008312517d1611b3f203076c356ae0 |
Close
Hashes for python_gdcm-3.0.8.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f65aada3ee5722da9d5127282706aaa73d55fe878b9b9fa6a751e1eda939671 |
|
MD5 | 3476b06249826b06873c56dee8cd3cbb |
|
BLAKE2b-256 | e33562b3033fd0ad508beb7dfadec10b6cdb908a04b12909ac4b6bd449c5ed22 |
Close
Hashes for python_gdcm-3.0.8.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b6100afe9aab0e3aa9adae4fa2e8ce195dbbd37096a01667cd6712fb9a517c2 |
|
MD5 | 95b0908f1e92cc0a6cdb585076e99731 |
|
BLAKE2b-256 | ef915ff5cc924d713089c5b4828867fda5de0a6fb2be7aeba1e6d95dc6ba7887 |
Close
Hashes for python_gdcm-3.0.8.1-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a290a52bd6cef0751ec012f51d9920b40154207d3b809743226001a255707e5a |
|
MD5 | 2920a0090067901fcf367af7a20c6143 |
|
BLAKE2b-256 | 873feb12f6a40acdc7ea77619d1e441743eeb381dfa3bee25cdcacc5eed658d6 |
Close
Hashes for python_gdcm-3.0.8.1-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55882a312901c0e41c2206946146ae790942635956957bc2574619a40c259fc0 |
|
MD5 | 407430887d940069e9f19c35bc10748f |
|
BLAKE2b-256 | 4b7aa9e6f5d1c91ed432527579653d373356dcba4141a7386367f83b7733cdab |
Close
Hashes for python_gdcm-3.0.8.1-cp37-cp37m-manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c863222ff841f04b4332f8008ca8f3023373ca3617f312a046ffb31cebb674e |
|
MD5 | 3068d5e5ed49f6387d5cb1cb71217092 |
|
BLAKE2b-256 | df8fb38a55343a719eb25e4fcbcd750ea87b4d5f7549255ff7db6f4e4afdadb9 |
Close
Hashes for python_gdcm-3.0.8.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52080002a207bbfe19f18a22e06c7a945b0ea24f40ad68599a24ebad32b892e2 |
|
MD5 | 114e89d0d97c4d83ea010a24c3c521c7 |
|
BLAKE2b-256 | c5919cc04b69980627fe1fab02f2697b21e6fd25297c421f5d05b5df019bc5a8 |
Close
Hashes for python_gdcm-3.0.8.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 062e97f134eb79b1293e66595adac676ea54a7fe9162ed77567d2d8b468221d3 |
|
MD5 | 47ca2713d9ded8a1a05fbbb1301d1502 |
|
BLAKE2b-256 | 78ba61c97a0c8c7a6addc1c3355d229ca4168fcf911e7e3451b245c832b2d684 |
Close
Hashes for python_gdcm-3.0.8.1-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a1d8398af451123c199c3cc32dde8a51a16efbe0adb463269833379af4931d6 |
|
MD5 | d8a43c4664c67492d0badc6098e1df98 |
|
BLAKE2b-256 | 0c18548552019ae1b680779eafae7a03dd8d61c5d6d8dd4bf035ff6d84869f17 |
Close
Hashes for python_gdcm-3.0.8.1-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3275626b911366e094be4e3f4eaa392ece4554c1da6ff3009f2ab614039783a |
|
MD5 | 0b67a9c11c8c56148af6859b0c8d5ee6 |
|
BLAKE2b-256 | a72f917884b5f3dc4104e52d87a9f6f74f7e9705ace95f9bddd0501313b353c7 |
Close
Hashes for python_gdcm-3.0.8.1-cp36-cp36m-manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 944707471890b1fce519e127fe6b8588eb834a39019bd6af1082ef608a80bd41 |
|
MD5 | fdaf4f527de444cb6ba74cfbc90c6620 |
|
BLAKE2b-256 | 34576bad906ed21115fe48506397199643434dc2f1dd3af6eff105bd763c6b89 |
Close
Hashes for python_gdcm-3.0.8.1-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b319323489e05533c19dd8f8747f8a66d71ca6902c757773ef0155b50a0a2ed8 |
|
MD5 | ad13be30a4fed2b05b6ed53bbcb6349b |
|
BLAKE2b-256 | 89986f0506fd3b6ef126df66e9b105218a81225dec9cdbfc9217976a5af87a76 |