Hi,<br><br>I am trying to take the inverse FFT of a complex image. However, I couldn't make it work. I searched the mailing list, and found the following mail (<a href="http://public.kitware.com/pipermail/insight-users/2005-June/013559.html">
http://public.kitware.com/pipermail/insight-users/2005-June/013559.html</a>). <br><br>I use the latest ITK version. The mail is quite old, but is it true?<br><br>Thanks in advance...<br><br>haris<br><br><pre>&gt;<i> Martin,
<br></i>&gt;<i><br></i>&gt;<i> I believe that the current FFT implementations will only work with<br></i>&gt;<i> taking forward FFT of float and double data types (i.e. not complex,<br></i>&gt;<i> integer, RGB, vector, or any other type of data). The current
<br></i>&gt;<i> implementation also takes advantage of the complex conjugate symmetry<br></i>&gt;<i> when working with real data.<br></i>&gt;<i><br></i>&gt;<i> Hans<br></i>&gt;<i><br></i>&gt;<i><br></i>&gt;<i><br></i>&gt;
<i><br></i>&gt;<i> On Jun 09, 2005 07:41 AM, Martin Kavec &lt;<a href="http://www.itk.org/mailman/listinfo/insight-users">kavec at messi.uku.fi</a>&gt; wrote:<br></i>&gt;<i><br></i>&gt;<i> &gt; Hi,<br></i>&gt;<i> &gt;<br>
</i>&gt;<i> &gt; following code does not compile:<br></i>&gt;<i> &gt;<br></i>&gt;<i> &gt;   typedef std::complex&lt;float&gt; ComplexPixelType;<br></i>&gt;<i> &gt;   const   unsigned int        Dimension = 3;<br></i>&gt;<i>
 &gt;<br></i>&gt;<i> &gt;   typedef itk::Image&lt; ComplexPixelType, Dimension &gt; ComplexImageType;<br></i>&gt;<i> &gt;<br></i>&gt;<i> &gt;   typedef itk::ImageFileReader&lt; ComplexImageType &gt;  ReaderType;<br></i>&gt;
<i> &gt;   ReaderType::Pointer reader = ReaderType::New();<br></i>&gt;<i> &gt;   reader-&gt;SetFileName( &quot;foo.hdr&quot; );<br></i>&gt;<i> &gt;<br></i>&gt;<i> &gt;<br></i>&gt;<i> &gt; typedef itk::VnlFFTComplexConjugateToRealImageFilter&lt; ComplexPixelType
<br></i>&gt;<i> &gt;   ,<br></i>&gt;<i> &gt; Dimension &gt;  FFTFilterType;<br></i>&gt;<i> &gt;   FFTFilterType::Pointer fftFilter = FFTFilterType::New();<br></i>&gt;<i> &gt;<br></i>&gt;<i> &gt;   fftFilter-&gt;SetInput( reader-&gt;GetOutput() );
<br></i>&gt;<i> &gt;<br></i>&gt;<i> &gt; So I am in doubts, if Fourier transform in ITK is actually a complex<br></i>&gt;<i> &gt; FFT?<br></i>&gt;<i> &gt;</i></pre><br>