Wolfram Library Archive

All Collections Articles Books Conference Proceedings
Courseware Demos MathSource Technical Notes
Title Downloads


Harald Hauglin
Organization: University of Oslo
Revision date


This is a package for reading non-standard grayscale TIFF files. The package parses the TIFF tags for basic info such as image size, and bit depth. Currently it only reads one image per TIFF file. Furthermore, the image data has to be located in one continuous block, although TIFF ver. 6.0 allows an image to be composed of strips of data not neccessarily located consecutively. I don't parse tags other than a neccessary minimum. 8 bit image data are assumed to be unsigned i.e. 0..255, 16 bit data are assumed to be unsigned and 32 bit data represent floating point numbers.

Not supported:
  • - multiple images in a single TIFF file
  • - compressed TIFF data
  • - 4 bit pixel values
  • - full implementation of image strip reading
  • - parsing of ASCII type TIFF headers
  • - other TIFF classes such as RGB, bi-level, JPEG
For a full overview of TIFF ver. 6.0, see http://partners.adobe.com/asn/developer/PDFS/TN/TIFF6.pdf

Tested on
  • - 16 bit integer and 32 bit floating point images generated by Xenogen IVIS Living Image software.
  • - 16 bit images from Hamamatsu Wasabi
  • - 8 bit images generated by ImageJ
  • This package is offered 'as is' - no warranty implied.
  • All mistakes are my own.
  • Please send comments and suggestions to harald.hauglin@basalmed.uio.no

*Mathematica Technology > Programming > 2D Graphics

16 bit, 32 bit, TIFF, monochrome image

Downloads Download Wolfram CDF Player

SimpleTIFF_readme.txt (2.3 KB) - Text file
SimpleTIFF.m (11.1 KB) - Mathematica Package