image_minmax

[ XITE Reference Manual | XITE home ]

Name

image_minmax - find min and max in an image

Syntax

 image_minmax [-f] [-n <band>] [-min] [-max]
    <filename_1> [... <filename_n>]

Description

image_minmax finds the minimum and maximum value of each band in one or more images. If no options are given, the result will be written formatted. See example.

If one or more options are specified, the output will be unformatted.

Options

You may specify more than one option.

-f
Print the filename.

-n <band>
Print min and/or max for band.

-min
Print minimum value only.

-max
Print maximum value only.

Restrictions

Does not work on complex band.

Return value

0 = success, 2 = failure

Author

Otto Milvang

Examples

 xite> image_minmax mona.img
 mona.img, band 1: Min 27.000000, Max 246.000000

 xite> image_minmax -min -max mona.img
 27.000000 246.000000

 xite> cat mona | image_minmax - -min -max
 27.000000 246.000000

Id

$Id: band_minmax.c,v 1.28 1997/01/29 10:45:48 svein Exp $