Pydicom Reference Guide

Common pydicom functions called by user code

File Reading/Parsing

The main function to read and parse DICOM files using pydicom is read_file. It is coded in the module dicom.filereader, but is also imported when the dicom package is imported:

>>> import dicom
>>> dataset = dicom.read_file(...)

If you need fine control over the reading, you can either call read_partial or use open_dicom. All are documented below:

Dataset