1 .\" $Id: raw2tiff.1,v 1.5 2005/11/02 11:07:19 dron Exp $
 
   3 .\" Copyright (c) 1990-1997 Sam Leffler
 
   4 .\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
 
   6 .\" Permission to use, copy, modify, distribute, and sell this software and 
 
   7 .\" its documentation for any purpose is hereby granted without fee, provided
 
   8 .\" that (i) the above copyright notices and this permission notice appear in
 
   9 .\" all copies of the software and related documentation, and (ii) the names of
 
  10 .\" Sam Leffler and Silicon Graphics may not be used in any advertising or
 
  11 .\" publicity relating to the software without the specific, prior written
 
  12 .\" permission of Sam Leffler and Silicon Graphics.
 
  14 .\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
 
  15 .\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
 
  16 .\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
 
  18 .\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
 
  19 .\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
 
  20 .\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 
  21 .\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
 
  22 .\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
 
  26 .TH RAW2TIFF 1 "November 2, 2005" "libtiff"
 
  40 converts a raw byte sequence into
 
  44 image is created with data samples packed (\c
 
  45 .IR PlanarConfiguration =1),
 
  46 compressed with the PackBits algorithm (\c
 
  47 .IR Compression = 32773),
 
  48 and with each strip no more than 8 kilobytes.
 
  49 These characteristics can overridden, or explicitly specified
 
  50 with the options described below.
 
  54 size of input image file header in bytes (0 by default). This amount of data
 
  55 just will be skipped from the start of file while reading.
 
  58 width of input image in pixels (can be guessed, see
 
  60 .B "GUESSING THE IMAGE GEOMETRY"
 
  64 length of input image in lines(can be guessed, see
 
  66 .B "GUESSING THE IMAGE GEOMETRY"
 
  70 number of bands in input image (1 by default).
 
  73 type of samples in input image, where
 
  78 8-bit unsigned integer (default),
 
  81 16-bit unsigned integer,
 
  84 32-bit unsigned integer,
 
  90 16-bit signed integer,
 
  93 32-bit signed integer,
 
  96 32-bit IEEE floating point,
 
  99 64-bit IEEE floating point,
 
 102 type of samples interleaving in input image, where
 
 107 pixel interleaved data (default),
 
 110 band interleaved data.
 
 113 photometric interpretation (color space) of the input image, where
 
 118 white color represented with 0 value,
 
 121 black color represented with 0 value (default),
 
 124 image has RGB color model,
 
 127 image has CMYK (separated) color model,
 
 130 image has YCbCr color model,
 
 133 image has CIE L*a*b color model,
 
 136 image has ICC L*a*b color model,
 
 139 image has ITU L*a*b color model,
 
 142 swap bytes fetched from the input file.
 
 145 input data has LSB2MSB bit order (default).
 
 148 input data has MSB2LSB bit order.
 
 151 Specify a compression scheme to use when writing image data:
 
 155 for the PackBits compression algorithm (the default),
 
 157 for the baseline JPEG compression algorithm,
 
 159 for the Deflate compression algorithm,
 
 162 for Lempel-Ziv & Welch.
 
 165 Write data with a specified number of rows per strip;
 
 166 by default the number of rows/strip is selected so that each strip
 
 167 is approximately 8 kilobytes.
 
 168 .SH GUESSING THE IMAGE GEOMETRY
 
 170 can guess image width and height in case one or both of these parameters are
 
 171 not specified. If you omit one of those parameters, the complementary one will
 
 172 be calculated based on the file size (taking into account header size, number
 
 173 of bands and data type). If you omit both parameters, the statistical approach
 
 174 will be used. Utility will compute correlation coefficient between two lines
 
 175 at the image center using several appropriate line sizes and the highest
 
 176 absolute value of the coefficient will indicate the right line size. That is
 
 177 why you should be cautious with the very large images, because guessing
 
 178 process may take a while (depending on your system performance). Of course, the
 
 179 utility can't guess the header size, number of bands and data type, so it
 
 180 should be specified manually. If you don't know anything about your image,
 
 181 just try with the several combinations of those options.
 
 183 There is no magic, it is just a mathematical statistics, so it can be wrong
 
 184 in some cases. But for most ordinary images guessing method will work fine.
 
 192 Libtiff library home page:
 
 193 .BR http://www.remotesensing.org/libtiff/