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.9.1.tar.gz
(3.5 MB
view hashes)
Built Distributions
Close
Hashes for python_gdcm-3.0.9.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5486dd6f59b8291f11ee59dc702d0e65ebaa2c5056806a9b732048b824676f94 |
|
MD5 | 322802438e00b0bc034d46b08a4eaf73 |
|
BLAKE2b-256 | 6c618f4a78bf45bbc5d0355df2b35ecfe5c7210588d2716d5e5a1ea72a91ae4d |
Close
Hashes for python_gdcm-3.0.9.1-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 276bccccfaea20b38951ef0232724feb796337b808610ab526a1be3d748131ce |
|
MD5 | 4db0908f0f10ba3bf6c5e5415db4608d |
|
BLAKE2b-256 | 97834302c59a0c838a180b2983bfc09587d027b7ab40ef2488e0d36d51883c46 |
Close
Hashes for python_gdcm-3.0.9.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee1d4092d887cfe4d0d3a3333f1605f157848d93fb75d7d037daa31a1614e527 |
|
MD5 | 426188576f7165a91c601fb0e4e852ed |
|
BLAKE2b-256 | 9da91362e5defc63a80b0abc28cf6693db083d8805c56b8cae0e8bc098d03a6c |
Close
Hashes for python_gdcm-3.0.9.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d86616a7942ce20a453aa0e98b027f91257ceb45e990964d2c95c5f1989cbb1a |
|
MD5 | 3d8bec130857fe4c39eb2a6c1cdb63d1 |
|
BLAKE2b-256 | 4de31b9a06e2a86d0f38761ec5b1f03b32301a1b1ce42e8201788b248f962845 |
Close
Hashes for python_gdcm-3.0.9.1-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b2d9600b6fcffcca504d663226ac62010704edf4f30f00ec7924e412b899011 |
|
MD5 | fb20d0bd36b575291665b3e1d522f93d |
|
BLAKE2b-256 | 0c8312206d88b42ecbcd4db37d219ab92d4535d6219b524398bbed174714426c |
Close
Hashes for python_gdcm-3.0.9.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca46cda948dbaafe2ed3db72511a7904d18fa88d62a6de9419babfd526da883f |
|
MD5 | 859c8b9b0d45c2a9e4fb803a0865d216 |
|
BLAKE2b-256 | aba71f71540b6efcea42937d4342ab93c37a64b31356bd8f7bbe16a50fdb68fa |
Close
Hashes for python_gdcm-3.0.9.1-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0cdf6b0484a894f8fe04b20a13d5dedbd92dd714ba7654959229b3950e9f92e |
|
MD5 | 92e43a8e2b92cd5e0a132e0cbedc1c94 |
|
BLAKE2b-256 | bd74c29e4712f8af36c9f20a8c80d09ba5c8f95c5cf17ca3de1d4ddfb40a24d0 |
Close
Hashes for python_gdcm-3.0.9.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b5cc5a70c30a3c3f19719fc5b709e7f0adfb8f112a43a58240079a725ee4b9b |
|
MD5 | b61dd43d5366c2c2621f98978de5130e |
|
BLAKE2b-256 | beff140b4223faf68a6659792178bdd0b691844488acb9f13675782eacbb70eb |
Close
Hashes for python_gdcm-3.0.9.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 649968f3e69057469df922a9a063a67ae9252a9b2146804c5f563fcfef93f60d |
|
MD5 | 672951660f7fe2b8eb5d2ee1890d6e9c |
|
BLAKE2b-256 | 4d40984f11860d4879841938bb9f36ef1cce4ab83622bc40221c0d1476bed9ab |
Close
Hashes for python_gdcm-3.0.9.1-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b576d1953956ac7d066c167ae77333010bd3fff2f35b88ba29c9bcb419e85519 |
|
MD5 | 24966261ea02afe42915432d3e198bd9 |
|
BLAKE2b-256 | 0690d8fd6bf51bd2899e99b72c953309bf4a9cbc9b1bb8aee97832736c2f6360 |
Close
Hashes for python_gdcm-3.0.9.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 056b0c4dbd8499c57ef78fea669223a298daf6d96c15a050d411acdc4f06a780 |
|
MD5 | 516d3740241f944c4e9602f91553cee0 |
|
BLAKE2b-256 | 5277012cce642bd16231bc721ba67a255b165586420d94496430929b7aebc1fa |
Close
Hashes for python_gdcm-3.0.9.1-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bda5ea689a60b61cdecdc401f73bb7ae9f92aa3dafc127f6b2bc903212ff8a32 |
|
MD5 | 170d3e5972986ca4395210cb14831af8 |
|
BLAKE2b-256 | 007e479079e13d2a5f02784d6179ca571e646e3dd198ccadd5702b4988582343 |
Close
Hashes for python_gdcm-3.0.9.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e957c66421af717104a9833bffeedee091a2fd045422eb9dcac85a5fc7780186 |
|
MD5 | ff19e4f4680fbd3b651d124394a0a41e |
|
BLAKE2b-256 | 2204eb66d51e7704c84390bf83fb38cc005699d1f83183a057599a1b60c4c78c |
Close
Hashes for python_gdcm-3.0.9.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 307223586946b28d0e686b886dc69517ff4b4dea24d9e06392e61a6cd9b1b0fe |
|
MD5 | 321d0bd2e0596bf67a6733bb7357f500 |
|
BLAKE2b-256 | 6eed5b1c425b094e57f88c53baaf91a863ec5bca5d0cd637d6187ec78ddf0ad5 |
Close
Hashes for python_gdcm-3.0.9.1-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04fc619e4ceabc378bacc77fbd31172fc6c7883939a985cf12ce1f285c710938 |
|
MD5 | 5b98f2de1c72971395388ee099a9a394 |
|
BLAKE2b-256 | b4fffa6ff75628f131bec68f74df03b5a452b14059e3792e21c3dcc5c4842634 |
Close
Hashes for python_gdcm-3.0.9.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a0a631f5e3a9aad4870c439bf8f2916eb7c22855cc0e68869d5c4db14dd7610 |
|
MD5 | 6c6109acb93dfcf6d5b982245e0bc8ab |
|
BLAKE2b-256 | 8960b48639819749ccee0aeb382fde27630e3ad83759c92f5352431db5d71c96 |
Close
Hashes for python_gdcm-3.0.9.1-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab4cd8f59781a52dbae52d0b5d33228656a19bc4e1da5ddd562a4da2e4e99f3f |
|
MD5 | 290201bbbf7ba6174c2c312586e4610d |
|
BLAKE2b-256 | c422539dedce8538a1bc45f4cebf1c67727e98b6f38a9b9870ba96bd25103f4f |
Close
Hashes for python_gdcm-3.0.9.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cac41d4aa99c78ff04f9ecc1b53db4efc1f2edd29cda60bc383179aa63b4ee8 |
|
MD5 | 1b93730ee21686880dbfeebb315e69f6 |
|
BLAKE2b-256 | 8f0f00c3ead4a87e0893c2bb6f6fa68e9706402f08823b5d3b5131003b802fc3 |
Close
Hashes for python_gdcm-3.0.9.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 888b9610cdf1b691315f224473eaeeb75c3e9d9816d8a56cabdc3d6a65a080d5 |
|
MD5 | 25a828f749fc4b7baba4fe867badc587 |
|
BLAKE2b-256 | 19a8e5dc4e534dc0aafaf055bd9595cd3109c1000e5a3f36cab7654ab6c3172c |
Close
Hashes for python_gdcm-3.0.9.1-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 598452495aa03304a81e3f669af9facb4bbdbeb741fe6bcd204616e248aebb18 |
|
MD5 | ea0d4f0eedb7f746b31484a3c373e22c |
|
BLAKE2b-256 | 5c085f9247a3ea0ea9771aa213f461585a59ecadcec66a81b262154b59dd5d78 |
Close
Hashes for python_gdcm-3.0.9.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de55638d3f67e31cb2646133a8d5f7f4a49b17a2a183abb1cb3d8d767ea32e28 |
|
MD5 | 4685463696c17e8e5306146f53a73b4f |
|
BLAKE2b-256 | e05bfa5d982a4aa3ad1c12e60f44113794e2d348a50db1561056bc740bac6875 |
Close
Hashes for python_gdcm-3.0.9.1-cp36-cp36m-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adacb30674903dd891d0920aa5872927d7e42a5d17ca625aaf7966c4a172a1ef |
|
MD5 | 3ece3c3e7710a2bf42e5f6e5971fea14 |
|
BLAKE2b-256 | d6430e3b1b83c0dc5aa028451b8e534527f6633a88117cc37b26195e7c83a7ec |
Close
Hashes for python_gdcm-3.0.9.1-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | edf557ab79f1b23da93b9d8ac12a2a8cb81a496a68da10ed49de596cac02cac8 |
|
MD5 | 61d13d50c1cb89f8cd5d0f7ede7c54d0 |
|
BLAKE2b-256 | f35a50339e81e116fdc8f174583f3d06cdbe722f432681815301079519d3266b |