scale

[ XITE Reference Manual | XITE home ]

Name

scale - linear scaling of pixel values

Syntax

 scale [-scale <scale>] [-offset <offset>] <input>
       <output>

Description

scale scales the input image band by band, according to the formula:

 output(x,y) = scale*input(x,y) + offset

Accepts all pixel types. If the result is outside the domain of the actual pixel type, the nearest possible value is returned.

Options

-scale scale
Default: 1.0.

-offset offset
Default: 0.0.

See also

biffConvert(1)

Author

Tor Lønnestad, BLAB, Ifi, UiO

Examples

 scale -scale 0.5 mona.img darkmona.img
 scale -scale 0.5 -offset 100 mona.img lightmona.img
 scale -scale -1.0 -offset 255.0 mona.img negmona.img

Id

$Id: scale.c,v 1.36 1997/05/27 12:36:42 svein Exp $