Pink 0.9

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 =

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 int32_t (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, int32_t 2d

Category: convert

Author:
Michel Couprie