pydicom.tag.BaseTag¶
-
class
pydicom.tag.BaseTag¶ Represents a DICOM element (group, element) tag.
If using Python 2.7 then tags are represented as a
long, while for Python 3 they are represented as anint.-
element¶ The element number of the tag.
Type: int
-
group¶ The group number of the tag.
Type: int
-
is_private¶ Returns
Trueif the corresponding element is private,Falseotherwise.Type: bool
-
__init__()¶ Initialize self. See help(type(self)) for accurate signature.
Methods
as_integer_ratioReturn integer ratio. bit_lengthNumber of bits necessary to represent self in binary. conjugateReturns self, the complex conjugate of any int. from_bytesReturn the integer represented by the given array of bytes. to_bytesReturn an array of bytes representing an integer. Attributes
denominatorthe denominator of a rational number in lowest terms elemReturn the tag’s element number as int.elementReturn the tag’s element number as int.groupReturn the tag’s group number as int.imagthe imaginary part of a complex number is_privateReturn Trueif the tag is private (has an odd group number).is_private_creatorReturn Trueif the tag is a private creator.numeratorthe numerator of a rational number in lowest terms realthe real part of a complex number -
elem¶ Return the tag’s element number as
int.
-
element Return the tag’s element number as
int.
-
group Return the tag’s group number as
int.
-
is_private Return
Trueif the tag is private (has an odd group number).
-
is_private_creator¶ Return
Trueif the tag is a private creator.New in version 1.1.
-