1 <!-- Creator : groff version 1.18.1 -->
2 <!-- CreationDate: Mon Mar 13 18:03:12 2006 -->
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>=
<i>32773),
</i> and with each
57 strip no more than
8 kilobytes. These characteristics can
58 overridden, or explicitly specified with the options
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
<number
></b></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
<number
></b></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
<number
></b></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
<number
></b></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 data_type
</b></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
<b>data_type
</b>
156 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
157 cols=
"5" cellspacing=
"0" cellpadding=
"0">
158 <tr valign=
"top" align=
"left">
159 <td width=
"19%"></td>
168 <p>8-bit unsigned integer (default),
</p>
172 <tr valign=
"top" align=
"left">
173 <td width=
"19%"></td>
181 <p>16-bit unsigned integer,
</p>
185 <tr valign=
"top" align=
"left">
186 <td width=
"19%"></td>
195 <p>32-bit unsigned integer,
</p>
199 <tr valign=
"top" align=
"left">
200 <td width=
"19%"></td>
208 <p>8-bit signed integer,
</p>
212 <tr valign=
"top" align=
"left">
213 <td width=
"19%"></td>
221 <p>16-bit signed integer,
</p>
225 <tr valign=
"top" align=
"left">
226 <td width=
"19%"></td>
234 <p>32-bit signed integer,
</p>
238 <tr valign=
"top" align=
"left">
239 <td width=
"19%"></td>
247 <p>32-bit IEEE floating point,
</p>
251 <tr valign=
"top" align=
"left">
252 <td width=
"19%"></td>
260 <p>64-bit IEEE floating point,
</p>
266 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
267 cols=
"2" cellspacing=
"0" cellpadding=
"0">
268 <tr valign=
"top" align=
"left">
271 <p><b>−i config
</b></p></td>
274 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
275 cols=
"2" cellspacing=
"0" cellpadding=
"0">
276 <tr valign=
"top" align=
"left">
277 <td width=
"19%"></td>
279 <p>type of samples interleaving in input image, where
280 <b>config
</b> may be:
</p></td>
283 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
284 cols=
"5" cellspacing=
"0" cellpadding=
"0">
285 <tr valign=
"top" align=
"left">
286 <td width=
"19%"></td>
294 <p>pixel interleaved data (default),
</p>
298 <tr valign=
"top" align=
"left">
299 <td width=
"19%"></td>
308 <p>band interleaved data.
</p>
314 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
315 cols=
"2" cellspacing=
"0" cellpadding=
"0">
316 <tr valign=
"top" align=
"left">
319 <p><b>−p photo
</b></p></td>
322 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
323 cols=
"2" cellspacing=
"0" cellpadding=
"0">
324 <tr valign=
"top" align=
"left">
325 <td width=
"19%"></td>
327 <p>photometric interpretation (color space) of the input
328 image, where
<b>photo
</b> may be:
<i><br>
329 miniswhite
</i> white color represented with
0 value,
<i><br>
330 minisblack
</i> black color represented with
0 value
334 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
335 cols=
"6" cellspacing=
"0" cellpadding=
"0">
336 <tr valign=
"top" align=
"left">
337 <td width=
"19%"></td>
346 <p>image has RGB color model,
</p>
351 <tr valign=
"top" align=
"left">
352 <td width=
"19%"></td>
361 <p>image has CMYK (separated) color model,
</p>
366 <tr valign=
"top" align=
"left">
367 <td width=
"19%"></td>
377 <p>image has YCbCr color model,
</p>
381 <tr valign=
"top" align=
"left">
382 <td width=
"19%"></td>
390 <p>image has CIE L*a*b color model,
</p>
395 <tr valign=
"top" align=
"left">
396 <td width=
"19%"></td>
404 <p>image has ICC L*a*b color model,
</p>
409 <tr valign=
"top" align=
"left">
410 <td width=
"19%"></td>
418 <p>image has ITU L*a*b color model,
</p>
425 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
426 cols=
"5" cellspacing=
"0" cellpadding=
"0">
427 <tr valign=
"top" align=
"left">
428 <td width=
"10%"></td>
431 <p><b>−s
</b></p>
436 <p>swap bytes fetched from the input file.
</p>
440 <tr valign=
"top" align=
"left">
441 <td width=
"10%"></td>
444 <p><b>−L
</b></p>
449 <p>input data has LSB2MSB bit order (default).
</p>
453 <tr valign=
"top" align=
"left">
454 <td width=
"10%"></td>
457 <p><b>−M
</b></p>
462 <p>input data has MSB2LSB bit order.
</p>
466 <tr valign=
"top" align=
"left">
467 <td width=
"10%"></td>
470 <p><b>−c
</b></p>
475 <p>Specify a compression scheme to use when writing image
476 data:
<b>−c none
</b> for no compression,
<b>-c
477 packbits
</b> for the PackBits compression algorithm (the
478 default),
<b>-c jpeg
</b> for the baseline JPEG compression
479 algorithm,
<b>-c zip
</b> for the Deflate compression
480 algorithm, and
<b>−c lzw
</b> for Lempel-Ziv
&
487 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
488 cols=
"2" cellspacing=
"0" cellpadding=
"0">
489 <tr valign=
"top" align=
"left">
492 <p><b>−r
<number
></b></p></td>
495 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
496 cols=
"2" cellspacing=
"0" cellpadding=
"0">
497 <tr valign=
"top" align=
"left">
498 <td width=
"19%"></td>
500 <p>Write data with a specified number of rows per strip; by
501 default the number of rows/strip is selected so that each
502 strip is approximately
8 kilobytes.
</p>
505 <a name=
"GUESSING THE IMAGE GEOMETRY"></a>
506 <h2>GUESSING THE IMAGE GEOMETRY
</h2>
508 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
509 cols=
"2" cellspacing=
"0" cellpadding=
"0">
510 <tr valign=
"top" align=
"left">
513 <p><i>raw2tiff
</i> can guess image width and height in case
514 one or both of these parameters are not specified. If you
515 omit one of those parameters, the complementary one will be
516 calculated based on the file size (taking into account
517 header size, number of bands and data type). If you omit
518 both parameters, the statistical approach will be used.
519 Utility will compute correlation coefficient between two
520 lines at the image center using several appropriate line
521 sizes and the highest absolute value of the coefficient will
522 indicate the right line size. That is why you should be
523 cautious with the very large images, because guessing
524 process may take a while (depending on your system
525 performance). Of course, the utility can
’t guess the
526 header size, number of bands and data type, so it should be
527 specified manually. If you don
’t know anything about
528 your image, just try with the several combinations of those
531 <p>There is no magic, it is just a mathematical statistics,
532 so it can be wrong in some cases. But for most ordinary
533 images guessing method will work fine.
</p>
536 <a name=
"SEE ALSO"></a>
539 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
540 cols=
"2" cellspacing=
"0" cellpadding=
"0">
541 <tr valign=
"top" align=
"left">
544 <p><b>pal2rgb
</b>(
1),
<b>tiffcp
</b>(
1),
545 <b>tiffmedian
</b>(
1),
<b>libtiff
</b>(
3)
</p>
547 <p>Libtiff library home page:
548 <b>http://www.remotesensing.org/libtiff/
</b></p>