biff2tiff
[ XITE Reference Manual | XITE home ]
Contents
Name
biff2tiff - Convert an image from BIFF to TIFF format
biff2tiff [-rgb | -p | -bw] [-c <comp>] <BIFF-image>
[<colortable filename>] <TIFF-image>
Convert all the bands of BIFF-image to a TIFF image.
Default behaviour is to convert to a grayscale image.
Byte-ordering between little-endian and big-endian machines
is handled automatically.
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 XITE-produced TIFF images
into other applications, make sure those applications are
also TIFF 6.0 compliant.
-
-bw
- Convert the grayscale BIFF-image to a bilevel TIFF image,
by thresholding at the value 128.
-
-rgb
- BIFF-image must contain three bands (rgb), which are
converted to a TIFF rgb color image.
-
-p
- A colortable filename must be supplied as a command line
argument. In this case, the first band of the image is
converted to a TIFF palette (pseudocolor) image.
-
-c comp
- Specify compression, where comp may be one of
-
none
- No compression
-
lzw
- Lempel-Ziv & Welch, for grayscale, palette and rgb images.
-
packbits
- Packbits compression, for bilevel images.
-
huff
- CCITT 1D Huffman compression, for bilevel images.
-
fax3
- CCITT Group 3 Facsimile compression, for bilevel images.
-
fax4
- CCITT Group 4 Facsimile compression, for bilevel images.
biff2tiff supports the following conversions
For grayscale images:
From BIFF To TIFF
unsigned byte 1-bit
unsigned byte 8-bit unsigned byte
signed byte 8-bit signed byte
unsigned short 16-bit unsigned short
signed short 16-bit signed short
signed integer 32-bit signed integer
floating point 32-bit floating point
64-bit floating 64-bit floating point
For palette (pseudocolor) images:
From BIFF To TIFF
unsigned byte 8-bit unsigned byte
For rgb color images:
From BIFF To TIFF
three-band unsigned byte 3*8-bit unsigned byte (rgb)
three-band signed byte 3*8-bit signed byte (rgb)
three-band unsigned short 3*16-bit unsigned short (rgb)
three-band signed short 3*16-bit signed short (rgb)
three-band signed integer 3*32-bit signed integer (rgb)
three-band floating point 3*32-bit floating point (rgb)
three-band 64-bit fl. pnt. 3*64-bit floating point (rgb)
biff2tiff(3), tiff2biff(1), tiff2biff(3)
Helene Schulerud and Svein Bøe, BLAB, Ifi, UiO
biff2tiff mona.img mona.tif
$Id: biff2tiff.c,v 1.18 1997/09/01 12:17:11 svein Exp $