/usr/share/doc/libtiff-devel/html/man
NameSizeModeActions
CMakeLists.txt34600644editdlrm
fax2ps.1.html77410644editdlrm
fax2tiff.1.html147130644editdlrm
HtmlDoc.cmake21470644editdlrm
index.html38260644editdlrm
libtiff.3tiff.html245760644editdlrm
pal2rgb.1.html52440644editdlrm
ppm2tiff.1.html39790644editdlrm
raw2tiff.1.html127460644editdlrm
tiff2bw.1.html40570644editdlrm
tiff2pdf.1.html179420644editdlrm
tiff2ps.1.html150160644editdlrm
tiff2rgba.1.html45880644editdlrm
TIFFbuffer.3tiff.html38800644editdlrm
TIFFClose.3tiff.html24790644editdlrm
tiffcmp.1.html44010644editdlrm
TIFFcodec.3tiff.html37000644editdlrm
TIFFcolor.3tiff.html227630644editdlrm
tiffcp.1.html157540644editdlrm
tiffcrop.1.html204020644editdlrm
TIFFDataWidth.3tiff.html25560644editdlrm
tiffdither.1.html57890644editdlrm
tiffdump.1.html44160644editdlrm
TIFFError.3tiff.html32470644editdlrm
TIFFFieldDataType.3tiff.html21820644editdlrm
TIFFFieldName.3tiff.html21270644editdlrm
TIFFFieldPassCount.3tiff.html26120644editdlrm
TIFFFieldReadCount.3tiff.html28200644editdlrm
TIFFFieldTag.3tiff.html22490644editdlrm
TIFFFieldWriteCount.3tiff.html31440644editdlrm
TIFFFlush.3tiff.html33450644editdlrm
TIFFGetField.3tiff.html334580644editdlrm
tiffinfo.1.html44540644editdlrm
tiffmedian.1.html51540644editdlrm
TIFFmemory.3tiff.html35690644editdlrm
TIFFOpen.3tiff.html137000644editdlrm
TIFFPrintDirectory.3tiff.html47330644editdlrm
TIFFquery.3tiff.html51660644editdlrm
TIFFReadDirectory.3tiff.html81020644editdlrm
TIFFReadEncodedStrip.3tiff.html42990644editdlrm
TIFFReadEncodedTile.3tiff.html41330644editdlrm
TIFFReadRawStrip.3tiff.html33400644editdlrm
TIFFReadRawTile.3tiff.html34250644editdlrm
TIFFReadRGBAImage.3tiff.html104820644editdlrm
TIFFReadRGBAStrip.3tiff.html74810644editdlrm
TIFFReadRGBATile.3tiff.html84770644editdlrm
TIFFReadScanline.3tiff.html52570644editdlrm
TIFFReadTile.3tiff.html42780644editdlrm
TIFFRGBAImage.3tiff.html123100644editdlrm
tiffset.1.html49200644editdlrm
TIFFSetDirectory.3tiff.html38280644editdlrm
TIFFSetField.3tiff.html310930644editdlrm
TIFFsize.3tiff.html27480644editdlrm
tiffsplit.1.html29270644editdlrm
TIFFstrip.3tiff.html43560644editdlrm
TIFFswab.3tiff.html34920644editdlrm
TIFFtile.3tiff.html50140644editdlrm
TIFFWarning.3tiff.html33530644editdlrm
TIFFWriteDirectory.3tiff.html64860644editdlrm
TIFFWriteEncodedStrip.3tiff.html50930644editdlrm
TIFFWriteEncodedTile.3tiff.html48940644editdlrm
TIFFWriteRawStrip.3tiff.html45110644editdlrm
TIFFWriteRawTile.3tiff.html39780644editdlrm
TIFFWriteScanline.3tiff.html73870644editdlrm
TIFFWriteTile.3tiff.html36380644editdlrm
Edit: /usr/share/doc/libtiff-devel/html/man/raw2tiff.1.html (12746B)
RAW2TIFF

RAW2TIFF

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
GUESSING THE IMAGE GEOMETRY
SEE ALSO

NAME

raw2tiff − create a TIFF file from a raw data

SYNOPSIS

raw2tiff [ options ] input.raw output.tif

DESCRIPTION

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.

OPTIONS

−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 reading.

−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 be:

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.

GUESSING THE IMAGE GEOMETRY

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.

SEE ALSO

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

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