David,<br><br>You may also find useful the examples:<br><br>/Insight/Examples/Filtering<br><br>FFTDirectInverse2.cxx<br>FFTDirectInverse.cxx<br>FFTImageFilter.cxx<br>FFTImageFilterFourierDomainFiltering.cxx<br><br><br><br>
     Regards,<br><br><br>              Luis<br><br><br>--------------------------------------------------<br><div class="gmail_quote">On Fri, Jul 24, 2009 at 11:28 AM, C.Cagatay Bilgin <span dir="ltr">&lt;<a href="mailto:bilgic@cs.rpi.edu">bilgic@cs.rpi.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I am not sure which one is faster in ITK but if you<br>
want to see some FFT + inverse FFT example code<br>
here is where you can find it.<br>
<br>
Insight/Testing/Code/Algorithms/itkFFTTest.cxx<br>
<br>
Also the software guide has some discussion about<br>
FFTs in section 6.10. You can download the guide<br>
from<br>
<br>
<a href="http://www.itk.org/ItkSoftwareGuide.pdf" target="_blank">http://www.itk.org/ItkSoftwareGuide.pdf</a><br>
<br>
Regards,<br><font color="#888888">
Cagatay Bilgin</font><div><div></div><div class="h5"><br>
<br>
On Jul 24, 2009, at 10:12 AM, <a href="mailto:svoboda@fi.muni.cz" target="_blank">svoboda@fi.muni.cz</a> wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I&#39;m a newbie in using ITK and I&#39;d like to ask for help. I&#39;d like to implement fast (efficient) convolution of two large 3D images. I thought I could use &quot;itkConvolutionImageFilter&quot; class but I found out that it does not use FFT, i.e. it performs the naive convolution algorithm using neighbourhood, which is quite slow. Am I right?<br>

<br>
If so, I should probably use convolution theorem, i.e. apply FFT to the input image and also to the kernel, them multiply the results and subsequently apply inverse FFT. Is such a code (written in ITK) available somewhere? Thanks a lot!<br>

<br>
With regards<br>
David<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at: <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote>
<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at: <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</div></div></blockquote></div><br>