home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
NETWORK
/
netpbm_docs.lzh
/
NETPBM
/
DOCS
/
rawtopgm.1
< prev
next >
Wrap
Text File
|
1996-11-18
|
2KB
|
64 lines
.TH rawtopgm 1 "15 June 1993"
.IX rawtopgm
.SH NAME
rawtopgm - convert raw grayscale bytes into a portable graymap
.SH SYNOPSIS
.B rawtopgm
.RB [ -headerskip
.IR N ]
.RB [ -rowskip
.IR N ]
.RB [ -tb | -topbottom ]
.RI [ width
.IR height ]
.RI [ imagedata ]
.SH DESCRIPTION
Reads raw grayscale bytes as input.
.IX "raw grayscale"
Produces a portable graymap as output.
The input file is just grayscale bytes.
If you don't specify the width and height on the command line,
the program will check the size of the image and try to make
a quadratic image of it. It is an error to supply a non
quadratic image without specifying width and height.
The maxval is assumed to be 255.
.SH OPTIONS
.TP
.B -headerskip
If the file has a header, you can use this flag to
skip over it.
.TP
.B -rowskip
If there is padding at the ends of the rows, you can skip it with this flag.
Note that rowskip can be a real number.
Amazingly, I once had an image with 0.376 bytes of padding per row.
This turned out to be due to a file-transfer problem, but I was still
able to read the image.
.TP
.B -tb -topbottom
Flips the image upside down.
The first pixel in a pgm file is in the lower left corner of the image.
For conversion from images with the first pixel in the upper left corner
(e.g. the Molecular Dynamics and Leica confocal formats) this flips the
image right.
This is equivalent to
.B "rawtopgm [file] | pnmflip -tb" .
.SH "BUGS"
If you don't specify the image width and height, the program will
try to read the entire image to a memory buffer. If you get a
message that states that you are out of memory, try to specify the width
and height on the command line. Also, the -tb option consumes much
memory.
.SH "SEE ALSO"
pgm(5), rawtoppm(1), pnmflip(1)
.SH AUTHORS
Copyright (C) 1989 by Jef Poskanzer.
.br
Modified June 1993 by Oliver Trepte, oliver@fysik4.kth.se
.\" Permission to use, copy, modify, and distribute this software and its
.\" documentation for any purpose and without fee is hereby granted, provided
.\" that the above copyright notice appear in all copies and that both that
.\" copyright notice and this permission notice appear in supporting
.\" documentation. This software is provided "as is" without express or
.\" implied warranty.