roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
<meta content="groff -Thtml, see www.gnu.org" name="generator">
roentgen b75cab
<meta content="text/css" name="Content-Style">
roentgen b75cab
<title>RAW2TIFF</title>
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

RAW2TIFF

roentgen b75cab
NAME
roentgen b75cab
SYNOPSIS
roentgen b75cab
DESCRIPTION
roentgen b75cab
OPTIONS
roentgen b75cab
GUESSING THE IMAGE GEOMETRY
roentgen b75cab
SEE ALSO
roentgen b75cab
roentgen b75cab

roentgen b75cab
roentgen b75cab

NAME

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

raw2tiff − create a <small>TIFF</small> file from a

roentgen b75cab
raw data

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

SYNOPSIS

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

raw2tiff [ options ] input.raw

roentgen b75cab
output.tif

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

DESCRIPTION

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

raw2tiff converts a raw byte sequence into

roentgen b75cab
<small>TIFF.</small> By default, the <small>TIFF</small>
roentgen b75cab
image is created with data samples packed
roentgen b75cab
(PlanarConfiguration=1), compressed with the PackBits
roentgen b75cab
algorithm (Compression=32773), and with each strip no
roentgen b75cab
more than 8 kilobytes. These characteristics can overridden,
roentgen b75cab
or explicitly specified with the options described
roentgen b75cab
below.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

OPTIONS

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−H number

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

size of input image file header in bytes (0 by default).

roentgen b75cab
This amount of data just will be skipped from the start of
roentgen b75cab
file while reading.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−w number

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

width of input image in pixels (can be guessed, see

roentgen b75cab
<small>GUESSING THE IMAGE GEOMETRY</small>
roentgen b75cab
below).

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−l number

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

length of input image in lines (can be guessed, see

roentgen b75cab
<small>GUESSING THE IMAGE GEOMETRY</small>
roentgen b75cab
below).

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−b number

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

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

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−d data_type

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

type of samples in input image, where data_type

roentgen b75cab
may be:

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="3" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

byte

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

8-bit unsigned integer (default),

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

short

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

16-bit unsigned integer,

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

long

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

32-bit unsigned integer,

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

sbyte

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

8-bit signed integer,

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

sshort

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

16-bit signed integer,

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

slong

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

32-bit signed integer,

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

float

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

32-bit IEEE floating point,

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

double

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

64-bit IEEE floating point.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−i config

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

type of samples interleaving in input image, where

roentgen b75cab
config may be:

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="3" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

pixel

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

pixel interleaved data (default),

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

band

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

band interleaved data.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−p photo

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

photometric interpretation (color space) of the input

roentgen b75cab
image, where photo may be:

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="3" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

miniswhite

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

white color represented with 0 value,

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

minisblack

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

black color represented with 0 value (default),

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

rgb

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

image has RGB color model,

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

cmyk

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

image has CMYK (separated) color model,

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

ycbcr

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

image has YCbCr color model,

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

cielab

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

image has CIE L*a*b color model,

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

icclab

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

image has ICC L*a*b color model,

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

itulab

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

image has ITU L*a*b color model.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="5" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−s

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

swap bytes fetched from the input file.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−L

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

input data has LSB2MSB bit order (default).

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−M

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

input data has MSB2LSB bit order.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−c

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Specify a compression scheme to use when writing image

roentgen b75cab
data: −c none for no compression, −c
roentgen b75cab
packbits for the PackBits compression algorithm (the
roentgen b75cab
default), −c jpeg for the baseline JPEG
roentgen b75cab
compression algorithm, −c zip for the Deflate
roentgen b75cab
compression algorithm, and −c lzw for
roentgen b75cab
Lempel-Ziv & Welch.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−r number

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Write data with a specified number of rows per strip; by

roentgen b75cab
default the number of rows/strip is selected so that each
roentgen b75cab
strip is approximately 8 kilobytes.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

GUESSING THE IMAGE GEOMETRY

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

raw2tiff can guess image width and height in case

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

roentgen b75cab
roentgen b75cab

There is no magic, it is just a mathematical statistics,

roentgen b75cab
so it can be wrong in some cases. But for most ordinary
roentgen b75cab
images guessing method will work fine.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

SEE ALSO

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

pal2rgb(1), tiffcp(1),

roentgen b75cab
tiffmedian(1), libtiff(3)

roentgen b75cab
roentgen b75cab

Libtiff library home page:

roentgen b75cab
http://www.remotesensing.org/libtiff/

roentgen b75cab
roentgen b75cab
roentgen b75cab

roentgen b75cab
roentgen b75cab