pydicom.filereader.read_file_meta_info

pydicom.filereader.read_file_meta_info(filename: Union[str, bytes, os.PathLike]) pydicom.dataset.FileMetaDataset

Read and return the DICOM file meta information only.

This function is meant to be used in user code, for quickly going through a series of files to find one which is referenced to a particular SOP, without having to read the entire files.