highdicom
is a pure Python package providing a high-level application programming interface (API) for working with DICOM files, with a focus 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 formatting the frames to prepare them for computational analysis.
- 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 and filtering and accessing the information contained within them.
Please refer to the online documentation at highdicom.readthedocs.io, which includes installation instructions, a user guide with examples, a developer guide, and complete documentation of the application programming interface of the highdicom
package.
For more information about the motivation of the library and the design of highdicom's API, please see the following article:
Highdicom: A Python library for standardized encoding of image annotations and machine learning model outputs in pathology and radiology C.P. Bridge, C. Gorman, S. Pieper, S.W. Doyle, J.K. Lennerz, J. Kalpathy-Cramer, D.A. Clunie, A.Y. Fedorov, and M.D. Herrmann. Journal of Digital Imaging, August 2022
If you use highdicom in your research, please cite the above article.
The developers gratefully acknowledge their support:
- The Alliance for Digital Pathology
- The MGH & BWH Center for Clinical Data Science
- Quantitative Image Informatics for Cancer Research (QIICR)
- Radiomics
This software is maintained in part by the NCI Imaging Data Commons project, which has been funded in whole or in part with Federal funds from the NCI, NIH, under task order no. HHSN26110071 under contract no. HHSN261201500003l.