squareRoot
[ XITE Reference Manual | XITE home ]
Name
squareRoot - take the square root of each pixel value
Syntax
#include <xite/arithmetic.h>
int squareRoot( IBAND input, IBAND output,
double scale );
Description
squareRoot places the square root of the input band
into the output band:
output(x,y) = sqrt(input(x,y)) * scale
Only the largest rectangle common to the two bands
is handled.
Accepts all pixel types except complex and double complex.
Input and output must have the same pixel type, otherwise use
convertBiff.
If the result is outside the domain of the actual pixel type,
the nearest possible value is returned.
Identical arguments for input and output are allowed.
Return value
0 => ok
1 => Illegal combination of pixel types
2 => Illegal pixel type
See also
squareRoot(1), square(3), power(3), absValue(3), phase(3),
imag(3), real(3), scale(3), multiply(3), divide(3),
convertBand(3)
Author
Tor Lønnestad, BLAB, Ifi, UiO
Id
$Id: squareRoot.c,v 1.34 1997/05/27 14:46:24 svein Exp $