histo2ps

[ XITE Reference Manual | XITE home ]

Name

histo2ps - make a Postscript plot of a histogram

Syntax

 histo2ps [-mimg maskimage] [-mval maskval] [-hmax max]
          [-cum] [-h header] [-auto] [-ps] <infile>
          [<PostScript-file>]

Description

Make a Postscript plot of a histogram from an image. The image must be a one band unsigned byte image. If a maskfile is specified only pixels with a corresponding mask == maskval (default 1) is counted in the histogram. All values will be presented in percent. You may scale the histogram by giving the max histogram value (default 100) or autoscaling with the switch -auto. The switch -cum gives the cumulative histogram. The PostScript-code will be Encapsulated PostScript (suitable for inclusion in other documents), unless the option -ps is used. The output is written to stdout or <PostScript-file>.

Author

Otto Milvang, NR

Examples

 histo2ps -hmax 10 mona.img
 histo2ps -auto mona.img monaHisto.ps

Id

$Id: histo2ps.c,v 1.20 1997/01/09 16:31:54 svein Exp $, Blab, UiO