What is DICOM?#

DICOM (Digital Imaging and Communications in Medicine) is a wide-ranging collection of standards relating to the storage, presentation and communication of medical images and information.

A fundamental part of the DICOM Standard is the Data Set, which is used as a container for medical and other information. DICOM has standardized definitions for many different types of Data Set; a Data Set may contain anything from images acquired during an ultrasound, to a request sent to a DICOM application for transfer of those images, to the radiologist’s report describing them. Despite their differences, because each type of Data Set is made from the same standard building blocks, all conformant Data Sets can be easily shared and understood.

How does this relate to pydicom?#

pydicom can be used to create, read, modify and write DICOM Data Sets and File-sets (collections of stored Data Sets). It can also be used to convert the imaging and other bulk data commonly found in Data Sets to a NumPy ndarray, making it a very useful part of an image processing pipeline for medical data.

pydicom implements the following parts of the DICOM Standard:

Furthermore, when used with pynetdicom, the following parts are also implemented, allowing you to easily create code to transfer Data Sets between DICOM applications: