Main Page Modules File List
pgm2ps.c File Reference
converts from pgm to ps for illustrating small image configurations
More...
Detailed Description
converts from pgm to ps for illustrating small image configurations
Usage: pgm2ps in.pgm mode <label.pgm|null> <marker.pgm|null> coord maxval out.ps
Description: Produces a Postscript file from a binary or grayscale image. If mode =
- b: binary image
- n: grayscale image (levels printed as numbers on a colored background)
- m: grayscale image (levels printed as numbers on a colored background)
- d: grayscale image (idem n - levels are square-rooted)
- i: grayscale image (levels printed as numbers on an inverted colored background)
- p: grayscale image (levels printed as numbers)
- a: grayscale image (levels printed as letters: a=1, b=2...)
- g: grayscale image (levels showed as colored items)
- v: vector image
- B: binary khalimsky grid
- N: grayscale khalimsky grid (levels printed as numbers)
- G: grayscale khalimsky grid (levels showed as colored items)
- C: binary khalimsky grid (dual of B)
- H: grayscale khalimsky grid (dual of N)
If an image label.pgm is present and the mode is n, the level number will be replaced by a letter for each pixel not null in the label image.
If an image label.pgm is present and the mode is m, the printed number will taken in the image label.pgm while the color will be taken from in.pgm .
If an image marker.pgm is present, a circle will be drawn on each point not null in the marker image.
The parameter coord is a boolean (0 or 1) which commands the inclusion of axis coordinates in the figure.
The parameter maxval is an integer which indicates the maximum grayscale value of the figure (not necessarily the maximum value of the input image).
Types supported: byte 2d, long 2d
Category: convert
- Author:
-
Michel Couprie
Generated on Fri Dec 17 11:59:38 2004 for Pink by
1.2.18