biff2pnm
[ XITE Reference Manual | XITE home ]
Name
biff2pnm - BIFF to Portable Bit/Gray/Pixel Map conversion
Syntax
biff2pnm [<option>...] <BIFF-infile> <pnm-outfile>
Description
Read a BIFF-image and convert the first band to one of the
formats pbm (portable bitmap), pgm (portable graymap) or ppm
(portable pixmap). Write the result to a pnm-file
(pnm: portable anymap).
If the BIFF-image is two-valued, write a pbm-image.
If the BIFF-image consists of more than two different
values, write a pgm-image.
Use option "-rgb" (see below) for rgb images and ppm-format.
The data type of pixelvalue components in pbm/pgm/ppm is
either unsigned char or unsigned short, depending on how the
pbm package was compiled. biff2pnm converts the BIFF band to
the correct pixeltype before conversion to pbm/pgm/ppm. The
pixeltype conversion does not imply any scaling. Values too
large (or too small) to be represented by the new pixeltype are
set to the maximum (or minimum) possible value. A warning is
issued to this effect.
User "-" as filename arguments for stdin and stdout.
Options
-
-rgb
- If the BIFF image consists of three bands, assume that they
represent red, green and blue color components.
Write a ppm-image.
-
-a
- Write a plain-format file (ascii), as opposed to a raw-format
one (binary).
See also
pnm2biff(1), XITE(1), biff2raw(1)
References
Documentation for the pbmplus or netpbm free software
packages.
Author
Svein Bøe, Blab, Ifi, UiO
Examples
biff2pnm monabinary.pnm monabinary.img
Id
$Id: biff2pnm.c,v 1.9 1997/09/01 12:18:07 svein Exp $