No project description provided
Project description
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 init
to 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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file dicom-utils-1.0.3.tar.gz
.
File metadata
- Download URL: dicom-utils-1.0.3.tar.gz
- Upload date:
- Size: 239.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb18a4642eb97337c35db3c48f950c5495bfec737e08796f9f7f7c0fca0139fd |
|
MD5 | 610404b1752ca8f2268beb53ee7e59ea |
|
BLAKE2b-256 | 644b8abf1c069a72cd0b6f6aada5bf27fa1fedb3f1dc009ddcabebb564263f4f |
File details
Details for the file dicom_utils-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: dicom_utils-1.0.3-py3-none-any.whl
- Upload date:
- Size: 135.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 087d981e394f07c36d803cb6363dcb44ac2d0d24d341220b73e2cb08e277ec13 |
|
MD5 | e4131b0ad3d1a8a6bb2dc4c5f6e2e852 |
|
BLAKE2b-256 | 49bc456d042085446d74d19475ad13bc372692fb5bd2844fffe0b061c57ef4d0 |