xref: /libtiff-4.0.7/html/man/raw2tiff.1.html (revision fd935fb2)
1<html>
2<head>
3<meta name="generator" content="groff -Thtml, see www.gnu.org">
4<meta name="Content-Style" content="text/css">
5<title>RAW2TIFF</title>
6</head>
7<body>
8
9<h1 align=center>RAW2TIFF</h1>
10<a href="#NAME">NAME</a><br>
11<a href="#SYNOPSIS">SYNOPSIS</a><br>
12<a href="#DESCRIPTION">DESCRIPTION</a><br>
13<a href="#OPTIONS">OPTIONS</a><br>
14<a href="#SEE ALSO">SEE ALSO</a><br>
15
16<hr>
17<!-- Creator     : groff version 1.18 -->
18<!-- CreationDate: Mon Oct  7 17:36:35 2002 -->
19<a name="NAME"></a>
20<h2>NAME</h2>
21<!-- INDENTATION -->
22<p><table width="100%" border=0 rules="none" frame="void"
23       cols="2" cellspacing="0" cellpadding="0">
24<tr valign="top" align="left">
25<td width="8%"></td>
26<td width="91%">
27<p>raw2tiff &minus; create a <small>TIFF</small> file from a
28raw data</p>
29</td>
30</table></p>
31<a name="SYNOPSIS"></a>
32<h2>SYNOPSIS</h2>
33<!-- INDENTATION -->
34<p><table width="100%" border=0 rules="none" frame="void"
35       cols="2" cellspacing="0" cellpadding="0">
36<tr valign="top" align="left">
37<td width="8%"></td>
38<td width="91%">
39<p><b>raw2tiff</b> <i>-w &lt;number&gt;</i> [ <i>options</i>
40] <i>input.raw output.tif</i></p>
41</td>
42</table></p>
43<a name="DESCRIPTION"></a>
44<h2>DESCRIPTION</h2>
45<!-- INDENTATION -->
46<p><table width="100%" border=0 rules="none" frame="void"
47       cols="2" cellspacing="0" cellpadding="0">
48<tr valign="top" align="left">
49<td width="8%"></td>
50<td width="91%">
51<p><i>raw2tiff</i> converts a raw byte sequence into
52<small>TIFF.</small> By default, the <small>TIFF</small>
53image is created with data samples packed
54(<i>PlanarConfiguration</i>=1), compressed with the PackBits
55algorithm (<i>Compression</i>=<i>32773),</i> and with each
56strip no more than 8 kilobytes. These characteristics can
57overridden, or explicitly specified with the options
58described below.</p>
59</td>
60</table></p>
61<a name="OPTIONS"></a>
62<h2>OPTIONS</h2>
63<!-- INDENTATION -->
64<p><table width="100%" border=0 rules="none" frame="void"
65       cols="2" cellspacing="0" cellpadding="0">
66<tr valign="top" align="left">
67<td width="8%"></td>
68<td width="91%">
69<p><b>&minus;H &lt;number&gt;</b></p></td>
70</table></p>
71<!-- INDENTATION -->
72<table width="100%" border=0 rules="none" frame="void"
73       cols="2" cellspacing="0" cellpadding="0">
74<tr valign="top" align="left">
75<td width="19%"></td>
76<td width="80%">
77<p>size of input image file header in bytes (0 by default).
78This amount of data just will be skipped from the start of
79file while reading.</p>
80</td>
81</table>
82<!-- INDENTATION -->
83<p><table width="100%" border=0 rules="none" frame="void"
84       cols="2" cellspacing="0" cellpadding="0">
85<tr valign="top" align="left">
86<td width="8%"></td>
87<td width="91%">
88<p><b>&minus;w &lt;number&gt;</b></p></td>
89</table></p>
90<!-- INDENTATION -->
91<table width="100%" border=0 rules="none" frame="void"
92       cols="2" cellspacing="0" cellpadding="0">
93<tr valign="top" align="left">
94<td width="19%"></td>
95<td width="80%">
96<p>width of input image in pixels. You must set this
97parameter.</p>
98</td>
99</table>
100<!-- INDENTATION -->
101<p><table width="100%" border=0 rules="none" frame="void"
102       cols="2" cellspacing="0" cellpadding="0">
103<tr valign="top" align="left">
104<td width="8%"></td>
105<td width="91%">
106<p><b>&minus;l &lt;number&gt;</b></p></td>
107</table></p>
108<!-- INDENTATION -->
109<table width="100%" border=0 rules="none" frame="void"
110       cols="2" cellspacing="0" cellpadding="0">
111<tr valign="top" align="left">
112<td width="19%"></td>
113<td width="80%">
114<p>length of input image in lines. Will be calculated from
115the size of input file if not specified.</p>
116</td>
117</table>
118<!-- INDENTATION -->
119<p><table width="100%" border=0 rules="none" frame="void"
120       cols="2" cellspacing="0" cellpadding="0">
121<tr valign="top" align="left">
122<td width="8%"></td>
123<td width="91%">
124<p><b>&minus;b &lt;number&gt;</b></p></td>
125</table></p>
126<!-- INDENTATION -->
127<table width="100%" border=0 rules="none" frame="void"
128       cols="2" cellspacing="0" cellpadding="0">
129<tr valign="top" align="left">
130<td width="19%"></td>
131<td width="80%">
132<p>number of bands in input image (1 by default).</p>
133</td>
134</table>
135<!-- INDENTATION -->
136<p><table width="100%" border=0 rules="none" frame="void"
137       cols="2" cellspacing="0" cellpadding="0">
138<tr valign="top" align="left">
139<td width="8%"></td>
140<td width="91%">
141<p><b>&minus;d data_type</b></p></td>
142</table></p>
143<!-- INDENTATION -->
144<table width="100%" border=0 rules="none" frame="void"
145       cols="2" cellspacing="0" cellpadding="0">
146<tr valign="top" align="left">
147<td width="19%"></td>
148<td width="80%">
149<p>type of samples in input image, where <b>data_type</b>
150may be:</p></td>
151</table>
152<!-- TABS -->
153<table width="100%" border=0 rules="none" frame="void"
154       cols="5" cellspacing="0" cellpadding="0">
155<tr valign="top" align="left">
156<td width="19%"></td>
157<td width="6%">
158
159<p><i>byte</i></p>
160</td>
161<td width="6%">
162</td>
163<td width="6%">
164
165<p>8-bit unsigned integer (default),</p>
166</td>
167<td width="61%">
168</td>
169<tr valign="top" align="left">
170<td width="19%"></td>
171<td width="6%">
172
173<p><i>short</i></p>
174</td>
175<td width="6%"></td>
176<td width="6%">
177
178<p>16-bit unsigned integer,</p>
179</td>
180<td width="61%">
181</td>
182<tr valign="top" align="left">
183<td width="19%"></td>
184<td width="6%">
185
186<p><i>long</i></p>
187</td>
188<td width="6%">
189</td>
190<td width="6%">
191
192<p>32-bit unsigned integer,</p>
193</td>
194<td width="61%">
195</td>
196<tr valign="top" align="left">
197<td width="19%"></td>
198<td width="6%">
199
200<p><i>sbyte</i></p>
201</td>
202<td width="6%"></td>
203<td width="6%">
204
205<p>8-bit signed integer,</p>
206</td>
207<td width="61%">
208</td>
209<tr valign="top" align="left">
210<td width="19%"></td>
211<td width="6%">
212
213<p><i>sshort</i></p>
214</td>
215<td width="6%"></td>
216<td width="6%">
217
218<p>16-bit signed integer,</p>
219</td>
220<td width="61%">
221</td>
222<tr valign="top" align="left">
223<td width="19%"></td>
224<td width="6%">
225
226<p><i>slong</i></p>
227</td>
228<td width="6%"></td>
229<td width="6%">
230
231<p>32-bit signed integer,</p>
232</td>
233<td width="61%">
234</td>
235<tr valign="top" align="left">
236<td width="19%"></td>
237<td width="6%">
238
239<p><i>float</i></p>
240</td>
241<td width="6%"></td>
242<td width="6%">
243
244<p>32-bit IEEE floating point,</p>
245</td>
246<td width="61%">
247</td>
248<tr valign="top" align="left">
249<td width="19%"></td>
250<td width="6%">
251
252<p><i>double</i></p>
253</td>
254<td width="6%"></td>
255<td width="6%">
256
257<p>64-bit IEEE floating point,</p>
258</td>
259<td width="61%">
260</td>
261</table>
262<!-- INDENTATION -->
263<p><table width="100%" border=0 rules="none" frame="void"
264       cols="2" cellspacing="0" cellpadding="0">
265<tr valign="top" align="left">
266<td width="8%"></td>
267<td width="91%">
268<p><b>&minus;i config</b></p></td>
269</table></p>
270<!-- INDENTATION -->
271<table width="100%" border=0 rules="none" frame="void"
272       cols="2" cellspacing="0" cellpadding="0">
273<tr valign="top" align="left">
274<td width="19%"></td>
275<td width="80%">
276<p>type of samples interleaving in input image, where
277<b>config</b> may be:</p></td>
278</table>
279<!-- TABS -->
280<table width="100%" border=0 rules="none" frame="void"
281       cols="5" cellspacing="0" cellpadding="0">
282<tr valign="top" align="left">
283<td width="19%"></td>
284<td width="6%">
285
286<p><i>pixel</i></p>
287</td>
288<td width="6%"></td>
289<td width="6%">
290
291<p>pixel interleaved data (default),</p>
292</td>
293<td width="61%">
294</td>
295<tr valign="top" align="left">
296<td width="19%"></td>
297<td width="6%">
298
299<p><i>band</i></p>
300</td>
301<td width="6%">
302</td>
303<td width="6%">
304
305<p>band interleaved data.</p>
306</td>
307<td width="61%">
308</td>
309</table>
310<!-- TABS -->
311<p><table width="100%" border=0 rules="none" frame="void"
312       cols="5" cellspacing="0" cellpadding="0">
313<tr valign="top" align="left">
314<td width="10%"></td>
315<td width="3%">
316
317<p><b>&minus;s</b></p>
318</td>
319<td width="5%"></td>
320<td width="80%">
321
322<p>swap bytes fetched from the input file.</p>
323</td>
324<td width="0%">
325</td>
326<tr valign="top" align="left">
327<td width="10%"></td>
328<td width="3%">
329
330<p><b>&minus;L</b></p>
331</td>
332<td width="5%"></td>
333<td width="80%">
334
335<p>input data has LSB2MSB bit order (default).</p>
336</td>
337<td width="0%">
338</td>
339<tr valign="top" align="left">
340<td width="10%"></td>
341<td width="3%">
342
343<p><b>&minus;M</b></p>
344</td>
345<td width="5%"></td>
346<td width="80%">
347
348<p>input data has MSB2LSB bit order.</p>
349</td>
350<td width="0%">
351</td>
352<tr valign="top" align="left">
353<td width="10%"></td>
354<td width="3%">
355
356<p><b>&minus;c</b></p>
357</td>
358<td width="5%"></td>
359<td width="80%">
360
361<p>Specify a compression scheme to use when writing image
362data: <b>&minus;c none</b> for no compression, <b>-c
363packbits</b> for the PackBits compression algorithm (the
364default), <b>-c jpeg</b> for the baseline JPEG compression
365algorithm, <b>-c zip</b> for the Deflate compression
366algorithm, and <b>&minus;c lzw</b> for Lempel-Ziv &amp;
367Welch.</p>
368</td>
369<td width="0%">
370</td>
371</table></p>
372<!-- INDENTATION -->
373<p><table width="100%" border=0 rules="none" frame="void"
374       cols="2" cellspacing="0" cellpadding="0">
375<tr valign="top" align="left">
376<td width="8%"></td>
377<td width="91%">
378<p><b>&minus;r &lt;number&gt;</b></p></td>
379</table></p>
380<!-- INDENTATION -->
381<table width="100%" border=0 rules="none" frame="void"
382       cols="2" cellspacing="0" cellpadding="0">
383<tr valign="top" align="left">
384<td width="19%"></td>
385<td width="80%">
386<p>Write data with a specified number of rows per strip; by
387default the number of rows/strip is selected so that each
388strip is approximately 8 kilobytes.</p>
389</td>
390</table>
391<a name="SEE ALSO"></a>
392<h2>SEE ALSO</h2>
393<!-- INDENTATION -->
394<p><table width="100%" border=0 rules="none" frame="void"
395       cols="2" cellspacing="0" cellpadding="0">
396<tr valign="top" align="left">
397<td width="8%"></td>
398<td width="91%">
399<p><i>pal2rgb</i>(1), <i>tiffinfo</i>(1), <i>tiffcp</i>(1),
400<i>tiffmedian</i>(1), <i>libtiff</i>(3)</p>
401</td>
402</table></p>
403<hr>
404</body>
405</html>
406