tiff2biff

[ XITE Reference Manual | XITE home ]

Name

tiff2biff - Convert an image from TIFF to BIFF format.

Syntax

tiff2biff <TIFF-image> <BIFF-image> [<colortab filename>]

Description

Convert a TIFF (Tagged Image File Format) image to a BIFF image. The conversion is according to TIFF specification 6.0 and uses the libtiff library by Sam Leffler. This library must exist on your system, it is not supplied with XITE. If you get problems with importing TIFF images from other applications, make sure those applications are also TIFF 6.0 compliant.

Byte-ordering between little-endian and big-endian machines is handled automatically.

Restrictions

tiff2biff supports the following conversions

 For grayscale images:

     From TIFF                      To BIFF
 1-bit bi-level (b/w)           unsigned byte
 2-bit                          unsigned byte
 4-bit                          unsigned byte
 8-bit unsigned byte            unsigned byte
 16-bit unsigned short          unsigned short
 32-bit signed integer          signed integer
 32-bit floating point          floating point
 64-bit floating point          64-bit floating

 For palette (pseudocolor) images:

     From TIFF                      To BIFF
 1-bit                          unsigned byte
 2-bit                          unsigned byte
 4-bit                          unsigned byte
 8-bit unsigned byte            unsigned byte

 For rgb color images:

     From TIFF                      To BIFF
 3*8-bit unsigned byte          three-band unsigned byte
 3*16-bit unsigned short        three-band unsigned short
 3*32-bit signed integer        three-band signed integer
 3*32-bit floating point        three-band floating point
 3*64-bit floating point        three-band 64-bit fl. pnt.

See also

tiff2biff(3), biff2tiff(1), biff2tiff(3)

Author

Helene Schulerud and Svein Bøe, Blab, Ifi, UiO

Examples

tiff2biff mona.tif mona.img

Id

$Id: tiff2biff.c,v 1.14 1997/04/10 12:19:34 svein Exp $