In that case, Maybe you can use any of the region growing functions that ITK has... this is feasible if you know in advance seed points inside your structures. <div>Otherwise you may need to do more manual filling of the regions.<br>
<br><div class="gmail_quote">2010/10/7 Rahul P.Kumar <span dir="ltr">&lt;<a href="mailto:aarkay0001@yahoo.com">aarkay0001@yahoo.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div style="font-family:times new roman,new york,times,serif;font-size:12pt">Hi all,<br><br>Thanks a lot for the response. But I may have to rephrase my question. My actual question is, how to fill large closed structures? For eg, to fill pixels inside a cirlce.<br>
<br>Cheers<br><font color="#888888">Rahul<br></font><div class="hm"><br><br><br></div><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div class="hm"><font face="Tahoma" size="2"><hr size="1">
<b><span style="font-weight:bold">From:</span></b> Sergio Vera &lt;<a href="mailto:sergio.vera@alma3d.com" target="_blank">sergio.vera@alma3d.com</a>&gt;<br><b><span style="font-weight:bold">To:</span></b> Dan Mueller &lt;<a href="mailto:dan.muel@gmail.com" target="_blank">dan.muel@gmail.com</a>&gt;<br>
<b><span style="font-weight:bold">Cc:</span></b> Rahul Kumar &lt;<a href="mailto:aarkay0001@yahoo.com" target="_blank">aarkay0001@yahoo.com</a>&gt;; &quot;<a href="mailto:Insight-users@itk.org" target="_blank">Insight-users@itk.org</a>&quot; &lt;<a href="mailto:Insight-users@itk.org" target="_blank">Insight-users@itk.org</a>&gt;<br>
<b><span style="font-weight:bold">Sent:</span></b> Thu, October 7, 2010 3:44:52 PM<br><b><span style="font-weight:bold">Subject:</span></b> Re: [Insight-users] Filling holes<br></font></div><div><div></div><div class="h5">
<br>
<div>Hi</div>IMHO the VotingBinary*HoleFillingImageFilters works better when holes are very different in size as you don&#39;t have to specify a fixed kernel-size (as opposed to morphology closing)<br><br><div class="gmail_quote">

On Thu, Oct 7, 2010 at 9:08 AM, Dan Mueller <span dir="ltr">&lt;<a rel="nofollow" href="mailto:dan.muel@gmail.com" target="_blank">dan.muel@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">

Hi Rahul,<br>
<br>
You may want to consider the following filters for binary images:<br>
    Code/BasicFilters/itkVotingBinaryHoleFillingImageFilter.h<br>
    Code/BasicFilters/itkVotingBinaryIterativeHoleFillingImageFilter.h<br>
<br>
Or this filter for greyscale images:<br>
    Code/BasicFilters/itkGrayscaleFillholeImageFilter.h<br>
<br>
HTH<br>
<br>
Cheers, Dan<br>
<div><div></div><div><br>
On 7 October 2010 03:09, Rahul Kumar &lt;<a rel="nofollow" href="mailto:aarkay0001@yahoo.com" target="_blank">aarkay0001@yahoo.com</a>&gt; wrote:<br>
&gt; Hi everyone,<br>
&gt;<br>
&gt; Can someone suggest me a best method for filling holes using ITK?<br>
&gt; Thanks in advance.<br>
&gt;<br>
&gt; Regards,<br>
&gt; Rahul P Kumar<br>
_____________________________________<br>
Powered by <a rel="nofollow" href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br><span>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a></span><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br><span>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a></span><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br><span>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a></span><br>
<br>
Follow this link to subscribe/unsubscribe:<br><span>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a></span><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 rel="nofollow" href="http://www.alma3d.com" target="_blank">www.alma3d.com</a><br>


</div></div></div></div>
</div><br>







      </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>