Package qubx :: Module tifffile :: Class TiffTag
[hide private]
[frames] | no frames]

Class TiffTag

source code

object --+
         |
        TiffTag

A TIFF tag structure.

Attributes

name : string
Attribute name of tag.
code : int
Decimal code of tag.
dtype : str
Datatype of tag data. One of TIFF_DATA_TYPES.
count : int
Number of values.
value : various types
Tag data as Python object.
value_offset : int
Location of value in file, if any.

All attributes are read-only.

Nested Classes [hide private]
  Error
Instance Methods [hide private]
 
__init__(self, arg, **kwargs)
Initialize instance from file or arguments.
source code
 
_fromdata(self, code, dtype, count, value, name=None)
Initialize instance from arguments.
source code
 
_fromfile(self, parent)
Read tag structure from open file. Advance file cursor.
source code
 
__str__(self)
Return string containing information about tag.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]
  _offset
  _value
  code
  count
  dtype
  name
  value
  value_offset

Inherited from object: __class__

Method Details [hide private]

__init__(self, arg, **kwargs)
(Constructor)

source code 
Initialize instance from file or arguments.
Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 
Return string containing information about tag.
Overrides: object.__str__