pydicom.uid.register_transfer_syntax¶
- pydicom.uid.register_transfer_syntax(uid: str | UID, implicit_vr: bool | None = None, little_endian: bool | None = None) UID[source]¶
Register a private transfer syntax with the
uidmodule so it can be used when reading datasets withdcmread().- Parameters:
uid (str | pydicom.uid.UID) – A UID which may or may not have had the corresponding dataset encoding set using
set_private_encoding().implicit_vr (bool, optional) – If
Truethen the transfer syntax uses implicit VR encoding, otherwise ifFalsethen it uses explicit VR encoding. Required when uid has not had the encoding set usingset_private_encoding().little_endian (bool, optional) – If
Truethen the transfer syntax uses little endian encoding, otherwise ifFalsethen it uses big endian encoding. Required when uid has not had the encoding set usingset_private_encoding().
- Returns:
The registered UID.
- Return type: