histoMeanStd

[ XITE Reference Manual | XITE home ]

Name

histoMeanStd - linear scaling to desired mean and std.

Syntax

 #include <xite/statistics.h>

 int histoMeanStd( IBAND b1, IBAND b2,
    double mean, double std );

Description

histoMeanStd performs a linear adjustment of the input band b1 into the output band b2 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.

Identical arguments for b1 and b2 are allowed. The routine accepts all pixel types except complex and double complex.

Restrictions

Only the largest common rectangle of b1 and b2 is processed.

See also

histoEq(3), histoNorm(3), scale(3)

Return value

 0 => ok
 1 => bands have different pixel types
 2 => bands have complex pixel type
 3 => standard deviation <= 0

Author

Tor Lønnestad, BLAB, Ifi, UiO

Id

$Id: histoMeanStd.c,v 1.25 1997/01/27 09:38:54 svein Exp $