1RAW2TIFF(1)                 General Commands Manual                RAW2TIFF(1)
2
3
4

NAME

6       raw2tiff - create a TIFF file from a raw data
7

SYNOPSIS

9       raw2tiff [ options ] input.raw output.tif
10

DESCRIPTION

12       raw2tiff  converts a raw byte sequence into TIFF.  By default, the TIFF
13       image is created with data samples packed (PlanarConfiguration=1), com‐
14       pressed  with the PackBits algorithm (Compression=32773), and with each
15       strip no more than 8 kilobytes.  These characteristics can  overridden,
16       or explicitly specified with the options described below.
17

OPTIONS

19       -H <number>
20              size  of  input  image file header in bytes (0 by default). This
21              amount of data just will be skipped from the start of file while
22              reading.
23
24       -w <number>
25              width of input image in pixels (can be guessed, see GUESSING THE
26              IMAGE GEOMETRY below).
27
28       -l <number>
29              length of input image in lines(can be guessed, see GUESSING  THE
30              IMAGE GEOMETRY below).
31
32       -b <number>
33              number of bands in input image (1 by default).
34
35       -d data_type
36              type of samples in input image, where data_type may be:
37              byte       8-bit unsigned integer (default),
38              short      16-bit unsigned integer,
39              long       32-bit unsigned integer,
40              sbyte      8-bit signed integer,
41              sshort     16-bit signed integer,
42              slong      32-bit signed integer,
43              float      32-bit IEEE floating point,
44              double     64-bit IEEE floating point,
45
46       -i config
47              type  of  samples  interleaving in input image, where config may
48              be:
49              pixel      pixel interleaved data (default),
50              band       band interleaved data.
51
52       -p photo
53              photometric interpretation (color space)  of  the  input  image,
54              where photo may be:
55              miniswhite white color represented with 0 value,
56              minisblack black color represented with 0 value (default),
57              rgb        image has RGB color model,
58              cmyk       image has CMYK (separated) color model,
59              ycbcr           image has YCbCr color model,
60              cielab     image has CIE L*a*b color model,
61              icclab     image has ICC L*a*b color model,
62              itulab     image has ITU L*a*b color model,
63
64       -s     swap bytes fetched from the input file.
65
66       -L     input data has LSB2MSB bit order (default).
67
68       -M     input data has MSB2LSB bit order.
69
70       -c     Specify  a compression scheme to use when writing image data: -c
71              none for no compression, -c packbits for the  PackBits  compres‐
72              sion algorithm (the default), -c jpeg for the baseline JPEG com‐
73              pression algorithm, -c zip for  the  Deflate  compression  algo‐
74              rithm, and -c lzw for Lempel-Ziv & Welch.
75
76       -r <number>
77              Write data with a specified number of rows per strip; by default
78              the number of rows/strip is  selected  so  that  each  strip  is
79              approximately 8 kilobytes.
80

GUESSING THE IMAGE GEOMETRY

82       raw2tiff  can guess image width and height in case one or both of these
83       parameters are not specified. If you omit one of those parameters,  the
84       complementary  one  will  be  calculated based on the file size (taking
85       into account header size, number of bands and data type). If  you  omit
86       both  parameters,  the  statistical approach will be used. Utility will
87       compute correlation coefficient between two lines at the  image  center
88       using  several appropriate line sizes and the highest absolute value of
89       the coefficient will indicate the right line  size.  That  is  why  you
90       should be cautious with the very large images, because guessing process
91       may take a while (depending on your system performance). Of course, the
92       utility  can't guess the header size, number of bands and data type, so
93       it should be specified manually. If you don't know anything about  your
94       image, just try with the several combinations of those options.
95
96       There  is  no magic, it is just a mathematical statistics, so it can be
97       wrong in some cases. But for most ordinary images guessing method  will
98       work fine.
99

SEE ALSO

101       pal2rgb(1), tiffcp(1), tiffmedian(1), libtiff(3)
102
103       Libtiff library home page: http://www.remotesensing.org/libtiff/
104
105
106
107libtiff                        November 2, 2005                    RAW2TIFF(1)
Impressum