stdev
[ XITE Reference Manual | XITE home ]
Name
stdev - calculation of local standard deviation
Syntax
#include <xite/stdiff.h>
int stdev( IBAND input, IBAND output, int dx,
int dy );
Description
stdev calculates and returns the standard
deviation in a local window of size dx * dy.
The border is also processed, calculating the
standard deviation over the part of the window
that is defined.
output(x,y) = sqrt(SUM(sqr(input(x,y)-
mean(x,y)))/windowsize)
Restrictions
input and output must have pixel type unsigned byte.
Return value
0 => ok
1 => bad pixel type input
2 => bad pixel type output
3 => bad dx value
4 => bad dy value
Author
Tor Lønnestad, BLAB, Ifi, UiO
Id
$Id: stdev.c,v 1.24 1997/01/10 16:15:09 svein Exp $