[Insight-users] I have a problem With FFT in ITK

Luis Ibanez luis.ibanez at kitware.com
Thu Jul 20 19:26:11 EDT 2006


Hi Simon,

Thanks for pointing this out.

The boolean option for FFTW_INCLUDE_PATH has now been
removed from the FindFFTW.cmake file:

http://www.itk.org/cgi-bin/viewcvs.cgi/CMake/FindFFTW.cmake?root=Insight&r1=1.8&r2=1.9

You may want to try it after updating your CVS checkout.


Please let us know if you find any other problem.


    Thanks


       Luis


----------------------
Simon Warfield wrote:
> Luis Ibanez wrote:
> 
>>
>> Hi Simon,
>>
>> We know that a problem exists at the level of using FFT filters
>> in ITK that are based on the VNL ones. However, we didn't get to
>> find the source of the problem.
>>
>> It may well be that the ITK FFT filters are missing some operation
>> that is required for the good use of the vnl FFT; or it may be an
>> actual bug in the VNL implementation.
>>
>> The observation is that when you take an image, computes its FFT
>> and then apply the inverse FFT, you don't recover the original
>> image. The returned image is structured in different blocks and
>> it has non-zero values in places where it should be zero.
>>
>> The simplest way to test this is with the examples:
>>
>>    Insight/Examples/Filtering/
>>                  FFTDirectInverse.cxx
>>                  FFTDirectInverse2.cxx
>>
>>
>> The first one uses VNL,
>> while the second one uses FFTW.
>>
>>
>> If you have any suggestions on what may be the source
>> of the problem we will be happy to give them a try.
> 
> 
> I don't have an idea about what might be going wrong with the VNL FFT, 
> but there is a bug in the CMake configuration file for FFTW.
> line 15 of
> InsightToolkit-2.8.1/CMake/FindFFTW.cmake
>  defines a boolean option for FFTW_INCLUDE_PATH.  This line should be 
> deleted.
> The later FIND_PATH in the same file will allow the FFTW_INCLUDE_PATH to 
> be set.
> 
> 
> -- 
> Simon
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 
> 




More information about the Insight-users mailing list