]> git.saurik.com Git - wxWidgets.git/blame - src/tiff/man/raw2tiff.1
Fix horizontal mouse wheel scrolling in wxGTK.
[wxWidgets.git] / src / tiff / man / raw2tiff.1
CommitLineData
8414a40c
VZ
1.\"
2.\" Copyright (c) 1990-1997 Sam Leffler
3.\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
4.\"
5.\" Permission to use, copy, modify, distribute, and sell this software and
6.\" its documentation for any purpose is hereby granted without fee, provided
7.\" that (i) the above copyright notices and this permission notice appear in
8.\" all copies of the software and related documentation, and (ii) the names of
9.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
10.\" publicity relating to the software without the specific, prior written
11.\" permission of Sam Leffler and Silicon Graphics.
12.\"
13.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
14.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
15.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
16.\"
17.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
18.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
19.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
20.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
21.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
22.\" OF THIS SOFTWARE.
23.\"
24.if n .po 0
25.TH RAW2TIFF 1 "November 2, 2005" "libtiff"
26.SH NAME
27raw2tiff \- create a
28.SM TIFF
29file from a raw data
30.SH SYNOPSIS
31.B raw2tiff
32[
33.I options
34]
35.I input.raw
36.I output.tif
37.SH DESCRIPTION
38.I raw2tiff
39converts a raw byte sequence into
40.SM TIFF.
41By default, the
42.SM TIFF
43image is created with data samples packed (\c
44.IR PlanarConfiguration =1),
45compressed with the PackBits algorithm (\c
80ed523f 46.IR Compression =32773),
8414a40c
VZ
47and with each strip no more than 8 kilobytes.
48These characteristics can overridden, or explicitly specified
49with the options described below.
50.SH OPTIONS
51.TP
80ed523f 52.BI \-H " number"
8414a40c
VZ
53size of input image file header in bytes (0 by default). This amount of data
54just will be skipped from the start of file while reading.
55.TP
80ed523f 56.BI \-w " number"
8414a40c
VZ
57width of input image in pixels (can be guessed, see
58.SM
59.B "GUESSING THE IMAGE GEOMETRY"
60below).
61.TP
80ed523f
VZ
62.BI \-l " number"
63length of input image in lines (can be guessed, see
8414a40c
VZ
64.SM
65.B "GUESSING THE IMAGE GEOMETRY"
66below).
67.TP
80ed523f 68.BI \-b " number"
8414a40c
VZ
69number of bands in input image (1 by default).
70.TP
80ed523f 71.BI \-d " data_type"
8414a40c 72type of samples in input image, where
80ed523f 73.I data_type
8414a40c 74may be:
80ed523f 75.ta \w'\fBdouble \fR'u
8414a40c 76.br
80ed523f 77.B byte\t
8414a40c
VZ
788-bit unsigned integer (default),
79.br
80ed523f 80.B short\t
8414a40c
VZ
8116-bit unsigned integer,
82.br
80ed523f 83.B long\t
8414a40c
VZ
8432-bit unsigned integer,
85.br
80ed523f 86.B sbyte\t
8414a40c
VZ
878-bit signed integer,
88.br
80ed523f 89.B sshort\t
8414a40c
VZ
9016-bit signed integer,
91.br
80ed523f 92.B slong\t
8414a40c
VZ
9332-bit signed integer,
94.br
80ed523f 95.B float\t
8414a40c
VZ
9632-bit IEEE floating point,
97.br
80ed523f
VZ
98.B double\t
9964-bit IEEE floating point.
8414a40c 100.TP
80ed523f 101.BI \-i " config"
8414a40c 102type of samples interleaving in input image, where
80ed523f 103.I config
8414a40c 104may be:
80ed523f 105.ta \w'\fBpixel \fR'u
8414a40c 106.br
80ed523f 107.B pixel\t
8414a40c
VZ
108pixel interleaved data (default),
109.br
80ed523f 110.B band\t
8414a40c
VZ
111band interleaved data.
112.TP
80ed523f 113.BI \-p " photo"
8414a40c 114photometric interpretation (color space) of the input image, where
80ed523f 115.I photo
8414a40c 116may be:
80ed523f 117.ta \w'\fBminiswhite \fR'u
8414a40c 118.br
80ed523f 119.B miniswhite\t
8414a40c
VZ
120white color represented with 0 value,
121.br
80ed523f 122.B minisblack\t
8414a40c
VZ
123black color represented with 0 value (default),
124.br
80ed523f 125.B rgb\t
8414a40c
VZ
126image has RGB color model,
127.br
80ed523f 128.B cmyk\t
8414a40c
VZ
129image has CMYK (separated) color model,
130.br
80ed523f 131.B ycbcr\t
8414a40c
VZ
132image has YCbCr color model,
133.br
80ed523f 134.B cielab\t
8414a40c
VZ
135image has CIE L*a*b color model,
136.br
80ed523f 137.B icclab\t
8414a40c
VZ
138image has ICC L*a*b color model,
139.br
80ed523f
VZ
140.B itulab\t
141image has ITU L*a*b color model.
8414a40c
VZ
142.TP
143.B \-s
144swap bytes fetched from the input file.
145.TP
146.B \-L
147input data has LSB2MSB bit order (default).
148.TP
149.B \-M
150input data has MSB2LSB bit order.
151.TP
152.B \-c
153Specify a compression scheme to use when writing image data:
154.B "\-c none"
155for no compression,
80ed523f 156.B "\-c packbits"
8414a40c 157for the PackBits compression algorithm (the default),
80ed523f 158.B "\-c jpeg"
8414a40c 159for the baseline JPEG compression algorithm,
80ed523f 160.B "\-c zip"
8414a40c
VZ
161for the Deflate compression algorithm,
162and
163.B "\-c lzw"
164for Lempel-Ziv & Welch.
165.TP
80ed523f 166.BI \-r " number"
8414a40c
VZ
167Write data with a specified number of rows per strip;
168by default the number of rows/strip is selected so that each strip
169is approximately 8 kilobytes.
170.SH GUESSING THE IMAGE GEOMETRY
171.I raw2tiff
172can guess image width and height in case one or both of these parameters are
173not specified. If you omit one of those parameters, the complementary one will
174be calculated based on the file size (taking into account header size, number
175of bands and data type). If you omit both parameters, the statistical approach
176will be used. Utility will compute correlation coefficient between two lines
177at the image center using several appropriate line sizes and the highest
178absolute value of the coefficient will indicate the right line size. That is
179why you should be cautious with the very large images, because guessing
180process may take a while (depending on your system performance). Of course, the
181utility can't guess the header size, number of bands and data type, so it
182should be specified manually. If you don't know anything about your image,
183just try with the several combinations of those options.
184.P
185There is no magic, it is just a mathematical statistics, so it can be wrong
186in some cases. But for most ordinary images guessing method will work fine.
187.SH "SEE ALSO"
188.BR pal2rgb (1),
80ed523f 189.BR tiffinfo (1),
8414a40c
VZ
190.BR tiffcp (1),
191.BR tiffmedian (1),
192.BR libtiff (3)
193.PP
194Libtiff library home page:
195.BR http://www.remotesensing.org/libtiff/