<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <font face="Helvetica, Arial, sans-serif">Hi Rahul,<br>
      I may be dead wrong (or there may be better, smarter or easier
      solutions), but I want to believe that one may use a region
      growing algorithm to solve this problem. <br>
      <br>
      In theory, you should be able to place a seed point inside the
      structure of interest, and then provide some parameters in order
      to define the inclusion criterion; you may need some trial and
      error in order to find the algorithm and parameters that best
      match your interests.<br>
      <br>
      I would dare to say that the result you will get will greatly
      depend on the transition you have in the boundary of your region.<br>
      <br>
    </font>Regards,<br>
    JON HAITZ<br>
    <br>
    <br>
    <br>
    <br>
    El 07/10/2010 9:54, Rahul P.Kumar escribi&oacute;:
    <blockquote cite="mid:42307.19421.qm@web65808.mail.ac4.yahoo.com"
      type="cite">
      <style type="text/css"><!-- DIV {margin:0px;} --></style>
      <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>
          Rahul<br>
          <br>
          <br>
          <br>
          <div style="font-family: times new roman,new york,times,serif;
            font-size: 12pt;"><font face="Tahoma" size="2">
              <hr size="1"><b><span style="font-weight: bold;">From:</span></b>
              Sergio Vera <a class="moz-txt-link-rfc2396E" href="mailto:sergio.vera@alma3d.com">&lt;sergio.vera@alma3d.com&gt;</a><br>
              <b><span style="font-weight: bold;">To:</span></b> Dan
              Mueller <a class="moz-txt-link-rfc2396E" href="mailto:dan.muel@gmail.com">&lt;dan.muel@gmail.com&gt;</a><br>
              <b><span style="font-weight: bold;">Cc:</span></b> Rahul
              Kumar <a class="moz-txt-link-rfc2396E" href="mailto:aarkay0001@yahoo.com">&lt;aarkay0001@yahoo.com&gt;</a>;
              <a class="moz-txt-link-rfc2396E" href="mailto:Insight-users@itk.org">"Insight-users@itk.org"</a> <a class="moz-txt-link-rfc2396E" href="mailto:Insight-users@itk.org">&lt;Insight-users@itk.org&gt;</a><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><br>
            <div>Hi</div>
            IMHO the VotingBinary*HoleFillingImageFilters works better
            when holes are very different in size as you don'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 moz-do-not-send="true" rel="nofollow"
                  ymailto="mailto:dan.muel@gmail.com" target="_blank"
                  href="mailto:dan.muel@gmail.com">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>
                &nbsp;
                &nbsp;Code/BasicFilters/itkVotingBinaryHoleFillingImageFilter.h<br>
                &nbsp;
                &nbsp;Code/BasicFilters/itkVotingBinaryIterativeHoleFillingImageFilter.h<br>
                <br>
                Or this filter for greyscale images:<br>
                &nbsp; &nbsp;Code/BasicFilters/itkGrayscaleFillholeImageFilter.h<br>
                <br>
                HTH<br>
                <br>
                Cheers, Dan<br>
                <div>
                  <div class="h5"><br>
                    On 7 October 2010 03:09, Rahul Kumar &lt;<a
                      moz-do-not-send="true" rel="nofollow"
                      ymailto="mailto:aarkay0001@yahoo.com"
                      target="_blank" href="mailto:aarkay0001@yahoo.com">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 moz-do-not-send="true" rel="nofollow"
                      target="_blank" href="http://www.kitware.com">www.kitware.com</a><br>
                    <br>
                    Visit other Kitware open-source projects at<br>
                    <span>
                      <a moz-do-not-send="true" target="_blank"
                        href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></span><br>
                    <br>
                    Kitware offers ITK Training Courses, for more
                    information visit:<br>
                    <span>
                      <a moz-do-not-send="true" target="_blank"
                        href="http://www.kitware.com/products/protraining.html">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 moz-do-not-send="true" target="_blank"
                        href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a></span><br>
                    <br>
                    Follow this link to subscribe/unsubscribe:<br>
                    <span>
                      <a moz-do-not-send="true" target="_blank"
                        href="http://www.itk.org/mailman/listinfo/insight-users">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>
            &nbsp;Alma IT Systems<br>
            &nbsp;C/ Vilana, 4B, 4&ordm; 1&ordf;<br>
            &nbsp;08022 Barcelona<br>
            &nbsp;T. (+34) 932 380 592<br>
            &nbsp;<a moz-do-not-send="true" rel="nofollow" target="_blank"
              href="http://www.alma3d.com">www.alma3d.com</a><br>
          </div>
        </div>
      </div>
      <br>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <style type="text/css">.Estilo1 { font-size: 10px; color: rgb(255, 255, 255); font-family: Verdana,Arial,Helvetica,sans-serif; }.Estilo2 { font-size: 10px; color: rgb(255, 255, 255); font-family: Verdana,Arial,Helvetica,sans-serif; font-weight: bold; }.Estilo3 { font-size: 10px; color: gray; font-family: Arial Narrow,Arial,Helvetica,sans-serif; }</style>
      <table align="center" border="0" cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td bgcolor="#00afdb">
              <div align="left"><img
                  src="cid:part1.00070100.06060106@vicomtech.org"
                  alt="Vicomtech logotipo" width="211" height="126"></div>
            </td>
            <td valign="middle" bgcolor="#00afdb">
              <table width="100%" align="center" border="0"
                cellpadding="0">
                <tbody>
                  <tr>
                    <td>
                      <table align="center" border="0" cellpadding="0">
                        <tbody>
                          <tr>
                            <td><span class="Estilo2">Jon&nbsp;Haitz&nbsp;Legarreta&nbsp;Gorro&ntilde;o</span></td>
                          </tr>
                          <tr>
                            <td><span class="Estilo1">Investigador&nbsp;/
                                Researcher</span></td>
                          </tr>
                          <tr>
                            <td><span class="Estilo1">eSalud y
                                Aplicaciones&nbsp;Biom&eacute;dicas&nbsp;/ eHealth and
                                Biomedical&nbsp;Applications</span></td>
                          </tr>
                          <tr>
                            <td><span class="Estilo1"><a
                                  href="mailto:jhlegarreta@vicomtech.org">jhlegarreta@vicomtech.org</a></span></td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>
                </tbody>
              </table>
            </td>
            <td width="10" bgcolor="#00afdb">&nbsp;</td>
            <td valign="middle" bgcolor="#00afdb">
              <table width="100%" align="center" border="0"
                cellpadding="0">
                <tbody>
                  <tr>
                    <td>
                      <table align="center" border="0" cellpadding="0">
                        <tbody>
                          <tr>
                            <td colspan="2" class="Estilo1">Mikeletegi&nbsp;Pasealekua,&nbsp;57&nbsp;-
                              Parque&nbsp;Tecnol&oacute;gico</td>
                          </tr>
                          <tr>
                            <td colspan="2" class="Estilo1">20009&nbsp;Donostia&nbsp;-
                              San&nbsp;Sebasti&aacute;n&nbsp;- Spain</td>
                          </tr>
                          <tr>
                            <td class="Estilo1" width="1">Tel:&nbsp;</td>
                            <td class="Estilo1" align="left">+[34]&nbsp;943&nbsp;30&nbsp;92&nbsp;30</td>
                          </tr>
                          <tr>
                            <td class="Estilo1" width="1">Fax:&nbsp;</td>
                            <td class="Estilo1" align="left">+[34]&nbsp;943&nbsp;30&nbsp;93&nbsp;93</td>
                          </tr>
                          <tr>
                            <td colspan="2" class="Estilo1"><a
                                href="http://www.vicomtech.org"
                                target="_blank">www.vicomtech.org</a></td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>
                </tbody>
              </table>
            </td>
            <td width="10" bgcolor="#00afdb">&nbsp;</td>
            <td bgcolor="#00afdb">
              <div align="right"><img
                  src="cid:part2.06070609.08040507@vicomtech.org"
                  width="134" height="126"></div>
            </td>
          </tr>
        </tbody>
      </table>
      <br>
      <table align="center" border="0" cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td> <span class="Estilo3"> Este mensaje se dirige
                exclusivamente a su destinatario. La informaci&oacute;n
                incluida en el presente correo es confidencial sometida
                a secreto profesional, especialmente en lo que respecta
                a los datos de car&aacute;cter personal, cuya divulgaci&oacute;n est&aacute;
                prohibida, en virtud de la legislaci&oacute;n vigente. Si usted
                no es el destinatario leg&iacute;timo y lo ha recibido por
                error o tiene conocimiento del mismo por cualquier
                motivo, le rogamos que nos lo comunique por este medio y
                proceda a destruirlo o borrarlo. En todo caso abstengase
                de utilizar, reproducir, alterar, archivar o comunicar a
                terceros el presente mensaje as&iacute; como los ficheros
                anexos, todo ello bajo pena de incurrir en
                responsabilidades legales. Cualquier opini&oacute;n contenida
                en este correo es exclusiva de su autor y no representa
                necesariamente la opini&oacute;n de ASOCIACI&Oacute;N CENTRO DE
                TECNOLOG&Iacute;AS DE INTERACCI&Oacute;N VISUAL Y COMUNICACIONES
                VICOMTech (en adelante Vicomtech) El emisor no garantiza
                la integridad, rapidez o seguridad del presente correo,
                ni se responsabiliza de posibles perjuicios derivados de
                la captura, incorporaciones de virus o cualesquiera
                otras manipulaciones efectuadas por terceros.<br>
                Con motivo de la entrada en vigor de la Ley 34/2002, de
                11 de julio, de Servicios de la Sociedad de la
                Informaci&oacute;n y de Comercio Electr&oacute;nico, le informamos que
                pueden revocar en cualquier momento, de forma sencilla y
                gratuita, el consentimiento para la recepci&oacute;n de
                mensajes de vicomtech.org en <a
                  href="mailto:info.lopd@vicomtech.org">info.lopd@vicomtech.org</a>.
              </span> </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>