[Insight-users] Label Connected Components in 2D binary Image in ITK+VTK

Humayun Irshad humayun.irshad at gmail.com
Wed Dec 15 09:49:13 EST 2010


I am working in ITK+VTK. I want to get Label connected components in 2-D
binary image. Similiar type of function, *bwlabel (
http://www.mathworks.com/help/toolbox/images/ref/bwlabel.html) *function
exist in Matlab. Is any similiar to bwlabel function exist in ITK+VTK.

e.g., Input to this function is matrixA and output of function should be
matrixB.

               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

               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



               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

               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



-- 
-- 
Best Regards,

Humayun Irshad

IPAL CNRS (Image & Pervasive Access Lab)
Institute for Infocomm Research (I2R)
1 Fusionopolis Way
#21-01 Connexis South Tower
Singapore 138632
Tel: +65 83851671
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20101215/30f507d8/attachment.htm>


More information about the Insight-users mailing list