Results 1 to 2 of 2

Thread: fftw problem

  1. #1
    Join Date
    Feb 2006
    Posts
    1

    Default fftw problem

    Hi,

    i have a problem using fftw for a convolution of a image and a filter. The problem is that the dimension of the image changes (according to the documentation to nx*ny*(nz/2+1)) after using rfftwnd_one_real_to_complex. if the filter is created in fourier space (not transformed) it has the dimension of nx*ny*nz. so i have the problem that i cant just multiply the filter with the image because the size reduction in the fourier transform causes a dimension missmatch.

    example:
    image in realspace 32*32*32 with fouriertransform 32*32*17
    created in fourier space: filter 32*32*32

    in matlab for example the size does not change on fourier transforms and i can simply mutliply it:
    [matlab_code]
    wedgedImage = real(ifourier(fourier(image).*fftshift(wedge(size( image), 30)));
    [/matlab_code]


    anyone knows a solution for this problem (how to implement it with fftw)?
    lordy

  2. #2
    Join Date
    Jan 2006
    Posts
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Windows

    Default Re: fftw problem


Similar Threads

  1. Problem in using QHttp with QTimer
    By Ferdous in forum Newbie
    Replies: 2
    Last Post: 6th September 2008, 13:48
  2. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 10:12
  3. Steps in solving a programming problem?
    By triperzonak in forum General Programming
    Replies: 8
    Last Post: 5th August 2008, 09:47
  4. Tricky problem with ARGB widget / UpdateLayeredWindow
    By nooky59 in forum Qt Programming
    Replies: 3
    Last Post: 21st February 2008, 11:35
  5. Replies: 16
    Last Post: 7th March 2006, 16:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.