[Insight-developers] Label Connected Components in 2D binary Image in ITK+VTK
Luis Ibanez
luis.ibanez at kitware.com
Thu Dec 16 16:52:54 EST 2010
Hi Humayun,
You may want to use
http://public.kitware.com/Insight/Doxygen/html/classitk_1_1ConnectedComponentImageFilter.html
Please look at the example:
http://www.itk.org/Wiki/ITK/Examples/ImageProcessing/ConnectedComponentImageFilter
Regards,
Luis
----------------------------------
On Wed, Dec 15, 2010 at 9:48 AM, Humayun Irshad <humayun.irshad at gmail.com>wrote:
> 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
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20101216/17d1ddcd/attachment.htm>
More information about the Insight-developers
mailing list