negate

[ XITE Reference Manual | XITE home ]

Name

negate - negate an image

Syntax

negate <inimage> <outimage>

Description

negate negates an image. Accepts all pixel types. For pixel types including negative values, the result is
 output = -input
For pixel types NOT including negative values, the result is
 output = MAX - input
where MAX is the largest value of the actual pixel type.

See also

absValue(1)

Author

Tor L|nnestad, BLAB, IfI, UiO

Examples

negate mona.img moneg.img

Id

$Id: negate.c,v 1.26 1997/01/29 10:43:50 svein Exp $