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

Cory Quammen cory.quammen at kitware.com
Sat Nov 23 16:38:04 EST 2013


Ah, I think I know what is going on. The FFTComplexToComplex filter
actually instantiates a concrete subclass when you create an instance. In
the other FFT classes, there are typically two subclasses, one that uses
Vnl and one that uses FFTW. Right now, FFTComplexToComplex only has an
FFTW-enabled subclass, so it works only if you have FFTW support enabled.
FFTW support is disabled by default for licensing reasons.

Try turning on the options ITK_USE_FFTWF (float support) and ITK_USE_FFTWD
(double support) and recompile ITK and then your program.

Best,
Cory


On Sat, Nov 23, 2013 at 7:54 AM, DVigneault <davis.vigneault at gmail.com>wrote:

> To update, I'm still getting the segmentation fault.
>
> I rebuilt as follows:
>
> $ cmake -DCMAKE_BUILD_TYPE=Debug -DModule_ITKReview:BOOL=On ../src
> $ make
>
> And I made sure that these lines were in my CMakeList.txt file
>
> find_package(ITK)
> include(${ITK_USE_FILE})
>
> However, I still get "Segmentation Fault 11" when running the program, and
> the same output from gdb:
>
> (gdb) n
>
> Program received signal EXC_BAD_ACCESS, Could not access memory.
> Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
> 0x0000000100015588 in main (argc=3, argv=0x7fff5fbffab8) at
> /Users/Davis/Desktop/ITKExamples/00_Pipeline/04_harp/src/FFT.cxx:243
> 243         fftInverseFilter->SetInput( maskedShiftFilter->GetOutput() );
> (gdb) p fftInverseFilter
> $1 = {
>   m_Pointer = 0x0
> }
>
>
>
> --
> View this message in context:
> http://itk-insight-users.2283740.n2.nabble.com/Obtaining-Real-Result-from-Inverse-Fourier-Transform-tp7584430p7584447.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
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20131123/f5a69fa8/attachment.html>
-------------- 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