absValue
[ XITE Reference Manual | XITE home ]
Name
absValue, fftAmp - take the absolute value of a band
Syntax
#include <xite/negate.h>
int absValue( IBAND b1, IBAND b2 );
#include <xite/fft.h>
int fftAmp( IC_BAND in_band, IR_BAND out_band );
Description
absValue takes the absolute value of b1 into b2. Only largest
common rectangle is handled.
Accepts all pixel types. Both bands must have the same pixel
type, except that if b1 is complex, then b2 may be either
complex or real, and if b1 is double complex, then b2
may be either double complex or double.
Identical in- and out- parameters are legal.
Absolute value of a complex pixel is
sqrt(re * re + im * im)
fftAmp is retained for compatibility with previous XITE
versions. It is a macro call to absValue.
Return value
0 => ok
1 => Bands have unknown pixel type
2 => Illegal combination of pixel types
Author
Tor Lønnestad, BLAB, IfI, UiO
Modified
Svein Bøe
Id
$Id: absValue.c,v 1.30 1997/01/29 10:43:47 svein Exp $