Main Content


Extract metadata from DICOMDIR file



info = images.dicom.parseDICOMDIR(filename) extracts the metadata from the DICOM directory file (DICOMDIR) named in filename, returning the information in the structure info. If filename is not a DICOMDIR file, then the function returns an error.

A DICOMDIR is a special DICOM file that serves as a directory to a collection of DICOM files stored on removable media, such as CD- and DVD-ROMs. When devices write DICOM files to removable media, they typically write a DICOMDIR file on the disk to serve as a list of the disk contents.


collapse all

Read information about the contents of a DICOM folder into the workspace.

detailsStruct = images.dicom.parseDICOMDIR("DICOMDIR");

Input Arguments

collapse all

Name of the DICOMDIR file, specified as a string scalar or character vector. filename can specify a full path name or a relative path name to the file.

Data Types: char | string

Output Arguments

collapse all

Metadata from the DICOMDIR file, returned as a structure.

Version History

Introduced in R2017b

See Also