Blame man/raw2tiff.1

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