Re: Find library that support 2Dfft and convolutions



??? wrote:

http://www.jjj.de/fft/fftpage.html#introrem
I find this url that contains some fft source codes
But when I use it,I meet a problem that the image size is not power of  two.
how can I solve it?can I just do padding zero to image?

Zero padding is probably wisest. You probably need to decide what you want to do about the implicit cyclic boundary conditions of the FFT.


And could you tell me the issues about  convolution more detailly
I just think convolution as:
     fft
 i1==>I1                                                         ifft
     fft        ==>  I1*I2(per pixel multiplication)  ==> result
 i2==>I2

Yes. But you have to be a bit careful about the multiplications being complex numbers and if you used an optimised real to complex conjugate transform there will be 4 special cases of pure real number DC, and alternating components. May also be normalisation factors too.


Regards,
Martin Brown
.



Relevant Pages

  • Re: FFT for N Not a Power of 2
    ... remove the largest number of observations that are a power of 2, ... There are FFT algorithms that work for any N, including prime numbers, but ... with floor rising near the two tones. ... had to ensure that the length of the window and periods of each of the ...
    (sci.optics)
  • Re: Why is more power required for BASS?
    ... Beware of FFT - that shows energy, not power. ... a steady 1V RMS 1 kHz tone may display ...
    (rec.audio.pro)
  • Re: Windowed FFT power and amplitude spectrum
    ... PS: You can find a nice explenation about coherent power gain on this page: ... > Here is another fascinating question on FFT spectrum!! ... > windowing is applied to the time series before FFT is applied. ... > multiplied by a scaling factor but I am not sure how this scaling factor ...
    (comp.dsp)
  • Re: FFT and DFT
    ... in article 4415D32C.3B47ECE5@xxxxxxxxxxx, Mike Fontenot at ... I use the function cvDFT in Visual C++. ... but the fft requires that the number ... number is a power of 2. ...
    (sci.physics)
  • Re: A "slanted edge" analysis program
    ... Here is an implementation of Glassman's method of FFT, ... The code is lifted from PAL (Public Ada ... for I in x'Range loop ... The power, elegance and simplicity of a hand grenade. ...
    (comp.periphs.scanners)