Grassroots DICOM runtime libraries
Project description
Python-GDCM
Unofficial GDCM packages for Python 3 on Linux, Windows and MacOS (both Intel and Apple Silicon).
Grassroots DiCoM is a C++ library for DICOM medical files that can be wrapped for Python using SWIG. It supports datasets encoded using native, JPEG, JPEG 2000, JPEG-LS, RLE and deflated transfer syntaxes. It also comes with Parts 3, 6 & 7 of the DICOM Standard as XML files.
Installation
Using pip
pip install -U python-gdcm
From source
Install dependencies
- Compiler for you platform (GCC, Clang, MSVC)
- CMake
- SWIG
- patchelf will also be needed on Linux
- Git to get the source code
Setup environment
If the cmake
or swig
executables aren't in $PATH
, either add them or create CMAKE_EXE
and SWIG_EXE
envars:
export CMAKE_EXE="path/to/cmake/executable"
export SWIG_EXE="path/to/swig/executable"
Clone source
git clone --recurse-submodules https://github.com/tfmoraes/python-gdcm
Build and install
# Note the trailing slash!
pip install python-gdcm/
Test installed package
python -c "import gdcm; print(gdcm.GDCM_VERSION)"
If you get a ModuleNotFoundError: No module named '_gdcm.gdcmswig'
error then make sure your current working directory doesn't contain a _gdcm
folder.
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
Built Distributions
Hashes for python_gdcm-3.0.19-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44a01045a251081946b3ad69396c081aac8c3a97b25ef557fb68ed623b80d535 |
|
MD5 | e9a96ae1f195f372641f3853694a14e0 |
|
BLAKE2b-256 | 919981b5d489fe531da7fc78ff2d229c4221bef7137e37c9ea93ed152a0308a8 |
Hashes for python_gdcm-3.0.19-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e69e07f354f2728b8a9af0b1711e2defec80b72cf900944cfb678218426788e1 |
|
MD5 | d472e046d6666abf7823a67c35ecfd34 |
|
BLAKE2b-256 | ebc7c2cf408fad6fdd433e4ab4f0afced8f535b51925e46a5b65661dc2a741f0 |
Hashes for python_gdcm-3.0.19-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 922638ea0fd1273a039a8108c72d27c39ba6d0ae9984a2321ba0a57093bb4f06 |
|
MD5 | 511624686c2ca9fe077d05cc6a47627a |
|
BLAKE2b-256 | 30ea068003957e6a2be79bb233311baa175507d8cd0208c5f02525ca8496e8b0 |
Hashes for python_gdcm-3.0.19-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | caa5cd8a491ca798bbde5fb7200796dd0e01e5f161ffbd1a95c79b74b3af810d |
|
MD5 | cfaba1d8502c4095865d5dd0958ce12e |
|
BLAKE2b-256 | 3582eb028e83170249686d7c272f748cdd7bd48b0682a681c20e145723cff5e1 |
Hashes for python_gdcm-3.0.19-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d42954740baa7a774b13539338d27f26e2adaa0bc3ff495e1cc798e2f48bb3f |
|
MD5 | 689555ae03b9829821f0dbd624c14cb7 |
|
BLAKE2b-256 | 07f7d687e7087f83e3d07e85836b5801c709e420f7904edc7822088cbe0774e0 |
Hashes for python_gdcm-3.0.19-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 125a0ca7073811403a02829e8bc7b304f3a194ab679d5f4e356595234533de6c |
|
MD5 | 54c52fdac06f8be4e0bef58d581aa0a9 |
|
BLAKE2b-256 | 48f75901f82d7c3363f74aeb54df5ca59474cba5610dd49fa436a5cbe7c2f67f |
Hashes for python_gdcm-3.0.19-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 987cec9f94d5da05d54aeb35ea2d0a30075391cd97baefb5a4decaab40029e9c |
|
MD5 | d4b61e9e495d0d97bff3076e924ed3c5 |
|
BLAKE2b-256 | 5c5d7600a5fbe5938417e0db7917075c6286dbe6474bc998244b07c64854fc68 |
Hashes for python_gdcm-3.0.19-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99da63abb8f7183403288cd39474d10e8589ccd61fe9faf86981a1de5215beab |
|
MD5 | defcf6f5a584f7c96812625ec23ba089 |
|
BLAKE2b-256 | 7263349faf431f38297f2fe6ea74c011111804efb76bc44031590b86a7158cfd |
Hashes for python_gdcm-3.0.19-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37df63a3443ef9cf6ebfe7704d6478b07708a47d1306ce8b236be86888d28041 |
|
MD5 | 67c71b6b38d46adb1c7543878ea8ed80 |
|
BLAKE2b-256 | 1481192e10c4ebd9f6fa59f231f0b8ff76b2906f536db7f805bdca4cbf5a9a6d |
Hashes for python_gdcm-3.0.19-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdb2a1ae3c169d0264709b89f2b76ea4e024cc1a38b985d2bc15fced979e2b37 |
|
MD5 | 2fae9c56a2271180ecedf5c3123809ad |
|
BLAKE2b-256 | 8e558e742e8bde992c9d6e3ad05a8842f35576bdad2a48419b3b05f733e916ad |
Hashes for python_gdcm-3.0.19-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c89f973fbe1b0475b5cace7bf3734419dac5b568dbe3e3ddaf78b697b19ff3cb |
|
MD5 | b6a2a8fae2a08ffb4fea627381653bb2 |
|
BLAKE2b-256 | 6b6b18871f29074cbab857f71f8bea67c4939d8d929444a33bb10683b120cd42 |
Hashes for python_gdcm-3.0.19-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02d63407c7cdeb416faa363d50a7a1acea83ac574490f55f856452c162e484e5 |
|
MD5 | 29440ec198f5553aa44952b11df4a2ac |
|
BLAKE2b-256 | 61118ce06ad7a1c0e3e9e29bf144e826490a96a0b421f93fea03771d68912556 |
Hashes for python_gdcm-3.0.19-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8725cf787d8f3659b53aa4d475c239231e21991a179adc76a1c4346bfcefea9c |
|
MD5 | 5d9006e3120eecd0f705cf32297a0b71 |
|
BLAKE2b-256 | b8e8cea011c3e7230bfe8d98fd6cf1ae97e17c570be35f56420510b3b2153394 |
Hashes for python_gdcm-3.0.19-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f33415e7778e24e29d9a4b8e6fd1bbdb0cc7128a3ee17e35cd8a0875ed10e4b |
|
MD5 | a76cecbe2dcbd26b6cdda54a1dbb3e33 |
|
BLAKE2b-256 | eb6147dc5a33b4b09eaa150ea081703877b32794ff4ac16dbcf12a4f8a216efb |
Hashes for python_gdcm-3.0.19-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1293ef851cbd9a6a374bd70cc89acc17a0d4e5f833fd7d9b606153209150f32c |
|
MD5 | 7e57c7a53610e96c98b9ae807e16190e |
|
BLAKE2b-256 | 3bd9627cee607127657a89c36cd1e0ebe0fef4d71ff51c2770f91d7f9ad5b81e |
Hashes for python_gdcm-3.0.19-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1b3abb9164e9e756bba93f6d2542ef9a49121f502d8a6acd87fa8972279a40c |
|
MD5 | 00747d2746498b14885b0e636c4afbfb |
|
BLAKE2b-256 | 539e51864595d6c0425a2801b51f4ec58ff7179d15cf6aae4b24609b99f27826 |
Hashes for python_gdcm-3.0.19-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8164a55a0e6ee6dfbba1b830ce2a6d36ba76111f1e4b730d0aaa0ccc264e2cc7 |
|
MD5 | a16308285795f0886e84f7c629d53d7c |
|
BLAKE2b-256 | 4a4ce07f822873962b144da29b190e5d7a2b0767129860e165d03ab54abc5f95 |
Hashes for python_gdcm-3.0.19-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53022fd3f503c2544da7037b9f3770b20935d387b1437546f4d6e814033cf3fd |
|
MD5 | 6941965d46ef915ea1e163242fb1fdf8 |
|
BLAKE2b-256 | f217d00fd37938f1d417ad06ec4214466809e580cf3f95eb83c0050fb49dc90b |
Hashes for python_gdcm-3.0.19-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 598d91d76ed588f7f6b440afa4d3f8561bfcdacdb69c17c3b65d65850b3c0660 |
|
MD5 | 26f81aee7cfee71b648b60e9d006711f |
|
BLAKE2b-256 | 4503ce5729e770706e68460d513f3c19df3841496a3925eb1216b0975cbae126 |
Hashes for python_gdcm-3.0.19-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1dbf7dda5392956ef15114adbe3a8e809ad8d4de3f52d395af934dcd57ef4fb |
|
MD5 | 9ea82d3f70eb8398b0c00b2c4c0fea4c |
|
BLAKE2b-256 | cc6c48ee857400db4979b3921a1f3733f715968fa64815c224657a6e1e680c17 |
Hashes for python_gdcm-3.0.19-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91a15f7db3f3a1e945dd407a0a4234553c970fde18e594ce8c7b6d4add0ad843 |
|
MD5 | 3dc962df8b1be9a9b413be72d6f40d07 |
|
BLAKE2b-256 | 093e4a395ef47a04c28ef77bf00465b682d5c51e037f7b73a94ce617bc390646 |
Hashes for python_gdcm-3.0.19-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 454a83d3026fd71ad9ab0e1a340834ec21f1cca57f88b428b2fffcd30ccf43d7 |
|
MD5 | e507c6ddca01ceff982538b8b0a62bb8 |
|
BLAKE2b-256 | 7c4d89861ecbb1a3ae02e586658d5d7ba3bc42c2dbb6a26d734f5ce35ab27801 |
Hashes for python_gdcm-3.0.19-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 776a21f9dfe86f8f7bcb930f7ec75a8d33dbc1f8f891ee1d5d4ab7e51bc99232 |
|
MD5 | 913d6a127264c4d868834f5dc3f7fa3a |
|
BLAKE2b-256 | 97d6de197a941068e0e0f9ad0afd8490f21c17404f98533c1bf470462fa65f2b |
Hashes for python_gdcm-3.0.19-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f13c2351bcff661cb864168d8b5202bb96cc890d231edc5fb558f0f673ccb42c |
|
MD5 | 6d7e5e6184e4c2112b06520e4d5a65ba |
|
BLAKE2b-256 | b37d0f93ae95dc8f7a637c77e5177f7ce3b0ad2bf298efe36a11dc46b3b26c4b |
Hashes for python_gdcm-3.0.19-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf24067543031825533563b7c5c70d352c81a0cf58b1dc14ee1b8dd29643560f |
|
MD5 | 0b8d340ade596f7eb86309045048a179 |
|
BLAKE2b-256 | f82f3d410d86e053aaf80cbd7b61c6fddc0cba17d34cd8fbdce8c040b2cc7422 |
Hashes for python_gdcm-3.0.19-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f1aa9fa413c9e0575ace5dfdc697e6e171a4f8abb64c5efb23db221bcb63403 |
|
MD5 | 118a9bf0381627b0eee35a42b6aa6426 |
|
BLAKE2b-256 | 6e8c10210fbe00e44da060ca8b83f73968411208ff2724ddfcc26fd0164d9bb8 |
Hashes for python_gdcm-3.0.19-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68e920f72cfc07200d97c32c1f7ac4189b81a6177f20d346e3eeb8e65ae8814a |
|
MD5 | 9c123c089fd2081c48cd88f29d377d34 |
|
BLAKE2b-256 | 9c954902e102ff1db33692d4f75e955f4e2c585ab62e29924a285ec4bfc58ffc |
Hashes for python_gdcm-3.0.19-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45e2e932bff56058176236c688c98d56a58d95b939c1ee8f9e591c7f543a4fa5 |
|
MD5 | 5d6926c3b47608455ce8a6171a667cb9 |
|
BLAKE2b-256 | 3aa843e662c13a7844efaeca58f6b199bec09b559a513f033c904f2900931e42 |
Hashes for python_gdcm-3.0.19-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e39afa0a4aa3dded5cf1482fec6fe310214dea7fecd3fe0f4d2c2fc3de35bc8d |
|
MD5 | 31b50d97ffcd384178a37232bce07859 |
|
BLAKE2b-256 | 78cbeb1a567df57958a2aefaecad8ede623fb186019d441a447648dc6df4b3b2 |
Hashes for python_gdcm-3.0.19-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe60773ff67fcdc4f19e1712ea7e69627fd4a60d46ae7fbb10483f4b54e8063e |
|
MD5 | 924324839ee11503d2173adddeda2fc3 |
|
BLAKE2b-256 | a2a1925c826d82d3a49687e25c6d272d48ce5ea17d7b11ca2e01a55d345b5201 |
Hashes for python_gdcm-3.0.19-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c46bca7f99aa4ab8b30d317e93f938f273698c9dad479eb7c47b2eb2f79cad2 |
|
MD5 | 564e1ddc7526503ffb4df78f64889573 |
|
BLAKE2b-256 | b4eb7ce6fb2b2050040cbc402c1607b486da120d5159ca726b33cfe32ba5d8fb |
Hashes for python_gdcm-3.0.19-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84897b048990125ace4dc1694534539d6d5ccf1ab4a87d99cd408729eb249bbc |
|
MD5 | 1119358dd734a64471cf7c070b092615 |
|
BLAKE2b-256 | 50b4bf65f96e9b54b0843a2ab5bb1aea85ea9c8545273f3652df08b9c221e0f3 |
Hashes for python_gdcm-3.0.19-cp36-cp36m-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c7eb83b171cafd4acbc36ce59ce84acb3246b07b13fd5556da8aec6946d6fde |
|
MD5 | 369546a200af363d4218449a28618969 |
|
BLAKE2b-256 | 2898fcc363457a9a08e7df16d8a950bef5c3b221dc7be67b947cc57b187c731f |
Hashes for python_gdcm-3.0.19-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1435536e019d2fa0983f1884c61533f68cc8d2dbfc49579d68a64ae55693d63a |
|
MD5 | c2104508ec8b3c1d4a33d6a169a97481 |
|
BLAKE2b-256 | 9d3c3c199390dd22eeec239c034e63599add75211bc6232ccad5bcba9988fc52 |