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

Home » Public Forums » archive » Re: Reorganizing 2D FFT for Conventional Viewing [?]
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: Reorganizing 2D FFT for Conventional Viewing [?] [message #4463 is a reply to message #4453] Thu, 22 June 1995 00:00 Go to previous messageGo to previous message
Rolf P. W\"urtz is currently offline  Rolf P. W\"urtz
Messages: 3
Registered: June 1995
Junior Member
trond@smith.phys.ucalgary.ca (Trond Steinar Trondsen) wrote:
> I'm trying to rearrange the 2D FFT so that zero frq is in the middle,
> and all other frqs end up in the right place.

sx = size(x)
y=fft(x, -1)
rearranged = shift(y,sx(1)/2, sx(2)/2)

If youre array dimensions are even, zero frq cannot be in the middle,
it ends up at coords sx(1)/2, sx(2)/2.

Greetings
Rolf
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: [Q] hybrid median filter
Next Topic: Re: Can anyone explain?

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

Current Time: Wed Oct 08 19:47:40 PDT 2025

Total time taken to generate the page: 0.00380 seconds