statistics
[ XITE Reference Manual | XITE home ]
Name
statistics, hstatistics - extract statistical information
from a band
Syntax
#include <xite/statistics.h>
int statistics( IBAND b, int* min, int* max,
int* median, double* mean, double* stdev );
int hstatistics( histogram histo, int* min,
int* max, int* median, double* mean,
double* stdev );
Description
hstatistics calculates min, max, median, mean and standard
deviation in a band from the histogram histo.
statistics calculates min, max, median, mean and standard
deviation in the band b, by first producing the histogram
and sending it to hstatistics.
Restrictions
statistics only works for bands with unsigned byte pixels.
Return value
For 'hstatistics': Always 0.
For 'statistics':
0 => ok
2 => Pixel-type is not unsigned byte
Author
Tor Lønnestad, BLAB, Ifi, UiO
Id
$Id: statistics.c,v 1.40 1997/01/29 10:45:49 svein Exp $