Hi David,<br><br><br>The documentation of this filter suggest that a better implementation<br>is certainly possible:<br><br><br>&lt;quote&gt;<br>This filter uses some dodgy coding practices - most notably copying<br>the image data to a linear buffer to allow direct implementation of the <br>
published algorithm. It should therefore be quite a good candidate to<br>carry out tests of itk iterator performance with randomish access patterns. <br>&lt;/quote&gt;<br><br><br><br>If your purpose is to remove objects that are smaller than a certain size<br>
(in number of pixels inside the object), you could achieve this by using<br>the sequence of filters:<br><br><ul><li>itkConnectedComponentImageFilter</li><li>itkRelabelComponentImageFilter</li></ul><br>and calling in the second one, the method:<br>
<br>          SetMinimumObjectSize()<br><br><br>This should work in N-dimensions.<br><br><br>Regards,<br><br><br>      Luis<br><br><br><br>---------------------------------------------------------------------------------------------<br>
<div class="gmail_quote">On Wed, Aug 12, 2009 at 11:55 AM, David Pastor <span dir="ltr">&lt;<a href="mailto:david.pastor@die.upm.es">david.pastor@die.upm.es</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;">






<div bgcolor="#ffffff">
<div><font size="2" face="Arial">Hello,</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">I&#39;m trying to run the <font size="2">itk::AreaOpeningImageFilter&lt; InputImageType, InputImageType &gt; on 4d 
images, but it does not accept many steps (actually less than 5). The same 
happens with the ConnectedTree package.</font></font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">Is there any way to increase the capacity of these 
filters?</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">Thanks a lot!</font></div>
<div><font size="2" face="Arial"></font> </div><font color="#888888">
<div><font size="2" face="Arial">David</font></div></font></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>
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>
<br></blockquote></div><br>