<div>Hello</div>Extracted from the itk doxygen documentation:<div><br></div><div><span class="Apple-style-span" style="font-family: Geneva, Arial, Helvetica, sans-serif; "><i>As compared to </i><a class="el" href="http://www.itk.org/Doxygen318/html/classitk_1_1DiscreteGaussianImageFilter.html" title="Blurs an image by separable convolution with discrete gaussian kernels. This filter..." style="color: rgb(26, 65, 168); text-decoration: none; "><i>itk::DiscreteGaussianImageFilter</i></a><i>, this filter (</i></span><i>RecursiveGaussianImageFilter) </i><span class="Apple-style-span" style="font-family: Geneva, Arial, Helvetica, sans-serif; "><i>tends to be faster for large kernels, and it can take the derivative of the blurred image in one step. </i></span></div>
<div><span class="Apple-style-span" style="font-family: Geneva, Arial, Helvetica, sans-serif; "><br></span></div><div><span class="Apple-style-span" style="font-family: Geneva, Arial, Helvetica, sans-serif; ">so if you are using smaller sigmas and hence, smaller Gaussians, DiscreteGaussianImageFilter may result in faster execution time.</span></div>
<div><span class="Apple-style-span" style="font-family: Geneva, Arial, Helvetica, sans-serif; "><br></span></div><div><span class="Apple-style-span" style="font-family: Geneva, Arial, Helvetica, sans-serif; ">And now I&#39;m speculating but my guess is that 1 second to perform 3x256x256x22 convolutions is not dramatically slow (it seems reasonable, as those represents more than 4 millions of convolution operations), but i don&#39;t know if it can be done much more faster.</span></div>
<div><span class="Apple-style-span" style="font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 14px; "><br></span></div><div><span class="Apple-style-span" style="font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 14px; "><br>
</span></div><div><br><div class="gmail_quote">On Wed, Jun 16, 2010 at 3:41 PM, Merrem, Andreas <span dir="ltr">&lt;<a href="mailto:andreas.merrem@medma.uni-heidelberg.de">andreas.merrem@medma.uni-heidelberg.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Bill and Sergio,<br>
<br>
Thank you for your answers.<br>
<br>
I tried using nth element adaptors and the VectorIndexSelectionCastImageFilter, but it doesn&#39;t make it faster, what takes time is really the smoothing itself (as you already expected).<br>
<br>
Yes, I built both the itk library and the application in release mode. Do you think a second is a reasonable amount of time for smoothing 3 image volumes of size 256*256*22?<br>
<br>
If anyone knows a smoothing filter that does Gaussian smoothing and works faster than the itk recursive filter (perhaps something in frequency space) that would be a great help.<br>
<br>
<br>
<br>
<br>
<br>
-----Ursprüngliche Nachricht-----<br>
Von: Bill Lorensen [mailto:<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>]<br>
Gesendet: Dienstag, 15. Juni 2010 20:12<br>
An: Merrem, Andreas<br>
Cc: Luis Ibanez; <a href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>
Betreff: Re: [Insight-users] Smoothing Vector Images<br>
<div><div></div><div class="h5"><br>
First question: are you building ITK and your app with Release?<br>
<br>
On Tue, Jun 15, 2010 at 11:34 AM, Merrem, Andreas &lt;<a href="mailto:andreas.merrem@medma.uni-heidelberg.de">andreas.merrem@medma.uni-heidelberg.de</a>&gt; wrote:<br>
&gt; Hi Luis, hi everyone,<br>
&gt;<br>
&gt; I am trying to smooth 3D image volumes of size 256 * 256 * 22 pixels,<br>
&gt; in which each pixel contains a 3 dimensional itk::CovariantVector. The<br>
&gt; vector components should be smoothed independently over the whole<br>
&gt; volume. My current solution is to first copy the 3 vector components<br>
&gt; in each pixel into<br>
&gt; 3 separate images with pixel type float, then use the<br>
&gt; itk::RecursiveGaussianImageFilter for smoothing on all 3 images, and<br>
&gt; finally copy the pixel values of the smoothed images back into the<br>
&gt; covariant vector image.<br>
&gt;<br>
&gt; My problem is that this procedure takes about one second. As a part of<br>
&gt; a registration program, this leads to extremely slow registration<br>
&gt; (about 10 minutes for one 256*256*22 dicom volume). Is there a way to<br>
&gt; use less memory by avoiding the copying, or do you know a different,<br>
&gt; faster technique of applying a Gaussian filter?<br>
&gt;<br>
&gt; Thanks a lot,<br>
&gt;<br>
&gt; Andreas<br>
&gt;<br>
&gt; _____________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt; <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
&gt;<br>
&gt;<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>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<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><br clear="all"><br>-- <br>Sergio Vera<br><br> Alma IT Systems<br> C/ Vilana, 4B, 4º 1ª<br> 08022 Barcelona<br> T. (+34) 932 380 592<br> <a href="http://www.alma3d.com">www.alma3d.com</a><br>

</div>