MAN page from Mandrake Other XITE-3.3-3.i386.rpm
RAW2BIFF
Section: User Commands (1)
Updated: 16 Mar 1998
Index
NAME
raw2biff - convert raw data to BIFF file
SYNTAX
raw2biff [-t title] [-pt pixel_type] [-org orgtype] \
[-swap] [-ih <ih>] [-bh <bh>] [-ba <ba>] \
[-lh <lh>] [-la <la>] \
<raw-file> <BIFF-file> <xsize> <ysize> [<bands>]
DESCRIPTION
Converts a raw data file,
raw-fileinto a BIFF output file,
BIFF-file.xsizeand
ysizegive the horizontal andvertical size (number of pixels) of the image.
bandsdenotesthe number of bands/frames in the input image (default 1).
OPTIONS
- -t title
- Set the output image title to title.
- -pt pixel_type
- One of
ubUnsigned byte, default.
sbSigned byte, 8 bits.
usUnsigned short, 16 bits.
ssSigned short, 16 bits.
iSigned integer, 32 bits.
rReal (float), 32 bits.
blBit - least significant bit first.
bmBit - most significant bit first.
- -org orgtype
- How the pixels are organized, one of
blsBand-line-sample (default).
- lbs
- Line-band-sample.
- lsb
- Line-sample-band
- -swap
- Swap byte order.
- -ih ih
- Number of bytes to skip for image header. Default 0.
- -bh bh
- Number of bytes to skip for band header. Default 0.
- -ba ba
- Number of bytes to skip "after" each band for alignment.Default 0.
- -lh lh
- Number of bytes to skip for line header. Default 0.
- -la la
- Number of bytes to skip "after" each line for alignment.Default 0.
The input file must thus follow this format:
1) <ih> bytes in image header
2) <bh> bytes in band header
3) <lh> bytes in line header
4) <xsize> pixels in 1. line
5) <la> bytes for line alignment
6-8) like 3 to 5 for line 2
9-?) and so on for each line up to <ysize>
??) <ba> bytes for band alignment
???) like 2 to ?? for band 2
????) and so on for every band up to <bands>
After all pixel data have been read, the input file is closed,the last remaining alignment bytes are not required.
RESTRICTIONS
If more than one band, all bands must have the same size andpixel type.
BUGS
When 16 or 32 bits raw files are given,
raw2biffassumes theinput file is from a machine with same bytesex/byteordering asthe one running
raw2biff.Use option
-swapto change thebyteordering.
AUTHOR
Tor Lønnestad, BLAB, Ifi, UiO
ID
$Id: raw2biff.c,v 1.38 1997/03/24 10:11:53 svein Exp $
EXAMPLES
raw2biff -ih 512 any.dat mona.img 512 512
Index
- NAME
- SYNTAX
- DESCRIPTION
- OPTIONS
- RESTRICTIONS
- BUGS
- AUTHOR
- ID
- EXAMPLES
This document was created byman2html,using the manual pages.