Package fabio :: Module tifimage
[hide private]
[frames] | no frames]

Module tifimage

source code


FabIO class for dealing with TIFF images. 
In facts wraps TiffIO from V. Armando Solé (available in PyMca) or falls back to PIL

Authors:
........
* Henning O. Sorensen & Erik Knudsen:
  Center for Fundamental Research: Metal Structures in Four Dimensions;
  Risoe National Laboratory;
  Frederiksborgvej 399;
  DK-4000 Roskilde;
  email:erik.knudsen@risoe.dk
* Jérôme Kieffer:
  European Synchrotron Radiation Facility;
  Grenoble (France)
   
License: GPLv3+        


Date: 11/07/2011

Authors:
J\xc3\xa9r\xc3\xb4me Kieffer, Henning O. Sorensen, Erik Knudsen

Copyright: ESRF, Grenoble & Risoe National Laboratory

License: GPLv3+

Classes [hide private]
  tifimage
Images in TIF format Wraps TiffIO
  Tiff_header
  Image_File_Directory
  Image_File_Directory_entry
Variables [hide private]
  __status__ = 'stable'
  logger = logging.getLogger("tifimage")
  PIL_TO_NUMPY = {'1': <type 'bool'>, 'F': <type 'numpy.float32'...
  LITTLE_ENDIAN = 1234
  BIG_ENDIAN = 3412
  TYPES = {0: 'invalid', 1: 'byte', 2: 'ascii', 3: 'short', 4: '...
  TYPESIZES = {0: 0, 1: 1, 2: 1, 3: 2, 4: 4, 5: 8, 6: 1, 7: 1, 8...
  baseline_tiff_tags = {256: 'ImageWidth', 257: 'ImageLength', 2...
  __package__ = 'fabio'
Variables Details [hide private]

PIL_TO_NUMPY

Value:
{'1': <type 'bool'>,
 'F': <type 'numpy.float32'>,
 'I': <type 'numpy.int32'>,
 'I;16': <type 'numpy.uint16'>,
 'L': <type 'numpy.uint8'>}

TYPES

Value:
{0: 'invalid',
 1: 'byte',
 2: 'ascii',
 3: 'short',
 4: 'long',
 5: 'rational',
 6: 'sbyte',
 7: 'undefined',
...

TYPESIZES

Value:
{0: 0,
 1: 1,
 2: 1,
 3: 2,
 4: 4,
 5: 8,
 6: 1,
 7: 1,
...

baseline_tiff_tags

Value:
{256: 'ImageWidth',
 257: 'ImageLength',
 258: 'BitsPerSample',
 259: 'Compression',
 262: 'PhotometricInterpretation',
 264: 'CellWidth',
 265: 'CellLength',
 270: 'ImageDescription',
...