mitk.DICOMTagPath#
- class mitk.DICOMTagPath#
Bases:
pybind11_objectPath through nested DICOM tags.
A
DICOMTagPathis toDICOMTagwhatPropertyKeyPathis to a property name: a structured, manipulable representation. Used to address tags inside sequences or nested data sets.Convert to/from MITK’s flat property-name form via
from_string(),from_property_name(),str(path), andto_property_name().Examples
>>> p = mitk.DICOMTagPath(0x0010, 0x0010) >>> p.to_property_name() 'DICOM.0010.0010'
- __init__(*args, **kwargs)#
Overloaded function.
__init__(self: mitk.DICOMTagPath) -> None
Construct an empty path.
__init__(self: mitk.DICOMTagPath, group: typing.SupportsInt, element: typing.SupportsInt) -> None
Create a DICOMTagPath from a DICOM tag (group, element).
__init__(self: mitk.DICOMTagPath, tag: mitk.DICOMTag) -> None
Create a DICOMTagPath from a DICOMTag object.
Methods
__init__(*args, **kwargs)Overloaded function.
from_property_name(property_name)Parse a DICOM tag path from MITK property name format like 'DICOM.0010.0010'.
from_string(tag_string)Parse a DICOM tag path from string format like '(0010,0010)'.
get_nodes(self)Get detailed information about all nodes in the path.
to_property_name(self)Convert to MITK property name format (e.g., 'DICOM.0010.0010').
to_readable_name(self[, include_tags])Convert to human-readable name using DICOM dictionary.
Attributes
True if the path has no nodes.
True if the path has no wildcards.
- __eq__(self: mitk.DICOMTagPath, other: mitk.DICOMTagPath) bool#
Check if two paths are structurally identical.
- __len__(self: mitk.DICOMTagPath) int#
Return the number of nodes in the path.
- __ne__(*args, **kwargs)#
Overloaded function.
__ne__(self: mitk.DICOMTagPath, other: mitk.DICOMTagPath) -> bool
__ne__(self: mitk.DICOMTagPath, other: object) -> bool
- __truediv__(self: mitk.DICOMTagPath, other: mitk.DICOMTagPath) mitk.DICOMTagPath#
Append another DICOMTagPath using / operator.
- static from_property_name(property_name: str) mitk.DICOMTagPath#
Parse a DICOM tag path from MITK property name format like ‘DICOM.0010.0010’.
- static from_string(tag_string: str) mitk.DICOMTagPath#
Parse a DICOM tag path from string format like ‘(0010,0010)’.
- get_nodes(self: mitk.DICOMTagPath) list#
Get detailed information about all nodes in the path.
- property is_empty#
True if the path has no nodes.
- property is_explicit#
True if the path has no wildcards.
- to_property_name(self: mitk.DICOMTagPath) str#
Convert to MITK property name format (e.g., ‘DICOM.0010.0010’).
- to_readable_name(self: mitk.DICOMTagPath, include_tags: bool = False) str#
Convert to human-readable name using DICOM dictionary.