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 #49444] Thu, 27 July 2006 07:22 Go to previous message
edward.s.meinel@aero. is currently offline  edward.s.meinel@aero.
Messages: 52
Registered: February 2005
Member
FFT(*, *) can take REAL input and return a COMPLEX result; however, a
COMPLEX input always returns a COMPLEX result. To get a REAL result you
need to do:

inverse = REAL(ABS(FFT(ft, 1)))

Ed

PS. The one-line solution: inverse =
REAL(ABS(FFT(FILTERING_JOB(FFT(image, -1)), 1)))

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?
>
> When I only get real numbers, using
> IDL> print, float(FFT(ft,1))
> There were some negative values in the array (quite a lot).
>
> For my understanding, the inversely fourier tranformed values should
> represent the pixel values corresponding to individual pixel
> coordinates in 500 x 500 size.
> How do I interpret those negative pixel values?
>
> Thanks.
[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 16:07:28 PDT 2025

Total time taken to generate the page: 0.00258 seconds