Hi Syrine,<br><br>you can try this ITK filter:<br><br><a href="http://www.itk.org/Doxygen/html/classitk_1_1ShrinkImageFilter.html">http://www.itk.org/Doxygen/html/classitk_1_1ShrinkImageFilter.html</a><br><br>Regards,<br>Xabier<br>
<br><div class="gmail_quote">2009/11/13 Syrine Sahmim <span dir="ltr"><<a href="mailto:syrine.sahmim@yahoo.fr">syrine.sahmim@yahoo.fr</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>Hi,<br><br>I'm testing a code on matlab to see the result before doing it on itk or vtk.the error i have is a warning "out of memory". So i guess that i have to reduce the size of the dicom serie 3D that i use. I tried on matlab the imresize function but there are some problem with it.<br>
If someone tells me how to do it on itk or vtk or even matlab.<br>Thank you<br><br>Regards<br>syrine<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;">
<font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">De :</span></b> Roman Grothausmann <<a href="mailto:roman.grothausmann@helmholtz-berlin.de" target="_blank">roman.grothausmann@helmholtz-berlin.de</a>><br>
<b><span style="font-weight: bold;">À :</span></b>
<a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a><br><b><span style="font-weight: bold;">Envoyé le :</span></b> Ven 13 Novembre 2009, 10 h 31 min 48 s<br><b><span style="font-weight: bold;">Objet :</span></b> Re: [Insight-users] equivalence of Gaussian and low-pass-FFT<br>
</font><br>Thanks every body for the answers. With Insight-book I mean Insight Into Images: <a href="http://www.akpeters.com/product.asp?ProdCode=2175" target="_blank">http://www.akpeters.com/product.asp?ProdCode=2175</a><br>
<br>So it's only equivalent if I multiply the FFT with the FFT of the convolution Kernel I use in real space.<br>I think though there's one difference: Using the FFT allows to reduce the discretization (a better discrete interpolation) of the result since it's calculated with floating point precision. Convolving with a (wide) Gaussian gives me very few grey values.<br>
<br>Regards,<br>Roman<br><br>C.Cagatay Bilgin wrote:<br>> Your question is actually independent of the ITK<br>>
usage. Convolution in time domain corresponds<br>> to multiplication in frequency domain, so gaussian<br>> filtering your image is actually multiplying the FFT<br>> of your image with the FFT of the gaussian filter you<br>
> used (you might need some padding as most probably<br>> your gaussian filter is was smaller than your image).<br>> <br>> If you want to clean up your image a little, I would say<br>> do not go to FFT just do it in time domain using the<br>
> gaussian filters provided in the toolkit as you will<br>> need less number of lines of code.<br>> <br>> By the way, is the Insight-Book are you referring<br>> the software manual or something else ?<br>> <br>
> Regards,<br>> ---------------------------------------------------------------------------- <br>> Cemal Cagatay Bilgin,<br>> Ph.D Candidate in Computer Science Department at RPI<br>> <a href="mailto:bilgic@cs.rpi.edu" target="_blank">bilgic@cs.rpi.edu</a> - <a href="http://www.cs.rpi.edu/%7Ebilgic" target="_blank">http://www.cs.rpi.edu/~bilgic</a><br>
> Lally 01A, 110 8th Street Troy, NY 12180-3590, USA.<br>> Tel: (518) 276-8489, Fax:(518) 276-4033<br>> <br>> On Nov 12, 2009, at 10:46 AM, Roman Grothausmann wrote:<br>> <br><br><br>_____________________________________<br>
<span>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a></span><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>
</div><br>
</div><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>
<br></blockquote></div><br>