histoMeanStd
[ XITE Reference Manual | XITE home ]
Name
histoMeanStd - linear scaling to desired mean and std.
Syntax
histoMeanStd <inimage> <outimage> <mean> [<std>]
Description
histoMeanStd performs a linear adjustment of
the input image into the output image, pixel by pixel,
so that the output band receives the specified
mean and standard deviation, if possible.
Output values below minimum for the actual pixel type are set
to this minimum, and analogically for values above the
maximum.
Default value for std is 50.0.
The program accepts all pixel types except complex and double
complex.
See also
histoEq(1), histoNorm(1), scale(1)
Return value
0 => ok
1 => bad number of arguments
2 => Couldn't open input file
3 => Couldn't open output file
Author
Tor Lønnestad, BLAB, Ifi, UiO
Examples
histoMeanStd mona.img 100.0
histoMeanStd mona.img 100.0 25.5
Id
$Id: histoMeanStd.c,v 1.25 1997/01/27 09:38:54 svein Exp $