]>
Commit | Line | Data |
---|---|---|
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 | |
27 | raw2tiff \- create a | |
28 | .SM TIFF | |
29 | file 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 | |
39 | converts a raw byte sequence into | |
40 | .SM TIFF. | |
41 | By default, the | |
42 | .SM TIFF | |
43 | image is created with data samples packed (\c | |
44 | .IR PlanarConfiguration =1), | |
45 | compressed with the PackBits algorithm (\c | |
80ed523f | 46 | .IR Compression =32773), |
8414a40c VZ |
47 | and with each strip no more than 8 kilobytes. |
48 | These characteristics can overridden, or explicitly specified | |
49 | with the options described below. | |
50 | .SH OPTIONS | |
51 | .TP | |
80ed523f | 52 | .BI \-H " number" |
8414a40c VZ |
53 | size of input image file header in bytes (0 by default). This amount of data |
54 | just will be skipped from the start of file while reading. | |
55 | .TP | |
80ed523f | 56 | .BI \-w " number" |
8414a40c VZ |
57 | width of input image in pixels (can be guessed, see |
58 | .SM | |
59 | .B "GUESSING THE IMAGE GEOMETRY" | |
60 | below). | |
61 | .TP | |
80ed523f VZ |
62 | .BI \-l " number" |
63 | length of input image in lines (can be guessed, see | |
8414a40c VZ |
64 | .SM |
65 | .B "GUESSING THE IMAGE GEOMETRY" | |
66 | below). | |
67 | .TP | |
80ed523f | 68 | .BI \-b " number" |
8414a40c VZ |
69 | number of bands in input image (1 by default). |
70 | .TP | |
80ed523f | 71 | .BI \-d " data_type" |
8414a40c | 72 | type of samples in input image, where |
80ed523f | 73 | .I data_type |
8414a40c | 74 | may be: |
80ed523f | 75 | .ta \w'\fBdouble \fR'u |
8414a40c | 76 | .br |
80ed523f | 77 | .B byte\t |
8414a40c VZ |
78 | 8-bit unsigned integer (default), |
79 | .br | |
80ed523f | 80 | .B short\t |
8414a40c VZ |
81 | 16-bit unsigned integer, |
82 | .br | |
80ed523f | 83 | .B long\t |
8414a40c VZ |
84 | 32-bit unsigned integer, |
85 | .br | |
80ed523f | 86 | .B sbyte\t |
8414a40c VZ |
87 | 8-bit signed integer, |
88 | .br | |
80ed523f | 89 | .B sshort\t |
8414a40c VZ |
90 | 16-bit signed integer, |
91 | .br | |
80ed523f | 92 | .B slong\t |
8414a40c VZ |
93 | 32-bit signed integer, |
94 | .br | |
80ed523f | 95 | .B float\t |
8414a40c VZ |
96 | 32-bit IEEE floating point, |
97 | .br | |
80ed523f VZ |
98 | .B double\t |
99 | 64-bit IEEE floating point. | |
8414a40c | 100 | .TP |
80ed523f | 101 | .BI \-i " config" |
8414a40c | 102 | type of samples interleaving in input image, where |
80ed523f | 103 | .I config |
8414a40c | 104 | may be: |
80ed523f | 105 | .ta \w'\fBpixel \fR'u |
8414a40c | 106 | .br |
80ed523f | 107 | .B pixel\t |
8414a40c VZ |
108 | pixel interleaved data (default), |
109 | .br | |
80ed523f | 110 | .B band\t |
8414a40c VZ |
111 | band interleaved data. |
112 | .TP | |
80ed523f | 113 | .BI \-p " photo" |
8414a40c | 114 | photometric interpretation (color space) of the input image, where |
80ed523f | 115 | .I photo |
8414a40c | 116 | may be: |
80ed523f | 117 | .ta \w'\fBminiswhite \fR'u |
8414a40c | 118 | .br |
80ed523f | 119 | .B miniswhite\t |
8414a40c VZ |
120 | white color represented with 0 value, |
121 | .br | |
80ed523f | 122 | .B minisblack\t |
8414a40c VZ |
123 | black color represented with 0 value (default), |
124 | .br | |
80ed523f | 125 | .B rgb\t |
8414a40c VZ |
126 | image has RGB color model, |
127 | .br | |
80ed523f | 128 | .B cmyk\t |
8414a40c VZ |
129 | image has CMYK (separated) color model, |
130 | .br | |
80ed523f | 131 | .B ycbcr\t |
8414a40c VZ |
132 | image has YCbCr color model, |
133 | .br | |
80ed523f | 134 | .B cielab\t |
8414a40c VZ |
135 | image has CIE L*a*b color model, |
136 | .br | |
80ed523f | 137 | .B icclab\t |
8414a40c VZ |
138 | image has ICC L*a*b color model, |
139 | .br | |
80ed523f VZ |
140 | .B itulab\t |
141 | image has ITU L*a*b color model. | |
8414a40c VZ |
142 | .TP |
143 | .B \-s | |
144 | swap bytes fetched from the input file. | |
145 | .TP | |
146 | .B \-L | |
147 | input data has LSB2MSB bit order (default). | |
148 | .TP | |
149 | .B \-M | |
150 | input data has MSB2LSB bit order. | |
151 | .TP | |
152 | .B \-c | |
153 | Specify a compression scheme to use when writing image data: | |
154 | .B "\-c none" | |
155 | for no compression, | |
80ed523f | 156 | .B "\-c packbits" |
8414a40c | 157 | for the PackBits compression algorithm (the default), |
80ed523f | 158 | .B "\-c jpeg" |
8414a40c | 159 | for the baseline JPEG compression algorithm, |
80ed523f | 160 | .B "\-c zip" |
8414a40c VZ |
161 | for the Deflate compression algorithm, |
162 | and | |
163 | .B "\-c lzw" | |
164 | for Lempel-Ziv & Welch. | |
165 | .TP | |
80ed523f | 166 | .BI \-r " number" |
8414a40c VZ |
167 | Write data with a specified number of rows per strip; |
168 | by default the number of rows/strip is selected so that each strip | |
169 | is approximately 8 kilobytes. | |
170 | .SH GUESSING THE IMAGE GEOMETRY | |
171 | .I raw2tiff | |
172 | can guess image width and height in case one or both of these parameters are | |
173 | not specified. If you omit one of those parameters, the complementary one will | |
174 | be calculated based on the file size (taking into account header size, number | |
175 | of bands and data type). If you omit both parameters, the statistical approach | |
176 | will be used. Utility will compute correlation coefficient between two lines | |
177 | at the image center using several appropriate line sizes and the highest | |
178 | absolute value of the coefficient will indicate the right line size. That is | |
179 | why you should be cautious with the very large images, because guessing | |
180 | process may take a while (depending on your system performance). Of course, the | |
181 | utility can't guess the header size, number of bands and data type, so it | |
182 | should be specified manually. If you don't know anything about your image, | |
183 | just try with the several combinations of those options. | |
184 | .P | |
185 | There is no magic, it is just a mathematical statistics, so it can be wrong | |
186 | in 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 | |
194 | Libtiff library home page: | |
195 | .BR http://www.remotesensing.org/libtiff/ |