Blame man/raw2tiff.1

Packit Service db44fb
.\" $Id: raw2tiff.1,v 1.6 2006/04/20 12:17:19 dron Exp $
Packit Service db44fb
.\"
Packit Service db44fb
.\" Copyright (c) 1990-1997 Sam Leffler
Packit Service db44fb
.\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
Packit Service db44fb
.\"
Packit Service db44fb
.\" Permission to use, copy, modify, distribute, and sell this software and 
Packit Service db44fb
.\" its documentation for any purpose is hereby granted without fee, provided
Packit Service db44fb
.\" that (i) the above copyright notices and this permission notice appear in
Packit Service db44fb
.\" all copies of the software and related documentation, and (ii) the names of
Packit Service db44fb
.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
Packit Service db44fb
.\" publicity relating to the software without the specific, prior written
Packit Service db44fb
.\" permission of Sam Leffler and Silicon Graphics.
Packit Service db44fb
.\" 
Packit Service db44fb
.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
Packit Service db44fb
.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
Packit Service db44fb
.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
Packit Service db44fb
.\" 
Packit Service db44fb
.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
Packit Service db44fb
.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
Packit Service db44fb
.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
Packit Service db44fb
.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
Packit Service db44fb
.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
Packit Service db44fb
.\" OF THIS SOFTWARE.
Packit Service db44fb
.\"
Packit Service db44fb
.if n .po 0
Packit Service db44fb
.TH RAW2TIFF 1 "November 2, 2005" "libtiff"
Packit Service db44fb
.SH NAME
Packit Service db44fb
raw2tiff \- create a
Packit Service db44fb
.SM TIFF
Packit Service db44fb
file from a raw data
Packit Service db44fb
.SH SYNOPSIS
Packit Service db44fb
.B raw2tiff
Packit Service db44fb
[
Packit Service db44fb
.I options
Packit Service db44fb
]
Packit Service db44fb
.I input.raw
Packit Service db44fb
.I output.tif
Packit Service db44fb
.SH DESCRIPTION
Packit Service db44fb
.I raw2tiff
Packit Service db44fb
converts a raw byte sequence into
Packit Service db44fb
.SM TIFF.
Packit Service db44fb
By default, the
Packit Service db44fb
.SM TIFF
Packit Service db44fb
image is created with data samples packed (\c
Packit Service db44fb
.IR PlanarConfiguration =1),
Packit Service db44fb
compressed with the PackBits algorithm (\c
Packit Service db44fb
.IR Compression =32773),
Packit Service db44fb
and with each strip no more than 8 kilobytes.
Packit Service db44fb
These characteristics can overridden, or explicitly specified
Packit Service db44fb
with the options described below.
Packit Service db44fb
.SH OPTIONS
Packit Service db44fb
.TP
Packit Service db44fb
.BI \-H " number"
Packit Service db44fb
size of input image file header in bytes (0 by default). This amount of data
Packit Service db44fb
just will be skipped from the start of file while reading.
Packit Service db44fb
.TP
Packit Service db44fb
.BI \-w " number"
Packit Service db44fb
width of input image in pixels (can be guessed, see
Packit Service db44fb
.SM
Packit Service db44fb
.B "GUESSING THE IMAGE GEOMETRY"
Packit Service db44fb
below).
Packit Service db44fb
.TP
Packit Service db44fb
.BI \-l " number"
Packit Service db44fb
length of input image in lines (can be guessed, see
Packit Service db44fb
.SM
Packit Service db44fb
.B "GUESSING THE IMAGE GEOMETRY"
Packit Service db44fb
below).
Packit Service db44fb
.TP
Packit Service db44fb
.BI \-b " number"
Packit Service db44fb
number of bands in input image (1 by default).
Packit Service db44fb
.TP
Packit Service db44fb
.BI \-d " data_type"
Packit Service db44fb
type of samples in input image, where
Packit Service db44fb
.I data_type
Packit Service db44fb
may be:
Packit Service db44fb
.ta \w'\fBdouble  \fR'u
Packit Service db44fb
.br
Packit Service db44fb
.B byte\t
Packit Service db44fb
8-bit unsigned integer (default),
Packit Service db44fb
.br
Packit Service db44fb
.B short\t
Packit Service db44fb
16-bit unsigned integer,
Packit Service db44fb
.br
Packit Service db44fb
.B long\t
Packit Service db44fb
32-bit unsigned integer,
Packit Service db44fb
.br
Packit Service db44fb
.B sbyte\t
Packit Service db44fb
8-bit signed integer,
Packit Service db44fb
.br
Packit Service db44fb
.B sshort\t
Packit Service db44fb
16-bit signed integer,
Packit Service db44fb
.br
Packit Service db44fb
.B slong\t
Packit Service db44fb
32-bit signed integer,
Packit Service db44fb
.br
Packit Service db44fb
.B float\t
Packit Service db44fb
32-bit IEEE floating point,
Packit Service db44fb
.br
Packit Service db44fb
.B double\t
Packit Service db44fb
64-bit IEEE floating point.
Packit Service db44fb
.TP
Packit Service db44fb
.BI \-i " config"
Packit Service db44fb
type of samples interleaving in input image, where
Packit Service db44fb
.I config
Packit Service db44fb
may be:
Packit Service db44fb
.ta \w'\fBpixel  \fR'u
Packit Service db44fb
.br
Packit Service db44fb
.B pixel\t
Packit Service db44fb
pixel interleaved data (default),
Packit Service db44fb
.br
Packit Service db44fb
.B band\t
Packit Service db44fb
band interleaved data.
Packit Service db44fb
.TP
Packit Service db44fb
.BI \-p " photo"
Packit Service db44fb
photometric interpretation (color space) of the input image, where
Packit Service db44fb
.I photo
Packit Service db44fb
may be:
Packit Service db44fb
.ta \w'\fBminiswhite  \fR'u
Packit Service db44fb
.br
Packit Service db44fb
.B miniswhite\t
Packit Service db44fb
white color represented with 0 value,
Packit Service db44fb
.br
Packit Service db44fb
.B minisblack\t
Packit Service db44fb
black color represented with 0 value (default),
Packit Service db44fb
.br
Packit Service db44fb
.B rgb\t
Packit Service db44fb
image has RGB color model,
Packit Service db44fb
.br
Packit Service db44fb
.B cmyk\t
Packit Service db44fb
image has CMYK (separated) color model,
Packit Service db44fb
.br
Packit Service db44fb
.B ycbcr\t
Packit Service db44fb
image has YCbCr color model,
Packit Service db44fb
.br
Packit Service db44fb
.B cielab\t
Packit Service db44fb
image has CIE L*a*b color model,
Packit Service db44fb
.br
Packit Service db44fb
.B icclab\t
Packit Service db44fb
image has ICC L*a*b color model,
Packit Service db44fb
.br
Packit Service db44fb
.B itulab\t
Packit Service db44fb
image has ITU L*a*b color model.
Packit Service db44fb
.TP
Packit Service db44fb
.B \-s
Packit Service db44fb
swap bytes fetched from the input file.
Packit Service db44fb
.TP
Packit Service db44fb
.B \-L
Packit Service db44fb
input data has LSB2MSB bit order (default).
Packit Service db44fb
.TP
Packit Service db44fb
.B \-M
Packit Service db44fb
input data has MSB2LSB bit order.
Packit Service db44fb
.TP
Packit Service db44fb
.B \-c
Packit Service db44fb
Specify a compression scheme to use when writing image data:
Packit Service db44fb
.B "\-c none"
Packit Service db44fb
for no compression,
Packit Service db44fb
.B "\-c packbits"
Packit Service db44fb
for the PackBits compression algorithm (the default),
Packit Service db44fb
.B "\-c jpeg"
Packit Service db44fb
for the baseline JPEG compression algorithm,
Packit Service db44fb
.B "\-c zip"
Packit Service db44fb
for the Deflate compression algorithm,
Packit Service db44fb
and
Packit Service db44fb
.B "\-c lzw"
Packit Service db44fb
for Lempel-Ziv & Welch.
Packit Service db44fb
.TP
Packit Service db44fb
.BI \-r " number"
Packit Service db44fb
Write data with a specified number of rows per strip;
Packit Service db44fb
by default the number of rows/strip is selected so that each strip
Packit Service db44fb
is approximately 8 kilobytes.
Packit Service db44fb
.SH GUESSING THE IMAGE GEOMETRY
Packit Service db44fb
.I raw2tiff
Packit Service db44fb
can guess image width and height in case one or both of these parameters are
Packit Service db44fb
not specified. If you omit one of those parameters, the complementary one will
Packit Service db44fb
be calculated based on the file size (taking into account header size, number
Packit Service db44fb
of bands and data type). If you omit both parameters, the statistical approach
Packit Service db44fb
will be used. Utility will compute correlation coefficient between two lines
Packit Service db44fb
at the image center using several appropriate line sizes and the highest
Packit Service db44fb
absolute value of the coefficient will indicate the right line size. That is
Packit Service db44fb
why you should be cautious with the very large images, because guessing
Packit Service db44fb
process may take a while (depending on your system performance). Of course, the
Packit Service db44fb
utility can't guess the header size, number of bands and data type, so it
Packit Service db44fb
should be specified manually. If you don't know anything about your image,
Packit Service db44fb
just try with the several combinations of those options.
Packit Service db44fb
.P
Packit Service db44fb
There is no magic, it is just a mathematical statistics, so it can be wrong
Packit Service db44fb
in some cases. But for most ordinary images guessing method will work fine.
Packit Service db44fb
.SH "SEE ALSO"
Packit Service db44fb
.BR pal2rgb (1),
Packit Service db44fb
.bR tiffinfo (1),
Packit Service db44fb
.BR tiffcp (1),
Packit Service db44fb
.BR tiffmedian (1),
Packit Service db44fb
.BR libtiff (3)
Packit Service db44fb
.PP
Packit Service db44fb
Libtiff library home page:
Packit Service db44fb
.BR http://www.remotesensing.org/libtiff/