phase
[ XITE Reference Manual | XITE home ]
Name
phase, fftPhase - phase of complex image band
Syntax
#include <xite/arithmetic.h>
int phase( IBAND in_band, IBAND out_band );
#include <xite/fft.h>
int fftPhase( IC_BAND in_band,
IR_BAND out_band );
Description
phase computes the phase in radians of a complex or double
complex in_band. If out_band is an unsigned byte band,
the result will be scaled so that the interval 0 - 2*pi is
scaled to the interval 0 - 255. If out_band is a
real or double band, the result will be left in radians.
fftPhase is retained for compatibility with previous XITE
versions. It is a macro call to phase.
Restrictions
in_band must be complex or double complex. out_band must
be real, double or unsigned byte.
See also
phase(1), power(3), square(3), squareRoot(3), absValue(3),
imag(3), real(3), fftDisplay(3)
Restrictions
None
Return value
0 - OK
1 - bands different xsize
2 - bands different ysize
3 - in_band has wrong pixtyp
4 - out_band has wrong pixtyp
Author
Trond Muri Sørensen (wrote fftPhase)
Modified
Svein Bøe
Id
$Id: phase.c,v 1.32 1997/05/27 14:47:11 svein Exp $