Next: LOG10(1) Up: WFDB Applications Guide Previous: IHR(1)On This Page

Name

imageplt - plot a greyscale image

Synopsis

imageplt -d nrows ncols [ options ... ] [ file ]

Description

imageplt provides a simple way to plot a greyscale image using plt(1) . The required arguments, nrows and ncols, specify the numbers of rows and columns in the image. The input file (or the standard input, if no input file is specified) contains only the grey levels for each pixel (0 = white, 1 = black). Each entry is an ASCII-coded decimal floating point number, separated from adjacent entries by whitespace (one or more spaces, tabs, or newlines). The first nrows entries are the grey levels for column 0 of the image, botttom to top, and each successive column from left to right of the image follows. If nrows is small, it may be convenient to arrange the image file in columns and rows corresponding to those of the image, but this is not necessary. In no case should the length of a line of input exceed 50000 bytes (defined as MAXLEN in the source).

Options include:

-n
Generate a negative image (1 = white, 0 = black).
-x xmin xmax
Specify the range of the x-coordinates (default: xmin=0, xmax=nrows-1).
-y ymin ymax
Specify the range of the y-coordinates (default: ymin=0, ymax=ncols-1).

The output of imageplt is text in three columns, to be plotted using the -pc option of plt, as in:

imageplt -d 10 10 foo | plt 0 1 2 -pc

See Also

plt(1) , pltf(1)

Availability

imageplt is available as part of the plt package in PhysioToolkit (see SOURCES below) under the GPL.

Author

George B. Moody (george@mit.edu)

Source

http://www.physionet.org/physiotools/plt/plt/misc/imageplt.c


Table of Contents

Up: WFDB Applications Guide


Please e-mail your comments and suggestions to webmaster@physionet.org, or post them to:

PhysioNet
MIT Room E25-505A
77 Massachusetts Avenue
Cambridge, MA 02139 USA

Updated 8 March 2019