comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: negative return values after FFT
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: negative return values after FFT [message #49450 is a reply to message #49444] Wed, 26 July 2006 18:21 Go to previous messageGo to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
adisn123@yahoo.com wrote:
> Hi,
>
> I did FFT from spacial domain to frequency domain on an image of about
> 500 x 500 pixel size.
>
> IDL> ft = FFT(image, -1)
>
> After filtering job, it was inversly fourier tranformed back using
> IDL> inverse = FFT(ft, 1)
>
> When I printed "inverse", the values were complex numbers.
>
> 1. Aren't they supposed to real numbers since I tranformed back to
> spcial domain?

That depends upon your filter. If h(x) is a real-valued function, and
H(f) is the corresponding fourier transform, then H(f) has the property
that H(-f) = (H(f))*, where '*' indicates complex conjugation.. If
that is still true after you apply your filter, then the filtered
fourier transform should invert to a real-valued function, too. This
means that your filter function must obey that same identity. Assuming
that your filter is itself real-valued, that means that F(-f) = F(f).
Is that true for your filter?

Keep in mind that the discrete fourier transform is stored with the
positive frequency components in the first half of the array, and the
negative frequency components in the second half. Thus, the requirement
that F(-f) = F(f) corresponds, in terms of array components, to the
requirement that F[i] = F[N-i-1].
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: OUPUT TRIGRID to ENVI
Next Topic: OUPUT TRIGRID to ENVI

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:27:59 PDT 2025

Total time taken to generate the page: 0.00407 seconds