MIR.utils.dicom_utilsΒΆ
DICOM header inspection utilities.
Scan a directory of DICOM files, group them by series, and print a summary of the key header fields (patient/study/series, geometry, modality-specific acquisition parameters). Optionally dump the full header of one representative file per series.
Command line usage:
python -m MIR.utils.dicom_utils /path/to/dicom_dir
python -m MIR.utils.dicom_utils /path/to/dicom_dir --full
python -m MIR.utils.dicom_utils /path/to/dicom_dir --tags PatientWeight 0x00281053
python -m MIR.utils.dicom_utils /path/to/dicom_dir --hide-phi
Requires pydicom (pip install pydicom).
Functions
|
Return the full header of a dataset as a list of text lines. |
|
Command-line entry point; parses arguments and calls |
|
Print the DICOM header information for every series in a directory. |
|
Read the headers of all DICOM files in a directory and group them by series. |
|
Collect the summary header fields for one series. |