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

Davis Vigneault davis.vigneault at gmail.com
Wed Dec 4 22:27:01 EST 2013


Sorry, I should have mentioned that--I've installed FFTW 3.3.3, ITK 4.4.2, and cmake 2.8.11.1, and I'm on OsX 10.8.5.

I changed ITK_DIR to /Applications/ITK/build using ccmake ../src when building the FFTW example (not when building ITK--is this what you meant for me to do?), but now I'm getting this error:

$ make
Linking CXX executable fftw
ld: library not found for -litkdouble-conversion
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [fftw] Error 1
make[1]: *** [CMakeFiles/fftw.dir/all] Error 2
make: *** [all] Error 2

Any ideas?  Thanks so much for your help!

On Dec 4, 2013, at 8:49 PM, Xiaoxiao Liu <xiaoxiao.liu at kitware.com> wrote:

> Regarding this error:
> error: "FFTW 3.3.2 or later is required so that FFTW_WISDOM_ONLY is
> defined."
> 
> Did you try FFTW 3.3.3 ?
> http://www.fftw.org/download.html
> 
> Did I miss something(sorry, I didn't go through the entire stream)
> 
> P.S.
> When you build your own project and using ITK as an external library, as long as you set up "ITK_DIR" correctly, 
> the corresponding ${ITK_DIR}/ ITKConfig.cmake will be used.
> 
> 
> On Wed, Dec 4, 2013 at 4:43 PM, DVigneault <davis.vigneault at gmail.com> wrote:
> Hello again--
> 
> I started this thread a while back because I'd been having trouble getting a
> complex result from an inverse FFT.  I was advised to use the
> FFTWInverseFFTImageFilter, which required that I install fftw3 and then
> rebuild ITK with ITK_USE_REVIEW, ITK_USE_FFTWD, and ITK_USE_SYSTEM_FFTW set
> to on.  However, after taking these steps, I get this error when trying to
> compile  this example
> <http://www.itk.org/Doxygen/html/Filtering_2FFTDirectInverse2_8cxx-example.html>
> (I've only changed 'float' to 'double' and 'ITK_USE_FFTF' to 'ITK_USE_FFTD'
> in the example).
> 
> error: "FFTW 3.3.2 or later is required so that FFTW_WISDOM_ONLY is
> defined."
> 
> I came across something which I *hope* will help to solve the problem.  I
> noticed that the ITKConfig.cmake file in my ITK build directory has the
> appropriate settings, but the ITKConfig.cmake file in my
> /usr/local/lib/cmake/ITK-4.4/ directory does not (exerpts pasted below).
> Should I be concerned about this, and could this be the cause of my problem?
> If so, how could I fix it?  Also, if anyone could post a CMakeLists.txt file
> that they have used to build the above example, it would be greatly
> appreciated!
> 
> Build directory:
> 
> # Add configuration with FFTW
> set(ITK_USE_FFTWD "ON")
> set(ITK_USE_FFTWF "OFF")
> set(ITK_USE_SYSTEM_FFTW "ON")
> set(ITK_FFTW_INCLUDE_PATH "/usr/local/include")
> set(ITK_FFTW_LIBDIR "/usr/local/lib")
> 
> /usr/local/lib/cmake/ITK-4.4/:
> 
> # Add configuration with FFTW
> set(ITK_USE_FFTWD "OFF")
> set(ITK_USE_FFTWF "OFF")
> set(ITK_USE_SYSTEM_FFTW "OFF")
> set(ITK_FFTW_INCLUDE_PATH
> "${ITK_INSTALL_PREFIX}/include/ITK-4.4/Algorithms")
> set(ITK_FFTW_LIBDIR "${ITK_INSTALL_PREFIX}/lib/ITK-4.4")
> 
> 
> Best, and thanks,
> 
> --Davis
> 
> 
> 
> --
> View this message in context: http://itk-users.7.n7.nabble.com/Obtaining-Real-Result-from-Inverse-Fourier-Transform-tp32814p32898.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
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community
> 
> 
> 
> -- 
> 
> 
> ---------------------------------------------
> Xiaoxiao Liu, Ph.D.
> R & D Engineer
> Kitware Inc.
> Clifton Park, NY
> Phone: (518) 881-4924  or  (518) 371-3971 x124
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20131204/708dce5c/attachment.htm>
-------------- next part --------------
_____________________________________
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