biff2tiff
[ XITE Reference Manual | XITE home ]
Contents
Name
biff2tiff, biff2tiff1, biff2tiff8, biff2tiff8p, biff2tiff8c,
biff2tiff8s, biff2tiff8sc, biff2tiff16, biff2tiff16c,
biff2tiff16s, biff2tiff16sc, biff2tiff32i, biff2tiff32ic,
biff2tiff32fp, biff2tiff32fpc, biff2tiff64, biff2tiff64c -
Convert a BIFF image to TIFF
#include <xite/tiff.h>
int biff2tiff( IMAGE img, TIFF* tif,
int format, Color_cell* coltab, int colLen,
uint16 compression );
int biff2tiff1( IBAND band, TIFF* tif,
uint16 compression, UNS_BYTE threshold );
int biff2tiff8( IBAND band, TIFF* tif,
uint16 compression );
int biff2tiff8p( IBAND band, TIFF* tif,
Color_cell* coltab, int colLen,
uint16 compression );
int biff2tiff8c( IMAGE img, TIFF* tif,
uint16 compression );
int biff2tiff8s( ISB_BAND band, TIFF* tif,
uint16 compression );
int biff2tiff8sc( ISB_IMAGE img, TIFF* tif,
uint16 compression );
int biff2tiff16( IUS_BAND band, TIFF* tif,
uint16 compression );
int biff2tiff16c( IUS_IMAGE img, TIFF* tif,
uint16 compression );
int biff2tiff16s( ISS_BAND band, TIFF* tif,
uint16 compression );
int biff2tiff16sc( ISS_IMAGE img, TIFF* tif,
uint16 compression );
int biff2tiff32i( II_BAND band, TIFF* tif,
uint16 compression );
int biff2tiff32ic( II_IMAGE img, TIFF* tif,
uint16 compression );
int biff2tiff32fp( IR_BAND band, TIFF* tif,
uint16 compression );
int biff2tiff32fpc( IR_IMAGE img, TIFF* tif,
uint16 compression );
int biff2tiff64( ID_BAND band, TIFF* tif,
uint16 compression );
int biff2tiff64c( ID_IMAGE img, TIFF* tif,
uint16 compression );
biff2tiff is a wrapper function that decides which one of the
routines below to use, depending on BIFF image pixeltype and
the value of the parameter format (RGB, PALETTE, GRAYSCALE
or BW). coltab is the supplied XITE colortable with
colLen entries. compression is one of the legal values for
the libtiff tag TIFFTAG_COMPRESSION:
COMPRESSION_NONE
COMPRESSION_PACKBITS
COMPRESSION_LZW
COMPRESSION_CCITTRLE
COMPRESSION_CCITTFAX3
COMPRESSION_CCITTFAX4
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.
Grayscale conversion routines:
biff2tiff1 converts an unsigned byte BIFF band to a TIFF
bilevel (1-bit samples) image by thresholding at threshold.
biff2tiff8 converts an unsigned byte BIFF band to a TIFF
grayscale (8-bit unsigned samples) image.
biff2tiff8s converts a signed byte BIFF band to a TIFF
grayscale (8-bit signed samples) image.
biff2tiff16 converts an unsigned short BIFF band to a TIFF
grayscale (16-bit samples) unsigned short image.
biff2tiff16s converts a signed short BIFF band to a TIFF
grayscale (16-bit samples) signed short image.
biff2tiff32i converts a signed integer BIFF band to a TIFF
grayscale (32-bit samples) signed integer image.
biff2tiff32fp converts a 32-bit floating point BIFF band
to a TIFF grayscale (32-bit samples) floating point image.
biff2tiff64 converts a 64-bit floating point BIFF band to a
TIFF grayscale (64-bit samples) floating point image.
Palette (pseudocolor) conversion routines:
biff2tiff8p converts an unsigned byte BIFF band with the
colortable coltab to a TIFF palette image.
RGB conversion routines:
biff2tiff8c converts a three-band unsigned byte BIFF image
to a TIFF 3*8-bit unsigned byte rgb image.
biff2tiff8sc converts a three-band signed byte BIFF image
to a TIFF 3*8-bit signed byte rgb image.
biff2tiff16c converts a three-band unsigned short BIFF image
to a TIFF 3*16-bit unsigned short rgb image.
biff2tiff16sc converts a three-band signed short BIFF image
to a TIFF 3*16-bit signed short rgb image.
biff2tiff32ic converts a three-band signed integer BIFF image
to a TIFF 3*32-bit integer rgb image.
biff2tiff32fpc converts a three-band 32-bit floating point
BIFF image to a TIFF 3*32-bit floating point rgb image.
biff2tiff64c converts a three-band 64-bit floating point
BIFF image to a TIFF 3*64-bit floating point rgb image.
0 => ok
other => Bad pixel type
biff2tiff(1), tiff2biff(1), tiff2biff(3)
Helene Schulerud and Svein Bøe, BLAB, Ifi, UiO.
$Id: biff2tiff.c,v 1.18 1997/09/01 12:17:11 svein Exp $