[ITK-users] 1D Complex To Complex FFT of a 2D Image

Matt McCormick matt.mccormick at kitware.com
Fri May 23 01:07:13 EDT 2014


PS. An updated version for ITKv4:

  https://gitorious.org/ultrasound-b-mode/itk-fft-extensions/source/be706d58a19dd3ef35ff2681f9ea18f0e310c32e:

On Wed, May 7, 2014 at 4:55 PM, Matt McCormick
<matt.mccormick at kitware.com> wrote:
> Hi David,
>
> These filters have been implemented in the following Insight Journal
> article [1][2].  See the classes in Submodule/itk-fft-extensions/Code/
>
> Hope this helps,
> Matt
>
> [1] http://hdl.handle.net/10380/3159
> [2] http://insight-journal.org/browse/publication/722
>
> On Tue, May 6, 2014 at 11:42 AM, DVigneault <davis.vigneault at gmail.com> wrote:
>> All--
>>
>> Sorry for the multiple e-mails--I've changed approach from my last post, and
>> wanted to send updated code before anyone spent time looking through the
>> last one.  I'm using the itkFFTWComplexToComplexImageFilter header files as
>> a starting point.  I copied them into a local directory and am editing them
>> directly.  To summarize:
>>
>> 1.  Use line iterator to copy one row into a std::complex<double> array.
>> 2.  Convert to FFTW's input form using FFTW's
>> reinterpret_cast<fftw_complex*>() function
>> 3.  Create the 1d plan
>> 4.  Execute the plan
>> 5.  Use linear iterator to copy into the output image
>> 6.  Destroy the plan
>> 7.  Repeat for the next row
>>
>> This is giving me a Segmentation Fault on step 4 (when I execute the plan).
>> Any ideas where I might be going wrong?
>>
>> Best, and thanks,
>>
>> --Davis
>>
>> itkFFTWComplexToComplexImageFilter.h
>> <http://itk-users.7.n7.nabble.com/file/n33871/itkFFTWComplexToComplexImageFilter.h>
>> itkFFTWComplexToComplexImageFilter.hxx
>> <http://itk-users.7.n7.nabble.com/file/n33871/itkFFTWComplexToComplexImageFilter.hxx>
>>
>>
>>
>>
>>
>> --
>> View this message in context: http://itk-users.7.n7.nabble.com/ITK-users-1D-Complex-To-Complex-FFT-of-a-2D-Image-tp33868p33871.html
>> Sent from the ITK - Users mailing list archive at Nabble.com.
>> _____________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://www.kitware.com/products/protraining.php
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-users


More information about the Insight-users mailing list