High-level DICOM abstractions.
Actively maintained. Last release 2 weeks ago, commits in 19 of the last 26 weeks. A safe choice.
pip install highdicomHighdicom
highdicom is a pure Python package built on top of pydicom to provide a higher-level application programming interface (API) for working with DICOM files. Its focus is on common operations required for machine learning, computer vision, and other similar computational analyses. Broadly speaking, the package helps with three types of task:
-
Reading existing DICOM image files of a wide variety of modalities (covering radiology, pathology, and more) and selecting and formatting their frames for computational analysis. This includes considerations such as spatial arrangements of frames and application of pixel transforms, which are not handled by
pydicom. -
Storing image-derived information, for example from computational analyses or human annotation, in derived DICOM objects for communication and storage. This includes:
- Annotations
- Parametric Map images
- Segmentation images
- Structured Report documents (containing numerical results, qualitative evaluations, and/or vector graphic annotations)
- Secondary Capture images
- Key Object Selection documents
- Legacy Converted Enhanced CT/PET/MR images (e.g., for single frame to multi-frame conversion)
- Softcopy Presentation State instances (including Grayscale, Color, and Pseudo-Color)
-
Reading existing derived DICOM files of the above types and filtering and accessing the information contained within them.