FFT phase errors
attackack_at_yahoo.com
Date: 01/18/05
- Next message: Martin Leese: "Re: FFT phase errors"
- Previous message: Herbert Ramoser: "Re: Multi-camera imaging via 2 IEEE 1394a firewire cameras"
- Next in thread: Martin Leese: "Re: FFT phase errors"
- Reply: Martin Leese: "Re: FFT phase errors"
- Messages sorted by: [ date ] [ thread ]
Date: 18 Jan 2005 10:04:27 -0800
I've a c++ code about FFT and when i calculate the phase parameters i
see some errors. In a PDF file about FFT i've seen that:
''...this error occurs whenever the real part is negative. This problem
can be
corrected by testing the real and imaginary parts after the phase has
been
calculated. If both the real and imaginary parts are negative, subtract
180°
(or PI radians) from the calculated phase. If the real part is negative
and the
imaginary part is positive, add 180°(or PI radians). Drill this into
your mind. You have to see the phase only
extending to ±1.5708.
The smallest possible value is always chosen, keeping
the phase between -PI and PI.
It is often easier to understand the phase if it does not have these
discontinuities, even if it means that the phase extends above PI, or
below -PI.
This is called unwrapping the phase.
.............''
Now i ask...there is a c++ code that calculate the phase correctly whit
all the different options?
P.S.: naturally i have real and imaginary component by FFT.
- Next message: Martin Leese: "Re: FFT phase errors"
- Previous message: Herbert Ramoser: "Re: Multi-camera imaging via 2 IEEE 1394a firewire cameras"
- Next in thread: Martin Leese: "Re: FFT phase errors"
- Reply: Martin Leese: "Re: FFT phase errors"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|