pnmtov - convert portable anymap (PNM) image to Vista data file.
More...
Detailed Description
pnmtov - convert portable anymap (PNM) image to Vista data file.
Description
pnmtov converts an image from a portable anymap (PNM) file to a Vista data file. The following types of portable anymap may be converted:
· Portable bitmap (PBM) and its ``rawbits'' variant. A PBM image is converted to a single-band Vista image with bit pixels. Pixel values 0 and 1 are swapped since, for PBM images, 0 denotes white and 1 denotes black.
· Portable graymap (PGM) and its ``rawbits'' variant. A PGM image is converted to a single-band Vista image with ubyte pixels. The full range of PGM pixel values is mapped to [0,255] in the returned image.
· Portable pixmap (PPM) and its ``rawbits'' variant. A PPM image is converted to an RGB color image (nbands: 3, ncolors: 3, color_interp: rgb) with ubyte pixels. The full range of PPM pixel values is mapped to [0,255] in the returned image.
Usage
pnmtov
Parameters:
-in
input image
-out
output image
-name
Name to be given created image. Default: image
Examples
Known bugs
none.
Author:
Daniel Ko, UBC Laboratory for Computational Intelligence
Generated on Tue Nov 23 09:50:52 2004 for VIA - Volumetric Image Analysis by
1.2.15