https://github.com/rasmusrpaulsen/dicomtools
Tools for diagnosing and sorting series of DICOM files
https://github.com/rasmusrpaulsen/dicomtools
Last synced: 3 days ago
JSON representation
Tools for diagnosing and sorting series of DICOM files
- Host: GitHub
- URL: https://github.com/rasmusrpaulsen/dicomtools
- Owner: RasmusRPaulsen
- License: mit
- Created: 2021-01-11T12:15:25.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-11T14:19:57.000Z (over 4 years ago)
- Last Synced: 2025-03-29T16:11:20.755Z (6 months ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DICOMTools
Tools for diagnosing and sorting series of DICOM files.This is mostly an internal diagnostic tool set that some might find useful.
## Requirements
- Python 3.6 (it does now work with Python 3.7 or higher due to GDCM)
- GDCM (https://anaconda.org/conda-forge/gdcm)
- pydicom## dicom_sorter
The dicom_sorter.py script can sort DICOM files into a hiearchical sub-structure. It starts by (for each file) extracting relevant DICOM header information as patient id
, study dates and times. These values can then later be used to define the sub-structure of the output files.This script is mostly a copy of the code described by Alex Weston (https://towardsdatascience.com/a-python-script-to-sort-dicom-files-f1623a7f40b8)
## dicom_dump_series_info
The dicom_dump_series_info.py parses the file headers of a set of DICOM files in a given directory structure. It extracts some relevant values and dumps
the values into a csv file. This can be used diagnose potential mixed series and other DICOM related issues.