raw2tiff - create a TIFF file from a raw data


   raw2tiff [ options ] input.raw output.tif


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


   -H number
          size  of  input  image file header in bytes (0 by default). This
          amount of data just will be skipped from the start of file while

   -w number
          width of input image in pixels (can be guessed, see GUESSING THE
          IMAGE GEOMETRY below).

   -l number
          length of input image in lines (can be guessed, see GUESSING THE
          IMAGE GEOMETRY below).

   -b number
          number of bands in input image (1 by default).

   -d data_type
          type of samples in input image, where data_type may be:
          byte     8-bit unsigned integer (default),
          short    16-bit unsigned integer,
          long     32-bit unsigned integer,
          sbyte    8-bit signed integer,
          sshort   16-bit signed integer,
          slong    32-bit signed integer,
          float    32-bit IEEE floating point,
          double   64-bit IEEE floating point.

   -i config
          type  of  samples  interleaving in input image, where config may
          pixel   pixel interleaved data (default),
          band    band interleaved data.

   -p photo
          photometric interpretation (color space)  of  the  input  image,
          where photo may be:
          miniswhite   white color represented with 0 value,
          minisblack   black color represented with 0 value (default),
          rgb          image has RGB color model,
          cmyk         image has CMYK (separated) color model,
          ycbcr        image has YCbCr color model,
          cielab       image has CIE L*a*b color model,
          icclab       image has ICC L*a*b color model,
          itulab       image has ITU L*a*b color model.

   -s     swap bytes fetched from the input file.

   -L     input data has LSB2MSB bit order (default).

   -M     input data has MSB2LSB bit order.

   -c     Specify  a compression scheme to use when writing image data: -c
          none  for  no  compression,  -c  packbits   for   the   PackBits
          compression  algorithm  (the  default), -c jpeg for the baseline
          JPEG compression algorithm, -c zip for the  Deflate  compression
          algorithm, and -c lzw for Lempel-Ziv & Welch.

   -r number
          Write data with a specified number of rows per strip; by default
          the number of rows/strip is  selected  so  that  each  strip  is
          approximately 8 kilobytes.


   raw2tiff  can guess image width and height in case one or both of these
   parameters are not specified. If you omit one of those parameters,  the
   complementary  one  will  be  calculated based on the file size (taking
   into account header size, number of bands and data type). If  you  omit
   both  parameters,  the  statistical approach will be used. Utility will
   compute correlation coefficient between two lines at the  image  center
   using  several appropriate line sizes and the highest absolute value of
   the coefficient will indicate the right line  size.  That  is  why  you
   should be cautious with the very large images, because guessing process
   may take a while (depending on your system performance). Of course, the
   utility  can't guess the header size, number of bands and data type, so
   it should be specified manually. If you don't know anything about  your
   image, just try with the several combinations of those options.

   There  is  no magic, it is just a mathematical statistics, so it can be
   wrong in some cases. But for most ordinary images guessing method  will
   work fine.


   pal2rgb(1), tiffinfo(1), tiffcp(1), tiffmedian(1), libtiff(3)

   Libtiff library home page: http://www.simplesystems.org/libtiff/

More Linux Commands

The RENDER extension adds a new set of drawing primitives which effectively represent a replacement of the drawing routines in the core protocol, redesigned bas

pthread_setcancelstate(3) - set cancelability state and type
The pthread_setcancelstate() sets the cancelability state of the calling thread to the value given in state. The previous cancelability state of the thread is r

FcPatternGet(3) - Return a value from a pattern (Man Page)
Returns in v the idth value associated with the property object. The value returned is not a copy, but rather refers to the data stored within the pattern direc

slk_attroff(3ncurses) - curses soft label routines (ManPage)
The slk* functions manipulate the set of soft function-key labels that exist on many terminals. For those terminals that do not have soft labels, curses takes o

pthread_getaffinity_np(3) - set/get CPU affinity of a thread
The pthread_setaffinity_np() function sets the CPU affinity mask of the thread thread to the CPU set pointed to by cpuset. If the call is successful, and the th

XF86MiscGetKbdSettings(3) - Extension library for the XFree8
These functions provide an interface to the XFree86-Misc extension which allows various server settings to be queried and changed dynamically. Applications that

zoomsh(1) - ZOOM shell (Commands - Linux manual page).......
zoomsh is a ZOOM client with a simple command line interface. The client demonstrates the ZOOM API and is useful for testing targets. You may pass one or more c

XtCallbackExclusive(3) - map a pop-up - Linux manual page...
The XtPopup function performs the following: * Calls XtCheckSubclass to ensure popup_shell is a subclass of Shell. * Generates an error if the shells popped_up

klogctl(3) - read and/or clear kernel message ring buffer; s
If you need the C library function syslog() (which talks to syslogd(8)), then look at syslog(3). The system call of this name is about controlling the kernel pr

Tk_DeleteImage(3) - Destroy an image. - Linux manual page...
Tk_DeleteImage deletes the image given by interp and name, if there is one. All instances of that image will redisplay as empty regions. If the given image does

setxkbmap(1) - set the keyboard using the X Keyboard Extensi
The setxkbmap command maps the keyboard to use the layout determined by the options specified on the command line. An XKB keymap is constructed from a number of

asn1_read_value_type(3) API function - Linux manual page....
Returns the type and value of one element inside a structure. If an element is OPTIONAL and this returns ASN1_ELEMENT_NOT_FOUND, it means that this element wasn

We can't live, work or learn in freedom unless the software we use is free.