[ITK Community] [Insight-users] Obtaining Real Result from Inverse Fourier Transform

DVigneault davis.vigneault at gmail.com
Sat Nov 23 20:22:29 EST 2013


Thanks again for all the help, Cory!

I've rebuilt ITK with ITK_USE_FFTWF and ITK_USE_FFTWD on.  I saw during the
build that the source was downloading, and now there are 'fftw', 'fftwd',
and 'fftwf' directories in the ITK build tree.  However, when I recompile my
program, I get the same segmentation fault, and the filter is still not
initialized.

I tried doing the forward FFT (from earlier in my program) with the FFTW
filter to see if the FTW library was linking, but I get the following error:

/usr/local/include/ITK-4.4/itkFFTWCommon.h:31:2: error: "FFTW 3.3.2 or later
is required so that FFTW_WISDOM_ONLY
      is defined."

Some googling brought me to  this thread
<http://www.itk.org/pipermail/insight-users/2005-November/015757.html>  ,
where someone explains how to link the FFTW library with the CMakeLists.txt
file.  I wasn't entirely clear on his instructions, but I tried these steps:

1.  Copying the FindFFTW.cmake file from the ITK source tree to my program's
source directory
2.  Uncommenting "mark_as_advanced(ITK_USE_FFTWF)" and "option(ITK_USE_FFTWF
"Use single precision FFTW if found" ON)"
3.  Adding "/Applications/ITK/build/fftw/include" to the FFTW_INC_SEARCHPATH
variable in the FindFFTW.cmake file (because that's where the fftw3.h file
is)
3.  Adding "include(FindFFTW.cmake)" to my CMakeLists.txt file

After taking these steps, I get the same error, suggesting that the FFTW
library still isn't linked.

I apologize for filling everyone's inboxes--hopefully all this will be
helpful to someone else at some point.



--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/Obtaining-Real-Result-from-Inverse-Fourier-Transform-tp7584430p7584449.html
Sent from the ITK Insight 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 Community mailing list