imageio.plugins.pydicom.PydicomPlugin.metadata#
- PydicomPlugin.metadata(*, index: Any = Ellipsis, exclude_applied: bool = True, raw: bool = False) Dict[str, Any][source]#
Read (non-data) DICOM tags.
- Parameters:
- indexEllipsis or int
Metadata is built by layered
dict.update:If
indexis...orNone, add instance-level tags (FG sequences omitted as top-level keys;TransferSyntaxUIDincluded from file_meta).If a shared functional group is present, update with its macros.
If
indexis anint, update with that frame’s per-frame FG (per-frame wins on conflict).
Classic files with no FG data therefore yield
{}for an integerindex.- exclude_appliedbool
If True (default) and
rawis False, drop tags consumed by the defaultread/iterreconstruction (rescale / windowing). Otherwise, leave those tags in the returned dict.- rawbool
Pair with
read(..., raw=...). IfFalse(default),exclude_appliedmay drop reconstruction tags. Otherwise, those tags are kept even whenexclude_appliedis True.
- Returns:
- metadatadict
Keyword → value mapping (pydicom keyword names).