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.17-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05ef75d228d00252ccd69a3c1b90e263f9748496c8f5749fe1e527bc3cce818c |
|
MD5 | 85e794cc6c1211c3ff05c80e810b693f |
|
BLAKE2b-256 | dc6a403cc011cf284c67681fad2e62b8fdd81ed9ff29d6e9bf4845122eb6f048 |
Hashes for python_gdcm-3.0.17-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cbc319a93e0e4448357ecd44bce47392129970d736922a8abd13204a9ed3ccb |
|
MD5 | 6674d7b1d1629166db2b6df3a1436252 |
|
BLAKE2b-256 | b61bf3366224b2db520bd37fdf37ac073cbfa9808b6e67d5c1fefbb6b0162055 |
Hashes for python_gdcm-3.0.17-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4aa92137faaafc6e4ecc0a8cfd27952f80e974b4a1a1958f6b94f04c476277e |
|
MD5 | 3e773c80684a78bec3bdbd9ddb9ea135 |
|
BLAKE2b-256 | 2853cff8a4807023cf9e24214892a584274cb4330bfb5f806655fdb052d56c7a |
Hashes for python_gdcm-3.0.17-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31c147de9ca5374232eecd189b00177ef18ca33b6a9135d44768e48dafbea531 |
|
MD5 | b18da41c3f8327c3cc433fa09eead373 |
|
BLAKE2b-256 | 0095ae35542929687334cfaf9ad95ec1c543f301aed84e0750898c052757fa30 |
Hashes for python_gdcm-3.0.17-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ff91e01ecc733559812fb7b79d178ae5edd0b78e2034414c2ccca04dd283007 |
|
MD5 | eb9779439ef7fbce03056eea5f821bd8 |
|
BLAKE2b-256 | 25d2ddb1446d91264b9429ea7120d280098ef539eea75cd5ffd8ec6a0c7a09b4 |
Hashes for python_gdcm-3.0.17-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46753d0a76bed4aa21010f082682fe6019554790286726cca205820274f043b4 |
|
MD5 | e9ea0d76a785e3f057a79cdd3650b750 |
|
BLAKE2b-256 | 2fcf2315d9220922573aa95ef7c079bea3debd80e4b67da2e84da599e252a660 |
Hashes for python_gdcm-3.0.17-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e31d57337b22fb70c7c8cf004f455916a9d88918f234b9412ce544cb5bf11a60 |
|
MD5 | fe1669e067cd5c4b906c55fed87e3a74 |
|
BLAKE2b-256 | 8c04f437a69c99dcddad3257cc2efcb9cfa4219340001c233d9ed90061ae5d26 |
Hashes for python_gdcm-3.0.17-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df7273547b596c97197df7aa6808e220787001492c1039b6701fba5382851140 |
|
MD5 | 7aa857b07ff999523912cdf5f1dc9157 |
|
BLAKE2b-256 | b7961cff0fec34baf2ac0a5009d4e0b2cd56ae80cef8680b8abed05947c944ab |
Hashes for python_gdcm-3.0.17-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | afb43f1e4bf7e80928d3d6760eb5d43f072371b315a40dcbf06435020c2972b8 |
|
MD5 | 30aa5992fd307c9c7ee8084c1dd75ddf |
|
BLAKE2b-256 | caaa9ebce16dc461c2f0e407e3460d5db883d2d445884f73c3d47fdb0789fcdf |
Hashes for python_gdcm-3.0.17-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfe2d71a39294b7e4f106c1979b30b14b7aa76a2f16c52996821321ba549dc7b |
|
MD5 | 7e4975089be897f9a743ce01f15ad3e1 |
|
BLAKE2b-256 | 21933cd044721dc8b2f12867d8e3218ba5de2d974796c7537e00f01df8eed264 |
Hashes for python_gdcm-3.0.17-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3bf7bb45434d013aaef18d1888adb51540285c7365d3053252595275c27844a |
|
MD5 | f2ebb9b068c0ca0fb8a3def44d88c8c9 |
|
BLAKE2b-256 | a7781565f2823ca86550d408677496160a6b92abd5ede6950131128dec470207 |
Hashes for python_gdcm-3.0.17-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9198eaa574edacccf5691a11c8ceb70f35a622e9da2102a75b261e9b95f56c2f |
|
MD5 | 82cdfa8f0a49f9fb51dc1a4f431d59d1 |
|
BLAKE2b-256 | 44ef0cd1b5890992998a79957d23eb9102a4614cf144948ba0690cc4de3c2746 |
Hashes for python_gdcm-3.0.17-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d485450a54173c04d74409862b071cac89b3f871bfafd166efb02aade3485d1 |
|
MD5 | 74584c482cf42ab490d29c4692762e92 |
|
BLAKE2b-256 | 5d96dafa3aafedff0da393ba544692f72fb73282340a3ae7d191e96cf5a437a8 |
Hashes for python_gdcm-3.0.17-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74acddaa4ca9328a829d12f008cc3e0209667e00c153f80fbb658006a3d30fb4 |
|
MD5 | 1afaf32b13c4d3643bdde642de33897d |
|
BLAKE2b-256 | 1bf7fad1a3daac117eb2005c4d13e0498657f751e290e774b8caaa8f6a51b9d8 |
Hashes for python_gdcm-3.0.17-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05d0f321b1f9645066a112120bffea1122977c1b1ec70b36dbc71af8249bbf61 |
|
MD5 | 9ad257eb63dc484b1c77906aed2d523a |
|
BLAKE2b-256 | 59272fd31077eb370ea0c79b2f3f5c6079700ce212458401285c5ff2ea4568aa |
Hashes for python_gdcm-3.0.17-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6864b6ff4c87425540509953f152933b72b4a887ace9961c946baddb6af7886f |
|
MD5 | 293a40d1b24c85e5a96c3cbddf1f0070 |
|
BLAKE2b-256 | d9b7e7aa2bfe927b914aad87acfe61042eb32568ba7a1b76e09df0560b7e9744 |
Hashes for python_gdcm-3.0.17-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2581b84e208ea544a923057288878d2a6c37b2206a62d2fbda7f61dd2c3376ec |
|
MD5 | eca966bdaa1af3be790eae5911655b5a |
|
BLAKE2b-256 | b86251e065f02e4b379813ad03288cc548c60eb9d03e87e64bce91f078761ad4 |
Hashes for python_gdcm-3.0.17-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0f51d693dd919bf7e591a53e5b92220499376c980c6fdb42413d163b5c22461 |
|
MD5 | f8cbeebe41695e5a3eadf191a60c1430 |
|
BLAKE2b-256 | fa7d8f4e15789850629940631ba2e52ef36aaa3637c16d30c818a946b0f5543e |
Hashes for python_gdcm-3.0.17-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d49b5ac97cb249b872086814bd6e35169b567f691419183cc64c8a36b587ef80 |
|
MD5 | 9f62677572085c02de57d4c63e3404dd |
|
BLAKE2b-256 | 3214dc154b94df866fc6dd31b90854425a7a803a98c78d0ec8aedfea46355361 |
Hashes for python_gdcm-3.0.17-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe982aa2c6e95da930a138cd988a6314cbbb77f5a9fcfc94e7dddd8107d482e0 |
|
MD5 | 42a09c52f67298bbcca18d54758bdf5c |
|
BLAKE2b-256 | 58b73ec4ea2e2ef10e55e0b5c7988f53415811f786852e2e059914f4f77719c5 |
Hashes for python_gdcm-3.0.17-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4c5ea5f79368dbc8f17d9a7dd1486a65660370e64a78569d0dfc12a76bbd316 |
|
MD5 | 5962600d64b374a4611290973eeb0306 |
|
BLAKE2b-256 | 806d05ca51958d282d08736074359c3d3cf2dbaf313a8bbdf9a9b799ed14c0df |
Hashes for python_gdcm-3.0.17-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c82da07395f1f5f14bb1ec86837a9a7dbd8759719ee9fad003be057d8479b994 |
|
MD5 | adacd1509b92a224d84f281077dbd358 |
|
BLAKE2b-256 | e12e6fa5a8047b30a19cbf33bb55ff953e5e74aa681c0e3578a8ceaf785f91c2 |
Hashes for python_gdcm-3.0.17-cp36-cp36m-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e9c9de1ec65f4dc2b1a3b69f8ccd53b0ff564adbe6522c668c66fdb6bd26707 |
|
MD5 | 1b0efcccc8f02f9191d8fed461fa6c36 |
|
BLAKE2b-256 | 07902b288ad43a8c1f5b5dc411e864834040211649d347c5e13022198f9736e5 |