141 lines
3.6 KiB
Groff
141 lines
3.6 KiB
Groff
.\" $Header: /cvs/maptools/cvsroot/libtiff/man/raw2tiff.1,v 1.1 2002-09-15 16:44:52 dron Exp $
|
|
.\"
|
|
.\" Copyright (c) 1990-1997 Sam Leffler
|
|
.\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
|
|
.\"
|
|
.\" Permission to use, copy, modify, distribute, and sell this software and
|
|
.\" its documentation for any purpose is hereby granted without fee, provided
|
|
.\" that (i) the above copyright notices and this permission notice appear in
|
|
.\" all copies of the software and related documentation, and (ii) the names of
|
|
.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
|
|
.\" publicity relating to the software without the specific, prior written
|
|
.\" permission of Sam Leffler and Silicon Graphics.
|
|
.\"
|
|
.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
|
|
.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
|
|
.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
|
.\"
|
|
.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
|
|
.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
|
.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
|
.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
|
|
.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
|
.\" OF THIS SOFTWARE.
|
|
.\"
|
|
.if n .po 0
|
|
.TH RAW2TIFF 1 "15 September, 2002"
|
|
.SH NAME
|
|
raw2tiff \- create a
|
|
.SM TIFF
|
|
file from a raw data
|
|
.SH SYNOPSIS
|
|
.B raw2tiff
|
|
.I -w <number>
|
|
[
|
|
.I options
|
|
]
|
|
.I input.raw
|
|
.I output.tif
|
|
.SH DESCRIPTION
|
|
.I raw2tiff
|
|
converts a raw byte sequence into
|
|
.SM TIFF.
|
|
By default, the
|
|
.SM TIFF
|
|
image is created with data samples packed (\c
|
|
.IR PlanarConfiguration =1),
|
|
compressed with the PackBits algorithm (\c
|
|
.IR Compression = 32773),
|
|
and with each strip no more than 8 kilobytes.
|
|
These characteristics can overridden, or explicitly specified
|
|
with the options described below.
|
|
.SH OPTIONS
|
|
.TP
|
|
.B \-H <number>
|
|
size of input image file header in bytes (0 by default). This amount of data
|
|
just will be skipped from the start of file while reading.
|
|
.TP
|
|
.B \-w <number>
|
|
width of input image in pixels. You must set this parameter.
|
|
.TP
|
|
.B \-l <number>
|
|
length of input image in lines. Will be calculated from the size of input file
|
|
if not specified.
|
|
.TP
|
|
.B \-b <number>
|
|
number of bands in input image (1 by default).
|
|
.TP
|
|
.B \-d data_type
|
|
type of samples in input image, where
|
|
.B data_type
|
|
may be:
|
|
.br
|
|
.I byte\t\t
|
|
8-bit unsigned integer (default),
|
|
.br
|
|
.I short\t
|
|
16-bit unsigned integer,
|
|
.br
|
|
.I long\t\t
|
|
32-bit unsigned integer,
|
|
.br
|
|
.I sbyte\t
|
|
8-bit signed integer,
|
|
.br
|
|
.I sshort\t
|
|
16-bit signed integer,
|
|
.br
|
|
.I slong\t
|
|
32-bit signed integer,
|
|
.br
|
|
.I float\t
|
|
32-bit IEEE floating point,
|
|
.br
|
|
.I double\t
|
|
64-bit IEEE floating point,
|
|
.TP
|
|
.B \-i config
|
|
type of samples interleaving in input image, where
|
|
.B config
|
|
may be:
|
|
.br
|
|
.I pixel\t
|
|
pixel interleaved data (default),
|
|
.br
|
|
.I band\t\t
|
|
band interleaved data.
|
|
.TP
|
|
.B \-s
|
|
swap bytes fetched from the input file.
|
|
.TP
|
|
.B \-L
|
|
input data has LSB2MSB bit order (default).
|
|
.TP
|
|
.B \-M
|
|
input data has MSB2LSB bit order.
|
|
.TP
|
|
.B \-c
|
|
Specify a compression scheme to use when writing image data:
|
|
.B "\-c none"
|
|
for no compression,
|
|
.B "-c packbits"
|
|
for the PackBits compression algorithm (the default),
|
|
.B "-c jpeg"
|
|
for the baseline JPEG compression algorithm,
|
|
.B "-c zip
|
|
for the Deflate compression algorithm,
|
|
and
|
|
.B "\-c lzw"
|
|
for Lempel-Ziv & Welch.
|
|
.TP
|
|
.B \-r <number>
|
|
Write data with a specified number of rows per strip;
|
|
by default the number of rows/strip is selected so that each strip
|
|
is approximately 8 kilobytes.
|
|
.SH "SEE ALSO"
|
|
.IR pal2rgb (1),
|
|
.IR tiffinfo (1),
|
|
.IR tiffcp (1),
|
|
.IR tiffmedian (1),
|
|
.IR libtiff (3)
|