DICOM Utils
Collection of helpful scripts and Python methods for working with DICOMs.
Setup
This repo can be installed with pip. To install to a virtual environment:
- Run
make initto create a virtual environment with dicom-utils installed. - Call utilities with
venv/bin/python -m dicom_utils
Alternatively, install the repo without a virtual environment and run the entrypoints provided by setup.py
pip install .orpip install -e .- Run utilities anywhere as
dicomcat,dicomfind, etc.
Usage
The following scripts are provided:
dicomcat- Print DICOM metadata output as text or JSONdicomfind- Find valid DICOM files, with options to filter by image typedicomphi- Find and overwrite PHI across DICOM filesdicom2img- Convert DICOM to static image or GIFdicom_types- Print unique values of the "Image Type" fielddicom_overlap- Find StudyInstanceUID values shared by files in two directories
PHI Anonymization Rules
If anonymization is enabled when running dicomphi, fields defined in
this script
are anonymized
with the exception of fields which are affected by additional rules located
here.
pynvjpeg
To install pynvjpeg for accelerated JPEG2000 decoding,
install the j2k extra.
$ pip install -e ".[j2k,dev]"
The following steps may be required:
-
apt install cmake -
Add CUDA tools to path
CUDA_FOLDER="cuda-12.0"
export PATH="/usr/local/$CUDA_FOLDER/bin:$PATH"
export LD_LIBRARY_PATH="/usr/local/$CUDA_FOLDER/lib64:$LD_LIBRARY_PATH"
apt -y install python3-pybind11
Metadata
Release files for dicom-utils 1.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dicom-utils-1.0.11.tar.gz | 241.0 kB | Without provenance | Details for dicom-utils-1.0.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dicom_utils-1.0.11-py3-none-any.whl | Python 3 | none | any | Details for dicom_utils-1.0.11-py3-none-any.whl |
Total release size: 376.6 kB
Release files / dicom-utils-1.0.11.tar.gz
| Download URL | dicom-utils-1.0.11.tar.gz |
|---|---|
| Size | 241.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
af2e2c3d62cad6c9eacf1194347cffacc0461a76cf2598bc4ef2dd905350bc75
|
|
BLAKE2b-256 checksum How to use checksums |
23062cd428e3d995983da16b37408af6aab7f11e9e87f0edc37c1ec4979fc758
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.13
|
Release files / dicom_utils-1.0.11-py3-none-any.whl
| Download URL | dicom_utils-1.0.11-py3-none-any.whl |
|---|---|
| Size | 135.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a1eb2399dd7b17a1f434f923603762b70a0c88c84174b5f438cba4946881be0
|
|
BLAKE2b-256 checksum How to use checksums |
a0b8deba429d0a710a8533a1d486f05415b5b9f86296bdb8e977b28afd460713
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.13
|
Security for dicom-utils 1.0.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.