FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > DSP

DSP comp.dsp newsgroup, mailing list

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-07-2009, 05:26 AM
Steve
Guest
 
Posts: n/a
Default Re: fft2 filtering real vs complex question

On Jan 31, 1:12*pm, Rune Allnor <all...@tele.ntnu.no> wrote:
> On 31 Jan, 19:54, Steve <ssheri...@gmail.com> wrote:
>
> > I have a real valued 2D array of magnetic observations F which I am
> > working with in Matlab.

>
> > ifft2(fft2(F))= real, as expected.

>
> > I want to calculate the first vertical integral of those data to get
> > the magnetic potential which should be real as well. That requires
> > dividing by the wavenumber array.

>
> > vertInt=ifft2(fft2(F)./wn)

>
> One obvious question is what the wavenumber array looks like.
> It needs to be symmetric in a certain way for the output data
> to become real-valued. See if you can find a text on image
> processing to learn about the 2D DFT (e.g. the one by Gonzales
> and Woods, 1992 edition).
>
> The second comment is that the 2D FFT, when performed correctly,
> will produce a result that is real-valued to within numerical
> precision. This means that the imaginary part will be non-zero
> but vanishingly small.
>
> Rune


Thanks - vertInt=ifft2(fft2(F)./wn,'symmetric') solved my problem.
I'd read the fft2 docs but wrongly assumed ifft2 was just a sign and
scaling swap.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: fft2 filtering real vs complex question illywhacker DSP 0 02-02-2009 12:08 PM
Re: fft2 filtering real vs complex question illywhacker DSP 0 02-02-2009 12:01 PM
Complex to 2x real - how? dotter DSP 31 10-13-2008 05:03 AM
Two Real in One Complex FFT ? Robert A. DSP 5 02-28-2007 10:55 PM
Real vs. complex FFT Chris Fogelklou DSP 9 04-06-2004 07:45 PM


All times are GMT +1. The time now is 02:53 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved