1
<!-- Creator : groff version 1.18.1 -->
2
<!-- CreationDate: Fri Jul 13 17:43:18 2007 -->
5
<meta name="generator" content="groff -Thtml, see www.gnu.org">
6
<meta name="Content-Style" content="text/css">
7
<title>RAW2TIFF</title>
11
<h1 align=center>RAW2TIFF</h1>
12
<a href="#NAME">NAME</a><br>
13
<a href="#SYNOPSIS">SYNOPSIS</a><br>
14
<a href="#DESCRIPTION">DESCRIPTION</a><br>
15
<a href="#OPTIONS">OPTIONS</a><br>
16
<a href="#GUESSING THE IMAGE GEOMETRY">GUESSING THE IMAGE GEOMETRY</a><br>
17
<a href="#SEE ALSO">SEE ALSO</a><br>
23
<table width="100%" border=0 rules="none" frame="void"
24
cols="2" cellspacing="0" cellpadding="0">
25
<tr valign="top" align="left">
28
<p>raw2tiff − create a <small>TIFF</small> file from a
32
<a name="SYNOPSIS"></a>
35
<table width="100%" border=0 rules="none" frame="void"
36
cols="2" cellspacing="0" cellpadding="0">
37
<tr valign="top" align="left">
40
<p><b>raw2tiff</b> [ <i>options</i> ] <i>input.raw
44
<a name="DESCRIPTION"></a>
47
<table width="100%" border=0 rules="none" frame="void"
48
cols="2" cellspacing="0" cellpadding="0">
49
<tr valign="top" align="left">
52
<p><i>raw2tiff</i> converts a raw byte sequence into
53
<small>TIFF.</small> By default, the <small>TIFF</small>
54
image is created with data samples packed
55
(<i>PlanarConfiguration</i>=1), compressed with the PackBits
56
algorithm (<i>Compression</i>=32773), and with each strip no
57
more than 8 kilobytes. These characteristics can overridden,
58
or explicitly specified with the options described
62
<a name="OPTIONS"></a>
65
<table width="100%" border=0 rules="none" frame="void"
66
cols="2" cellspacing="0" cellpadding="0">
67
<tr valign="top" align="left">
70
<p><b>−H</b> <i>number</i></p></td>
73
<table width="100%" border=0 rules="none" frame="void"
74
cols="2" cellspacing="0" cellpadding="0">
75
<tr valign="top" align="left">
78
<p>size of input image file header in bytes (0 by default).
79
This amount of data just will be skipped from the start of
80
file while reading.</p>
84
<table width="100%" border=0 rules="none" frame="void"
85
cols="2" cellspacing="0" cellpadding="0">
86
<tr valign="top" align="left">
89
<p><b>−w</b> <i>number</i></p></td>
92
<table width="100%" border=0 rules="none" frame="void"
93
cols="2" cellspacing="0" cellpadding="0">
94
<tr valign="top" align="left">
97
<p>width of input image in pixels (can be guessed, see
98
<b><small>GUESSING THE IMAGE GEOMETRY</small></b>
103
<table width="100%" border=0 rules="none" frame="void"
104
cols="2" cellspacing="0" cellpadding="0">
105
<tr valign="top" align="left">
108
<p><b>−l</b> <i>number</i></p></td>
111
<table width="100%" border=0 rules="none" frame="void"
112
cols="2" cellspacing="0" cellpadding="0">
113
<tr valign="top" align="left">
114
<td width="19%"></td>
116
<p>length of input image in lines (can be guessed, see
117
<b><small>GUESSING THE IMAGE GEOMETRY</small></b>
122
<table width="100%" border=0 rules="none" frame="void"
123
cols="2" cellspacing="0" cellpadding="0">
124
<tr valign="top" align="left">
127
<p><b>−b</b> <i>number</i></p></td>
130
<table width="100%" border=0 rules="none" frame="void"
131
cols="2" cellspacing="0" cellpadding="0">
132
<tr valign="top" align="left">
133
<td width="19%"></td>
135
<p>number of bands in input image (1 by default).</p>
139
<table width="100%" border=0 rules="none" frame="void"
140
cols="2" cellspacing="0" cellpadding="0">
141
<tr valign="top" align="left">
144
<p><b>−d</b> <i>data_type</i></p></td>
147
<table width="100%" border=0 rules="none" frame="void"
148
cols="2" cellspacing="0" cellpadding="0">
149
<tr valign="top" align="left">
150
<td width="19%"></td>
152
<p>type of samples in input image, where <i>data_type</i>
156
<table width="100%" border=0 rules="none" frame="void"
157
cols="3" cellspacing="0" cellpadding="0">
158
<tr valign="top" align="left">
159
<td width="19%"></td>
166
<p>8-bit unsigned integer (default),</p>
168
<tr valign="top" align="left">
169
<td width="19%"></td>
176
<p>16-bit unsigned integer,</p>
178
<tr valign="top" align="left">
179
<td width="19%"></td>
186
<p>32-bit unsigned integer,</p>
188
<tr valign="top" align="left">
189
<td width="19%"></td>
196
<p>8-bit signed integer,</p>
198
<tr valign="top" align="left">
199
<td width="19%"></td>
206
<p>16-bit signed integer,</p>
208
<tr valign="top" align="left">
209
<td width="19%"></td>
216
<p>32-bit signed integer,</p>
218
<tr valign="top" align="left">
219
<td width="19%"></td>
226
<p>32-bit IEEE floating point,</p>
228
<tr valign="top" align="left">
229
<td width="19%"></td>
236
<p>64-bit IEEE floating point.</p>
240
<table width="100%" border=0 rules="none" frame="void"
241
cols="2" cellspacing="0" cellpadding="0">
242
<tr valign="top" align="left">
245
<p><b>−i</b> <i>config</i></p></td>
248
<table width="100%" border=0 rules="none" frame="void"
249
cols="2" cellspacing="0" cellpadding="0">
250
<tr valign="top" align="left">
251
<td width="19%"></td>
253
<p>type of samples interleaving in input image, where
254
<i>config</i> may be:</p></td>
257
<table width="100%" border=0 rules="none" frame="void"
258
cols="3" cellspacing="0" cellpadding="0">
259
<tr valign="top" align="left">
260
<td width="19%"></td>
267
<p>pixel interleaved data (default),</p>
269
<tr valign="top" align="left">
270
<td width="19%"></td>
277
<p>band interleaved data.</p>
281
<table width="100%" border=0 rules="none" frame="void"
282
cols="2" cellspacing="0" cellpadding="0">
283
<tr valign="top" align="left">
286
<p><b>−p</b> <i>photo</i></p></td>
289
<table width="100%" border=0 rules="none" frame="void"
290
cols="2" cellspacing="0" cellpadding="0">
291
<tr valign="top" align="left">
292
<td width="19%"></td>
294
<p>photometric interpretation (color space) of the input
295
image, where <i>photo</i> may be:</p></td>
298
<table width="100%" border=0 rules="none" frame="void"
299
cols="3" cellspacing="0" cellpadding="0">
300
<tr valign="top" align="left">
301
<td width="19%"></td>
304
<p><b>miniswhite</b></p>
308
<p>white color represented with 0 value,</p>
310
<tr valign="top" align="left">
311
<td width="19%"></td>
314
<p><b>minisblack</b></p>
318
<p>black color represented with 0 value (default),</p>
320
<tr valign="top" align="left">
321
<td width="19%"></td>
328
<p>image has RGB color model,</p>
330
<tr valign="top" align="left">
331
<td width="19%"></td>
338
<p>image has CMYK (separated) color model,</p>
340
<tr valign="top" align="left">
341
<td width="19%"></td>
348
<p>image has YCbCr color model,</p>
350
<tr valign="top" align="left">
351
<td width="19%"></td>
358
<p>image has CIE L*a*b color model,</p>
360
<tr valign="top" align="left">
361
<td width="19%"></td>
368
<p>image has ICC L*a*b color model,</p>
370
<tr valign="top" align="left">
371
<td width="19%"></td>
378
<p>image has ITU L*a*b color model.</p>
382
<table width="100%" border=0 rules="none" frame="void"
383
cols="5" cellspacing="0" cellpadding="0">
384
<tr valign="top" align="left">
385
<td width="10%"></td>
388
<p><b>−s</b></p>
393
<p>swap bytes fetched from the input file.</p>
397
<tr valign="top" align="left">
398
<td width="10%"></td>
401
<p><b>−L</b></p>
406
<p>input data has LSB2MSB bit order (default).</p>
410
<tr valign="top" align="left">
411
<td width="10%"></td>
414
<p><b>−M</b></p>
419
<p>input data has MSB2LSB bit order.</p>
423
<tr valign="top" align="left">
424
<td width="10%"></td>
427
<p><b>−c</b></p>
432
<p>Specify a compression scheme to use when writing image
433
data: <b>−c none</b> for no compression, <b>−c
434
packbits</b> for the PackBits compression algorithm (the
435
default), <b>−c jpeg</b> for the baseline JPEG
436
compression algorithm, <b>−c zip</b> for the Deflate
437
compression algorithm, and <b>−c lzw</b> for
438
Lempel-Ziv & Welch.</p>
444
<table width="100%" border=0 rules="none" frame="void"
445
cols="2" cellspacing="0" cellpadding="0">
446
<tr valign="top" align="left">
449
<p><b>−r</b> <i>number</i></p></td>
452
<table width="100%" border=0 rules="none" frame="void"
453
cols="2" cellspacing="0" cellpadding="0">
454
<tr valign="top" align="left">
455
<td width="19%"></td>
457
<p>Write data with a specified number of rows per strip; by
458
default the number of rows/strip is selected so that each
459
strip is approximately 8 kilobytes.</p>
462
<a name="GUESSING THE IMAGE GEOMETRY"></a>
463
<h2>GUESSING THE IMAGE GEOMETRY</h2>
465
<table width="100%" border=0 rules="none" frame="void"
466
cols="2" cellspacing="0" cellpadding="0">
467
<tr valign="top" align="left">
470
<p><i>raw2tiff</i> can guess image width and height in case
471
one or both of these parameters are not specified. If you
472
omit one of those parameters, the complementary one will be
473
calculated based on the file size (taking into account
474
header size, number of bands and data type). If you omit
475
both parameters, the statistical approach will be used.
476
Utility will compute correlation coefficient between two
477
lines at the image center using several appropriate line
478
sizes and the highest absolute value of the coefficient will
479
indicate the right line size. That is why you should be
480
cautious with the very large images, because guessing
481
process may take a while (depending on your system
482
performance). Of course, the utility can’t guess the
483
header size, number of bands and data type, so it should be
484
specified manually. If you don’t know anything about
485
your image, just try with the several combinations of those
488
<p>There is no magic, it is just a mathematical statistics,
489
so it can be wrong in some cases. But for most ordinary
490
images guessing method will work fine.</p>
493
<a name="SEE ALSO"></a>
496
<table width="100%" border=0 rules="none" frame="void"
497
cols="2" cellspacing="0" cellpadding="0">
498
<tr valign="top" align="left">
501
<p><b>pal2rgb</b>(1), <b>tiffcp</b>(1),
502
<b>tiffmedian</b>(1), <b>libtiff</b>(3)</p>
504
<p>Libtiff library home page:
505
<b>http://www.remotesensing.org/libtiff/</b></p>