<span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; ">I am working in ITK+VTK. I want to get <span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px; ">Label connected components in 2-D binary image. Similiar type of function, <b>bwlabel (<a href="http://www.mathworks.com/help/toolbox/images/ref/bwlabel.html">http://www.mathworks.com/help/toolbox/images/ref/bwlabel.html</a>) </b>function exist in Matlab. Is any similiar to bwlabel function exist in ITK+VTK. </span><div>
<font class="Apple-style-span" face="Verdana, Arial, Helvetica, sans-serif"><span class="Apple-style-span" style="font-size: 12px; line-height: 20px; "><br></span></font></div><div><font class="Apple-style-span" face="Verdana, Arial, Helvetica, sans-serif"><span class="Apple-style-span" style="font-size: 12px; line-height: 20px; ">e.g., Input to this function is matrixA and output of function should be matrixB.</span></font></div>
<div><font class="Apple-style-span" face="Verdana, Arial, Helvetica, sans-serif"><span class="Apple-style-span" style="font-size: 12px; line-height: 20px; "><br clear="all"></span></font><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; "><pre class="programlisting" style="margin-top: 1ex; margin-right: 0px; margin-bottom: 0.7ex; margin-left: 32px; font-family: &#39;courier new&#39;, courier, monospace; font-size: 12px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
               1     1     1     0     0     0     0     0
               1     1     1     0     1     1     0     0
               1     1     1     0     1     1     0     0
matrixA =      1     1     1     0     0     0     1     0</pre><pre class="programlisting" style="margin-top: 1ex; margin-right: 0px; margin-bottom: 0.7ex; margin-left: 32px; font-family: &#39;courier new&#39;, courier, monospace; font-size: 12px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
               1     1     1     0     0     0     1     0
               1     1     1     0     0     0     1     0
               1     1     1     0     0     1     1     0
               1     1     1     0     0     0     0     0 
</pre><div><br></div><div><br></div><div><pre class="programlisting" style="margin-top: 1ex; margin-right: 0px; margin-bottom: 0.7ex; margin-left: 32px; font-family: &#39;courier new&#39;, courier, monospace; font-size: 12px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
               1     1     1     0     0     0     0     0
               1     1     1     0     2     2     0     0
               1     1     1     0     2     2     0     0
matrixB =      1     1     1     0     0     0     3     0</pre><pre class="programlisting" style="margin-top: 1ex; margin-right: 0px; margin-bottom: 0.7ex; margin-left: 32px; font-family: &#39;courier new&#39;, courier, monospace; font-size: 12px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
               1     1     1     0     0     0     3     0
               1     1     1     0     0     0     3     0
               1     1     1     0     0     1     3     0
               1     1     1     0     0     0     0     0 
</pre></div><div><br></div></span></div></span><br>-- <br>-- <br>Best Regards, <br><br>Humayun Irshad<br><br><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">IPAL CNRS (Image &amp; Pervasive Access Lab)<br>
Institute for Infocomm Research (I2R)<br>1 Fusionopolis Way<br>#21-01 Connexis South Tower<br>Singapore 138632<br>Tel: +65 83851671</span><br>